
:root {
	--bs-primary-rgb: 235, 138, 35;
	--bs-primary-rgb: 0, 0, 0;
	--bs-link-color: rgba(var(--bs-primary-rgb));
	--base-gray: gray;
	--base-black: #333;
	--base-light: whitesmoke;
	--box-shadow: 2px 2px 10px 5px #f5f5f5;
}

.dropdown-menu {
	overflow: auto;
}

.dropdown-item:focus {
	background-color: rgba(var(--bs-primary-rgb));
	color: #fff;
}

.btn-primary {
	--bs-btn-bg: #333 !important;
    --bs-btn-border-color: #333 !important;
	--bs-btn-hover-bg: #6c757d!important;
    --bs-btn-hover-border-color: #6c757d!important;
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    background-color: #333 !important;
    border-color: #333 !important;
}

.btn-danger-dark {
	background-color: #680912;
}

.btn-close {
	outline: none;
	box-shadow: none !important;
}

.datagrid .datagrid-tree .datagrid-tree-item .datagrid-tree-item-content .datagrid-tree-item-right .datagrid-tree-item-right-actions {
	min-width: 100px;
}



.grid-box,.btn-cols {
    margin-left: -.5rem;
    margin-right: -.5rem;
    display: flex;
    align-items: center
}

.grid-box>* {
    margin: 0 .5rem
}

.btn-cols>* {
    margin: .5rem
}

.btn-cols {
    justify-content: space-between;
    flex-direction: row-reverse;
    flex-grow: 1
}

.btn-checkbox {
	display: flex;
	align-items: center
}

.btn-checkbox:before  {
	content: '';
	margin-right: 5px;
	color: green;
	background: lightgray;
	width: 1.2rem;
	height: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.25rem;
	font-weight: bold
}

.btn-checked:before {
	content: '\002713';
	background: #fff
}

.btn-checked {
	background-color: rgba(var(--bs-primary-rgb));
	font-weight: bold;
}


.narrowed-box {
	max-width: 800px;
}

.form-group {
	margin-bottom: 0.2rem;
	display: flex;
	align-items: center;
}

.form-group label {
	width: 100px;
	line-height: 1;
	font-size: 0.8rem;
	margin-right: 10px;
	flex-shrink: 0;
}

.form-group .form-check-label {
	width: auto;
}

.form-check-input, .form-radio-input {
	min-height: 1.75rem;
    min-width: 1.75rem;
}

/* old bootstrap classes */
.text-right {
	text-align: right;
}

fieldset:not(.modal-body) {
	position: relative;
	padding: 2rem 2rem !important;
	box-shadow: var(--box-shadow);
}

fieldset:before {
	content: " ";
	width: calc( 100% - 1rem );
	height: calc( 100% - 1rem );
	position: absolute;
	display: block;
	left: 0.5rem;
	top: 0.5rem;
	border: 1px solid lightgray;
	border-radius: 0.25rem;
	z-index: -1;
}

fieldset legend {
	font-size: 1.1rem;
	font-weight: bold
}

.form-control:focus {
    border-color: var(--base-gray);
    outline: 0;
    box-shadow: 0 0 0 0.25rem var(--base-light);
}

.alert .btn-close {
	float: right
}

.sidebar-item input[type="checkbox"] {
	display: none;
}

.checkbox {
    position: relative;
}

th .ajax {
	display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

th, th .ajax {
    color: var(--base-gray);
}

.main-title {
	text-transform: uppercase;
	font-size: 1.3rem;
	font-weight: bold;
	margin-bottom: 0;
}

.main-title-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;

}


.invalid[title]:after {
	content: attr(title);

}

.form-control-feedback,.invalid:after {
	position: absolute;
	display: block;
	top: 100%;
	background: #f8d7da;
	padding: 0.2rem 1rem;
	text-align: right;
	border-radius: 0 0 0.25rem 0.25rem;
	font-size: 12px;
	right: 0;
	z-index: 1;
	margin-top: -0.5rem;
}


label.required:after {
	content: '*';
	color: red;
	position: relative;
	top: -0.3rem;
}

.striped>*:nth-of-type(even) {
    background: #fafafa;
    border-bottom: 0
}

#snippet--flashes {
	position: fixed;
	bottom: 0;
	left: 0;
	padding: 1rem;
	padding-bottom: 0;
	min-width: 300px;
	z-index: 1051;
}

#snippet--flashes .alert {
	width: 100%;

}

.form-group, td {
	position: relative;
}

main {
	padding: 2rem 0;
}

@media( min-width: 1600px) {
	.container-fluid {
		max-width: 90%;
	}
}
@media( min-width: 576px) {
	.modal-body {
		padding: 1rem 2rem;
	}
}

.moda-title {
	font-size: 1.5rem;
}

.modal-header {
	background-color: var(--base-light);
}

