body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 20px;
	background-color: #f0f0f0;
}


.pointer {
	cursor: pointer;
}

.red-text {
	color: #fa1c1c;
}

.green-text {
	color: #009700;
}

.blue-text {
	color: #007bff;
}


.bold {
	font-weight: bold;
}

hr {
	border: unset;
	border-bottom: 1px solid #e0e0e0;
}

h1 {
	color: #333;
	margin-top: 0;
	margin-bottom: 0;
}

.subtitle {
	color: #757575;
	font-size: 0.7em;
	margin: 0;
	margin-bottom: 10px;
}

select, button {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

select {
	padding: 2px 5px;
	height: 25px;
	line-height: 1;
	font-size: 14px;
	box-sizing: border-box;
	margin: 0;
	min-height: 0;
}

button {
	background-color: #f8f8f8;
	cursor: pointer;
	width: unset;
}

button[disabled] {
	cursor: not-allowed;
}

.button {
	width: unset;
	display: inline-block;
	padding: 8px;
	font-size: 13px;
	color: black;
	background-color: #f8f9fa;
	border: 1px solid #d1d1d1;
	border-radius: 4px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.3s, box-shadow 0.2s;
}

button:hover,
.button:hover {
	background-color: #e2e6ea;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
	color: #007bff;
	border-color: #007bff;
}


.button:active,
.button:active {
	background-color: #d6d8db;
	box-shadow: none;
}

.button:focus {
	outline: 2px solid #5c9ded;
	outline-offset: 2px;
}

.button[disabled] {
	pointer-events: none;
	background-color: #ccc;
	color: #666;
	cursor: not-allowed;
}

.b-primary {
	background-color: #007bff;
	color: white;
}

.b-warning {
	background-color: #ffa625;
	color: black;
}



.section,
section {
	background-color: white;
	padding: 10px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section {
	margin: 8px 20px 0 20px;
}

.section {
	margin: 2px 0 10px 0;
	position: relative;
	overflow-y: scroll;
}

.container {
	margin: 0 20px;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin: -10px;
}

.col {
	padding: 10px;
	box-sizing: border-box;
}
.col:nth-child(odd) {
	padding-right: 5px;
}
.col:nth-child(even) {
	padding-left: 5px;
}

.col > section {
	margin: 0;
}

/* Стандартные стили для десктопа */
.col-0 {
	width: 100%
}

.col-1 {
	width: 10%
}

.col-2 {
	width: 15%
}

.col-3 {
	width: 20%
}

.col-4 {
	width: 25%
}

.col-5 {
	width: 40%
}

.col-6 {
	width: 50%
}

.col-7 {
	width: 60%
}

.col-8 {
	width: 70%
}

.col-9 {
	width: 75%
}


/* Для планшетов */
/*@media screen and (max-width: 1024px) {*/
/*	.col-3,*/
/*	.col-2,*/
/*	.col-1 {*/
/*		width: 50%;*/
/*	}*/
/*}*/

/* Медиа-запрос для мобильных устройств */
/*@media screen and (max-width: 768px) {*/
/*	.col-6,*/
/*	.col-5,*/
/*	.col-4 {*/
/*		width: 100%; !* Все колонки занимают полную ширину *!*/
/*	}*/
/*}*/


.left-aligned {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}


.grid-container {
	display: flex;
	/*justify-content: space-between;*/
	gap: 10px;
	max-width: 1200px;
	margin: 0 0 10px 0;
}

table {
	border: 1px solid #e0e0e0;
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
	background-color: white;
	font-size: 12px;
	height: auto;
}

th, td {
	border: 1px solid #e0e0e0;
	padding: 6px;
	text-align: left;
}

th {
	background-color: #f8f8f8;
	font-weight: bold;
	color: #333;
}

/*tr:nth-child(even) {*/
/*	background-color: #f9f9f9;*/
/*}*/

table td.salary-cell {
	position: relative;
	padding: 0;
	padding-right: 8px;
}

table .salary-bar {
	height: 20px;
	top: 4px;
	left: 2px;
	bottom: 0;
	position: absolute;
	background-color: #4285F4;
	opacity: 0.2;
}

table .salary-value {
	position: relative;
	padding-left: 12px;
	display: block;
}

table td.number {
	text-align: right;
}

img.logo {
	margin-top: 2px;
	height: 18px;
}

nav, footer {
	width: 100%;
	position: fixed;
	background-color: white;
	color: #676767;
	border-top: 1px solid #e0e0e0;
}

nav {
	z-index: 9999;
	padding: 4px 34px;
	height: 30px;
	line-height: 30px;
	margin: -20px 0 0 -20px;

}

footer {
	z-index: 1;
	font-size: 10px;
	left: 0;
	bottom: 0;
	height: 20px;
	padding: 2px 0;
	line-height: 20px;
	text-align: center;
}


a {
	color: #0a58ca;
	cursor: pointer;
}


nav a {
	color: #656565;
	text-decoration: none;
	margin-left: 20px;
}

nav .menu {
	width: 100%;
	display: inline;
}

nav .menu a:before {
	content: "▸ ";
	margin-right: 0;
}

nav .menu a.active {
	color: #0a58ca;
}

nav a.logo {
	color: #0a53be;
	margin-right: 20px;
}

ol {
	padding-inline-start: 18px;
}
ul {
	padding-inline-start: 15px;
}


.loader {
	border: 5px solid #f3f3f3;
	border-top: 5px solid #3498db;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -25px;
	margin-left: -25px;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.table-container {
	position: relative;
	min-height: 20px;
}

.table-container.loading table {
	opacity: 0.5;
}

.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	right: 0;
	background-color: #f9f9f9;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	z-index: 999999;
}

.dropdown-content a {
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
}

.dropdown-content a:hover {
	background-color: #f1f1f1;
}

.show {
	display: block;
}

.right {
	float: right;
}

.toast-container {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
}

.toast {
	background-color: #333;
	color: #fff;
	padding: 10px 20px;
	border-radius: 4px;
	display: none;
	cursor: pointer;
}


/* Стили для простого переключателя */
.simple-toggle-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 20px;
}

.simple-toggle {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 32px;
}

.simple-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.simple-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #e4e4e7;
	transition: .3s;
	border-radius: 34px;
}

.simple-slider:before {
	position: absolute;
	content: "";
	height: 24px;
	width: 24px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.simple-toggle input:checked + .simple-slider {
	background-color: #3b82f6;
}

.simple-toggle input:focus + .simple-slider {
	box-shadow: 0 0 1px #3b82f6;
}

.simple-toggle input:checked + .simple-slider:before {
	transform: translateX(20px);
}

.simple-slider:hover {
	background-color: #d4d4d8;
}

.simple-toggle input:checked + .simple-slider:hover {
	background-color: #2563eb;
}

.simple-slider:active:before {
	width: 28px;
}

.simple-toggle-label {
	font-size: 16px;
	color: #374151;
	user-select: none;
}

/* Стили для переключателя с текстом по бокам */
.labeled-toggle-container {
	display: flex;
	align-items: center;
	/*justify-content: center;*/
	gap: 12px;
	/*padding: 10px;*/
	/*margin-top: 20px;*/
}

.labeled-toggle-label {
	font-size: 16px;
	color: #6b7280;
	user-select: none;
	transition: color 0.3s ease;
}

.labeled-toggle-label.active {
	color: #3b82f6;
	/*font-weight: 500;*/
}

.labeled-toggle {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 21px;
}

.labeled-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.labeled-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #3b82f6;
	transition: .3s;
	border-radius: 34px;
}

.labeled-slider:before {
	position: absolute;
	content: "";
	height: 14px;
	width: 14px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.labeled-toggle input:checked + .labeled-slider:before {
	transform: translateX(20px);
}

.labeled-slider:hover,
.labeled-toggle input:checked + .labeled-slider:hover,
.labeled-toggle input:focus + .labeled-slider {
	background-color: #3b82f6;
}

.labeled-slider:active:before {
	width: 28px;
}


.disabled {
	pointer-events: none;
	opacity: 0.5;
	cursor: not-allowed;
}


.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
}

#fullscreen-btn {
	display: inline-block;
	padding: 0;
	cursor: pointer;
	margin: 0 -12px 0 10px;
}

i.beta {
	color: #f90;
	font-size: 0.8em;
}
i.beta::before {
	content: 'βeta';
	position: relative;
	top: -7px;
	left: -4px;
}

.overflow-elipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dropdown-content {
	margin-left: 5px;
	text-align: left;
}

.dropdown-content a::before {
	display: inline-block;
	margin-left: -25px;
	margin-right: 4px;
	content: "▸ ";
}


#scrollTopBtn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #4F46E5;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 900;
}
#scrollTopBtn.visible {
	opacity: 1;
	transform: translateY(0);
}
#scrollTopBtn:hover {
	background-color: #4338CA;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
#scrollTopBtn svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: white;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
@media (max-width: 768px) {
	#scrollTopBtn {
		bottom: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
	}
	#scrollTopBtn svg {
		width: 20px;
		height: 20px;
	}
}



.block-help-btn {
	font-family: Tahoma, serif;
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 12px;
	cursor: pointer;
	color: #000;
	z-index: 500;
	margin: 0;
	padding: 0;
	font-weight: 100;
}
.block-help-btn:hover {
	color: #0a53be;
}
.full-screen-btn:before {
	content: '⛶';
}
.full-screen-btn:hover:before {
	content: '▣';
}


footer {
	display: flex;
	justify-content: space-between;
	z-index: 9999;
}

footer > div:first-child {
	padding-left: 20px;
}

footer > div:last-child {
	padding-right: 20px;
}

dialog {
	font-size: 14px;
	border: none;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	padding: 20px;
	max-width: 500px;
	width: 90%;
}
dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}
.dialog-content {
	display: flex;
	flex-direction: column;
	gap: 1px;
}
dialog button {
	max-width: unset;
}

#about .dialog-content { text-align: center; }
#about .dialog-content p,
#about .dialog-content h2 { margin: 2px; }
#about .dialog-content p { line-height: 2em; }

.error-container {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	width: 100%;
	padding: 24px;
}

.error-card {
	margin: auto;
	background-color: white;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	padding: 32px;
	max-width: 600px;
	width: 100%;
	text-align: center;
}

.error-icon-wrapper {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fee2e2;
	border-radius: 50%;
}

.error-title {
	font-size: 20px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 8px;
}

.error-message {
	color: #4b5563;
	margin-bottom: 24px;
	line-height: 1.5;
}

.button-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

@media (min-width: 640px) {
	.button-container {
		flex-direction: row;
		justify-content: center;
	}
}

.primary-button {
	background-color: #2563eb;
	color: white;
	border: none;
	padding: 10px 24px;
	border-radius: 4px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
}

.primary-button:hover {
	background-color: #1d4ed8;
}

.secondary-button {
	background-color: white;
	color: #2563eb;
	border: 1px solid #2563eb;
	padding: 10px 24px;
	border-radius: 4px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.secondary-button:hover {
	background-color: #eff6ff;
}

.error-code {
	font-size: 14px;
	color: #6b7280;
	margin-top: 24px;
}

.error-code-value {
	font-family: monospace;
}

.url, .link {
	color: #0a58ca;
	cursor: pointer;
}
.url {
	text-decoration: underline;
}
.url:hover {
	text-decoration: none;
	color: #0a53be;
}

#change-lang span {
	visibility: hidden;
}

#change-lang:hover span {
	visibility: visible;
}

nav i.fa-solid {
	font-size: 0.8em;
	font-style: normal;
}