@media print {
	* {
		visibility: hidden !important;
	}
	#modal > .content,
	#modal > .content * {
		visibility: visible !important;
	}
	#modal > .content {
		position: fixed;
		left: 0;
		top: 0;
		max-height: auto;
		background: #000;
	}
	#modal > .content .modal_buttons {
		display: none;
	}
}

@import url("../fonts/fira-sans.css");
* {
	margin: 0 auto;
	padding: 0;
	font-family: "Fira Sans", sans-serif;
	color: #333;
}
body {
	background: #f1f1f1;
}

.left {
	margin-left: 0;
	text-align: left;
}
.right {
	margin-right: 0;
	text-align: right;
}
tab {
	display: inline-block;
	width: 20px;
}

.section {
	background: #fff;
	border-radius: 10px;
	border: solid 1px #eae7e7;
	padding: 15px 25px;
	margin-bottom: 15px;
	width: calc(100% - 52px);
}
.section.min {
	padding: 10px 25px;
}
.headline {
	display: grid;
	grid-template-columns: 1fr 300px 1fr;
	align-items: center;
}
.operator_info {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 15px;
}
.uinfo,
.tinfo {
	width: 100%;
	margin: 0;
}
.info {
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
}
.info span {
	font-weight: 500;
}
.receipt * {
	font-size: 28px;
	text-align: center;
}

.net_info {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-right: 0;
}
.con_status {
	display: grid;
	grid-template-rows: 1fr 1fr;
	align-items: center;
}
.con_info {
	display: grid;
	grid-template-columns: 1fr 20px;
	column-gap: 15px;
	margin: 0;
	align-items: center;
}
.con_info > i {
	display: block;
	height: 12px;
	width: 12px;
	border-radius: 50%;
	background: #b1b1b1;

	&.blink {
		animation: blink 1s infinite;
	}
}
.con_info > i.connected {
	background: #59f97d;
}
.con_info > i.disconnected {
	background: #ed5858;
}

.clock {
	display: grid;
	grid-template-columns: 1fr 100px;
	grid-template-rows: 1fr 1fr;
	align-items: center;
	grid-column-gap: 30px;
	font-size: 16px;
	font-weight: 500;
}
.time {
	grid-row: 1/3;
	grid-column: 2/3;
	font-size: 38px;
}

.total {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-column-gap: 15px;
}
.summ,
.discount,
.topay {
	display: grid;
	grid-template-columns: 2fr 1.7fr;
	align-items: center;
}
.total_title {
	font-size: 22px;
}
.total_value {
	font-size: 28px;
	font-weight: 500;
	white-space: nowrap;
}
.total_value.min {
	font-size: 22px;
}

.input {
	margin-top: 15px;
	position: relative;
	width: 100%;
}
input[type="text"] {
	width: calc(100% - 42px);
	padding: 10px 20px;
	border: solid 1px #5f5f5f;
	border-radius: 5px;
	font-size: 18px;
	outline: none;
	margin-bottom: 15px;
	background: none;
}
label {
	font-size: 18px;
	background: #fff;
	padding: 0 10px;
	position: absolute;
	top: -15px;
	left: 10px;
}

.products {
	height: calc(100vh - 305px);
	overflow: hidden;
	position: relative;
}
.scrollable {
	height: calc(100% - 94px);
	width: 100%;
	overflow-y: auto;
	overflow-x: hidden;
}
.products_actions {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-column-gap: 10px;
	background: #fff;
}
.payments {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-column-gap: 10px;
}
.returns.active {
	background: rgba(255, 0, 0, 0.6);
	border-color: #555;
}
.returns.active:hover {
	background: rgba(255, 0, 0, 0.7);
	border-color: #777;
}

.add_prod {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 25px;
}

table {
	width: 100%;
}
th {
	background: #f1f1f1;
	padding: 10px 5px;
	white-space: nowrap;
}
td {
	text-align: center;
	padding: 7px 5px;
	border-right: solid 1px #f1f1f1;
	white-space: nowrap;
}
td:last-child {
	border: none;
}
td.product {
	text-align: left;
	padding-left: 20px;
	white-space: normal;
}
thead,
thead th {
	position: sticky;
	z-index: 1;
}
thead,
thead th {
	top: 0;
	font-weight: 600;
}
tr.selected {
	background: rgba(0, 0, 0, 0.1);
}
td.count {
	cursor: pointer;
}
.report td {
	text-align: left;
	border: none;
	border-bottom: dotted 2px #f1f1f1;
}
.report td:nth-child(3) {
	font-weight: 500;
}
.modal_header {
	font-size: 22px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: dashed 2px #f1f1f1;
}
.modal_buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 20%;
	width: 70%;
	margin-top: 25px;
}
.modal_button {
	border: solid 1px #f1f1f1;
	border-radius: 4px;
	padding: 10px 20px;
	width: calc(100% - 40px);
	text-align: center;
	cursor: pointer;
	display: grid;
	align-items: center;
	transition: 0.3s;
}
#printZ {
	grid-template-columns: 24px 1fr;
}
#printZ:before {
	content: "";
	display: block;
	height: 24px;
	width: 24px;
	background: url(../img/print.png) center center no-repeat;
	background-size: contain;
}
.modal_button:hover {
	background: #f1f1f1;
	border-color: #ccc;
}

.p_btns {
	display: flex;
	column-gap: 15px;
}
.p_btn {
	width: 90px;
	color: #fff;
	text-align: center;
	border-radius: 5px;
	padding: 5px 0;
	cursor: pointer;
	margin-top: 25px;
	transition: 0.3s;
}
.btn_ok {
	background: #2ecb2e;
}
.btn_ok:hover {
	background: #30e730;
}
.btn_cancel {
	background: #f55c5c;
}
.btn_cancel:hover {
	background: #eb3636;
}
.promptInput {
	padding-top: 15px;
}
input#promptInput {
	padding: 5px 15px;
	font-size: 16px;
	min-width: 20vw;
	width: calc(100% - 32px);
}
b.m_warning {
	display: block;
	text-align: center;
	color: red;
	font-size: 1.1em;
}

.buttons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	grid-gap: 10px;
	margin-bottom: 0;
}
.button {
	border: solid 1px #f1f1f1;
	border-radius: 4px;
	padding: 9px 20px;
	height: 40px;
	width: calc(100% - 40px);
	display: grid;
	align-items: center;
	text-align: center;
	cursor: pointer;
	position: relative;
	transition: 0.3s;
}
.button.min {
	margin-bottom: 15px;
}
.button:hover {
	background: #f1f1f1;
	border-color: #ccc;
}
.buttons .marker {
	display: block;
	height: 6px;
	width: 6px;
	border-radius: 50%;
	position: absolute;
	top: 3px;
	right: 3px;
	background: #ed5858;
}

.login {
	position: fixed;
	width: 30%;
	max-width: 500px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
form#login {
	display: grid;
	grid-template-rows: repeat(3, 1fr);
	grid-row-gap: 25px;
	margin: 15px 0;
}
select,
input {
	padding: 10px 20px;
	outline: none;
	border: solid 1px #f1f1f1;
	border-radius: 5px;
	font-size: 16px;
}
input[type="password"] {
	width: calc(100% - 42px);
}
input[type="submit"],
select {
	width: 100%;
}
input[type="submit"] {
	background: #fff;
	font-size: 18px;
	cursor: pointer;
	font-weight: 600;
}
input[type="submit"]:hover {
	background: #f1f1f1;
}

#mask,
#dialogMask {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	background: rgba(0, 0, 0, 0.5);
	z-index: 2;
	display: none;
	opacity: 0;
	backdrop-filter: none;
	transition: 0.3s;
}
#dialogMask {
	z-index: 4;
}
#modal,
#dialog {
	position: fixed;
	top: 10%;
	left: 50%;
	transform: translateX(-50%) scale(0.5);
	max-height: calc(100vh - 100px);
	max-width: 50%;
	width: fit-content;
	min-width: 15%;
	transition: 0.3s;
	display: none;
	opacity: 0;
	outline: none;
	z-index: 3;
}
#dialog {
	z-index: 5;
}
#mask.active,
#dialogMask.active {
	opacity: 1;
	backdrop-filter: contrast(0.3) brightness(0.9);
}
#modal.active,
#dialog.active {
	opacity: 1;
	transform: translateX(-50%) scale(1);
}
.close {
	position: absolute;
	top: -30px;
	right: -30px;
	cursor: pointer;
}
.close img {
	height: 30px;
	filter: invert(1);
	opacity: 0.6;
	transition: 0.3s;

	&:hover {
		opacity: 0.9;
	}
}
.content {
	max-height: calc(100vh - 100px);
	overflow-y: auto;
}
.ch_id {
	border: solid 1px #f1f1f1;
	border-radius: 5px;
	height: 44px;
	overflow: hidden;
	margin: 15px 0;
	transition: 0.3s;
}
.ch_id.opened {
	padding-bottom: 10px;
	height: auto;
}
.ch_id:last-child {
	margin-bottom: 0;
}
.expand {
	border-bottom: solid 1px #f1f1f1;
	border-radius: 5px;
	font-size: 18px;
	font-weight: 500;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	height: 44px;
}
.expand span {
	padding: 10px 15px;
}
.open img {
	vertical-align: middle;
	transform: rotate(-90deg);
	transition: 0.3s;
}
.open.opened img {
	transform: rotate(0deg);
}
.open {
	cursor: pointer;
	border-right: solid 1px #f1f1f1;
}
#modal .restore,
#modal .debtoff {
	cursor: pointer;
	border-left: solid 1px #f1f1f1;
	transition: 0.3s;
}
.restore:hover,
.debtoff:hover {
	background: #f1f1f1;
}
.ch_its {
	padding-left: 40px;
}
.ch_it {
	font-size: 16px;
	padding-top: 10px;
}

input#salesPass {
	width: 200px;
	margin: 0 auto 15px auto;
	display: block;
}
.salesVar {
	display: none;
	text-align: center;
}
select#salesVar {
	width: auto;
	display: inline-block;
}
div#addSale {
	padding: 10px 15px;
	border: solid 1px #eee;
	border-radius: 5px;
	cursor: pointer;
	display: inline-block;
	transition: 0.3s;
}

.reprintByNum {
	margin-top: 25px;
	display: flex;
	align-items: center;
	gap: 10px;

	& > input {
		width: 70px;
		padding: 10px;
	}
}
.reprintBtn {
	padding: 10px 15px;
	border: solid 1px #f1f1f1;
	border-radius: 5px;
	font-size: 16px;
	text-align: center;
	cursor: pointer;
	transition: 0.3s;

	&:hover {
		border-color: #ccc;
		background: #f1f1f1;
	}
}

#base_side {
	position: fixed;
	background: #f1f1f1;
	padding: 25px;
	height: calc(100vh - 50px);
	max-width: calc(100vw - 50px);
	z-index: 10;
	top: 0;
	left: -100vw;
	display: grid;
	grid-template-columns: 200px 1fr;
	grid-column-gap: 20px;
	transition: 0.3s;
}
#base_side.active {
	left: 0;
	border-radius: 0 13px 13px 0;
}
#base_side .base_side_close {
	position: absolute;
	top: 1px;
	right: 1px;
	height: 24px;
	width: 24px;
	cursor: pointer;
}
#base_side .base_side_close img {
	height: 24px;
	width: 24px;
}
.sec_menu {
	padding-right: 20px;
	border-right: solid 1px #333;
	height: 100%;
	margin: 0;
}
.sec_menu_item {
	padding: 5px 10px;
	margin-left: -10px;
	cursor: pointer;
}
.sec_menu_item:hover {
	background: rgba(0, 0, 0, 0.05);
}
.sec_menu_sep {
	width: 100%;
	border-top: dashed 1px #333;
	border-bottom: solid 1px #fff;
	margin: 5px 0;
}

.sec_body {
	margin: 0;
	overflow-y: auto;
	transition: width 0.3s;
}

.screenLock {
	position: fixed;
	height: 100vh;
	width: 100vw;
	top: 0;
	left: 0;
	z-index: 6;
	backdrop-filter: contrast(0.3) brightness(0.9);
	display: none;
	grid-template-rows: 1fr 1fr;
}
#connectionImg {
	height: 250px;
	display: flex;
	align-self: center;
}
#connectionText > * {
	text-align: center;
	font-size: 48px;
	animation: disconnect 3s infinite ease-in-out;
}
#connectionImg_kkt {
	height: 180px;
	align-self: center;
}

@keyframes disconnect {
	0% {
		color: #c5c5c5;
	}
	50% {
		color: #f1f1f1;
	}
	100% {
		color: #c5c5c5;
	}
}

@keyframes blink {
	0% {
		background: #ed5858;
	}
	25% {
		background: #b1b1b1;
	}
	50% {
		background: #ed5858;
	}
	75% {
		background: #b1b1b1;
	}
	100% {
		background: #ed5858;
	}
}

.returnsFoo {
	display: none;
	justify-content: space-between;
	align-items: center;
	column-gap: 50px;
	position: absolute;
	bottom: -1px;
	left: 0;
	margin: 0;

	&.active {
		display: flex;
	}
}
.returnsCheckInfo {
	display: flex;
	justify-content: left;
	align-items: center;
	column-gap: 15px;
	margin: 0;
}
.returnsLabel {
	margin: 0;
	white-space: nowrap;
}
#returnsSelect {
	position: relative;
	width: 30vw;
}
.returnsSelected {
	padding: 10px 20px;
	margin: 0;
	border: solid 1px #f1f1f1;
	border-radius: 5px;
	cursor: pointer;
}
#returnsSelectList {
	position: absolute;
	bottom: 100%;
	left: 0;
	padding: 10px;
	width: calc(100% - 22px);
	border: solid 1px #f1f1f1;
	border-radius: 5px;
	background: #fff;
	display: none;
	max-height: 30vh;
	overflow-y: auto;

	&.active {
		display: block;
	}

	& .findedCheck {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 5px 10px;
		cursor: pointer;
		transition: 0.3s;

		&:hover {
			background: #f1f1f1;
		}
		& * {
			margin: 0;
		}
	}
}
#returnsKKT {
	margin: 0;
}
#returnsFillingAll {
	border-radius: 5px;
	border: solid 1px #f1f1f1;
	padding: 10px 20px;
	cursor: pointer;
	user-select: none;
	margin: 0;
	transition: 0.3s;

	&:hover {
		background: #f1f1f1;
		border-color: #ccc;
	}
}
