/**
 * Created by Ciprian Mihai Coman <ciprianmihai.coman@gmail.com> on 2018-04-06.
 *
 * Copyright (C) 2018 Ciprian Mihai Coman <ciprianmihai.coman@gmail.com>. All Rights Reserved.
 */

body {
	font-family: 'Open Sans', sans-serif;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
}

.h1, .h2, .h3, h1, h2, h3 {
	margin: 20px 0;
}

a {
	cursor: pointer;
}

a, a:hover, a:active, a:focus,
input, input:hover, input:active, input:focus,
button, button:hover, button:active, button:focus {
	outline: 0 !important;
}

footer {
	padding: 20px 0;
	margin-top: 50px;
	border-top: 1px solid #E5E5E5;
}

.mw-md {
	max-width: 400px;
}

.mw-lg {
	max-width: 600px;
}

table-title-with-buttons h2 {
	margin: 20px 0 16px;
}
.table-title-with-buttons h3 {
	margin: 20px 0 23px;
}
.table-title-with-buttons .btn-area {
	margin: 20px 0;
	padding: 0;
}

.actions {
	white-space: nowrap;
	text-align: center;
}

pre {
	font-family: 'Open Sans', sans-serif;
	word-break: initial;
	word-wrap: initial;
	white-space: pre-line;
}

/*----------------------------------------------------------------------------*/
/* Navigation top and left                                                    */
/*----------------------------------------------------------------------------*/
#top-nav {
	border-bottom: 1px solid rgba(0,0,0,.15);
	margin: 0;
	padding: 0 10px;
	height: 51px;
}

#top-nav .navbar-brand {
	display: none;
}

#top-nav .navbar-brand img {
	padding-right: 10px;
}

#top-nav .navbar-nav > li > a {
	padding-top: 13px;
	padding-bottom: 13px;
}

#top-nav .navbar-nav > li,
#top-nav .navbar-nav > li > a {
	color: #ccc;
	font-weight: 600;
	background-color: transparent;
}

#top-nav .navbar-nav > li > a:hover,
#top-nav .navbar-nav > li > a:focus {
	color: #eee;
	font-weight: 700;
	text-decoration: none;
}

#top-nav .navbar-nav > .active > a,
#top-nav .navbar-nav > .active > a:hover,
#top-nav .navbar-nav > .active > a:focus {
	color: #eee;
}

#top-nav .navbar-nav.navbar-right {
	margin: 0;
	float: right;
	text-align: right;
}

#top-nav .navbar-nav.navbar-right .dropdown-toggle {
	padding-right: 15px;
}

#top-nav .navbar-right .dropdown-menu {
	position: absolute;
	right: 0;
	left: auto;
	margin: 2px 0 0;
	background-color: #343a40;
	border: 1px solid rgba(0,0,0,.15);
	-webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
	box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
#top-nav .dropdown-menu > a {
	padding: 3px 20px;
	color: #fff;
}
#top-nav .dropdown-menu > a:hover,
#top-nav .dropdown-menu > a:focus {
	background-color: #628718;
	background-image: none;
}

.toggle-btn {
	float: left;
	cursor: pointer;
	z-index: 10 !important;
	padding: 9px 20px 8px 0;
	color: #ccc;
	text-align: center;
}
#top-nav .toggle-btn:hover,
#top-nav .toggle-btn:focus {
	color: #eee;
}

#left-nav {
	position: fixed;
	top: 51px;
	bottom: 0;
	left: 0;
	width: 0;
	transition: width .5s ease;
	z-index: 1000;
	overflow: hidden;
	overflow-y: auto;
	white-space: nowrap;
}
#left-nav.left-menu-expanded {
	width: 200px;
}

#left-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#left-nav ul li {
	position: relative;
}
#left-nav ul.menu > li {
	border-bottom: 1px solid #222;
}
#left-nav ul li a {
	display: block;
	position: relative;
	padding: 10px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 300;
	color: #fff;
	outline: none;
	text-decoration: none;
}
#left-nav ul.submenu > li > a {
	color: #98cb32;
}
#left-nav ul li a:hover,
#left-nav ul li a:focus {
	background-color: #628718;
	color: #fff;
}
#left-nav ul li .fa {
	margin-right: 5px;
}

#left-nav ul li > a:not(:only-child):after {
	position: absolute;
	top: 0;
	line-height: 40px;
	font-family: FontAwesome;
	content: "\f078";
	right: 10px;
	transition: transform .5s ease;
	color: #98cb32;
}
#left-nav ul li a.collapsed:after {
	transform: rotate(90deg);
}
#left-nav ul li.active {
	border-left: 3px solid #98cb32;
	background-color: #628718;
}
#left-nav ul li.active a {
	padding-left: 27px;
	color: #fff !important;
}
#left-nav .submenu li a {
	padding-left: 30px;
}
#left-nav ul li > a:hover:after,
#left-nav ul li > a:focus:after {
	color: #fff;
}

.content-wrapper {
	margin-top: 51px;
	padding: 20px;
	transition: margin .5s ease;
	position: relative;
}

/*----------------------------------------------------------------------------*/
/* Tables                                                                     */
/*----------------------------------------------------------------------------*/
.table {
	margin-bottom: 10px;
}

.table-responsive {
	margin: 10px 0;
}

.table > tbody > tr > td {
	vertical-align: middle;
}

.table.table-borderless > tbody > tr > td,
.table.table-borderless > tbody > tr > th {
	border: none;
	padding: 4px;
}

.table.dictionary tr > :first-child {
	width: 1%;
	white-space: nowrap;
	padding-left: 0;
	text-align: right;
}

table.dataTable {
	margin: 0 !important;
	border-collapse: collapse !important;
	width: 100% !important;
}
.dt-buttons .btn {
	margin-right: 3px;
}

.column-search {
	padding: 0;
	text-align: center;
	font-family: 'FontAwesome', 'Open Sans';
}

.table .min-width {
	width: 1%;
	white-space: nowrap;
}

/*----------------------------------------------------------------------------*/
/* Modals                                                                     */
/*----------------------------------------------------------------------------*/
.confirm-modal .modal-dialog {
	width: 340px;
	margin-top: 30vh;
}
.confirm-modal .modal-header,
.confirm-modal .modal-footer {
	text-align: center;
}

#modal_container .modal-dialog {
	max-width: none;
	width: 80%;
	height: 90vh;
	margin: 5vh auto;
}
#modal_container .modal-dialog-sm {
	max-width: 480px;
}
#modal_container .modal-dialog-md {
	max-width: 640px;
}
#modal_container .modal-dialog-lg {
	max-width: 800px;
}
#modal_container .modal-content {
	width: 100%;
	height:100%;
}
#modal_container .modal-body {
	position: absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	margin-top: 25px;
	padding-top: 0;
}
#modal_container .modal-top{
	padding: 5px 10px;
	text-align: right;
}
#modal_container .modal-top .close {
	float: none;
	display: inline-block;
}
#modal_container .modal-body iframe {
	width:100%;
	height:100%;
	margin:0 auto;
	text-align:center;
	border:0;
}
