/* Copyright (C) YOOtheme GmbH, http://www.gnu.org/licenses/gpl.html GNU/GPL */

/*
 * Component:       Warp
 * Description:     Defines styles for Warp admininistration
 ========================================================================== */


/* Layout
 ========================================================================== */

/*
 * 2 column layout
 */

.tm-content {
    display: -webkit-box;       /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;          /* OLD - Firefox 21- */
    display: -ms-flexbox;       /* TWEENER - IE 10 */
    display: -webkit-flex;      /* NEW - Chrome */
    display: flex;              /* NEW, Spec - Opera 12.1, Firefox 22+ */
    width: 100%;
}

p.uk-form-controls-condensed input[type=checkbox]{
    height: 0;
    width: 0;
    visibility: hidden;
    position: absolute;
}

label.uk-display-inline-block.uk-margin-left:empty {
    position: absolute;
}

.warp .uk-form-controls-condensed {
    margin: 7px 0;
}

input[type=checkbox] + label {
    cursor: pointer;
    text-indent: -9999px;
    width: 60px;
    height: 25px;
    background: #f3f4f7;
    display: block;
    border-radius: 0.25rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: 0.4s background ease;
    margin-top: 10px;
}

input[type=checkbox] + label:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    background: #fefefe;
    border-radius: 0.25rem;
    box-shadow: 0 1px 0 rgba(0,0,0,.1) inset, 0 1px 3px rgba(0,0,0,.15);
    transition: 0.3s;
}

input[type=checkbox]:checked + label {
    background: #8cc14c;
}

input[type=checkbox]:checked + label:after {
    left: calc(100%);
    transform: translateX(-100%);
}

input[type=checkbox] + label:active:after {
    width: 20px;
}

.tm-sidebar {
    width: 245px;
    background: #254a98;
    border-radius: 5px 0 0 5px;
}

.tm-main {
    -webkit-box-flex: 1;        /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;           /* OLD - Firefox 21- */
    width: 850px;               /* For old syntax, otherwise collapses. */
    -webkit-flex: 1;            /* Chrome */
    -ms-flex: 1;                /* IE 10 */
    flex: 1;                    /* NEW, Spec - Opera 12.1, Firefox 22+ */
    background: #fcfdff;
    border-radius: 0 5px 5px 0;
    border: 1px solid #e8eefd;
}

/*
 * Sidebar
 */

.tm-sidebar .uk-panel {
    padding-left: 25px;
    padding-right: 25px;
}

.tm-sidebar .uk-panel + .uk-panel { margin-top: 15px; }

.tm-sidebar .uk-panel .uk-nav {
    margin-left: -25px;
    margin-right: -25px;
}

.tm-sidebar-logo { 
    padding-top: 25px; 
    padding-bottom: 25px;
}


/* Component `tm-table`
 ========================================================================== */

.tm-width {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 700px;
}
.tm-width-large {
    width: 1000px;
}
.tm-width-small {
    width: 400px;
}

/* Component `tm-scrollable-box`
 ========================================================================== */

.tm-scrollable-box { max-height: 250px; }
.uk-scrollable-box { background-color: #fff; }

/* Component `tm-form`
 ========================================================================== */

.tm-form { padding: 25px; }
.tm-form p { line-height: 30px; }

/*
 * Row
 */

/* Micro clearfix */
.tm-form-row:before,
.tm-form-row:after {
    content: " ";
    display: table;
}

.tm-form-row:after { clear: both; }

.tm-form-row + .tm-form-row { margin-top: 5px; }

/*
 * Content
 */

.tm-form-title,
.tm-form-subtitle { margin-bottom: 0; }

.tm-form-description { margin-top: 0; }
.tm-form-short { width: 60px;}

/*
 * Controls
 */

.tm-form-controls {
    float: left;
    margin-right: 10px;
}

.tm-form-controls select { width: 100px; }

.tm-form-label-select {
    display: block;
    margin-top: 5px;
}

/*
 * Save
 */

.tm-form-save { padding: 0 25px 25px 25px; }


/* Component `tm-list-devices`
 ========================================================================== */

.tm-list-devices {
    height: 22px;
    margin-bottom: 0 !important;
}

.tm-list-devices li { display: inline-block;}
.tm-list-devices li + li { margin-left: 10px; }

/*
 * Icons
 */

.tm-icon-large {
    width: 21px;
    height: 22px;
    background-image: url(../images/display_large_disabled.svg);
    cursor: pointer;
}

.tm-icon-medium {
    width: 18px;
    height: 22px;
    background-image: url(../images/display_medium_disabled.svg);
    cursor: pointer;
}

.tm-icon-small {
    width: 14px;
    height: 22px;
    background-image: url(../images/display_small_disabled.svg);
    cursor: pointer;
}

.tm-icon-large.active { background-image: url(../images/display_large.svg); }
.tm-icon-medium.active { background-image: url(../images/display_medium.svg); }
.tm-icon-small.active { background-image: url(../images/display_small.svg); }

.tm-icon-picker {
    padding: 10px 10px;
    border: 1px solid #CBCBCB;
    background: #FFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #444;
    border-radius: 4px;
    height: 190px;
    overflow-y: scroll;
}

.tm-icon-picker ul { margin: 0; }


/* Component `tm-table`
 ========================================================================== */

/*
 * Table data
 */

.tm-table td { white-space: nowrap; }

.tm-table td:first-child { width: 100%; }
.tm-table td:first-child > .uk-text-truncate { max-width: 150px; }

.tm-table thead th { text-transform: capitalize; }

.tm-table [data-level="1"] td:first-child { padding-left: 35px; }
.tm-table [data-level="2"] td:first-child { padding-left: 50px; }
.tm-table [data-level="3"] td:first-child { padding-left: 70px; }
.tm-table [data-level="4"] td:first-child { padding-left: 90px; }
.tm-table [data-level="5"] td:first-child { padding-left: 110px; }

.tm-table [data-toggler] {
    margin-left: -20px;
    cursor: pointer;
}

.tm-table [data-toggler] > i {
    width: 15px;
    display: inline-block;
}


/* Customizer
 ========================================================================== */

.cm-customizer,
.cm-customizer body {
    height: 100%;
    overflow: hidden;
}

/*
 * Sidebar
 */

.cm-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 310px;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.cm-sidebar-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    padding: 20px;
    border-bottom: 1px solid #e2e6ec;
    background: #fdfdfd;
}

.cm-sidebar-content {
    position: absolute;
    top: 161px;
    bottom: 110px;
    left: 0;
    right: 0;
    padding: 20px 20px 0 20px;
    overflow-y: scroll;
}

.cm-devices {
    margin: 0 0 15px 0 !important;
    padding: 0;
    list-style: none;
    text-align: center;
    padding-left: 0 !important;
}

.cm-devices li {
    display: inline-block;
    width: 30px;
}

.cm-devices li a i {
    font-size: 20px;
    vertical-align: middle;
}

.cm-sidebar-message {
    position: absolute;
    top: 151px;
    left: 20px;
}

.cm-sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.cm-sidebar .uk-button {
    min-height: 30px;
    line-height: 28px;
    padding: 0 12px;
}

/*
 * Iframe wrapper
 */

.cm-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 310px;
    right: 0;
    margin: 0 auto;
}

.cm-wrapper > iframe {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding-top: 70px;
    margin-top: -70px;
}

/* Fixed links in navbar not clickable caused by iframe overlay */
.tm-navbar { position: relative; }

/*
 * Variables form
 */

.cm-form fieldset + fieldset { margin-top: 25px; }

.cm-form-title {
    color: #00a8e6 !important;
    font-size: 20px !important;
    line-height: 22px !important;
    font-weight: 400 !important;
    text-transform: capitalize !important;
}

.cm-form .uk-form-row { 
    padding-top: 6px;
    padding-bottom: 6px;
    margin-top: 0;
}

.cm-form .uk-form-row:hover {
    background-color: #f7fbff;
}

.cm-form .uk-form-label {
    float: left;
    line-height: 26px;
    /* Text truncate */
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: pre-wrap;
}

.cm-form .uk-form-controls { float: right; }

.cm-form select,
.cm-form.uk-form input {
    width: 70px !important;
    border: 1px solid #dfe1e4 !important;
    box-shadow: none;
    font-size: 13px;
}

.cm-form.uk-form input { text-align: right; }

.cm-form select:focus,
.cm-form.uk-form input:focus { background: none; }

.cm-form :-ms-input-placeholder { color: #ddd !important; }
.cm-form ::-moz-placeholder { color: #ddd; }
.cm-form ::-webkit-input-placeholder { color: #ddd; }

/*
 * Advanced mode
 */

.cm-more-link,
.cm-advanced,
.cm-more { display: none; }

.cm-show-advanced .cm-advanced,
.cm-show-more .cm-more { display: block; }
.cm-show-advanced .cm-more-link { display: inline-block; }

.cm-more-link:after {
    content: "(more)";
    font-size: 12px;
    text-transform: none;
    line-height: 1;
}

.cm-show-more .cm-more-link:after { content: "(hide)"; }

.cm-more-link { width: 40px; } /* Safari fix */

/*
 * Download modal
 */

.cm-modal textarea {
    height: 400px;
    resize: none;
    font-family: Consolas, monospace, serif;
}

/*
 * Loading spinner
 */

.cm-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -15px;
    margin-left: -15px;
    font-size: 30px;
    z-index: 1000;
}

/*
 * Error
 */

.cm-error {
    position: absolute;
    left: 50%;
    top: 40%;
    width: 400px;
    margin-left: -226px;
    display: none;
    z-index: 1000;
}

/*
 * Responsive behavior
 */

/* Fix sidebar position if offcanvas appears */
.uk-offcanvas-page .cm-sidebar { left: auto; }


/* Customizer for Joomla/WordPress
========================================================================== */

.cm-open { overflow: hidden; }

#customizer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    z-index: 10000;
}

.cm-wrapper > iframe {
    padding-top: 0;
    margin-top: 0;
}

.warp h1.cm-sidebar-title {
    font-size: 24px;
    line-height: 24px;
}

.cm-form-width-small { width: 100px !important; }

.cm-vars label { font-size: 12px; }


/* Colorpicker
 ========================================================================== */

 .sp-placeholder {
    width: 18px;
    height: 18px;
    margin: 5px 0;
    border-radius: 50%;
    float: right;
    cursor: pointer;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
 }

 .sp-placeholder-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
 }

.sp-replacer {
    padding: 5px 0 0;
    background: transparent;
    float: right;
    border: 0;
}

.sp-preview {
    height: 18px;
    width: 18px;
    margin: 0;
    border: none;
    border-radius: 50%;
}

.sp-preview-inner {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
    border-radius: 50%;
}

.sp-dd { display: none; }

.sp-container {
    border: 1px solid #d3d3d3;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

input.sp-input {
    -moz-box-sizing: border-box !important;
    box-sizing: border-box !important;
    height: auto;
    padding: 5px 6px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08) inset;
    color: #444;
    transition: all 0.2s linear 0s;
}

.sp-input:focus {
    border-color: #99BACA;
    background-color: #f5fBfE;
}

.sp-picker-container { border-left: none; }

.sp-dragger {
    height: 10px;
    width: 10px;
    border: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.sp-color,
.sp-hue { border-color: #ccc; }

.sp-slider {
    left: -4px;
    right: -4px;
    height: 8px;
    border-color: #ccc;
}

.sp-alpha-enabled .sp-top { margin-bottom: 28px; }

.sp-alpha {
    bottom: -23px;
    height: 12px;
}

.sp-alpha-handle { border-color: #d3d3d3; }

.sp-alpha-inner { border-color: #ddd; }

.sp-container button {
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(0,0,0,0.2);
    border-bottom-color: rgba(0,0,0,0.3);
    border-radius: 3px;
    background-color: #eee;
    background-image: -webkit-linear-gradient(top, #fff, #eee);
    background-image: linear-gradient(to bottom, #fff, #eee);
    color: #2e425f;
    line-height: 28px;
    text-shadow: 0 1px 0 #fff;
    font-size: 14px !important;
    margin-left: 10px;
}

.sp-container button:hover {
    border: 1px solid rgba(0,0,0,0.2);
    border-bottom-color: rgba(0,0,0,0.3);
    background-color: #f5f5f5;
    background-image: none;
    text-shadow: 0 1px 0 #fff;
}

.sp-container button:active { box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }

.sp-cancel, .sp-reset { 
    color: #4fa8e6 !important;
    font-size: 16px !important;

}
.sp-cancel:hover, .sp-reset:hover {
    color: #2e425f !important;
    text-decoration: none;
}

.sp-container,
.sp-container button,
.sp-container input,
.sp-color,
.sp-cancel, .sp-reset,
.sp-hue { font: inherit; }

.sp-input-container { margin-bottom: 10px; }

/* UIkit overides */
.uk-nav-side>li>a {
    color: #fff;
    transition: color 0.2s ease-in-out;
    font-weight: 300;
}

.uk-nav-side>li>a:hover {
    color: #2fbaff;
    transition: color 0.2s ease-in-out;
}

.uk-nav-side>li.uk-active>a {
    background: #3e7ed8;
    color: #fff;
    border-color: #3974c7;
    transition: color 0.2s ease-in-out;
}

.uk-nav-side>li.uk-active>a:hover {
    color: #fff;
}

.warp,
.warp h1,
.warp h2,
.warp h3,
.warp h4,
.warp h5,
.warp h6 {
    font-family: "ProximaSoft", -apple-system, BlinkMacSystemFont,"Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.warp {
    color: #39465a;
    font-size: 16px;
    line-height: 26px;
}

.warp h1,
.warp h2,
.warp h3,
.warp h4,
.warp h5,
.warp h6 {
    color: #426292;
    font-weight: 300;
}

.warp .uk-h1, .warp h1 {
    font-size: 30px;
    font-weight: 300;
    line-height: 46px;
}

.warp .uk-h2, .warp h2 {
    line-height: 32px;
}

.uk-modal {
    background: rgba(45, 65, 95, 0.5);    
}

.uk-form input:not([type]),
.uk-form input[type=text],
.uk-form input[type=password],
.uk-form input[type=email],
.uk-form input[type=url],
.uk-form input[type=search],
.uk-form input[type=tel],
.uk-form input[type=number],
.uk-form input[type=datetime],
.uk-form input[type=datetime-local],
.uk-form input[type=date],
.uk-form input[type=month],
.uk-form input[type=time],
.uk-form input[type=week],
.uk-form input[type=color],
.uk-form select,
.uk-form textarea {
    border: 1px solid #c7cfde;
}

.uk-form label {
    line-height: 24px;
    font-size: 16px;
}

.uk-table-hover tbody tr:hover {
    background: #eef4ff;
}

.uk-table td, 
.uk-table th {
    border-bottom: 1px solid #ebeef5;
}

.uk-table thead th {
    background-color: #eef5ff;
    border-bottom: 1px solid #d6e8f9;
}

.uk-button {
    text-shadow: none;
    min-height: 36px;
    padding: 0 15px;
    line-height: 34px;
    font-size: 16px;
    border-radius: 3px;
    font-weight: 300;
}

.uk-button:not(.uk-button-primary):not(.uk-button-success):not(.uk-button-danger) {
    background: #2d415f;
    color: #fff;
    border: 1px solid #26364e;
}

.uk-button:not(.uk-button-primary):not(.uk-button-success):not(.uk-button-danger):hover {
    background: #25364e;
    color: #ffffff;
}
select[data-layout-selector] {
    height: 36px;
}

.tm-scrollable-box {
    background-color: #FFF;
}

.uk-list li.missing,
.uk-list li.modified {
    line-height: 26px;
    font-size: 15px;
    font-family: consolas;
}

.uk-list li.missing {
    color: #b7415a;
}
.uk-list li.modified {
    color: #b5a30e;
}

/* Customizer */

.cm-vars {
    padding-bottom: 20px;
    font-size: 14px;
}

.cm-form-title .more-link:after {
    content: "(more)";
    font-size: 14px;
    text-transform: none;
}

.show-more .cm-form-title .more-link:after { content: "(hide)"; }

.cm-vars .uk-form-select .uk-text-muted {
    color: #00a8e6 !important;
}

input.field-media-input {
    width: 300px !important;
    height: 28px !important;
    font-size: 15px;
    border-radius: 3px 0 0 3px !important;
}

.field-media-preview:not(:empty) {
    margin-bottom: 30px;
}

.warp .uk-article-divider {
    border-color: #e8eefd;
}

.tm-table label.uk-display-inline-block.uk-margin-left {
    display: none !important;
}

/* preset select option */

.selectbox > span {
    padding: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    background-color: #ddd;
}

.selectbox {
  display: inline-block;
  cursor: pointer;
}

.selectbox > span.tm-default {
    background-color: #428dc9;
}

.selectbox > span.tm-stratos {
    background-color: #fdca41;
}

.selectbox > span.tm-cinnabar {
    background-color: #ec483b;
}

.selectbox > span.tm-plum {
    background-color: #92278f;
}

.selectbox > span.tm-cardinal {
    background-color: #cc324b;
}

.selectbox > span.tm-conifer {
    background-color: #9cb440;
}

.selectbox > span.tm-orange {
    background-color: #fd5920;
}

.selectbox > span.tm-navy {
    background-color: #bb875d;
}

.selectbox.active > span {
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.2);
}