@import url('/css/fonts/gilroy.css');

:root
{
	--white: #FFFFFF;
	--blue: #158fe2;
	--light-blue: #DBE5F3;
	--dark-blue: #11639c;
	--red: #f83535;
	--red-light: rgba(255,0,0,0.2);
	--black: #1a1a1a;
	--light-grey: #EAEAEA;
	--light-green: rgba(31, 171, 51, 0.2);
	--green:rgba(31, 171, 51, 1.0);
	--grey: #aaaaaa;
}

body, html{
	width: 100%;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family: 'Gilroy', sans-serif;
	font-size: 14px;
	color: var(--black);
	background: #fff;
}

h1, h2, h3, h4
{
	margin: 0;
}

h3
{
	font-size: 18px;
	margin: 15px 0 10px;
}

a
{
	text-decoration: none;
	color: var(--blue);
}
.courseList img
{
	max-width: 100px;
}
.login-page
{
	display: flex;
	align-items: center;
	height:100vh;
	width: 100vw;
	justify-content: center;
	background: url('/images/account-bg.jpg') center center no-repeat;
	background-size: cover;
}

form.login
{
	display: flex;
	padding: 32px;
	border-radius: 8px;
	background: var(--white);
	flex-direction: column;
	align-items: center;
	gap:20px;
}

form.login>h1, form.login>h3
{
	margin: 0;
}

form.login .input
{
	width: 100%;
	box-sizing: border-box;
}

.input
{
	display: flex;
	gap: 6px;
	flex-direction: column;
	align-items: flex-start;
}

form .error
{
	display: none;
	color: var(--red);
	font-size: 1rem;
}

.search
{
	min-width: 300px;
}

.input input[type=text], .input input[type=password], .input input[type=tel], .input input[type=email], .input select, .input input[type=date]
{
	-webkit-appearance:none;
	display: block;
	padding: 8px 16px;
	border-radius: 4px;
	margin: 0;
	border:1px solid var(--light-blue);
	box-shadow: 4px 0px 18px 0px rgba(0, 0, 0, 0.06);
	outline: none;
	width: 100%;
	box-sizing: border-box;
	font-size: 1.15rem;
}

textarea
{
	-webkit-appearance:none;
	display: block;
	padding: 8px 16px;
	border-radius: 4px;
	margin: 0;
	border:1px solid var(--light-blue);
	box-shadow: 4px 0px 18px 0px rgba(0, 0, 0, 0.06);
	outline: none;
	width: 100%;
	height: 150px;
	box-sizing: border-box;
	font-size: 1.15rem;
}

.input input[type=text].ierror, .input input[type=password].ierror, .input input[type=tel].ierror, .input input[type=email].ierror
{
	border-color: var(--red);
}

.input input[type=checkbox]
{
	display: none;
}

.input input[type=checkbox]+label
{
	display: flex;
	align-items: center;
	gap: 10px;
}

.input input[type=checkbox]+label:before
{
	content: "";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.2em;
	height: 1.2em;
	border: 1px solid var(--blue);
	border-radius: 4px;
	font-family: "icomoon";
	color: var(--blue);
}

.input input[type=checkbox].ierror+label:before
{
	border: 1px solid var(--red);
}

.input input[type=checkbox]:checked+label:before
{
	content: "\e97d";
}

.input .fileinput
{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	font-size: 15px;
}

.input .fileinput:before
{
	content: "\e956";
	font-family: "icomoon";
	font-size: 20px;
	color: var(--blue);
}

.input .fileinput input[type=file]
{
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	-webkit-appearance:none;
}

input[type=submit], .button
{
	-webkit-appearance:none;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 32px;
	border-radius: 4px;
	background: var(--blue);
	border:1px solid var(--blue);
	color: var(--white);
	font-size: 1.15rem;
}

.redbutton
{
	-webkit-appearance:none;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 32px;
	border-radius: 4px;
	background: var(--red);
	border:1px solid var(--red);
	color: var(--white);
	font-size: 1.15rem;
}

input[type=submit]:hover, .button:hover
{
	background: var(--dark-blue);
	cursor: pointer;
}

input[type=submit] i, .button i
{
	margin-top: -2px;
}

.header
{
	display: flex;
	grid-column: span 2;
	justify-content: space-between;
	padding: 12px 40px;
	align-items: center;
	border-bottom: 1px solid var(--light-blue);
	box-shadow: 4px 0px 18px 0px rgba(0, 0, 0, 0.06);
}

.flex-bottom
{
	display: flex;
	align-items: flex-end;
}

.header .right-block
{
	display: flex;
	justify-content: flex-end;
	gap: 24px;
	align-items: center;
}

.header .right-block .user-info
{
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
}

.wrapper
{
	display: grid;
	grid-template-columns: 200px 1fr;
	grid-template-rows: max-content 1fr;
	height: 100vh;
}

.left-panel
{
	display: flex;
	flex-direction: column;
	gap: 0px;
	border-right: 1px solid var(--light-blue);
}

.left-panel a
{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	color: var(--black);
	padding: 16px 20px;
}

.left-panel a:hover, .left-panel a.selected
{
	color: var(--white);
	background: var(--blue);
}

.left-panel a i
{
	margin-top: -2px;
	font-size: 1.2em;
}

.content-panel
{
	padding: 20px;
}

.content-panel.parents-panel
{
	display: grid;
	grid-template-columns: 1fr 300px;
}

.fixed-data
{
	max-height: calc(100vw - 63px);
	overflow: auto;
	border-left: 1px solid var(--light-blue);
	padding: 10px;
}

.mcb-title
{
	display: block;
	padding: 5px 10px;
	background: var(--blue);
	color: var(--white);
}

.mychild-list
{
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.n-course
{
	display: grid;
	grid-gap: 10px;
	grid-template-columns: 80px 1fr;
	grid-template-areas: "image title" "image wday" "image date";
	margin: 5px;
}

.n-course .c-image {
	grid-area: image;
	background-size: cover;
	background-position: center;
	border-radius: 0px;
}

.n-course .c-date {
	grid-area: date;
}

.n-course .c-title {
	grid-area: title;
}

.n-course .c-weekday {
	grid-area: wday;
	color: var(--blue);
	font-weight: bold;
}

.cb-top
{
	display: flex;
	justify-content: space-between;
}

.cb-top .actions
{
	display: flex;
	gap: 20px;
}

.shadow
{
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	background: rgba(21, 143, 226, 0.3);
	width: 100vw;
	height: 100vh;
	align-items: center;
	justify-content: center;
}

.shadow .popup
{
	display: block;
	position: relative;
	background: var(--white);
	padding: 20px;
	width: 500px;
	max-width: 90vw;
}

.shadow .popup.big
{
	width: 90vw;
}

.shadow .popup .closer
{
	position: absolute;
	right: 10px;
	top: 10px;
	font-size: 20px;
	text-decoration: none;
	color: var(--black);
}

.popup-form .input
{
	margin-top: 15px;
	margin-bottom: 10px;
}

.shadow .popup .pa-content
{
	max-height: 70vh;
	overflow: auto;
}

.shadow .popup.big .pa-content
{
	max-height: 85vh;
}

.times-list
{
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.times-list>div
{
	display: grid;
	grid-template-columns: 1fr 1fr 20px;
	gap: 20px;
}

.filter-line
{
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0 0;
}

.filter-line-block
{
	width: 100%;
	display: grid;
	grid-template-columns: 150px 1fr;
	grid-gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--light-grey);
}

.filter-line-block-name
{
	font-size: 18px;
	font-weight: bold;
}

.filter-line-block-values
{
	display: flex;
	justify-content: flex-start;
	gap: 10px;
	flex-wrap: wrap;
}

.data-table
{
	margin-top: 10px;
	max-width: calc(100vw - 240px);
	overflow: auto;
}

.data-table th:after
{
	content: "\ea83";
	font-family: "icomoon";
	margin-left: 1em;
}

.data-table th.sorted-asc:after
{
	content: "\ea81";
}

.data-table th.sorted-desc:after
{
	content: "\ea82";
}

.data-table table
{
	border-collapse: collapse;
	width: 100%;
}

.data-table thead td
{
	background: var(--light-grey);
	color: var(--black);
}

.data-table thead td>div
{
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: space-between;
	width: 100%;
}

.data-table thead td>div .sorter
{
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.data-table tr.fast
{
	background: var(--red-light);
}

.data-table td
{
	padding: 5px 10px;
	border: 1px solid var(--light-grey);
}

.courseInfo
{
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 20px 0;
}

.courseInfoItem
{
	display: flex;
	justify-content: flex-start;
	gap: 10px;
}

.courseInfoItem>span:nth-child(1)
{
	font-weight: bold;
}

#schedule
{
	margin-bottom: 20px;
}

#schedule .input
{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: row;
	gap: 20px;
	margin: 10px 0;
}

#schedule .input label
{
	width: 120px;
}

#schedule input[type=text]
{
	width: 80px;
}

#schedule .input input[type=checkbox]+label+input
{
	display: none;
}

#schedule .input input[type=checkbox]:checked+label+input
{
	display: block;
}

.schedule
{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 30px;
	margin-top: 25px;
	max-width: 900px;
}

.days_the_week, .days
{
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.calendar
{
	display: block;
	border:1px solid var(--light-blue);
}

.calendar .month-name
{
	display: block;
	padding: 5px;
	text-transform: uppercase;
	background: var(--light-blue);
	color: var(--blue);
	text-align: center;
}

.days_the_week>div, .days>div
{
	padding: 8px 0;
	text-align: center;
}

.days>div.has-lesson
{
	background: var(--blue);
	color: var(--white);
}

.days>div.has-lesson.ot-lesson
{
	background: var(--black);
	color: var(--white);
}

.days>div.has-lesson.checked, .days>div.has-lesson.ot-lesson.checked
{
	background: var(--green);
}

table .actions
{
	display: flex;
	gap: 10px;
	align-items: center;
}

table .actions a, .tariftime a
{
	font-size: 20px;
}

table .actions a.rm, .tariftime a
{
	color: var(--red);
}

.block-data
{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 20px;
}

.parent-item
{
	display: flex;
	padding: 10px;
	flex-direction: column;
	gap: 10px;
	background: var(--white);
	border:1px solid var(--light-blue);
	font-size: 18px;
	margin: 10px 0;
}

.parent-item.row, .parent-item.row.archive
{
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	display: flex;
}

.parent-item.row.archive
{
	opacity: 0.5;
}

.parent-item.row a{
	flex:1;
}

.parent-item.row .remover, .parent-item.row .archiver
{
	display: flex;
	justify-content: center;
	align-items: center;
	flex: none;
	width: 40px;
}

.parent-item.row .remover
{
	color: var(--red);
	
}



.buttons-block
{
	display: flex;
	justify-content: flex-start;
	padding: 10px 0;
}

.stud-years
{
	display: flex;
	justify-content: flex-start;
	gap: 10px;
	margin-bottom: 30px;
}

.stud-years span
{
	display: block;
	padding: 5px 10px;
	border-radius: 4px;
	border:1px solid var(--light-blue);
	cursor: pointer;
}

.stud-years span.selected
{
	border:1px solid var(--blue);	
	background: var(--blue);
	color: var(--white);
}

.open-courses
{
	display: block;
	margin-bottom: 30px;
}

.courseToGo
{
	display: block;
	padding: 10px 20px;
	border-radius: 4px;
	border:1px solid var(--light-blue);
	cursor: pointer;
	margin: 5px 0;
}

.courseToGo.selected
{
	border: 1px solid var(--blue);
}

.courseToGo .name
{
	font-size: 18px;
	display: block;
}

.courseToGo .plc
{
	display: block;
	font-size: 14px;
	color: var(--grey);
}

.courseToGo .plc.red
{
	color: var(--red);
}

.tab-menu
{
	display: flex;
	justify-content: flex-start;
	gap: 10px;
	margin-bottom: 20px;
}

.tab-menu a.selected
{
	color: var(--black);
	font-weight: bold;
}

.courseTList
{
	padding: 30px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.courseT
{
	display: grid;
	grid-template-columns: 2fr 1fr;
	width: 520px;
	box-sizing: border-box;
	padding: 20px;
	border-radius: 10px;
	border-radius: 1px solid var(--grey);
	box-shadow: 0 0 5px var(--grey);
}

.courseT .name
{
	font-size: 20px;
	font-weight: bold;
	display: block;
}

.courseT .ct-left
{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.courseT .c-timetable
{
	display: grid;
	grid-template-columns: max-content 1fr;
	grid-gap: 3px;
}

.courseT .c-timetable .c-tt-info
{
	font-weight: bold;
	font-size: 18px;
}

.zoom-block a
{
	display: block;
}

.c-pupils b
{
	font-size: 18px;
}

.courseT .ct-right
{
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
	justify-content: space-between;
}

.courseT .ct-right a
{
	display: flex;
	gap: 5px;
	align-items: center;
	transition: all 0.3s ease;
}

.courseT .ct-right a:hover
{
	transform: scale(1.05);
}

.courseT .ct-right a i
{
	font-size: 26px;
}

.red
{
	color: var(--red);
}

.lesson
{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 20px;
}

.l-pupils .pupil-item
{
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 20px 20px;
	box-sizing: border-box;
	margin: 0px 0;
}

.l-pupils .pupil-item:hover
{
	background: var(--light-blue);
}

.l-pupils .pupil-item.atles
{
	background: var(--light-green);
}

.l-pupils .pupil-item.health
{
	background: var(--light-grey);
}

.l-pupils .pupil-item span
{
	font-size: 24px;
}

.l-pupils .pupil-item div
{
	display: flex;
	justify-content: flex-end;
	gap: 30px;
}

.l-pupils .pupil-item div i
{
	font-size: 40px;
	color: var(--grey);
}

.l-pupils .pupil-item div a
{
	transition: all 0.3s ease;
}

.l-pupils .pupil-item.atles div a.come i, .l-pupils .pupil-item.atles div a.got i
{
	color: var(--green);
}

.l-pupils .pupil-item.health div a.health i
{
	color: var(--red);
}

.l-pupils .pupil-item div a:hover
{
	transform: scale(1.2);
}

#homework
{
	-webkit-appearance:none;
	display: block;
	padding: 10px;
	border-radius: 5px;
	border: 1px solid var(--light-grey);
	box-shadow: 0 0 10px var(--grey);
	min-height: 40vh;
	font-size: 16px;
	margin: 10px 0;
	width: 100%;
	box-sizing: border-box;
}

.file-loader
{
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 20px 0;
	width: 100%;
	border: 1px dashed var(--blue);
	position: relative;
	box-sizing: border-box;
	padding: 25px 10px;
	border-radius: 5px;
}

.file-loader span
{
	color: var(--blue);
}

.file-loader input
{
	z-index: 2;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	opacity: 0;
}

.hw-files
{
	display: block;
	width: 90%;
}

.file
{
	display: flex;
	width: 100%;
	box-sizing: border-box;
	justify-content: space-between;
	align-items: center;
	padding: 0 15px;
}

.file:hover
{
	background: var(--light-blue);
}

.file>a
{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 5px;
	padding: 10px 0;
}

.file>a.remove
{
	color: var(--red);
}

.h-task
{
	max-width: 600px;
	display: grid;
	grid-template-columns: 100px 1fr;
	grid-gap: 20px;
	padding: 20px 0;
	border-bottom: 1px dashed var(--grey);
	margin: 20px 0;
}

.h-task .date
{
	font-size: 16px;
	font-weight: bold;
}

.h-task .files
{
	padding-top: 10px;
}

.lesson-tabs
{
	display: flex;
	justify-content: flex-start;
	border: 1px solid var(--blue);
	margin: 20px 0;
}

.lesson-tabs a
{
	display: block;
	padding: 10px 20px;
	color: var(--blue);
	background: var(--white);
}

.lesson-tabs a.selected
{
	color: var(--white);
	background: var(--blue);
}

.list a
{
	display: block;
}

.child-list
{
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.child-list>div
{
	display: block;
	padding: 10px;
	border: 1px solid var(--grey);
	position: relative;
}

.child-list>div.process:after
{
	position: absolute;
	content: "Загрузка...";
	top: 10px;
	right: 10px;
}

.child-list>div.atcourse
{
	border: 1px solid var(--green);
	background: var(--light-green);
}

.schedule-block
{
	display: grid;
	grid-template-columns: 3fr 1fr;
	grid-gap: 20px;
}
.schedule-editor
{
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 20px;
}

.statistic>div
{
	padding: 20px 20px;
	border-left: 10px solid #fff;
}

.statistic table, .teacher-full-stat table
{
	margin-top: 20px;
	border-collapse: collapse;
}

.statistic table td, .teacher-full-stat table td
{
	padding: 5px 10px;
	border: 1px solid var(--grey);
}

.statistic table td:nth-child(n+1), .teacher-full-stat table td:nth-child(n+1)
{
	text-align: center;
}

.teacher-full-stat table tbody td
{
	cursor: pointer;
}

.statistic table td .icon-check
{
	color: var(--green);
}

.statistic table td .icon-ill
{
	color: var(--blue);
}

#present-list table td .icon-block, .statistic table td .icon-block
{
	color: var(--red);
}

.mchecker
{
	display: flex;
	justify-content: flex-start;
	gap: 20px;
}

.mchecker a
{
	font-size: 24px;
}

.mchecker h2
{
	width: 200px;
	text-align: center;
}

.pos
{
	display: grid;
	grid-template-columns: 1fr 300px;
	grid-gap: 20px;
	grid-template-areas: "data filter";
}

.pos .statistic {
	grid-area: data;
}

.pos .filters {
	grid-area: filter;
}

.filter-block
{
	padding: 0 0 20px;
}

.filter-block-title
{
	font-weight: bold;
	font-size: 16px;
	padding-bottom: 10px;
}

.filter-block-variants
{
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-direction: column;
	gap: 5px;
	max-height: 300px;
	overflow: auto;
}

.filter-block-variants input[type=checkbox]
{
	display: none;
}

.filter-block-variants input[type=checkbox]+label
{
	display: flex;
	justify-content: flex-start;
	gap: 5px;
	align-items: center;
}

.filter-block-variants input[type=checkbox]+label:before
{
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 3px;
	border: 1px solid var(--blue);
	background: var(--white);
}

.filter-block-variants input[type=checkbox]:checked+label:before
{
	background: var(--blue);
}

.readytask
{
	display: flex;
	gap: 10px;
	align-items: center;
}

.teacher-stat
{
	display: block;
	padding: 15px 0;
	border-top: 1px solid var(--grey);
}

.selector
{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 20px;
	grid-column: span 2;
}

.selector a
{
	display: block;
	padding: 5px 10px;
	border: 1px solid var(--blue);
	border-radius: 4px;
}

.archive
{
	display: none;
}

.show-archive .archive
{
	display: table-row;
	opacity: 0.3;
}

.comment 
{
	display: block;
	padding: 10px 10px;
	background: var(--white);
}

.comment.fast
{
	background: var(--red-light);
}

.comment .c-first-line
{
	display: flex;
	color: var(--grey);
	align-items: center;
	justify-content: space-between;
	margin-bottom: 5px;
}

.comment .c-comment
{
	font-size: 1.1rem;
}

.comment .button
{
	margin-top: 10px;
}

.bonus-block
{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--light-grey);
	grid-gap: 20px;
}

.bonus-block form
{
	grid-column: span 2;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: flex-end;
	gap: 20px;
}

.bonus-block form input[type=submit]
{
	flex: none;
}

.bonus-item
{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 10px;
	padding: 20px 0;
	border-bottom: 1px solid var(--light-grey);
}

.bonus-item .green {color: var(--green);}
.bonus-item .red {color: var(--red);}

.bonus-item .text
{
	grid-column: span 2;
}

.bonus-list .bonus-list-detail
{
	display: none;
}

.bonus-list.open .bonus-list-detail
{
	display: block;
}


#editPresent
{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	position: absolute;
	background: var(--white);
	padding: 10px 0;
	border-radius: 6px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#editPresent a
{
	display: flex;
	justify-content: flex-start;
	gap: 3px;
	padding: 5px 10px;
	color: var(--black);
	width: 100%;
	box-sizing: border-box;
}

#editPresent a:hover
{
	background: rgba(0, 0, 255, 0.1);
}

#editPresent a i.icon-ill {color: var(--blue);}
#editPresent a i.icon-block {color: var(--red);}
#editPresent a i.icon-check {color: var(--green);}
#editPresent a i.icon-cross {color: var(--grey);}


.grid12
{
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-gap: 10px;
}

.col2 {grid-column: span 2;}
.col3 {grid-column: span 3;}
.col4 {grid-column: span 4;}
.col5 {grid-column: span 5;}
.col6 {grid-column: span 6;}
.col7 {grid-column: span 7;}
.col8 {grid-column: span 8;}
.col9 {grid-column: span 9;}
.col10 {grid-column: span 10;}
.col11 {grid-column: span 11;}
.col12 {grid-column: span 12;}

.input
{
	position: relative;
}

.csi-block
{
	display: block;
	position: relative;
	width: 100%;
}

.csi-block:after
{
	font-family: "icomoon";
	content: "\e921";
	position: absolute;
	right: 10px;
	top: 50%;
	margin-top: -5px;
	pointer-events: none;
}

/*.input.hasselect:after
{
	font-family: "icomoon";
	content: "\e921";
	position: absolute;
	right: 10px;
	top: 40px;
	pointer-events: none;
}*/

.input.hasdate:after
{
	font-family: "icomoon";
	content: "\e979";
	position: absolute;
	right: 10px;
	top: 34px;
	pointer-events: none;
}

.input.hastime:after
{
	font-family: "icomoon";
	content: "\e985";
	position: absolute;
	right: 10px;
	top: 34px;
	pointer-events: none;
}

.ui-widget-content.ui-autocomplete
{
	max-height: 200px;
	overflow: auto;
}

.info-data
{
	font-weight: 600;
}

.perenos
{
	color: var(--red);
}


/*TABLE*/

th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
            cursor: pointer;
        }
        th:hover {
            background-color: #e6e6e6;
        }
        /*.sorted-asc {
            background-color: #d4edda;
        }
        .sorted-desc {
            background-color: #f8d7da;
        }*/
        .filter-row input {
            width: 90%;
        }

        .data-table thead .filter-row td {
        	background: #f2f2f2;
        	border: 1px solid #ddd;
        }
.teacher-fin-block table tbody tr
{
	cursor: pointer;
}
.teacher-fin-block table tbody tr:nth-child(2n)
{
	background: rgba(21, 143, 226, 0.1);
}

.teacher-fin-block table tbody tr:hover
{
	background: rgba(21, 143, 226, 0.4);
}

#addIndividual .input input[type=checkbox]+label
{
	padding: 10px 20px;
	background: rgba(255, 0,  0, 0.2);
}

#addIndividual .input input[type=checkbox]+label:before
{
	width: 1.6em;
	height: 1.6em;
	background: var(--white);
}

#addIndividual .input input[type=checkbox]:checked+label{
	background: rgba(0, 255, 0, 0.2);
}

.period
{
	display: block;
	position: relative;
	margin-bottom: 20px;
}

.period span
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	padding: 10px 20px;
	border-radius: 4px;
	border:1px solid var(--blue);
}

.period span:after
{
	font-family: 'icomoon';
	content: "\e921";
}

.period .period-variants
{
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	border-radius: 4px;
	border:1px solid var(--blue);
	max-height: 200px;
	overflow: auto;
	background: var(--white);
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s ease;
}

.period.opened .period-variants
{
	opacity: 1;
	pointer-events: initial;
}

.period .period-variants a
{
	display: block;
	padding: 5px 20px;
	color: var(--black);
}

.period .period-variants a:hover
{
	background: var(--light-blue);
}

.zam
{
	background: rgba(255, 0, 0, 0.1);
}

.res-tables
{
	display: block;
	margin-top: 30px;
	padding-top: 15px;
	border-top: 1px solid var(--grey);
}

.pupil-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pupil-header {
    background-color: #f5f5f5;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.pupil-header h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.pupil-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9em;
}

.course-card {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.course-card:last-child {
    border-bottom: none;
}

.course-header h4 {
    margin: 0 0 5px 0;
    color: #444;
}

.course-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.periods-table {
    overflow-x: auto;
}

.periods-table table {
    width: 100%;
    border-collapse: collapse;
}

.periods-table th, .periods-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.periods-table th {
    background-color: #f9f9f9;
    font-weight: 500;
}

.payed-badge {
    color: #28a745;
    background-color: #e8f5e9;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.pre-badge {
    color: #bbb016;
    background-color: #f5f4e7;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.not-payed-badge {
    color: #dc3545;
    background-color: #ffebee;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.payed-icon {
    color: #28a745;
    font-size: 1.2em;
}

.pay-link {
    color: #007bff;
    text-decoration: none;
}

.pay-link:hover {
    text-decoration: underline;
}

tr.payed {
    background-color: #f8fff8;
}

tr.not-payed {
    background-color: #fff8f8;
}

.attendance-cell {
    position: relative;
    padding-right: 20px !important;
}

.attendance-info {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

.tooltip {
    font-family: inherit;
    font-size: 14px;
}

.tooltip-inner {
    max-width: 300px;
    padding: 8px 12px;
    text-align: left;
    background-color: #333;
}

.custom-tooltip {
    position: absolute;
    z-index: 9999;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    max-width: 300px;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.custom-tooltip:after {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #333;
}

.attendance-cell {
    position: relative;
    padding-right: 20px !important;
}

.attendance-info {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

/* Все предыдущие стили остаются */

/* Добавляем стили для табов */
.payment-tabs {
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: bold;
}

.tab-button:hover:not(.active) {
    color: #333;
    border-bottom-color: #ccc;
}

.tab-content {
    padding: 10px 0;
}

/* Остальные стили из предыдущих версий */
.custom-tooltip {
    position: absolute;
    z-index: 9999;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    max-width: 300px;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.custom-tooltip:after {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #333;
}

.attendance-cell {
    position: relative;
    padding-right: 20px !important;
}

.attendance-info {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

.payed-badge {
    color: #28a745;
    background-color: #e8f5e9;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.not-payed-badge {
    color: #dc3545;
    background-color: #ffebee;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.payed-icon {
    color: #28a745;
    font-size: 1.2em;
}

.pay-link {
    color: #007bff;
    text-decoration: none;
}

.pay-link:hover {
    text-decoration: underline;
}

tr.payed {
    background-color: #f8fff8;
}

tr.not-payed {
    background-color: #fff8f8;
}

.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-info {
    background-color: #e7f4ff;
    color: #0066cc;
    border: 1px solid #b3d7ff;
}

.lessons-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            padding: 20px;
            font-family: Arial, sans-serif;
        }
        
        .lesson-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            padding: 20px;
            width: 320px;
            border-left: 5px solid #4CAF50;
            transition: transform 0.2s ease;
        }
        
        .lesson-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        }
        
        .lesson-card.online {
            border-left-color: #2196F3;
        }
        
        .lesson-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .lesson-id {
            color: #666;
            font-size: 12px;
        }
        
        .lesson-date {
            font-weight: bold;
            color: #333;
            font-size: 16px;
        }
        
        .lesson-time {
            background: #f8f9fa;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 14px;
            color: #555;
        }
        
        .lesson-info {
            margin-bottom: 15px;
        }
        
        .lesson-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
        }
        
        .lesson-label {
            color: #666;
            font-weight: 500;
        }
        
        .lesson-value {
            color: #333;
            text-align: right;
        }
        
        .pupil-name {
            font-weight: bold;
            color: #2c3e50;
            font-size: 16px;
        }
        
        .teacher-name {
            color: #7e57c2;
            font-style: italic;
        }
        
        .price-section {
            background: #e8f5e8;
            padding: 12px;
            border-radius: 8px;
            margin-top: 10px;
        }
        
        .price-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .total-price {
            font-weight: bold;
            color: #388e3c;
            font-size: 16px;
        }
        
        .discount {
            color: #f44336;
        }
        
        .online-badge {
            background: #2196F3;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            margin-left: 8px;
        }
        
        .lesson-comment {
            margin-top: 15px;
            padding: 10px;
            background: #fff3cd;
            border-radius: 6px;
            font-size: 13px;
            color: #856404;
            border-left: 3px solid #ffc107;
        }

        .subm {color: var(--green);}
        .unsubm {color: var(--red);}

        .avail-states
        {
        	display: flex;
        	flex-direction: column;
        }

        .avail-states a
        {
        	display: flex;
        	align-items: center;
        	justify-content: center;
        	padding: 6px;
        	width: 100%;
        	color: black;
        	text-shadow: 2px 2px 4px white;
        	font-size: 18px;
        }
        .reports{
        	display: flex;
        	flex-direction: column;
        	gap: 10px;
        	margin-bottom: 10px;
        }