﻿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: #748F68;
    padding-left: 20px;
}
header .uk-logo .custom-logo {
    display: block;
    height: 32px;
    min-width: 106px;
}
header .uk-navbar {
    justify-content: space-between;
}
header .uk-navbar > .navbar-title {
    width: 88%;
    display: flex;
    align-items: center;
}
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: -260px;
    top: 0;
    bottom: 0;
    overflow: hidden;
    background-color: #424242;
    width: 260px;
    z-index: 10;
    transition: left ease-in-out 280ms;
}
aside.open {
    left: 0;
}
aside .left-logo {
	display: flex;
    height: 124px;
	line-height: 52px;
	padding: 0.75rem 20px 0 20px;
    text-decoration: none;
}
aside .left-logo div {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    border-radius: 4px;
    padding: 8px;
}
aside .left-logo div .custom-logo {
	height: 100%;
    border-radius: unset;
}
aside .left-logo span {
	padding-left: 8px;
}
aside ul.uk-nav-default > li > a {
    position: relative;
	padding: 8px 20px;
	border-left: 2px solid transparent;
	transition: all 0.15s ease-out;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .8) !important;
}
aside ul.uk-nav-default > li > a:after {
    position: absolute;
    right: 20px;
}
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 ul.uk-nav-default li .uk-nav-sub> li > a {
    color: rgba(255, 255, 255, .8) !important;
    transition: all 280ms ease-in-out;
}
aside ul.uk-nav-default li .uk-nav-sub> li > a:hover {
    color: rgba(255, 255, 255, 1) !important;
}
aside .left-content-box {
	padding: 0.75rem 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
aside .left-nav-wrap {
    overflow-y: auto;
    height: calc(100% - 174px);
}
aside .user {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
aside .user .user-info {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 58px);
}
aside .user .user-info .uk-button {
    position: relative;
    width: 100%;
    text-align: left;
    background: transparent;
    padding: 0;
    line-height: 18px;
    font-size: 12px;
    padding-right: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all 280ms ease-in-out;
    color: #ddd;
}
aside .user .user-info .uk-button:hover {
    color: #fff;
}
aside .user .user-info .uk-button span[uk-icon] {
    position: absolute;
    right: 0;
}
aside .user .user-info .uk-button ~ [uk-dropdown], aside .user .user-info .uk-button ~ .uk-dropdown {
    padding: 36px 0 0 0;
    left: 0 !important;
    width: 100%;
    box-shadow: 0 4px 12px 0 #222;
    background-color: rgb(60, 60, 60);
}
aside .user .user-info .uk-button ~ [uk-dropdown] > div, aside .user .user-info .uk-button ~ .uk-dropdown > div {
    position: absolute;
    display: flex;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    height: 36px;
    text-transform: unset;
    background-color: rgb(60, 60, 60);
    color: #ddd;
    font-size: 12px;
    box-shadow: 0 1px 2px rgb(54, 54, 54);
}
aside .user .user-info .uk-button ~ [uk-dropdown] .uk-nav, aside .user .user-info .uk-button ~ .uk-dropdown .uk-nav {
    overflow-y: auto;
    max-height: 408px;
}
aside .user .user-info .uk-button ~ [uk-dropdown] .uk-nav li a, aside .user .user-info .uk-button ~ .uk-dropdown .uk-nav li a {
    padding: 8px 16px;
    transition: all 280ms ease-in-out;
    text-transform: uppercase;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
aside .user .user-info .uk-button ~ [uk-dropdown] .uk-nav li.uk-active a, aside .user .user-info .uk-button ~ .uk-dropdown .uk-nav li a.uk-active {
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
aside .user .user-info .uk-button ~ [uk-dropdown] .uk-nav li a:hover, aside .user .user-info .uk-button ~ .uk-dropdown .uk-nav li a:hover {
    background-color: rgba(0, 0, 0, .06);
}
aside .content-box-dark {
	background-color: rgba(0, 0, 0, 0.09);
}
aside .profile-img {
	width: 46px;
	display: block;
    margin-right: 12px;
}
aside .text-light {
	font-weight: 200;
	font-size: 1.25rem;
    text-decoration: none;
}
aside .bar-bottom {
    position: absolute;
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 15px 0;
    background-color: #748F68;
    position: absolute;
    z-index: 3;
    width: 100%;
}
aside .bar-bottom a {
    text-align: center;
}
aside .menu-search div {
    position: relative;
    background: rgba(0, 0, 0, .09);
}
aside .menu-search div .uk-icon {
    position: absolute;
    top: 10px;
    margin-left: 24px;
}
aside .menu-search div input {
    outline: none;
    border: 0;
    width: 100%;
    color: #eee;
    padding: 10px 20px 10px 52px;
    background: transparent !important;
}
.marked {
    background: #f57f17;
    color: #fff;
}

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

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

    aside {
        left: 0;
    }

	.content {
		margin-left: 260px;
	}
}
@media screen and (max-width: 960px) {
    .uk-table caption {
        display: block;
        width: 100%;
    }
}

/* 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;
    flex-direction: column;
}
.loading-container .content-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #FAFAFA;
    border-radius: 50%;
}
.loading-container .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;
}
.loading-container .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;
}
.loading-container .content-message {
    margin-top: 20px;
    font-weight: 500;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spinoff {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* 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;
}
.between .uk-form-controls .message, .period .uk-form-controls .message {
    position: absolute;
    bottom: -16px;
}
.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; }

.between .uk-form-controls, .period .uk-form-controls {
    display: flex;
    align-items: center;
}
.between .uk-form-label span, .period .uk-form-label span, .uk-form-label.icon span {
    position: relative;
    top: -2px;
    color: #888;
}
.between .uk-form-controls input {
    width: calc(50% - 20px);
}
.period .uk-form-controls select {
    width: calc(65% - 20px);
}
.period .uk-form-controls input {
    width: calc(35% - 20px);
}
.between .uk-form-controls span, .period .uk-form-controls span {
    display: inline-block;
    width: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.03);
    line-height: 38px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.uk-form-controls.cpfcnpj div.pf, .uk-form-controls.cpfcnpj div.pj {
    cursor: pointer;
    font-family: monospace;
    position: absolute;
    top: 0;
    right: 0;
    color: #888;
    padding: 0 10px;
    line-height: 40px;
    background: rgba(0, 0, 0, 0.03);
}
.uk-form-controls.cpfcnpj input:disabled ~ div.pf,
.uk-form-controls.cpfcnpj input:disabled ~ div.pj
.uk-form-controls.cpfcnpj input.uk-disabled ~ div.pf,
.uk-form-controls.cpfcnpj input.uk-disabled ~ div.pj {
    display: none;
}
.uk-form-controls.cpfcnpj input {
    padding-right: 58px;
}

.uk-fieldset {
    display: contents;
}
.uk-fieldset .uk-legend {
    display: flex;
    justify-content: space-between;
}
.uk-fieldset .uk-legend .actions {
    display: flex;
}
.uk-fieldset .uk-legend button {
    outline: none;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}
.uk-fieldset .uk-legend button span[uk-icon] {
    color: #888;
}

table.form {
    margin: 0;
}
table.form tbody tr td, table.form tfoot tr td {
    height: 44px;
}
table.form tbody tr td {
    padding: 4px 12px 4px 12px;
    vertical-align: top !important;
    position: relative;
}
table.form.no-action tbody tr td, table.form tbody tr[data-empty] td, table.form tbody tr[data-new] td {
    vertical-align: middle !important;
}
table.form:not(.readonly, .no-action) tbody tr td:nth-last-child(-n+2) {
    padding-right: 0;
}
table.form:not(.readonly, .no-action) tbody tr td:last-child {
    padding-left: 0;
}
table.form tbody .uk-input, table.form tbody .uk-select {
    padding: 6px 10px;
    height: auto !important;
}
table.form tbody .uk-form-controls .message {
    position: static;
}
table.form tbody ul.uk-iconnav {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    align-items: center;
    margin-left: 0;
}
table.form tbody ul.uk-iconnav li:first-child {
    padding-left: 0;
}

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;
    margin-left: -18px;
}
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, table.clickable tbody tr {
    transition: background-color 280ms linear;
    cursor: pointer;
}
table.check tbody tr:hover, table.check tbody tr.checked, table.clickable tbody tr:hover {
    background-color: #e1f5fe;
}

table {
    font-size: 14px;
}

table tbody tr.odd {
    background: #f8f8f8;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

select option:disabled {
    color: #c2c2c2 !important;
}

.uk-form-custom {
    width: 100%;
}
.uk-form-custom[data-image^="http"] [uk-icon],
.uk-form-custom[data-image^="http"] .uk-icon,
.uk-form-custom[data-image^="data"] [uk-icon],
.uk-form-custom[data-image^="data"] .uk-icon {
    display: block;
}
.uk-form-custom [uk-icon], .uk-form-custom .uk-icon {
    display: none;
    color: #1e87f0;
    position: absolute;
    right: 13px;
    top: 10px;
    z-index: 2;
    cursor: pointer;
}
.uk-form-custom [uk-icon] + input[type="text"], .uk-form-custom .uk-icon + input[type="text"] {
    padding-right: 42px;
}

input[type="color"] {
    position: absolute;
    width: 24px;
    height: 24px;
    background: transparent;
    right: 10px;
    top: 8px;
    padding: 0;
    border: 0 !important;
}
input[type="color"] + input[type="text"] {
    padding-right: 42px;
    text-transform: uppercase;
}
input[type="file"] + input[type="text"] {
    padding-right: 42px;
}

.row-action {
    cursor: pointer;
    background: #eee !important;
    border-top: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
    transition: all 280ms ease-in-out !important;
}
.row-action:hover {
    background: #e0e0e0 !important;
}

@media screen and (max-width: 959px) {
    .uk-overflow-auto {
        border: 1px solid #e5e5e5;
    }
    .uk-table-responsive {
        margin-top: 0 !important;
    }
    .uk-table-responsive thead {
        display: none !important;
    }
    .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;
    }

    .pagination  {
        min-height: 64px !important;
    }
    .pagination .uk-pagination {
        position: relative;
        top: 36px;
    }
}

.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;
}

.uk-icon.disabled, .uk-icon:hover.disabled, .uk-icon:active.disabled, .uk-icon:focus.disabled {
    color: #CCC;
    cursor: not-allowed !important;
}

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

.iziToast-overlay {
    z-index: 1011;
}

.uk-button:disabled {
    cursor: not-allowed;
}

.uk-input.disabled, .uk-select.disabled, .uk-textarea.disabled {
    background-color: #f8f8f8;
    color: #999;
    border-color: #e5e5e5;
}

.uk-iconnav.uk-iconnav-vertical li a[uk-icon] {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}
.uk-iconnav.uk-iconnav-vertical li a[uk-icon] svg {
    margin-right: 6px;
}

textarea {
    resize: vertical;
}

.pagination {
    min-height: 40px;
}
.pagination .page-size {
    top: 4px;
    right: 4px;
}
.pagination .page-size .uk-select {
    width: auto;
    height: auto;
    padding-bottom: 3px;
    margin: 0 0 0 2px;
}

[data-toggle-truncate] {
    cursor: pointer;
}

input::placeholder {
    text-transform: none;
}

.uk-text-break {
    word-break: break-all;
}

.control-visibility {
    position: relative;
}
.control-visibility table {
    width: auto;
}
.control-visibility table {
    margin-top: 0;
}
.control-visibility > [uk-icon] {
    outline: none;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}
.control-visibility > [uk-icon] svg {
    width: 24px;
    height: 24px;
}
.control-visibility > [uk-dropdown] {
    width: 100%;
    max-width: calc(1024px - 20px);
}
.control-visibility ~ .pagination {
    position: relative;
    margin-top: -30px;
}

.uk-pagination {
    margin: 0;
}

/* SELECT - AUTO COMPLETE */
.select-complete .uk-input {
    position: absolute;
    background-image: url(data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2224%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23666%22%20points%3D%2212%201%209%206%2015%206%22%20%2F%3E%0D%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23666%22%20points%3D%2212%2013%209%208%2015%208%22%20%2F%3E%0D%0A%3C%2Fsvg%3E%0D%0A);
    background-repeat: no-repeat;
    background-position: right;
    padding-right: 24px;
}
.select-complete .uk-input:focus~.select-complete-options {
    display: block;
}
.select-complete .uk-select {
    visibility: hidden;
}
.select-complete .select-complete-options {
    position: absolute;
    background: #FFF;
    z-index: 2;
    border: 1px solid #e5e5e5;
    width: 100%;
    max-height: 436px;
    overflow-y: auto;
    top: 100%;
    display: none;
}
.select-complete .select-complete-options ul {
    margin: 0;
    list-style: none;
    padding: 0;
}
.select-complete .select-complete-options ul li {
    padding: 0 10px;
    cursor: pointer;
}
.select-complete .select-complete-options ul li:hover, .select-complete .select-complete-options ul li.selected {
    background: rgb(30, 135, 240);
    color: #FFF;
}

progress[data-upload] {
    position: relative;
}
progress[data-upload]::after {
    content: attr(data-upload);
    position: absolute;
    z-index: 1;
    top: 0;
    right: 12px;
    color: #444;
    font-size: 11px;
    font-family: monospace;
    font-weight: bold;
}

input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.uk-label-yellow {
    background-color: #FBC02D;
}
.uk-label-grey {
    background-color: #9E9E9E;
}
