﻿html, body { height: 100%; }
* { box-sizing: border-box; }

header {
    z-index: 9;
    top: 0;
    left: 0;
    right: 0;
    transition: left ease-in-out 280ms;
}
    header .uk-container {
        background-color: #222;
        padding-left: 20px;
    }
header .uk-logo {
    display: flex;
}
header .uk-logo .custom-logo {
    height: 32px;
}
header .uk-navbar-nav > li > a,
header .uk-navbar-item,
header .uk-navbar-toggle {
    min-height: 52px;
    padding: 0 8px;
    font-size: 0.85rem;
}
header .navbar-logo {
    background-color: #222A30;
    margin-left: -12px;
}

aside {
    position: fixed;
    left: -240px;
    top: 0;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #424242;
    width: 240px;
    z-index: 10;
    transition: left ease-in-out 280ms;
}
aside.open {
    left: 0;
}
aside .left-logo {
	height: 52px;
	line-height: 52px;
	padding: 0 20px;
    text-decoration: none;
}
aside .left-logo .custom-logo {
	height: 32px;
}
aside .left-logo span {
	padding-left: 8px;
}
aside ul.uk-nav-default > li > a {
	padding: 8px 20px;
	border-left: 2px solid transparent;
	transition: all 0.15s ease-out;
    display: flex;
    align-items: center;
}
aside ul.uk-nav-default > li > a:after {
    position: absolute;
    right: 20px;
}
aside ul.uk-nav-default > li > a > span.uk-icon {
    width: 20px !important;
    height: 20px !important;
}
aside ul.uk-nav-default li.uk-nav-header {
	padding:  20px 20px 8px 20px;
}
aside ul.uk-nav-default > li > a:hover, aside ul.uk-nav-default > li.uk-open > a {
	border-left: 2px solid #39f;
	padding-left: 30px;
	color: white;
	background-color: rgba(0, 0, 0, 0.1);
}
aside ul.uk-nav-default li .uk-nav-sub {
	padding-left: 34px;
}
aside .left-content-box {
	padding: 0.75rem 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	margin-bottom: -1px;
}
aside .content-box-dark {
	background-color: rgba(0, 0, 0, 0.09);
}
aside .profile-img {
	width: 60px;
	margin: 0 auto 10px auto;
	display: block;
}
aside .text-light {
	font-weight: 200;
	font-size: 1.25rem;
    text-decoration: none;
}
aside .bar-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.09);
    position: absolute;
    z-index: 3;
    bottom: 0;
    width: 100%;
}
aside .bar-bottom a {
    text-align: center;
}

.content {
	padding: 72px 20px 20px 20px;
    min-height: 100%;
	background-color: #f7f7f7;
	margin-left: 0;
    transition: margin-left ease-in-out 280ms;
}

@media screen and (min-width: 960px) {
	header {
		left: 240px;
	}
    header .uk-container {
        padding-left: 20px;
    }

    aside {
        left: 0;
    }

	.content {
		margin-left: 240px;
	}
}

/* Loading Overlay */
.loading-container {
    width: 100%;
    min-height: 100%;
    position: fixed;
    z-index: 9999;
    background-color: rgba(245, 245, 245, 0.8);
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}
.content-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #FAFAFA;
    border-radius: 50%;
}
.content-circle .circle1 {
    background-color: rgba(0, 0, 0, 0);
    border: 7px solid #424242;
    opacity: 0.9;
    border-top: 8px solid rgba(0, 0, 0, 0);
    border-left: 8px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    position: relative;
    width: 100%;
    height: 100%;
    animation: spin 1s infinite linear;
    box-sizing: border-box;
}
.content-circle .circle2 {
    background-color: rgba(0, 0, 0, 0);
    border: 6px solid #012363;
    opacity: 0.9;
    border-top: 7px solid rgba(0, 0, 0, 0);
    border-left: 7px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    width: 45px;
    height: 45px;
    margin: 0 auto;
    position: relative;
    top: -63px;
    animation: spinoff 0.8s infinite linear;
    box-sizing: border-box;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spinoff {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Override UiKit */
.uk-form-controls:not(.uk-flex-column) > label:not(:first-child) > input[type=radio],
.uk-form-controls:not(.uk-flex-column) > label:not(:first-child) > input[type=checkbox] {
    margin-left: 8px;
}
.uk-table th {
    vertical-align: middle;
}

/* Custom */
input[type=file]::-webkit-file-upload-button {
    cursor: pointer; 
}
.uk-form-controls, .uk-inline {
    position: relative;
}
.uk-form-controls .message, .uk-inline .message {
    display: none;
    position: absolute;
    font-size: 11px;
}
.uk-inline {
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
}
.uk-inline .message {
    bottom: -6px;
    text-align: center;
    font-size: 10px;
    margin-top: -6px;
    background: rgb(232, 232, 232);
    border-radius: 6px;
    padding: 0 6px;
}
.uk-form-controls.error .message,
.uk-form-controls.warning .message,
.uk-inline.error .message,
.uk-inline.warning.message {
    display: block;
}
.uk-form-controls.error input, 
.uk-form-controls.error select, 
.uk-form-controls.error textarea,
.uk-inline.error input,
.uk-inline.error select,
.uk-inline.error textarea { border: 1px solid #f44336; }

.uk-form-controls.error .message, 
.uk-inline.error .message { color: #f44336; }

.uk-form-controls.warning input, 
.uk-form-controls.warning select, 
.uk-form-controls.warning textarea,
.uk-inline.warning input,
.uk-inline.warning select,
.uk-inline.warning textarea { border: 1px solid #ff9800; }

.uk-form-controls.warning .message, 
.uk-inline.warning .message { color: #ff9800; }

.date .uk-form-controls {
    display: flex;
    align-items: center;
}
.date .uk-form-label span {
    position: relative;
    top: -2px;
}
.date .uk-form-controls input {
    width: calc(50% - 20px);
}
.date .uk-form-controls span {
    display: inline-block;
    width: 40px;
    text-align: center;
}

table.form tbody tr td {
    padding: 4px 12px 4px 12px;
}
table.form tbody .uk-input {
    padding: 6px 10px;
    height: auto;
}
table.form tbody .uk-form-controls .message {
    position: static;
}

table.order thead tr th[data-column] {
    cursor: pointer;
}
table.order thead tr th[data-column]:hover {
    color: #0f6ecd;
}
table.order thead tr th[data-column] .column {
    position: relative;
    top: -2px;
}
table.order thead tr th[data-column] .column[uk-icon*="triangle-up"] {
    top: -5px;
}
table.order thead tr th[data-column] .column[uk-icon*="triangle-down"] {
    top: 1px;
}

table.check tbody tr {
    transition: background-color 280ms linear;
    cursor: pointer;
}
table.check tbody tr:hover, table.check tbody tr.checked {
    background-color: #e1f5fe;
}

.uk-form-custom {
    width: 100%;
}

.float-button {
    position: absolute;
    right: 4px;
    top: 10px;
    z-index: 2;
}
.float-button ~ .uk-input {
    padding-right: 26px;
}

.uk-form-controls.radio, .uk-form-controls.checkbox {
    display: flex;
    min-height: 40px;
    align-items: center;
}

@media screen and (max-width: 959px) {
    table.uk-table-responsive tbody tr td {
        text-align: left !important;
    }

    .uk-flex-button {
        flex-direction: column-reverse;
    }
    .uk-flex-button .uk-button {
        margin: 4px 0 !important;
        line-height: unset;
        padding: 8px;
    }
}

.fixed {
    position: relative;
}
.fixed thead {
    position: absolute;
    display: flex;
    width: 100%;
    background: #FFF;
    border-bottom: 1px solid #e2e2e2;
}
.fixed thead tr {
    display: flex;
    align-items: center;
    width: 100%;
}
.fixed thead tr th {
    flex: 1;
}
