/* icons we like more than bootstrap default */

@font-face {
	font-family: "icomoon";
	src: url("fonts/icomoon.eot?1101");
	src: url("fonts/icomoon.eot?1101#iefix") format("embedded-opentype"),
		url("fonts/icomoon.ttf?1101") format("truetype"),
		url("fonts/icomoon.woff?1101") format("woff"),
		url("fonts/icomoon.svg?1101#icomoon") format("svg");
	font-weight: normal;
	font-style: normal;
	font-display: block;
}

.i {
	/* use !important to prevent issues with browser extensions that change fonts */
	font-family: "icomoon" !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	/* Better Font Rendering =========== */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.i-c-Logx:before {
	content: "\e900";
}

.i-c-ServiceCR:before {
	content: "\e901";
}

.i-c-MexBonus:before {
	content: "\e902";
}

.i-c-MasterBonus:before {
	content: "\e903";
}

.i-c-Ride:before {
	content: "\e904";
}

.i-c-Visit:before {
	content: "\e905";
}

.i-c-Work:before {
	content: "\e90a";
}

.i-c-Pricecat:before {
	content: "\e90a";
}

.i-c-Actin:before {
	content: "\e90e";
}

.i-c-Client:before {
	content: "\e90f";
}

.i-c-VisitDelivery:before {
	content: "\e910";
}

.i-c-Diary:before {
	content: "\e911";
}

.i-c-Learn:before {
	content: "\e912";
}

.i-c-Money:before {
	content: "\e913";
}

.i-c-Orders:before {
	content: "\e914";
}

.i-c-Part:before {
	content: "\e915";
}

.i-c-Phone:before {
	content: "\e916";
}

.i-c-Salary:before {
	content: "\e917";
}

.i-c-Schedule:before {
	content: "\e918";
}

.i-c-User:before {
	content: "\e919";
}

.i-c-Wait:before {
	content: "\e91a";
}

.i-c-Req:before {
	content: "\e91b";
}

.i-c-Config:before {
	content: "\e91c";
}

.i-c-Chat:before {
	content: "\e92b";
}

.i-c-Partner:before {
	content: "\e92c";
}

.i-c-VisitSub:before {
	content: "\e92d";
}

.i-c-Chofer:before {
	content: "\e92e";
}

.i-c-Report:before {
	content: "\e927";
}

.i-loupe:before {
	content: "\e922";
}

.i-add:before {
	content: "\e92a";
}

.bi-check-lg::before,
.bi-ban::before {
	font-weight: 950 !important;
}

.bi-check-lg::before {
	text-shadow: 0px 1px 2px;
}

#tab-Logout {
	background-color: #d0d0d0;
	height: 35px;
	line-height: 10px;
	width: 100%;
	position: absolute;
	bottom: 0;
}

#tab-Logout sub {
	font-weight: normal;
}

.i-c-Logout {
	background-image: url("../config/logo.png?2");
	width: 36px;
	height: 36px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.col-form-label .i {
	font-size: 17px;
}

.break {
	flex-basis: 100%;
	height: 0;
}

/* нижняя граница последней строки таблицы не нужна bb -  !!! */
tr:last-child td:not(.bb) {
	border-bottom: 0 !important;
}

/* не трогать регистр плейсхолдеров */
::-webkit-input-placeholder {
	text-transform: none;
}

/* стандартные очень яркие */
.bg-danger {
	background-color: #d85b5b !important;
}

.table-success td {
	background-color: #72ce4b !important;
}

.Work-item td {
	background-color: var(--bs-info);
}

#p-number {
	position: absolute;
	padding: 0 4px;
	width: 100%;
}

form .row,
.container-fluid {
	margin-bottom: 0.25rem;
}

form.container-fluid {
	margin-top: 0.25rem;
}

.status {
	color: white;
	padding: 4px 7px;
	line-height: 36px;
}

a {
	text-decoration: none;
}

.hover-danger:hover {
	color: var(--bs-danger) !important;
}

.hover-warning:hover {
	color: var(--bs-primary-text-emphasis) !important;
}

/* removing unnecessary bootstap styling */
.form-control.is-invalid {
	background-image: none;
	padding-right: inherit;
}

.tooltip-inner p {
	margin-bottom: 0;
}

/* --- */

#layout {
	height: 100vh;
	width: 100vw;
}

/* https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/ */
.grow-wrap {
	/* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
	display: grid;
}

.grow-wrap::after {
	/* Note the weird space! Needed to preventy jumpy behavior */
	content: attr(data-replicated-value) " ";

	/* This is how textarea text behaves */
	white-space: pre-wrap;

	/* Hidden from view, clicks, and screen readers */
	visibility: hidden;
}

.grow-wrap>textarea {
	/* You could leave this, but after a user resizes, then it ruins the auto sizing */
	resize: none;

	/* Firefox shows scrollbar on growth, you can hide like this. */
	overflow: hidden;
}

.grow-wrap>textarea,
.grow-wrap::after {
	/* Identical styling required!! */
	padding: 0.5rem;
	font: inherit;

	/* Place on top of each other */
	grid-area: 1 / 1 / 2 / 2;
}

th {
	border-top: 0 !important;
}

tbody {
	background-color: #fff;
}

.table-items {
	width: 100%;
	font-size: smaller;
}

.table-items tr {
	background-color: none !important;
}

.scrollable-table {
	overflow: auto;
}

.pager {
	display: flex;
	flex-direction: column;
	overflow-y: scroll;
	margin: 0;
	max-height: 250px;
}

.pager::-webkit-scrollbar {
	display: none;
}

.pager a {
	font-size: 20px;
	padding: 6px 4px;
	border-radius: 20px;
	min-width: 40px;
	background-color: inherit;
	text-align: center;
	display: block;
}

.filter-icon {
	padding: 0px 3px;
	margin: 0 !important;
}

.filter-icon.active {
	background-color: var(--bs-primary);
	color: var(--bs-white) !important;
}

.pager a:hover,
.pager .active {
	background-color: var(--bs-white);
	color: var(--bs-dark) !important;
}

.text-off {
	color: #ccc;
}

th {
	color: #494949;
}

.comma-dot {
	min-width: 58px !important;
	padding-left: 2px !important;
	padding-right: 2px !important;
}

/* tab/Wait.js only */
.w-26 li {
	width: 46px;
}

.progress {
	height: 22px;
	position: relative;
}

.wait-open {
	padding-left: 3px;
}

#timediv {
	position: absolute;
	display: inline-block;
	z-index: 999;
}

/* --- */

.pagination {
	flex-wrap: wrap;
}

.page-item:first-child .page-link {
	border-radius: 0 !important;
}

.page-item:last-child .page-link {
	border-radius: 0 !important;
}

.page-link {
	margin-top: -1px;
	margin-left: -1px;
}

.post {
	display: flex;
	width: 100%;
	margin-right: 0 !important;
}

.progress {
	flex-grow: 1;
	margin-bottom: 2px;
	border-radius: 0;
}

.tab-controls {
	display: flex;
	padding: 4px 12px 0;
	flex-wrap: wrap;
}

.tab-controls .badge {
	height: 20px;
}

.tab-controls>* {
	margin-right: 12px;
}

.tab-controls .i {
	font-size: 28px;
}

.tab-controls .bi {
	font-size: 20px;
}

.tab {
	color: inherit;
	display: flex;
	position: relative;
	background-repeat: no-repeat;
	background-position: 5px center;
	padding: 4px 22px 4px 8px;
	cursor: pointer;
	font-weight: bold;
	height: 64px;
	align-items: center;
	line-height: 1;
}

.tab-table::-webkit-scrollbar {
	display: none;
}

.tab-table {
	border-collapse: separate;
	border-spacing: 0;
}

.bd-c {
	border-collapse: collapse !important;
}

.tab-table thead th {
	position: sticky;
	z-index: 1;
	top: 0;
	background-color: white;
}

.tab i {
	font-size: 36px;
	margin-right: 8px;
}

.menu {
	display: flex;
	flex: 0 0 auto;
	max-width: 200px;
	position: relative;
	flex-direction: column;
	overflow-y: scroll;
	color: #494949;
	background-color: #d0d0d0;
	border-left: 4px solid;
	border-left-color: var(--klad-color) !important;
}

.tab:hover,
.tab.active {
	color: #fff !important;
	background-color: var(--klad-color) !important;
}

.menu::-webkit-scrollbar {
	display: none;
}

.tab-count {
	position: absolute;
	top: 2px;
	left: 2px;
	white-space: normal;
	width: 60px;
}

.tab-count .badge {
	display: inline-block;
	width: 2em;
	height: 2em;
	line-height: 2em;
	text-align: center;
	border-radius: 50%;
	padding: 0;
}

input[type="checkbox"],
input[type="radio"] {
	vertical-align: middle;
	position: relative;
	bottom: 1px;
	margin-right: 3px;
	width: 16px;
	height: 16px;
}

input[type="radio"] {
	bottom: 2px;
	margin-right: 0;
}

/* module cases */
.switchMonth,
.navMonth button {
	font-size: 20px;
}

.navMonth {
	width: 200px;
}

.switchMonth-title {
	color: #1b1b48;
	width: 140px;
	display: inline-block;
}

.prepay {
	width: 70px;
}

#chosen-wp {
	margin-right: 2px;
	width: 400px;
}

abbr {
	text-decoration: none;
}

abbr[title] {
	text-decoration-thickness: 8%;
}

#player {
	position: fixed;
	bottom: 0;
	left: 160px;
	background-color: #ccc;
	padding: 8px 8px 0;
}

#player-close {
	vertical-align: top;
}

#messageBox {
	position: fixed;
	bottom: 0;
	right: 8px;
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	z-index: 9000;
}

#messageBox .urgent {
	border: 10px solid var(--bs-warning);
}

#messageBox .alert {
	margin-bottom: 8px;
	padding: 8px;
}

.message .tooltip-inner {
	text-align: left;
	max-width: none;
}

.alert .btn-close {
	position: relative;
	padding: 0;
	opacity: 0.3;
	margin-left: 6px;
	width: 0.8em;
}

.blur {
	background-color: #fff;
	opacity: 0.5;
}

.border-top td {
	border-top: 2px solid #999 !important;
}

.border-left {
	border-left: 1px solid #ddd;
}

.cp {
	cursor: pointer !important;
}

.cd {
	cursor: default !important;
}

/* tab/Client */
.vin-p {
	font-family: "Courier New", Courier, monospace;
	margin: 0;
}

.vin-table {
	font-size: 11px;
	line-height: 1.1;
	white-space: nowrap;
}

.vin-table span {
	margin-right: 3px;
	word-spacing: nowrap;
}

.c {
	text-align: center !important;
}

.r {
	text-align: right !important;
}

.l {
	text-align: left !important;
}

@media only screen and (max-width: 576px) {

	label.r,
	label.c {
		text-align: left !important;
	}
}

.log {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 999;
}

.form-horizontal .control-label {
	line-height: 2;
}

.ivs {
	border: 1px solid #999;
	font-weight: normal;
	width: 45px;
	min-width: 0 !important;
	padding: 0 2px;
}

a .label {
	padding-top: 0.3em;
	padding-bottom: 0.1em;
}

.s {
	font-weight: bold;
}

.strike {
	text-decoration: line-through red;
}

.strike-std {
	text-decoration: line-through;
}

.border-0 td {
	border: 0 !important;
}

.qs {
	width: 1.5em;
	height: 1.5em;
	text-align: center;
	margin: 0;
}

.lines th,
.lines tfoot td {
	white-space: nowrap;
}

.place {
	color: #2792ff;
	font-size: 12px;
	line-height: 10px;
}

.wrap-commentPart,
.wrap-codesPartLink {
	color: #3c763d;
	margin-left: 3px;
	font-size: 12px !important;
	line-height: 12px !important;
	padding: 0 2px !important;
	width: 150px;
}

/* Diary */
.diary-edit {
	min-height: 60px;
}

.black {
	color: #444 !important;
	background-color: inherit !important;
}

/* --- */

.Work-item> :first-child,
.Part-item> :first-child {
	border-left: 2px solid var(--bs-info);
}

.Work-border> :first-child {
	border-left: 2px solid var(--bs-primary);
	background-color: var(--bs-primary);
}

.Part-border> :first-child {
	border-left: 2px solid var(--bs-secondary);
	background-color: var(--bs-secondary);
}

#linesTab .tooltip-inner {
	text-align: left;
	max-width: none;
}

#wrapProdCalendar {
	background-color: #d9edf7 !important;
	padding: 12px;
	position: absolute;
	right: 0;
	z-index: 999;
	font-size: 14px;
}

#wrapProdCalendar .nav-item {
	width: 50%;
	text-align: center;
}

#wrapProdCalendar .nav-link {
	width: 100%;
}

#wrapProdCalendar .flatpickr-calendar {
	margin-bottom: 12px;
}

/* Beautiful border as a real textarea */
textarea {
	min-height: 74px;
	overflow: hidden;
}

.table textarea {
	min-height: 34px !important;
}

.carnumber,
.vin,
.engine,
.uc,
.ucfirst::first-letter {
	text-transform: uppercase;
}

.lines-day {
	max-height: 320px;
	overflow-y: auto;
}

.lines-day table {
	margin-bottom: 8px !important;
}

.lines-day td,
.lines-day th {
	padding: 0 2px 0 0 !important;
}

.text-muted a {
	color: inherit !important;
}

.form-horizontal {
	margin-top: 10px;
}

.promo {
	width: 60px;
}

.small {
	line-height: 1;
	font-size: 12px;
}

.deleted,
.deleted a,
.deleted span,
.deleted td {
	color: #ccc !important;
}

#wrap-Payment .tooltip-inner {
	max-width: none;
}

.CarOption:not(:last-of-type) {
	border-bottom: 1px dotted black;
	margin-bottom: 8px;
}

#modal .table {
	margin-bottom: 0;
}

.modal {
	z-index: -1;
	display: flex !important;
	justify-content: center;
}

.modal-open .modal {
	z-index: 2000;
}

.modal-dialog {
	min-width: 400px;
	max-width: 100%;
	width: auto !important;
	display: inline-block;
}

/* choices */
.choices {
	white-space: initial;
	margin-bottom: 0;
	border-radius: 0.25rem;
	font-weight: normal;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
	z-index: 999;
}

.choices__list--single {
	width: 93%;
	overflow: hidden;
	padding: 8px 0 0px 0.75rem;
}

.choices__list--dropdown .choices__item--selectable {
	padding-right: 10px;
}

.dropdown-toggle::after {
	margin-left: 12px;
}

.choices__inner {
	white-space: nowrap;
	min-height: 38px;
	padding: 0 !important;
}

.choices[data-type*="select-multiple"] .choices__button {
	margin: 2px -4px 0 0;
	float: right;
}

.choices__list--multiple .choices__item {
	white-space: pre-wrap;
	display: block;
}

[data-type="select-one"] .choices__button {
	background-color: #f9f9f9 !important;
	opacity: 1 !important;
	border-radius: 0 !important;
}

[data-type="select-multiple"] .choices__inner {
	padding: 3px 2px 0 2px !important;
}

.has-no-choices {
	padding: 0 !important;
}

#chosen-Client {
	width: 300px;
}