/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* 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;
}.progress-indeterminate {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 4px;
	overflow: hidden;
	background-color: rgba(244, 67, 54, .25);

	z-index: 20020;
}
.progress-indeterminate::after {
	position: absolute;
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background-color: #F44336;
	animation: progress-indeterminate 2s linear infinite;
}
@keyframes progress-indeterminate { from { left: -100%; } to { left: 100%; } }

.info-bar {
	position: fixed;
	left: 50%;
	bottom: 0;
	z-index: 20040;
}

body {
	background-image: url('/resources/icons/background.svg');
	background-size: 384px 384px;
}

.info-bar > .info-bar-block {
	position: relative;
	left: -50%;
	background-color: #323232;
	color: #FFF;

	min-width: 288px;
	max-width: 568px;
}

.info-bar > .info-bar-block > .info-bar-content {
	display: flex;
	padding: 16px 24px;
}
.info-bar > .info-bar-block > .info-bar-content > * {
	flex: 1 1 auto;
}
.info-bar > .info-bar-block > .info-bar-content > p {
    white-space: pre-wrap;
}
.info-bar > .info-bar-block > .info-bar-content > button {
	color: #1E88E5;
	color: #F44336;
	text-transform: uppercase;
	font-weight: 600;
	margin-left: 24px;
	flex: 0 1 auto;
}


.progress-overlay {
	position: fixed;
	opacity: 0;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255,255,255,.5);
	background-color: rgba(0,0,0,.5);
	z-index: 20000;
}.jv-breadcrumbs {
    display: flex;
    opacity: .7;
    overflow: hidden;
}

.jv-breadcrumbs-item {
    position: relative;
    flex: 0 0 auto;
    padding-left: 36px;
    cursor: pointer;

    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;

    max-width: 160px;
}

@media only screen and (min-width : 1152px) {
    .jv-breadcrumbs-item {
        max-width: 200px;
    }
}

.jv-breadcrumbs-item::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    left: 6px;
    top: 12px;
    opacity: .54;
    background-image: url(/resources/material-design-icons/navigation/ic_chevron_right_white_24px.svg);
}

.jv-breadcrumbs-item > p {
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    overflow: hidden;
}
.jv-breadcrumbs-item > p:last-child {
    white-space: normal; /* If p is alone then allow 2 lines */
    max-height: 32px; /* 2x line-height */
}
.jv-breadcrumbs-item > p.sub {
    white-space: nowrap;
    font-size: 12px;
    line-height: 13px;
    opacity: .54;
}
.panel.panel-switch-access > .content {
    /*display: flex;*/
    /*flex-direction: column;*/
    background-color: #F8F8F8;
}

.panel-switch-access > .content > div:first-child {
    /*
    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
    https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context
     */
    overflow: hidden;

    flex: 0 0 auto;
    /*display: flex;*/
    box-shadow: 0 0 5px 0 rgba(0,0,0,.2);
    background-color: #FFF;
    z-index: 1;
}
.panel-switch-access > .content > div:first-child > * {
    margin: 16px;
}
.panel-switch-access > .content > div:first-child > .micro-form {
    padding: 0;
    box-shadow: none;
}

.panel-switch-access > .content > div:first-child > .code > .form-input > input {
    width: 100%;
    padding: 17px;
    border: 0;
    background-color: #F0F0F0;
}
.panel-switch-access > .content > div:first-child > .code {
    display: flex;
    align-items: flex-end;
    /*padding: 24px;*/
    /*flex: 0 0 auto;*/
    /*width: 50%;*/
}

.panel-switch-access > .content > div:first-child > .code > img {
    margin-left: 24px;
}
.panel-switch-access > .content > div:first-child > .code > .form-input {
    flex: 1 1 auto;
    font-family: 'Roboto Mono', monospace;
}
/*.panel-switch-access > .content > div:first-child > .code-link > div:first-child > p:first-child {*/
    /*margin-bottom: 12px;*/
/*}*/
.panel-switch-access > .content > div:first-child > .code-link > p:last-child {
    font-size: 12px;
    line-height: 13px;
    opacity: .54;
}

.panel-switch-access > .content > .list {
    margin: 16px;
}

.panel-switch-access > .content > .list > ul > li {
    background-color: #FFF;
}


/*.panel-switch-access > .content > .list > ul > li.forward-item.selected {*/
    /*background-color: #1E88E5;*/
    /*color: #FFF;*/
/*}*/

.panel-switch-register > .content > .list > ul > li > div > .item-label {
    /*margin-left: 16px;*/
}


.panel-item-switch > .content > div > p {
    /*line-height: 20px;*/
}


.micro-form.enter-email > button::after {
    background-image: url('/resources/material-design-icons/content/ic_send_white_24px.svg');
}


/** **/

.panel-switch-ios-hint > .content {
    padding: 8px;
}
.panel-switch-ios-hint > .content > * {
    margin: 8px;
}

.panel-switch-ios-hint > .content > div {
    display: flex;
}
.panel-switch-ios-hint > .content > div > * {
    padding: 0 8px;
    align-self: center;
}
.panel-switch-ios-hint > .content > div > *:nth-child(1) {
    flex: 0 0 24px;
}
.panel-switch-ios-hint > .content > div > *:nth-child(2) {
    flex: 0 0 40px;
    text-align: center;
}
.panel-switch-ios-hint > .content > div > *:nth-child(2) > img {
    border-radius: 4px;
}
.panel-switch-ios-hint > .content > div > *:nth-child(3) {
    flex: 1 1 auto;
}

html {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.selectable {
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
}

svg, img, button, label, input {
    border: none;
    display: block;
}

button, input[type=submit] {
    -webkit-appearance: none;
    border: none;
    background: transparent;

    cursor: pointer;
}
button:disabled, input[type=submit]:disabled {
    cursor: initial;
}

body, input, button, textarea {
    /*font: normal 300 16px 'Lato', sans-serif;*/
}

button::-moz-focus-inner
,input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

button:focus {
    outline: none;
}

.ui-draggable-dragging {
    z-index: 90000;
}

li {
    list-style: none;
}/*http://www.paulirish.com/2012/box-sizing-border-box-ftw/*/
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

@-moz-document url-prefix() {
    /* "fix" gaps between the pannels in firefox */
    .panels > .panel {
        margin-left: -0.5px;
    }
}


.top-bar, /* <-- fixes safari rendering */
.panels > .panel,
.panel > .content,
body {
    /* This enables hardware-acceleration for scrolling and browsing in current layout */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -ms-transform: translate(0); /* use translate, not translateZ or translate3d otherwise IE11 will be blurry */
    -webkit-font-smoothing: subpixel-antialiased; /* Does not work in chrome. maybe safari? */
}

body {
    cursor: default;
}

a {
    cursor: pointer;
}

.overflow {
    flex: 0 0 100%;
    opacity: 0;
}

b {
    font-weight: bold;
}

button {
    background: none repeat scroll 0 0 transparent;
    border: none;
    padding: 0;
    /*background-color: #ffaf0f;*/
    /*background-repeat: no-repeat;*/
    /*background-position: 4px 4px;*/
}

/*
100 Thin
300 Light
400 Normal (Regular)
500 Medium
700 Bold
900 Ultra-Bold
*/

body, input, button, textarea {
    font: normal 300 14px/16px 'Roboto', sans-serif;
    color: rgba(0,0,0,.87);
}

html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
}
body > .top-bar {
    background-color: #101010;
    flex: 0 0 auto; height: 48px;
    color: #FFF;
    display: flex;
}
body > .top-bar > * {
    flex: 0 1 auto;
    margin: 12px;
    padding: 4px;
}
body > .top-bar > h1 {
    margin: 0 0 0 16px;
    padding: 16px 0;
    cursor: pointer;
}
body > .top-bar > .jv-breadcrumbs {
    flex: 1 1 auto;
    opacity: .7;
    text-shadow: 0 0 1px rgba(255, 255, 255, .75); /* nearly invisible shadow fixes safari rendering somewhat */
    margin: 0;
    padding: 0;
}
body > .top-bar > .menu-button {
    padding: 4px 32px 4px 4px;
    opacity: .7;
    text-shadow: 0 0 1px rgba(255, 255, 255, .75); /* nearly invisible shadow fixes safari rendering somewhat */
    position: relative;
    cursor: pointer;
}
body > .top-bar > .menu-button::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 0;
    top: 0;
    background-image: url('/resources/material-design-icons/navigation/ic_menu_white_24px.svg');
}
body > .top-bar > .account-button::after {
    background-image: url('/resources/material-design-icons/action/ic_account_circle_white_24px.svg');
}

@media only screen and (max-width : 639px) {
    body > .top-bar > .account {
        padding: 4px 4px 4px 4px;
        width: 24px;
        color: transparent;
        text-shadow: none;
    }
}

body > .panels {
    flex: 1 1 auto;
    display: flex;
    overflow: hidden
}


.panels {
    /*background-image: url('/resources/icons/background.svg');*/
    /*background-size: 384px 384px;*/
}
.panels > * {
}

.panel {
    box-shadow: 0 0 10px 0 rgba(0,0,0,.2);
    /*background: linear-gradient(to right, rgba(0,0,0,.05) 0,rgba(0,0,0,0) 160px);*/
    display: flex;
    min-height: 0;
    min-width: 0; /* https://css-tricks.com/flexbox-truncated-text/ */
    flex-direction: column;

    position: relative;
}

.panel > .content {
    flex: 1 1 auto;
    overflow-x: auto;

    display: flex;
    flex-direction: column;

    background-color: #FFF;
}
.panel > .toolbar {
    /*background-color: #E0E0E0;*/
    background-color: #2196F3;
    background-color: #1E88E5;
    color: #FFF;
    display: flex;
}

/*.toolbar > button { margin: 0 8px; }*/
/*.toolbar > button:first-child { margin-left: 0; }*/
/*.toolbar > button:last-child { margin-right: 0; }*/

.ignore-panel-medium > .toolbar > h2 {
    font-size: 24px;
}

.toolbar > h2 {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    /*font-weight: bold;*/
}

.panel > .toolbar {
    /*flex: 0 0 48px;*/ flex: 0 0 auto; height: 48px; /* IE 11: https://github.com/philipwalton/flexbugs#7-flex-basis-doesnt-account-for-box-sizingborder-box */
    padding: 2px 10px 2px 2px /* TODO: without add 8px right it looks out of place */
}
.panel > .toolbar > * {
    height: 24px;
    margin: 10px 10px 10px 0;
}
.panel > .toolbar > *:first-child { margin: 10px; }

.panel > .toolbar > button {
    /*/!*flex: 0 0 24px;*!/ flex: 0 0 auto; width: 24px;*/
    flex: 0 0 auto; min-width: 24px;
    color: #FFF;
    text-transform: uppercase;
    font-weight: normal;
    font-size: 12px;
}
.panel > .toolbar > button:disabled {
    opacity: .54;
}
.panel > .toolbar > h2 {
    padding: 4px;
}

.ignore-panel-medium > .toolbar {
    /*flex: 0 0 72px;*/ flex: 0 0 auto; height: 72px;;
    padding: 16px;
}
.ignore-panel-medium > .toolbar > button {
    /*flex: 0 0 40px;*/ flex: 0 0 auto; width: 40px;
}

.list > ul {
    position: relative;
}

.content > .list > ul > li {
    cursor: pointer;
}

.list > ul > li {
    height: 48px;
    border-bottom: 1px solid #E0E0E0;
    padding: 2px 2px 1px 2px;
    display: flex;
}

.list > ul > li.selected {
    background-color: #E3F2FD;
}

.list > ul > li > * { margin: 10px; }
/*.list > ul > li > button { margin: 0 8px; }*/
/*.list > ul > li > button:first-child { margin-left: 0; }*/
/*.list > ul > li > button:last-child { margin-right: 0; }*/

.list > ul > li > button {
    flex: 0 0 auto; width: 24px;
}
.list > ul > li > p {
    flex: 1 1 auto;
    padding: 4px;
}


.list > ul > li > .item-label:first-child { margin-left: 14px; }
.list > ul > li > .item-label:last-child { margin-right: 14px; }
.list > ul > li > .item-label {
    margin: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.list > ul > li > .item-label > p {
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    overflow: hidden;
}
.list > ul > li > .item-label > p:last-child {
    white-space: normal; /* If p is alone then allow 2 lines */
    max-height: 32px; /* 2x line-height */
}
.list > ul > li > .item-label > p.sub {
    white-space: nowrap;
    font-size: 12px;
    line-height: 13px;
    opacity: .54;
}

.list > ul > li > .item-label > p > span {
    opacity: .54;
}



.list > ul > .forward-item {
    display: block;
    padding: 0;
    height: auto;
}
.list > ul > .forward-item > div {
    display: flex;
    margin: 0;
}
.list > ul > .forward-item > div > button {
    flex: 0 0 24px;
    margin: 12px;
    height: 24px;
}


.period > input {
    margin: auto;
}

.list > ul > .forward-item > div > .period {
    background-color: #F0F0F0;
    flex: 0 0 40px;
    height: 40px;
    margin: 4px 16px 4px 4px;
    display: flex; /* centers radio */
}

.list > ul > .forward-item > div > .item-label {
    margin: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.list > ul > .forward-item > div > .item-label:first-child {
    padding-left: 12px;
}
.list > ul > .forward-item > div > .item-label > p {
    /*margin: 10px 0 0 0;*/
}
.list > ul > .forward-item > div > .item-label > p:last-child {
    /*margin: 16px 0;*/
}
.list > ul > .forward-item > div > .item-label > p.sub {
    margin: 0;
    font-size: 12px;
    line-height: 13px;
    opacity: .54;
}
.list > ul > .forward-item > .time-slider {
    margin: 0 48px 0 0;
}
.list > ul > .forward-item > .time-slider > p {
    flex: 0 0 24px;
    margin: 6px 24px 6px 12px;
    font-size: 12px;
    line-height: 13px;
    opacity: .54;
}

/* Form */


/* TODO <<< */

.form-field.form-field-select.jv-invalid {
    height: 51px; /* TODO: this fix should not be needed */
}
.form-field.jv-invalid {
    margin-bottom: 23px;
}
.jv-invalid.jv-invalid > .form-input > input:focus {
    /*outline-color: #C40;*/
    outline-color: #E53935;
}

.jv-invalid.jv-invalid > .form-input {
    border-bottom: 1px solid #E53935;
    background-color: #FFCDD2;
    /*padding: 7px 9px;*/
}
.jv-invalid.jv-invalid > .form-input > input {
    background-color: #FFCDD2;
}

/*.form-field.jv-dirty > * > .jv-form-field-body {*/
    /*background-image: url('/resources/icons/dirty.svg');*/
    /*background-repeat: no-repeat;*/
    /*background-position: right 0;*/
/*}*/

.form-field > .jv-error,
.form-input > .jv-error {
    height: 0;
    position:absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-align: center;
}
.form-field > .jv-error::before,
.form-input > .jv-error::before {
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #E53935;
    /*margin: 0 auto;*/
    margin: 0 10px 0 auto;
}
.form-field > .jv-error>div,
.form-input > .jv-error>div {
    display: inline-block;
    padding: 10px 20px;
    color: #FFF;
    background-color: #E53935;
    /*margin: 0 10px;*/
}

/* >>> TODO */









.form-field {
    position: relative;
    display: flex;
    margin: 24px 16px;
    margin: 23px 16px 24px 16px; /* because of jv-invalid and margin collapse */
}

.form-field > .form-label {
    flex: 1 1 0%;
    height: 50px;
    /*padding: 17px 0;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.form-field > .form-input {
    flex: 3 1 0%;
    background-color: #F0F0F0;
}
.form-field > .form-input > input {
    width: 100%;
    height: 50px;
    padding: 17px;

    border: 0;
    background-color: #F0F0F0;
}
input::placeholder {
    color: rgba(0,0,0,.26);
}

.form-field > .form-submit {
    background-color: #2196F3;
    color: #FFF;
    border: 0;
    border-radius: 2px;
    display: block;
    height: 36px;
    min-width: 88px;
    padding: 8px;
    box-shadow: 1px 2px 3px 0 rgba(0,0,0,.2);
    text-transform: uppercase;
    font-weight: normal;
    font-size: 12px;
    margin-left: auto;
}

.form-input > .list > ul {
    padding: 1px;
}
.form-input > .list > ul > li {
    background-color: #FFF;
}
/*.form-input >*/ .add-to-list {
    height: 50px;
    /*padding: 8px 16px 16px 56px;*/
    padding: 16px 12px 16px 40px;
    background-color: transparent;
    border: 0;
}


.form-field-radio > .form-input.form-input-ivr-events {
    padding: 0;
}
.form-input-ivr-events > table {
    width: 100%;
    table-layout: fixed;
    /*border: 1px solid #F0F0F0;*/
}
.form-input-ivr-events td + td {
    border-left: 1px solid #FFF;
}
.form-input-ivr-events tr + tr {
    border-top: 1px solid #FFF;
}

.form-input-ivr-events td {
    vertical-align: middle;
    text-align: center;
    width: 25%;
    height: 50px;
}
.form-input-ivr-events input {
    display: none;
}
.form-input-ivr-events label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #F0F0F0;
    color: rgba(0,0,0,.54);
}
.form-input-ivr-events label.disabled {
    color: rgba(0,0,0,.12);
}
.form-input-ivr-events input:checked + label{
    /*color: #000;*/

    /*background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12" stroke-width="0" fill="#2196F3"/></svg>');*/
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHdpZHRoPSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMiIgc3Ryb2tlLXdpZHRoPSIwIiBmaWxsPSIjMjE5NkYzIi8+PC9zdmc+');
    background-position: center;
    background-repeat: no-repeat;
    color: #FFF;
}
.form-input-ivr-events input:checked + label.square{
    /*background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="20" width="150" viewBox="0 0 150 20"><rect x="0" y="0" width="150" height="20" stroke-width="0" fill="#2196F3"/></svg>');*/
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIxNTAiIHZpZXdCb3g9IjAgMCAxNTAgMjAiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxNTAiIGhlaWdodD0iMjAiIHN0cm9rZS13aWR0aD0iMCIgZmlsbD0iIzIxOTZGMyIvPjwvc3ZnPg== ');
}

/* -------------------------------------------- */

.form-field-radio > .form-input {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 0;
}

.form-field-radio > .form-input > label {
    flex: 0 0 auto;
    /*padding: 17px 8px;*/
    padding: 5px 0 5px 17px;
}
.form-field-radio > .form-input > label:first-child {
    /*padding-left: 17px;*/
}
.form-field-radio > .form-input > label > input {
    display: inline;
    margin: 3px 5px 3px 3px;
}

/* -------------------------------------------- */

.form-field-select-audio > .form-input {
    display: flex;
    padding: 2px;
}
.form-field-select-audio > .form-input > * {
    flex: 0 0 auto;
    margin: 10px 10px 10px 0;
}
.form-field-select-audio > .form-input > *:first-child { margin: 10px; }
.form-field-select-audio > .form-input > p {
    flex: 1 1 auto;
    padding: 4px 0;
    overflow: hidden;
    white-space:nowrap;
}

.form-field-select-audio > .form-input > .select-button {
    flex: 1 1 auto;
    padding-right: 32px;
    position: relative;
    text-align: left;
}
.form-field-select-audio > .form-input > .select-button::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 0;
    top: 0;
    opacity: .54;
    background-image: url('/resources/material-design-icons/navigation/ic_chevron_right_black_24px.svg');
}

.form-field-select-audio > .form-input > .play-button {
    width: 24px;
    height: 24px;
    opacity: .54;
    background-image: url('/resources/material-design-icons/av/ic_play_circle_filled_black_24px.svg');
}
.form-field-select-audio > .form-input > .remove-button {
    width: 24px;
    height: 24px;
    opacity: .54;
    background-image: url('/resources/material-design-icons/content/ic_clear_black_18px.svg');
    background-repeat: no-repeat;
    background-position: 3px 3px;
}

/* -------------------------------------------- */

.form-field-select > .form-input {
    display: flex;
    padding: 2px;
}
.form-field-select > .form-input > * {
    flex: 0 0 auto;
    margin: 10px 10px 10px 0;

    /* TODO: investigate this quickfix */
    min-width: 0;
    width: 0;
    overflow: hidden;
}
.form-field-select > .form-input > *:first-child { margin: 10px; margin-left: 15px; }
.form-field-select > .form-input > p {
    flex: 1 1 auto;
    padding: 4px 0;
    overflow: hidden;
    white-space:nowrap;
}

.form-field-select > .form-input > .select-button {
    flex: 1 1 auto;
    padding-right: 32px;
    position: relative;
    text-align: left;
}
/*.form-field-select > .form-input > .select-button.placeholder {*/
.form-field-select > .form-input > .placeholder {
    color: rgba(0,0,0,.26);
}
.form-field-select > .form-input > .select-button::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 0;
    top: 0;
    opacity: .54;
    background-image: url('/resources/material-design-icons/navigation/ic_chevron_right_black_24px.svg');
}

.form-field-select > .form-input > .play-button {
    width: 24px;
    height: 24px;
    opacity: .54;
    background-image: url('/resources/material-design-icons/av/ic_play_circle_filled_black_24px.svg');
}
.form-field-select > .form-input > .remove-button {
    width: 24px;
    height: 24px;
    opacity: .54;
    background-image: url('/resources/material-design-icons/content/ic_clear_black_18px.svg');
    background-repeat: no-repeat;
    background-position: 3px 3px;
}

/* -------------------------------------------- */


.toolbar > .remove-button {
    background-image: url('/resources/material-design-icons/action/ic_delete_white_24px.svg');
}
.toolbar > .calendar-button {
    background-image: url('/resources/material-design-icons/action/ic_date_range_white_24px.svg');
}

button.up {
    background-image: url('/resources/material-design-icons/navigation/ic_arrow_back_white_24px.svg');
}
button.remove {
    opacity: .54;
    background-image: url('/resources/material-design-icons/content/ic_clear_black_18px.svg');
    background-repeat: no-repeat;
    background-position: 3px 3px;
}
button.add-to-list {
    opacity: .54;
    background-image: url('/resources/material-design-icons/content/ic_add_black_18px.svg');
    background-repeat: no-repeat;
    background-position: 12px 12px;
    background-position: 15px 15px;
}

.form-input > .list > ul > li > button.period {
    background-color: #F0F0F0;
    width: 40px;
    height: 40px;
    margin: 2px;
}

/* -------------------------------------------- */

.panel-edit-new-item > .content {
    background-color: #F8F8F8;
}
.panel-edit-new-item > .content > p {
    background-color: #FFF;
    padding: 24px;
    box-shadow: 0 0 5px 0 rgba(0,0,0,.2);
}

.panel-edit-new-item > .content > ul {
    margin: 24px;
    display: flex;
    flex-wrap: wrap;
}

.panel-edit-new-item > .content > ul > li {
    flex: 0 0 auto; width: 47.65625%;
    margin-right: 2.34375%;
    margin-bottom: 24px;
    box-shadow: 0 0 5px 0 rgba(0,0,0,.1);
    background-color: #FFF;
    cursor: pointer;
}
.panel-edit-new-item > .content > ul > li > a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #000;
    height: 72px;
    padding: 12px;
    text-align: left;
}
.panel-edit-new-item > .content > ul > li > a > p {
    flex: 0 0 auto;
}
.panel-edit-new-item > .content > ul > li > a > p.sub {
    font-size: 12px;
    line-height: 13px;
    opacity: .54;
}

.panel-edit-new-item > .content > ul > li:nth-child(2n) {
    margin-right: 0%;
    margin-left: 2.34375%;
}



@media only screen and (max-width : 383px) {
    .panel-edit-new-item > .content > ul > li {
        flex: 0 0 auto; width: 100%;
        margin-right: 0;
    }
    .panel-edit-new-item > .content > ul > li:nth-child(2n) {
        margin-right: 0;
        margin-left: 0;
    }

}

.list > ul > li > p.event-on {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    background-color: #F0F0F0;
    text-align: center;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.list > ul > li > .play-button {
    width: 24px;
    height: 24px;
    margin-right: 0;
    opacity: .54;
    background-image: url('/resources/material-design-icons/av/ic_play_circle_filled_black_24px.svg');
}

.list > ul > li > .play-button.disabled {
    opacity: .12;
}

.audio-list > ul > li > .play-button {
    margin-right: 10px;
}
.audio-list > ul > li > button.remove {
    margin-left: 0;
}
.audio-list > ul > li > button.remove:disabled {
    opacity: .12;
}

.audio-list > .add-audio {
    margin: 14px;
}
.audio-list > .add-audio > input {
    width: 100%;
}


.menu {
    position: absolute;
    z-index: 100;
    top: 48px;
    right: 12px;
    min-width: 96px;
    text-align: center;
    background-color: #FFF;
    box-shadow: 0 0 5px 0 rgba(0,0,0,.2);
    cursor: pointer;
}
.menu > div {
    padding: 16px;
}


/* -------------------------------------------------------------------------------------------------------- */

.panel-action-list > .content,
.panel-list > .content {
    background-color: #F8F8F8;
}

.panel-action-list > .content > .list > ul > li,
.panel-list > .content > .list > ul > li {
    background-color: #FFF;
}

/* -------------------------------------------------------------------------------------------------------- */

.micro-form {
    z-index: 1;
    background-color: #FFF;
    padding: 16px 16px;
    display: flex;
    box-shadow: 0 0 5px 0 rgba(0,0,0,.2);
    flex-wrap: wrap;
}
.micro-form > input {
    background-color: #F0F0F0;
    flex: 1 1 0%;
    height: 36px;
    padding: 9px 13px;
    min-width: 0px;
}
.micro-form > button {
    position: relative;
    flex: 0 0 36px;
    height: 36px;
    margin-left: 12px; /* full form has 24px margin */
    background-color: #2196F3;
    border-radius: 2px;
    box-shadow: 1px 2px 3px 0 rgba(0,0,0,.2);
}
.micro-form > button::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 6px;
    top: 6px;
    opacity: 1;
    background-image: url('/resources/material-design-icons/content/ic_add_white_24px.svg');
}

.micro-form > input.full-width {
    flex: 0 0 100%;
    margin-bottom: 12px; /* full form has 24px margin */
}

/* -------------------------------------------------------------------------------------------------------- */

.line-key-list > table {
    width: 100%;
    table-layout: fixed;
}

.line-key-list td {
    width: 50%;
    height: 50px;
    background-color: #F0F0F0;
}

.line-key-list tr + tr {
    border-top: 1px solid #FFF;
}

.line-key-list td + td {
    border-left: 1px solid #FFF;
}

.line-key-list p.empty-text {
    padding: 17px;
    height: 50px;
    color: rgba(0,0,0,.26);
}

.line-key-list .list-item {
    cursor: pointer;
    height: 48px;
    border-bottom: 1px solid #E0E0E0;
    padding: 2px 2px 1px 2px;
    display: flex;
    background-color: #FFF;
}

.line-key-list .list-item > * { margin: 10px; }

.line-key-list .list-item > button {
    flex: 0 0 auto; width: 24px;
}
.line-key-list .list-item > p {
    flex: 1 1 auto;
    padding: 4px;
}

.line-key-list .list-item > .item-label:first-child { margin-left: 14px; }
.line-key-list .list-item > .item-label:last-child { margin-right: 14px; }
.line-key-list .list-item > .item-label {
    margin: 0;
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.line-key-list .list-item > .item-label > p {
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    overflow: hidden;
}
.line-key-list .list-item > .item-label > p:last-child {
    white-space: normal; /* If p is alone then allow 2 lines */
    max-height: 32px; /* 2x line-height */
}
.line-key-list .list-item > .item-label > p.sub {
    white-space: nowrap;
    font-size: 12px;
    line-height: 13px;
    opacity: .54;
}

.line-key-list .list-item > .item-label > p > span {
    opacity: .54;
}

.line-key-list td {
    padding: 1px;
}

.line-key-list .list-item > p.event-on {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    background-color: #F0F0F0;
    text-align: center;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.line-key-list .list-item.selected > p.event-on {
    /*background-color: #E3F2FD;*/
    /*color: #1E88E5;*/
}


.line-key-list .list-item.empty {
    background-color: transparent;
    border-color: transparent;
}
.line-key-list .list-item.empty > .remove {
    display:none;
}

@media only screen and (max-width : 383px) {
    .panel-small {
        flex: 0 0 100%;
    }
    .panel-medium {
        flex: 0 0 100%;
    }
}

@media only screen and (min-width : 384px) and (max-width : 639px) {
    .panel-small {
        flex: 0 0 50%;
    }
    .panel-medium {
        flex: 0 0 100%;
    }
}

@media only screen and (min-width : 640px) and (max-width : 895px) {
    .panel-small {
        flex: 0 0 33.333%;
    }
    .panel-medium {
        flex: 0 0 66.666%;
    }
}

@media only screen and (min-width : 896px) and (max-width : 1151px) {
    .panel-small {
        flex: 0 0 25%;
    }
    .panel-medium {
        flex: 0 0 50%;
    }
}

@media only screen and (min-width : 1152px) and (max-width : 1407px) {
    .panel-small {
        flex: 0 0 20%;
    }
    .panel-medium {
        flex: 0 0 40%;
    }
}

@media only screen and (min-width : 1408px) and (max-width : 1663px) {
    .panel-small {
        flex: 0 0 16.666%;
    }
    .panel-medium {
        flex: 0 0 33.333%;
    }
}

@media only screen and (min-width : 1664px) {
    .panel-small {
        flex: 0 0 277.33px;
    }
    .panel-medium {
        flex: 0 0 554.66px;
    }
}
/* based on http://danielstern.ca/range.css/?ref=css-tricks#/ */

input[type=range] {
	-webkit-appearance: none;
	width: 100%;
	margin: 5px 0;
	padding: 0;
}
input[type=range]:focus {
	outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
	width: 100%;
	height: 2px;
	cursor: pointer;
	background: #1e88e5;
	border: 0;
}
input[type=range]::-webkit-slider-thumb {
	border: 0;
	height: 12px;
	width: 12px;
	border-radius: 6px;
	background: #1e88e5;
	cursor: pointer;
	-webkit-appearance: none;
	margin-top: -5px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
	background: #1e88e5;
}
input[type=range]::-moz-range-track {
	width: 100%;
	height: 2px;
	cursor: pointer;
	background: #1e88e5;
	border: 0;
}
input[type=range]::-moz-range-thumb {
	border: 0;
	height: 12px;
	width: 12px;
	border-radius: 6px;
	background: #1e88e5;
	cursor: pointer;
}
input[type=range]::-ms-track {
	width: 100%;
	height: 2px;
	cursor: pointer;
	background: transparent;
	border-color: transparent;
	color: transparent;
}
input[type=range]::-ms-fill-lower {
	background: #1e88e5;
	border: 0;
}
input[type=range]::-ms-fill-upper {
	background: #1e88e5;
	border: 0;
}
input[type=range]::-ms-thumb {
	border: 0;
	height: 12px;
	width: 12px;
	border-radius: 6px;
	background: #1e88e5;
	cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
	background: #1e88e5;
}
input[type=range]:focus::-ms-fill-upper {
	background: #1e88e5;
}

input[type=range]::-ms-tooltip {
	display: none;
}