/*
 * This file is part of Toolkit.
 *
 * Toolkit is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * Toolkit is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU General
 * Public License along with this program; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301  USA
 */

@import "fonts/Toolkit.css";

/* ############################ RESET CSS ########################### */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1em;
    font: inherit;
    outline: none;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
pre, code {
    font-family: monospace;
}


/* ########################### GENERIC CSS ########################## */

.toolkit-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.toolkit-inactive {
    opacity: 0.3;
}

.toolkit-widget {
    contain: style layout;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    -moz-user-select:      none; /* Firefox */
    -ms-user-select:       none; /* Internet Explorer */
    -khtml-user-select:    none; /* KHTML browsers (e.g. Konqueror) */
    -webkit-user-select:   none; /* Chrome, Safari, and Opera */
    -webkit-touch-callout: none; /* Disable Android and iOS callouts*/
}
.toolkit-input {
    -moz-user-select:      all; /* Firefox */
    -ms-user-select:       all; /* Internet Explorer */
    -khtml-user-select:    all; /* KHTML browsers (e.g. Konqueror) */
    -webkit-user-select:   all; /* Chrome, Safari, and Opera */
    -webkit-touch-callout: all; /* Disable Android and iOS callouts*/
}


/* #################### WIDGETS DEFAULT STYLES #################### */

/* ROOT */

.toolkit-root {
    display: block;
}

/* BUTTON */

.toolkit-button {
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.toolkit-button > .toolkit-label,
.toolkit-button > .toolkit-icon {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: auto;
    pointer-events: none;
}
.toolkit-button > .toolkit-icon {
    background-position: center center;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -ms-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    background-repeat: no-repeat;
    order: 1;
    flex: 0 0 auto;
}
.toolkit-button > .toolkit-label {
    order: 2;
    flex: 0 0 auto;
}
.toolkit-button.toolkit-vertical {
    flex-direction: column;
}

/* BUTTONARRAY */

.toolkit-buttonarray {
    box-sizing: border-box;
    display: inline-flex;
}
.toolkit-buttonarray.toolkit-vertical {
    height: 100%;
    flex-direction: column;
}
.toolkit-buttonarray.toolkit-horizontal {
    width: 100%;
}
.toolkit-buttonarray > .toolkit-previous,
.toolkit-buttonarray > .toolkit-next {
    flex: 0 0 auto;
    margin: 0;
}
.toolkit-buttonarray > .toolkit-clip {
    flex: 1 1 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.toolkit-buttonarray.toolkit-horizontal.toolkit-scroll > .toolkit-clip {
    overflow-x: scroll !important;
}
.toolkit-buttonarray.toolkit-vertical.toolkit-scroll > .toolkit-clip {
    overflow-y: scroll !important;
}
.toolkit-buttonarray > .toolkit-clip > .toolkit-container {
    position: relative;
}
.toolkit-buttonarray.toolkit-horizontal > .toolkit-clip > .toolkit-container {
    height: 100%;
    white-space: nowrap;
}
.toolkit-buttonarray.toolkit-vertical > .toolkit-clip > .toolkit-container {
    width: 100%;
}

/* CONTAINER */

.toolkit-container.toolkit-hide {
    display: none !important;
}

/* CHART */

.toolkit-chart {
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.toolkit-chart > svg {
    box-sizing: content-box;
}
.toolkit-chart > svg > .toolkit-key {
    pointer-events: none;
}

/* CLOCK */

.toolkit-widget.toolkit-clock {
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
}

/* COLORPICKER */

.toolkit-color-picker {
    display: grid;
    grid-template-areas: "red canvas hue"
                         "green canvas saturation"
                         "blue canvas lightness"
                         "cancel hex apply";
}

.toolkit-color-picker > .toolkit-canvas {
    grid-area: canvas;
    padding-top: 100%;
    min-width: 360px;
    position: relative;
    z-index: 10;
    
    background-repeat: no-repeat;
    -webkit-background-size: 100% 100%;
    -moz-background-size:    100% 100%;
    -ms-background-size:     100% 100%;
    -o-background-size:      100% 100%;
    background-size:         100% 100%;
    background-color: black;
    background-image: url(data:image/png;base64,[encoded data, 15652 characters]);
}
.toolkit-color-picker > .toolkit-canvas > .toolkit-grayscale {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background-repeat: no-repeat;
    -webkit-background-size: 100% 100%;
    -moz-background-size:    100% 100%;
    -ms-background-size:     100% 100%;
    -o-background-size:      100% 100%;
    background-size:         100% 100%;
    background: rgb(0,0,0);
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(255,255,255,1) 100%);
    background: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(255,255,255,1) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%,rgba(255,255,255,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#ffffff',GradientType=0 );
}
.toolkit-color-picker > .toolkit-canvas > .toolkit-indicator {
    position: absolute;
    
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}


.toolkit-color-picker > .toolkit-hex {
    grid-area: hex;
    text-align: center;
}
.toolkit-color-picker > .toolkit-hex > .toolkit-input {
    height: 100%;
}

.toolkit-color-picker > .toolkit-hue {
    grid-area: hue;
}
.toolkit-color-picker  >.toolkit-saturation {
    grid-area: saturation;
}
.toolkit-color-picker > .toolkit-lightness {
    grid-area: lightness;
}

.toolkit-color-picker > .toolkit-red {
    grid-area: red;
}
.toolkit-color-picker > .toolkit-green {
    grid-area: green;
}
.toolkit-color-picker > .toolkit-blue {
    grid-area: blue;
}

.toolkit-color-picker > .toolkit-apply {
    grid-area: apply;
}
.toolkit-color-picker > .toolkit-cancel {
    grid-area: cancel;
}

/* DIALOG */

.toolkit-dialog {
    position: fixed;
    z-index: 100000000000;
    
    -webkit-animation: -webkit-dialog-fade-in 0.5s;
    -moz-animation: -moz-dialog-fade-in 0.5s;
    -ms-animation: -ms-dialog-fade-in 0.5s;
    -o-animation: -o-dialog-fade-in 0.5s;
    animation: dialog-fade-in 0.5s;
    
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}
.toolkit-dialog.toolkit-show {
    opacity: 1;
}
.toolkit-dialog.toolkit-hiding {
    opacity: 0;
    
    -webkit-transition: opacity 0.5s, transform 0.5s;
    -moz-transition: opacity 0.5s, transform 0.5s;
    -ms-transition: opacity 0.5s, transform 0.5s;
    -o-transition: opacity 0.5s, transform 0.5s;
    transition: opacity 0.5s, transform 0.5s;
    
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
}
@-webkit-keyframes -webit-dialog-fade-in {
    0% { opacity: 0; -webit-transform: scale(1); }
    100% { opacity: 1; -webit-transform: scale(1);}
}
@-moz-keyframes -moz-dialog-fade-in {
    0% { opacity: 0; -moz-transform: scale(1); }
    100% { opacity: 1; -moz-transform: scale(1);}
}
@-ms-keyframes -ms-dialog-fade-in {
    0% { opacity: 0; -ms-transform: scale(1); }
    100% { opacity: 1; -ms-transform: scale(1);}
}
@-o-keyframes -o-dialog-fade-in {
    0% { opacity: 0; -o-transform: scale(1); }
    100% { opacity: 1; -o-transform: scale(1);}
}
@keyframes dialog-fade-in {
    0% { opacity: 0; transform: scale(1); }
    100% { opacity: 1; transform: scale(1);}
}

/* EXPANDER */

.toolkit-expander {
    
}

.toolkit-expander.toolkit-always-expanded > .toolkit-toggle-expand {
    display: none;
}

/* popup */
.toolkit-expander.toolkit-popup.toolkit-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    margin: 0;
}
.toolkit-expander.toolkit-popup > .toolkit-toggle-expand {
    box-sizing: border-box;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
}
.toolkit-expander.toolkit-popup.toolkit-expanded > .toolkit-toggle-expand {
    opacity: 1;
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
}

/* drawer right */
.toolkit-expander.toolkit-drawer-right {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate3d(100%, 0, 0);
    transition: transform 500ms;
}

.toolkit-expander.toolkit-drawer-right.toolkit-expanded {
    transform: translate3d(0%, 0, 0);
}

.toolkit-expander.toolkit-drawer-right > .toolkit-toggle-expand {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(-100%, 0, 0);
}

/* drawer left */
.toolkit-expander.toolkit-drawer-left {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(-100%, 0, 0);
    transition: transform 500ms;
}

.toolkit-expander.toolkit-drawer-left.toolkit-expanded {
    transform: translate3d(0%, 0, 0);
}

.toolkit-expander.toolkit-drawer-left > .toolkit-toggle-expand {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate3d(100%, 0, 0);
}

/* drawer top */
.toolkit-expander.toolkit-drawer-top {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(0, -100%, 0);
    transition: transform 500ms;
}

.toolkit-expander.toolkit-drawer-top.toolkit-expanded {
    transform: translate3d(0, 0, 0);
}

.toolkit-expander.toolkit-drawer-top > .toolkit-toggle-expand {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate3d(0, 100%, 0);
}

/* drawer bottom */
.toolkit-expander.toolkit-drawer-bottom {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(0, 100%, 0);
    transition: transform 500ms;
}

.toolkit-expander.toolkit-drawer-bottom.toolkit-expanded {
    transform: translate3d(0, 0, 0);
}

.toolkit-expander.toolkit-drawer-bottom > .toolkit-toggle-expand {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate3d(0, -100%, 0);
}

/* hide */
.toolkit-expander.toolkit-remove {
    display: none;
}

.toolkit-expander.toolkit-remove.toolkit-expanded {
    display: block;
}

.toolkit-expander.toolkit-remove > .toolkit-toggle-expand {
    display: none;
}

/* FADER */

.toolkit-fader {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-sizing: border-box;
    
    display: inline-grid;
}

.toolkit-fader.toolkit-horizontal {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
}

.toolkit-fader.toolkit-vertical {
    grid-template-columns: auto auto;
    grid-template-rows: auto 1fr auto;
}

.toolkit-fader.toolkit-top {
    grid-template-areas: "track value"
                         "scale label";
}
.toolkit-fader.toolkit-left {
    grid-template-areas: "label ."
                         "track scale"
                         "value .";
}
.toolkit-fader.toolkit-right {
    grid-template-areas: ". label"
                         "scale track"
                         ". value";
}
.toolkit-fader.toolkit-bottom {
    grid-template-areas: "scale label"
                         "track value";
}

.toolkit-fader > .toolkit-track {
    grid-area: track;
    position: relative;
}
.toolkit-fader > .toolkit-scale {
    grid-area: scale;
}
.toolkit-fader > .toolkit-label {
    grid-area: label;
}
.toolkit-fader.toolkit-vertical > .toolkit-label {
    text-align: center;
}
.toolkit-fader.toolkit-horizontal > .toolkit-label {
    text-align: left;
}
.toolkit-fader > .toolkit-value {
    grid-area: value;
}
.toolkit-fader.toolkit-horizontal > .toolkit-value > .toolkit-input {
    text-align: left;
}
.toolkit-fader.toolkit-vertical > .toolkit-value > .toolkit-input {
    text-align: center;
}

.toolkit-fader > .toolkit-track > .toolkit-handle {
    position: absolute;
    z-index: 10;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.toolkit-fader.toolkit-horizontal > .toolkit-track > .toolkit-handle {
    left: 0;
}

.toolkit-fader.toolkit-vertical > .toolkit-track > .toolkit-handle {
    bottom: 0;
}

/* GAUGE */

.toolkit-gauge {
    
}

.toolkit-gauge > svg {
    width: 100%;
    height: 100%;
}

/* ICON */

.toolkit-icon {
    background-position: center center;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -ms-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    background-repeat: no-repeat;
}

/* KNOB */

.toolkit-knob > svg {
    width: 100%;
    height: 100%;
    transform: translate3d(0,0,0);
    will-change: transform;
    cursor: pointer;
}

/* LABEL */

.toolkit-button.toolkit-select > .toolkit-label {
    text-overflow: ellipsis;
}

/* METERBASE */

.toolkit-meter-base {
    display: inline-grid;
    overflow: hidden;
}
.toolkit-meter-base.toolkit-vertical {
    min-height: 128px;
    grid-template-columns: auto auto;
    grid-template-rows: auto 1fr auto;
}
.toolkit-meter-base.toolkit-horizontal {
    min-width: 128px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
}
.toolkit-meter-base.toolkit-top {
    grid-template-areas:
        "bar bar"
        "scale scale"
        "title label";
}
.toolkit-meter-base.toolkit-bottom {
    grid-template-areas:
        "title label"
        "scale scale"
        "bar bar";
}
.toolkit-meter-base.toolkit-left {
    grid-template-areas:
        "label ."
        "bar scale"
        "title .";
}
.toolkit-meter-base.toolkit-right {
    grid-template-areas:
        ". label"
        "scale bar"
        ". title";
}
.toolkit-meter-base > .toolkit-label {
    grid-area: label;
    white-space: nowrap;
}
.toolkit-meter-base.toolkit-horizontal > .toolkit-label {
    justify-self: end;
    align-self: center;
}
.toolkit-meter-base.toolkit-vertical > .toolkit-label {
    justify-self: center;
    align-self: center;
}
.toolkit-meter-base > .toolkit-title {
    grid-area: title;
    white-space: nowrap;
}
.toolkit-meter-base.toolkit-horizontal > .toolkit-title {
    justify-self: start;
    align-self: center;
}
.toolkit-meter-base.toolkit-vertical > .toolkit-title {
    justify-self: center;
    align-self: center;
}
.toolkit-meter-base > .toolkit-scale {
    grid-area: scale;
}
.toolkit-meter-base.toolkit-vertical > .toolkit-scale {
    height: 100%;
}
.toolkit-meter-base.toolkit-horizontal > .toolkit-scale {
    width: 100%;
}
.toolkit-meter-base.toolkit-top > .toolkit-scale {
    justify-self: center;
    align-self: start;
}
.toolkit-meter-base.toolkit-bottom > .toolkit-scale {
    justify-self: center;
    align-self: end;
}
.toolkit-meter-base.toolkit-left > .toolkit-scale {
    justify-self: start;
    align-self: center;
}
.toolkit-meter-base.toolkit-right > .toolkit-scale {
    justify-self: end;
    align-self: center;
}
.toolkit-meter-base > .toolkit-bar {
    grid-area: bar;
    position: relative;
    overflow: hidden;
    contain: style layout;
}
.toolkit-meter-base.toolkit-vertical > .toolkit-bar {
    height: 100%;
}
.toolkit-meter-base.toolkit-horizontal > .toolkit-bar {
    width: 100%;
}
.toolkit-meter-base.toolkit-top > .toolkit-bar {
    justify-self: center;
    align-self: end;
}
.toolkit-meter-base.toolkit-bottom > .toolkit-bar {
    justify-self: center;
    align-self: start;
}
.toolkit-meter-base.toolkit-left > .toolkit-bar {
    justify-self: end;
    align-self: center;
}
.toolkit-meter-base.toolkit-right > .toolkit-bar {
    justify-self: start;
    align-self: center;
}
.toolkit-meter-base > .toolkit-bar > .toolkit-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* LEVELMETER */
/* out of order because multimeter would override properties */
.toolkit-level-meter.toolkit-vertical {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto 1fr auto;
}
.toolkit-level-meter.toolkit-horizontal {
    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: auto auto auto;
}
.toolkit-level-meter.toolkit-top {
    grid-template-areas:
        "bar bar clip"
        "scale scale ."
        "title label label";
}
.toolkit-level-meter.toolkit-bottom {
    grid-template-areas:
        "title label label"
        "scale scale ."
        "bar bar clip";
}
.toolkit-level-meter.toolkit-left {
    grid-template-areas:
        "label ."
        "clip ."
        "bar scale"
        "title .";
}
.toolkit-level-meter.toolkit-right {
    grid-template-areas:
        ". label"
        ". clip"
        "scale bar"
        ". title";
}
.toolkit-level-meter > .toolkit-clip {
    grid-area: clip;
}
.toolkit-level-meter > .toolkit-bar > .toolkit-peak {
    position: absolute;
    z-index: 1000;
}

.toolkit-level-meter.toolkit-vertical.toolkit-left > .toolkit-bar > .toolkit-peak .toolkit-peak-label {
    float: left;
}
.toolkit-level-meter.toolkit-vertical.toolkit-right > .toolkit-bar > .toolkit-peak .toolkit-peak-label {
    float: right;
}

.toolkit-level-meter.toolkit-horizontal > .toolkit-bar > .toolkit-peak > .toolkit-peak-label {
    transform: rotate(-90deg);
}
.toolkit-level-meter.toolkit-horizontal.toolkit-top > .toolkit-bar > .toolkit-peak > .toolkit-peak-label {
    float: right;
}
.toolkit-level-meter.toolkit-horizontal.toolkit-bottom > .toolkit-bar > .toolkit-peak > .toolkit-peak-label {
    float: left;
}

/* MULTIMETER */

.toolkit-multi-meter {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: center;
}
.toolkit-multi-meter.toolkit-horizontal {
    flex-direction: column;
}
.toolkit-multi-meter > .toolkit-title {
    height: 1.2em;
    line-height: 1.2em;
    flex: 1 0 100%;
    align-self: start;
}
.toolkit-multi-meter > .toolkit-level-meter {
    flex: 0 0 auto;
    align-self: stretch;
}
.toolkit-multi-meter.toolkit-horizontal .toolkit-level-meter {
    grid-template-columns: 48px 1fr auto 48px;
    grid-template-rows: auto auto;
}
.toolkit-multi-meter.toolkit-top .toolkit-level-meter {
    grid-template-areas:
        "title bar clip label"
        ". scale . .";
}
.toolkit-multi-meter.toolkit-bottom .toolkit-level-meter {
    grid-template-areas:
        ". scale . ."
        "title bar clip label";
}
.toolkit-multi-meter.toolkit-horizontal .toolkit-level-meter > .toolkit-title {
    justify-self: end  !important;
}

/* PAGER */

.toolkit-pager {
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
}
.toolkit-pager.toolkit-vertical {
    flex-direction: column;
}
.toolkit-pager > .toolkit-clip {
    flex: 1 1 100%;
    position: relative;
}
.toolkit-pager.toolkit-left > .toolkit-clip,
.toolkit-pager.toolkit-top > .toolkit-clip {
    order: 2;
}
.toolkit-pager.toolkit-right > .toolkit-clip,
.toolkit-pager.toolkit-bottom > .toolkit-clip {
    order: 1;
}
.toolkit-pager > .toolkit-clip > .toolkit-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    overflow: auto;
    will-change: transform;
    transform: translate3d(0,0,0);
}
.toolkit-pager > .toolkit-buttonarray {
    display: flex;
    flex: 0 0 auto;
}
.toolkit-pager.toolkit-left > .toolkit-buttonarray,
.toolkit-pager.toolkit-top > .toolkit-buttonarray {
    order: 1;
}
.toolkit-pager.toolkit-right > .toolkit-buttonarray,
.toolkit-pager.toolkit-bottom > .toolkit-buttonarray {
    order: 2;
}



.toolkit-pager.toolkit-forward.toolkit-vertical  > .toolkit-clip > .toolkit-page.toolkit-hiding {
    animation: toolkit-page-vertical-out-forward 0.5s ease-in-out;
    transform: translateX(-100%);
}
.toolkit-pager.toolkit-forward.toolkit-vertical  > .toolkit-clip > .toolkit-page.toolkit-showing {
    animation: toolkit-page-vertical-in-forward 0.5s ease-in-out;
}

.toolkit-pager.toolkit-backward.toolkit-vertical  > .toolkit-clip > .toolkit-page.toolkit-hiding {
    animation: toolkit-page-vertical-out-backward 0.5s ease-in-out;
    transform: translateX(100%);
}
.toolkit-pager.toolkit-backward.toolkit-vertical  > .toolkit-clip > .toolkit-page.toolkit-showing {
    animation: toolkit-page-vertical-in-backward 0.5s ease-in-out;
}

.toolkit-pager.toolkit-forward.toolkit-horizontal > .toolkit-clip > .toolkit-page.toolkit-hiding {
    animation: toolkit-page-horizontal-out-forward 0.5s ease-in-out;
    transform: translateY(-100%);
}
.toolkit-pager.toolkit-forward.toolkit-horizontal  > .toolkit-clip > .toolkit-page.toolkit-showing {
    animation: toolkit-page-horizontal-in-forward 0.5s ease-in-out;
}

.toolkit-pager.toolkit-backward.toolkit-horizontal  > .toolkit-clip > .toolkit-page.toolkit-hiding {
    animation: toolkit-page-horizontal-out-backward 0.5s ease-in-out;
    transform: translateY(100%);
}
.toolkit-pager.toolkit-backward.toolkit-horizontal  > .toolkit-clip > .toolkit-page.toolkit-showing {
    animation: toolkit-page-horizontal-in-backward 0.5s ease-in-out;
}

@keyframes toolkit-page-horizontal-in-forward {
    0%   { transform: translateY(100%); }
    100% { transform: translateY(0); }
}
@keyframes toolkit-page-horizontal-out-forward {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}
@keyframes toolkit-page-horizontal-in-backward {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}
@keyframes toolkit-page-horizontal-out-backward {
    0%   { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

@keyframes toolkit-page-vertical-in-forward {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(0); }
}
@keyframes toolkit-page-vertical-out-forward {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@keyframes toolkit-page-vertical-in-backward {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}
@keyframes toolkit-page-vertical-out-backward {
    0%   { transform: translateX(0); }
    100% { transform: translateX(100%); }
}


/* RESPONSEHANDLE */

.toolkit-response-handle {
    display: block;
}
.toolkit-response-handle.toolkit-inactive {
    display: none;
}
.toolkit-response-handle.toolkit-circular > .toolkit-line {
    display: none;
}
.toolkit-response-handle.toolkit-circular.toolkit-active > .toolkit-line {
    display: block;
}
.toolkit-response-handle.toolkit-line > .toolkit-line-2 {
    display: none;
}
.toolkit-response-handle.toolkit-line.toolkit-active > .toolkit-line-2 {
    display: block;
}
.toolkit-response-handle.toolkit-block > .toolkit-line-2 {
    display: none;
}
.toolkit-response-handle.toolkit-block.toolkit-active > .toolkit-line-2 {
    display: block;
}

/* SCALE */

.toolkit-scale {
    
}

.toolkit-scale > .toolkit-label {
    position: absolute;
    z-index: 4;
    display: block;
    float: left;
}

.toolkit-scale > .toolkit-dot {
    position: absolute;
    z-index: 3;
}

.toolkit-scale.toolkit-vertical > .toolkit-label {
    transform: translateY(50%);
}

.toolkit-scale.toolkit-vertical > .toolkit-max,
.toolkit-scale.toolkit-vertical.toolkit-reverse > .toolkit-min {
    transform: translateY(100%);
}

.toolkit-scale.toolkit-vertical > .toolkit-min,
.toolkit-scale.toolkit-vertical.toolkit-reverse > .toolkit-max {
    transform: translateY(0);
}

.toolkit-scale.toolkit-horizontal > .toolkit-label {
    transform: translateX(-50%);
}

.toolkit-scale.toolkit-horizontal > .toolkit-max,
.toolkit-scale.toolkit-horizontal.toolkit-reverse > .toolkit-min {
    transform: translateX(-100%);
}

.toolkit-scale.toolkit-horizontal > .toolkit-min,
.toolkit-scale.toolkit-horizontal.toolkit-reverse > .toolkit-max {
    transform: translateX(0);
}
.toolkit-scale > .toolkit-pointer {
    box-sizing: border-box;
    position: absolute;
    z-index: 5;
    overflow: hidden;
    width: 12px;
    height: 12px;
    border-width: 6px;
    border-color: transparent;
    border-style: solid;
}
.toolkit-scale.toolkit-vertical > .toolkit-pointer {
    margin-bottom: -6px;
    bottom: 0px;
}
.toolkit-scale.toolkit-left > .toolkit-pointer {
    left: -6px;
}
.toolkit-scale.toolkit-right > .toolkit-pointer {
    right: -6px;
}
.toolkit-scale.toolkit-horizontal > .toolkit-pointer {
    margin-left: -6px;
    left: 0;
}
.toolkit-scale.toolkit-top > .toolkit-pointer {
    top: -6px;
}
.toolkit-scale.toolkit-bottom > .toolkit-pointer {
    bottom: -6px;
}
.toolkit-scale > .toolkit-bar {
    position: absolute;
    z-index: 0;
}
.toolkit-scale.toolkit-vertical > .toolkit-bar {
    bottom: 0px;
}
.toolkit-scale.toolkit-left > .toolkit-bar {
    left: 0px;
}
.toolkit-scale.toolkit-right > .toolkit-bar {
    right: 0px;
}
.toolkit-scale.toolkit-horizontal > .toolkit-bar {
    left: 0px;
}
.toolkit-scale.toolkit-top > .toolkit-bar {
    top: 0px;
}
.toolkit-scale.toolkit-bottom > .toolkit-bar {
    bottom: 0px;
}


/* SELECT */

.toolkit-button.toolkit-select {
    flex-direction: row;
    justify-content: flex-end;
}
.toolkit-button.toolkit-select > .toolkit-label {
    order: 1;
    flex: 1 1 auto;
}
.toolkit-button.toolkit-select > .toolkit-icon {
    order: 2;
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 16px;
    height: 16px;
    width: 16px;
    margin: 0 0 0 4px !important;
}
.toolkit-select-list {
    position: absolute;
    z-index: 100000;
    box-sizing: border-box;
    overflow-y: auto;
}
.toolkit-select-list > .toolkit-option {
    white-space: nowrap;
    display: block;
}

/* SLIDER */

.toolkit-slider {
    background-position: 0 0;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* STATE */

.toolkit-state > .toolkit-mask {
    width: 100%;
    height: 100%;
}

/* TOOLTIP */

.toolkit-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}
.toolkit-tooltip > .toolkit-table {
    display: table;
    width: 100vw;
    height: 100vh;
    table-layout: auto;
}
.toolkit-tooltip > .toolkit-table > .toolkit-row {
    display: table-row;
}
.toolkit-tooltip > .toolkit-table > .toolkit-row > .toolkit-cell {
    display: table-cell;
    height: auto;
}
.toolkit-tooltip > .toolkit-table > .toolkit-row > .toolkit-cell > .toolkit-entry {
    white-space: nowrap;
    display: table-cell;
}

/* VALUE */

.toolkit-value > .toolkit-input {
    -webkit-user-select: auto !important;
    -khtml-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    text-align: center;
    border: none;
    outline: none;
}

/* VALUEBUTTON */

.toolkit-valuebutton {
    display: inline-grid;
    
    justify-content: stretch;
    align-items: center;
    
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas: "icon label value"
                         "scale scale value";
}
.toolkit-valuebutton > .toolkit-icon {
    grid-area: icon;
}
.toolkit-valuebutton > .toolkit-label {
    grid-area: label;
}
.toolkit-valuebutton > .toolkit-value {
    grid-area: value;
}
.toolkit-valuebutton > .toolkit-scale {
    grid-area: scale;
}

/* VALUEKNOB */

.toolkit-valueknob {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}
.toolkit-valueknob > .toolkit-label {
    flex: 0 0 auto;
}
.toolkit-valueknob > .toolkit-knob {
    width: 100px;
    height: 100px;
    flex: 0 0 auto;
}
.toolkit-valueknob > .toolkit-value {
    flex: 0 0 auto;
}

/* WINDOW */

.toolkit-window {
    position: absolute;
    z-index: 10000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.toolkit-window > .toolkit-content {
    overflow: auto;
    order: 2;
    flex: 1 1 auto;
}
.toolkit-window > .toolkit-header {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    order: 1;
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
}
.toolkit-window.toolkit-draggable > .toolkit-header {
    cursor: pointer;
}

.toolkit-window > .toolkit-footer {
    cursor: default;
    order: 3;
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
}
.toolkit-window > .toolkit-header > .toolkit-title,
.toolkit-window > .toolkit-footer > .toolkit-title {
    white-space: nowrap;
    flex: 1 1 auto;
}
.toolkit-window > .toolkit-header .toolkit-status,
.toolkit-window > .toolkit-footer .toolkit-status {
    white-space: nowrap;
    flex: 1 1 auto;
}
.toolkit-window > .toolkit-header > .toolkit-icon,
.toolkit-window > .toolkit-footer > .toolkit-icon {
    flex: 0 0 auto;
}
.toolkit-window > .toolkit-header > .toolkit-button,
.toolkit-window > .toolkit-footer > .toolkit-button {
    flex: 0 0 auto;
}
.toolkit-window.toolkit-shrinked > .toolkit-footer,
.toolkit-window.toolkit-shrinked .toolkit-resize {
    display: none !important;
}
.toolkit-window > .toolkit-header > .toolkit-resize,
.toolkit-window > .toolkit-footer > .toolkit-resize {
    cursor: pointer;
}
.toolkit-window > .toolkit-header > .toolkit-spacer,
.toolkit-window > .toolkit-footer > .toolkit-spacer {
    flex: 1 1 auto;
}
