/* MAIN */
body {
	background-color: #F7F7F7;
	padding-top: 50px;
	padding-bottom: 122px;
	color: #5a5a5a;
}

.main-navbar {
	min-height: 50px;
}

.brand-logo img {
	height: 30px;
	display: inline-block;
}

main > .container {
	padding: 15px 15px 0 15px;
	max-width: 1440px;
}

.dropdown-header {
	margin-top:-0.5rem;
	background-color:#fafafa;
	color:#555;
	margin-bottom:0.5rem;
}

#app-menu-fixed {
	position: fixed;
	left: 10px;
	top: 2px;
	z-index: 1040;
}

#user-menu-fixed {
	position: fixed;
	right: 10px;
	top: 5px;
	z-index: 1040;
}

#language-dropdown, #app-dropdown, #user-dropdown {
	color: black;
}

#app-menu-fixed .nav-link, #user-menu-fixed .nav-link {
	padding-left: 0;
	padding-right: 0;
}

/* TABLES */
.search-form-table {
	padding: 20px;
	clear: both;
	background-color: #fafafa;
}

.tr_inline_search .radio-inline {
	display: block;
	margin: 0;
}

.tr_inline_search .inline_search_between_label {
	display: block;
	text-align: center;
}

.tr_inline_search .form-control {
	padding: 5px;
	font-size: 12px;
	height: inherit;
}

.table thead th {
	background-color: #eee;
	font-weight: normal;
}

.table thead a {
	color: black;
	text-decoration: none;
	display:block;
}
.table-dark thead a,
.table thead.thead-dark a {
	color: white;
}

.th_id {
	width: 60px;
}
.th_status {
	max-width: 100px;
}
.th_actions {
	width: 80px;
}

.table-ss th,
.table-ss td
{
	font-size: 13px;
}

.table-xs th,
.table-xs td
{
	font-size: 11px;
}

.table-xs .tr_inline_search .form-control {
	padding: 2px;
	font-size: 11px;
	height: inherit;
}

table.table.click-action-enabled tbody tr:not(.tr_inline_search) {
	cursor: pointer;
}

.table.table-nonfluid {
   width: auto !important;
}

/* FORM HEADERS */
.form-header h2,
.form-header-add h2,
.form-header-update h2,
.form-header-update-no-delete h2 {
	font-size:1.5rem;
	margin-top:0;
	margin-bottom:0.2rem;
}

.form-header h3 {
	font-size:1.25rem;
	margin-top:0;
	margin-bottom:0.2rem;
}

/* FORMS */
textarea.form-control {
	height: 200px;
}

.upload_image_preview {
	max-width: 100%;
	max-height: 300px;
}

.form-control::placeholder {
	color: #cccccc;
}

.form-section {
	background-color: #fff;
	border-radius: 3px;
	padding: 15px 20px;
}

.form-section-np {
	background-color: #fff;
	border-radius: 3px;
	padding: 20px;
}

.form-group.required label {
	/*font-weight: bold;*/
}

.form-check {
	padding-top: 10px;
	padding-left: 0;
}

.form-check-input {
	position: static;
	margin-top: 0;
	margin-left: 0;
	margin-right: 0.3125rem;
}

span.required-asterisk {
	color: #DC0A0A;
	font-weight:bold;
}

/* SPECIFIC */
pre {
	display: block;
	padding: 9.5px;
	margin: 0 0 10px;
	color: #333;
	word-break: break-all;
	word-wrap: break-word;
	background-color: #fdfdfd;
	border: 1px solid #ddd;
	border-radius: 4px;
}

code {
	padding: 2px 4px;
	color: #c7254e;
	background-color: #f9f2f4;
	border-radius: 4px;
}

.badge-warning {
	color: white;
}

.list-group-item.active {
	background-color: #0568A3;
	border-color: #0568A3;
}

.statusbox {
	display: inline-block;
	width: 32px;
	height: 32px;
	background-color: #ccc;
	color: white;
	background-image: url(../images/check-off.jpg);
	background-position: left top;
	background-size: cover;
	vertical-align: sub;
}

.statusbox.statusbox-1 {
	background-color: #8BB91C;
	background-image: url(../images/check-on.jpg);
}

.statusbox.statusbox-2 {
	background-color: #c10000;
	background-image: url(../images/check-cross.jpg);
}

/* CARDS */
.card-image {
	background-color:#eee;
	text-align:center;
	padding:10px;
}
.card-image img {
	width:96px;
	max-width:100%;
}
.card-body {
	padding:1rem;
}

/* Dashboard tiles */
.dashboard-tiles h4 {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height:1.5;
	font-size:1.3rem;
}

.dashboard-tiles h4 a {
	color: #5a5a5a;
	text-decoration: none;
}

/* Others */
.menu-icon,
.user-avatar-rounded,
.organization-logo-rounded,
.notification-button,
#global-search-button-open {
	display: inline-block;
	position: relative;
	margin-bottom: -6px;
}

.menu-icon img,
.user-avatar-rounded img,
.organization-logo-rounded img,
.notification-button img,
#global-search-button-open img {
	width: 100%;
	height: 100%;
	display: block;
}

.notification-button .notification-counter {
	position: absolute;
	left: 50%;
	top: -5px;
	display:block;
	background-color: #DF302D;
	color: white;
	font-size: 10px;
	font-weight:bold;
	border-radius: 10px;
	padding: 0 5px;
}

.user-avatar-rounded.selected:after,
.organization-logo-rounded.selected:after {
	content: '';
	position: absolute;
	right: -5px;
	top: -5px;
	display: block;
	width: 10px;
	height: 10px;
	background: transparent url('../images/check-round-s.png') 0 0 no-repeat;
	background-size: contain;
}

th.rotated-text {
	height: 150px;
    white-space: nowrap;
    padding: 0 !important;
}

th.rotated-text div {
	transform: rotate(310deg) translate(13px, -10px);
	width: 50px;
}

ul.mini-list {
	margin-bottom: 0;
	padding-left: 0;
	font-size: 14px;
	list-style-type: none;
	color: #555;
}

ul.mini-list a {
	color: #555;
}

.table-ss ul.mini-list {
	font-size: 13px;
}

.table-xs ul.mini-list {
	font-size: 11px;
}

/* bootstrap overload */
.nav-link {
    padding: 0.5rem 0.8rem;
}

.btn-square-image img {
	width:50px;
}

.btn-xs, .btn-group-xs > .btn {
    padding: 0.20rem 0.4rem;
    font-size: 0.7rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.dropdown-sm {
	padding: 0;
}

.dropdown-sm .dropdown-item {
	font-size: .8em;
	padding: 0.25rem 0.5rem;
}

.dropdown-sm .dropdown-header {
	font-size: .8em;
	padding: 0.25rem 0.5rem;
	margin-bottom: 0;
}

/* global search */
#global-search-wrap {
	position:fixed;
	z-index:10000;
	background-color:white;
	left:0;
	top:0;
	right:0;
	bottom:0;
}

#global-search-results {
	overflow-y: auto;
}

#global-search-results h5 {
	margin-top:0.5em;
}

.result-item {
	padding:5px 0;
	border-top:1px solid #ddd;
	font-size:0.9rem;
	cursor:pointer;
}

.result-item-icon {
	width:56px;
	padding-top:5px;
	padding-bottom:5px;
}

.result-item-icon img {
	max-width:100%;
}

.result-item-text {
	overflow: hidden;
}
.result-item-text div {
	line-height:initial;
}

.result-project-cube {
	display: inline-block;
	width: 56px;
	height: 56px;
	vertical-align: middle;
	border-radius: 3px;
	color:white;
	line-height:56px;
	font-size:24px;
	text-align:center;
}

.r-i-p-infos {
	color:#888;
}

/* tables */
.table-recursive-pads {
	display:inline-block;
	margin-right:0.5em;
}

.table-recursive-pads span {
	display:inline-block;
	width:1em;
	height:1em;
	background: transparent url(../images/table-pad-a.png) top left no-repeat;
	background-size: contain;
}
.table-recursive-pads span:last-child {
	background-image: url(../images/table-pad-b.png);
}