@font-face {
	font-family: 'Lato';
	font-weight: 700;
	font-display: swap;
	src: local('Lato Bold'), local('Lato-Bold'), url('fonts/Lato-Bold.woff2') format('woff2');
}

@font-face {
	font-family: 'Lato';
	font-weight: 400;
	font-display: swap;
	src: local('Lato Regular'), local('Lato-Regular'), url('fonts/Lato-Regular.woff2') format('woff2');
}

:root {
	--black: #141414;
	--dark_gray: #242424;
	--gray: #313131;
	--mid_gray: #5E5E62;
	--text: #EFEFEF;
	--white: #FFF;
	--corp: #014EFF;
	--orange: #FF964B;
	--purple: #C293F7;
	--tile_light: #464646;
	--tile_dark: #0A0A0A;
	--button_start: #303030;
	--button_end: #292929;
	--green: #2FF303;
	--pink: #F3036B;
	--done: #51D537;
	--light_corp: #CCECFF;
	--corp_start: #06F;
	--corp_end: #03F;

	--shadow_tile: inset 0 -1px 0 var(--tile_dark), inset 0 1px 0 var(--tile_light);
	--shadow_button: inset 0 -2px 2px rgba(0, 0, 0, .24), inset 0 2px 1px rgba(255, 255, 255, .24), 0 4px 4px rgba(0, 0, 0, .24);
	--shadow_input: inset 0 1px 0 var(--tile_dark), inset 0 -1px 0 var(--tile_light);

	--h2: 36px;
	--h3: 24px;
	--h4: 19px;
	--h5: 16px;
	--caps: 12px;
	--big_text: 21px;
	--note: 14px;

	--gap: 12px;
	--radius: 28px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;

	min-height: 100%;
	color: var(--text);
	font-size: var(--h5);
	font-weight: 700;
	font-family: 'Lato', sans-serif;
	line-height: 1.4;
	background-color: var(--black);
}

img {
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}



/* main */

.h2 {
	font-size: var(--h2);
	line-height: 1.4;
}

.h3 {
	font-size: var(--h3);
	line-height: 1.4;
}

.h4 {
	font-size: var(--h4);
	line-height: 1.4;
}

.h5 {
	font-size: var(--h5);
	line-height: 1.4;
}

.big_text {
	color: var(--mid_gray);
	font-size: var(--big_text);
	font-weight: 400;
	line-height: 1.8;
}

.note {
	color: var(--mid_gray);
	font-size: var(--note);
	font-weight: 400;
	line-height: 1.6;
}

.caps {
	font-size: var(--caps);
	text-transform: uppercase;
	line-height: 16px;
}

.panel {
	background-color: var(--dark_gray);
	border-radius: var(--radius);
	box-shadow: var(--shadow_tile);
}

.panel.small {
	border-radius: 20px;
}

/* Списки, меню й висувні вікна прокручуються, але без повзунка */
.select_list,
.drawer,
.sidebar {
	scrollbar-width: none;
}

.select_list::-webkit-scrollbar,
.drawer::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
	display: none;
}

/* main */



/* global */

.global_header {
	display: flex;
	align-items: center;
	gap: 16px;

	padding: 20px;
}

.global_title {
	flex-grow: 1;
}

.shade {
	display: none;
}

.icon {
	display: flex;
	align-items: flex-start;
	justify-content: center;

	width: 24px;
	height: 24px;
}

/* SVG-іконки з Figma мають запас під тінь, тому їх вирівнюємо по верху з потрібним зсувом */
.icon.top_3 {
	padding-top: 3px;
}

.icon.top_5 {
	padding-top: 5px;
}

.button {
	display: flex;
	align-items: center;
	justify-content: center;

	padding: 10px 20px;
	color: var(--text);
	font-size: var(--caps);
	text-transform: uppercase;
	line-height: 16px;
	white-space: nowrap;
	background-image: linear-gradient(96deg, var(--button_start) 0%, var(--button_end) 100%);
	border-radius: 12px;
	box-shadow: var(--shadow_button);
	cursor: pointer;
}

.button.big {
	height: 46px;
	padding: 15px 36px 17px;
}

.button.corp {
	color: var(--light_corp);
	background-image: linear-gradient(96deg, var(--corp_start) 0%, var(--corp_end) 100%);
}

.button.light {
	color: var(--light_corp);
}

.button.load {
	pointer-events: none;
	opacity: .6;
}

.button.load:before {
	content: '';
	display: block;

	width: 16px;
	height: 16px;
	border: 2px solid var(--light_corp);
	border-top-color: transparent;
	border-radius: 100px;

	animation: button_load .8s linear infinite;
}

@keyframes button_load {
	to {
		transform: rotate(360deg);
	}
}

.select {
	display: flex;
	align-items: center;
	gap: 10px;

	padding: 13px 20px 14px;
	line-height: normal;
	background-color: var(--black);
	border-radius: 12px;
	box-shadow: var(--shadow_input);
	cursor: pointer;
}

.select.date {
	width: 151px;
}

.select_input {
	flex-grow: 1;

	width: 100%;
	padding: 0;
	color: var(--text);
	font-size: var(--h5);
	font-weight: 700;
	font-family: inherit;
	line-height: normal;
	background-color: transparent;
	border: 0;
	outline: none;
	cursor: pointer;
}

.select.pictogram {
	padding: 10px 20px 12px 12px;
}

.select.logo {
	padding: 13px 20px 14px 12px;
}

.select_icon {
	width: 24px;
	height: 24px;
}

.select_items {
	flex-grow: 1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.select_item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.select_text {
	flex-grow: 1;
}

.select_arrow {
	width: 8px;
	height: 8px;
	padding-left: 2.5px;

	transform: rotate(90deg);
}

/* Робочий випадаючий список із контейнерів: .select.live (одиночний вибір із пошуком) і .select.live.multi (мультисписок) */
.select.live {
	display: block;
	position: relative;

	padding: 0;
}

.select.live.error {
	box-shadow: var(--shadow_input), 0 0 0 1px var(--pink);
}

.select_head {
	display: flex;
	align-items: center;
	gap: 10px;

	padding: 13px 20px 14px;
}

.select_text.empty {
	color: var(--mid_gray);
}

.select_text.hide {
	display: none;
}

.select_tags {
	flex-grow: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.select_tags.hide {
	display: none;
}

.select_tag {
	display: flex;
	align-items: center;
	gap: 6px;

	max-width: 100%;
	padding: 3px 8px 4px 10px;
	font-size: var(--note);
	line-height: normal;
	background-color: var(--gray);
	border-radius: 8px;
	box-shadow: var(--shadow_tile);
}

.select_tag_name {
	overflow: hidden;

	text-overflow: ellipsis;
	white-space: nowrap;
}

.select_tag_x {
	color: var(--mid_gray);
	font-size: var(--h5);
	line-height: 14px;
	cursor: pointer;
}

.select_tag_x:hover {
	color: var(--text);
}

.select_arrow.open {
	transform: rotate(-90deg);
}

.select_ul {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;

	padding: 8px;
	background-color: var(--gray);
	border-radius: 12px;
	box-shadow: var(--shadow_tile), 0 8px 24px rgba(0, 0, 0, .4);
	cursor: default;
	z-index: 5;
}

.select_ul.open {
	display: block;
}

.select_ul.up {
	top: auto;
	bottom: calc(100% + 6px);
}

.select_find_box {
	padding-bottom: 8px;
}

.select_find {
	display: block;

	width: 100%;
	padding: 10px 14px 11px;
	color: var(--text);
	font-size: var(--h5);
	font-weight: 700;
	font-family: inherit;
	line-height: normal;
	background-color: var(--black);
	border: 0;
	border-radius: 8px;
	box-shadow: var(--shadow_input);
	outline: none;
}

.select_find::placeholder {
	color: var(--mid_gray);
	opacity: 1;
}

.select_list {
	overflow-y: auto;

	max-height: 200px;
}

.select_li {
	display: flex;
	align-items: center;
	gap: 10px;

	padding: 9px 12px;
	line-height: normal;
	border-radius: 8px;
	cursor: pointer;
}

.select_li:hover {
	background-color: var(--dark_gray);
}

.select_li.active {
	color: var(--light_corp);
}

.select_li.check:before {
	content: '';
	display: block;

	width: 16px;
	min-width: 16px;
	height: 16px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 10px;
	border: 2px solid var(--mid_gray);
	border-radius: 4px;
}

.select_li.check.active:before {
	background-color: var(--corp);
	background-image: url(img/check.svg);
	border-color: var(--corp);
}

.select_li_info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;

	width: 0;
}

.select_li_name {
	overflow: hidden;

	text-overflow: ellipsis;
	white-space: nowrap;
}

.select_li_sub {
	overflow: hidden;

	text-overflow: ellipsis;
	white-space: nowrap;
}

.select_empty {
	padding: 9px 12px;
	color: var(--mid_gray);
	font-weight: 400;
	line-height: normal;
}

.admin_pic {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.admin_pic.small {
	width: 20px;
	min-width: 20px;
	height: 20px;
}

.select_pic {
	width: 24px;
	min-width: 24px;
	height: 24px;
}

.select_pic.hide {
	display: none;
}

.select_pic.round {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 100px;
}

.select_pic.round.empty {
	background-color: var(--gray);
	background-image: url(img/avatar_empty.svg);
	background-size: 55%;
}

.select_list.grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.select_li.pic {
	justify-content: center;

	width: 44px;
	height: 44px;
	padding: 4px;
}

.select_li.pic.active {
	background-color: var(--dark_gray);
	box-shadow: 0 0 0 2px var(--corp);
}

.select_li_pic {
	width: 36px;
	height: 36px;
}

.select_li_logo {
	width: 36px;
	min-width: 36px;
	height: 36px;
	background-image: url(img/avatar.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 8px;
	box-shadow: var(--shadow_button);
}

.select_li_logo.round {
	width: 28px;
	min-width: 28px;
	height: 28px;
	border-radius: 100px;
}

.select_li_logo.round.empty {
	background-color: var(--gray);
	background-image: url(img/avatar_empty.svg);
	background-size: 55%;
}

/* Меню з трьох крапок у картці: Редагувати, Архівувати */
.card_menu {
	position: relative;
}

.select_ul.menu {
	left: auto;

	min-width: 190px;
	padding: 6px;
}

/* Підтвердження небезпечних дій: затемнення на весь екран і вікно по центру */
.confirm {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	padding: var(--gap);
	background-color: rgba(0, 0, 0, .6);
	z-index: 30;
}

.confirm.active {
	display: flex;
}

.confirm_box {
	display: flex;
	flex-direction: column;
	gap: 16px;

	width: 420px;
	max-width: 100%;
	padding: 24px;
}

.confirm_text {
	color: var(--mid_gray);
	font-weight: 400;
	line-height: 1.6;
}

.confirm_buttons {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.button.danger {
	color: var(--white);
	background-color: var(--pink);
	background-image: none;
}

/* Кнопка зі списком, що випадає (вибір каналів у формі адміна): обрані значення показуються нижче картками */
.picker {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;

	width: 100%;
}

.card_cross {
	width: 12px;
	height: 12px;

	transform: rotate(45deg);
}

/* global */



/* header */

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;

	margin: var(--gap);
	padding: 12px 32px;
}

.header_left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header_burger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;

	width: 32px;
	height: 32px;
	padding: 8px 0;
	cursor: pointer;
}

.header_burger_line {
	width: 32px;
	height: 1.6px;
	background-color: var(--mid_gray);
	border-radius: 2px;
}

.header_logo {

}

.header_right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.header_bell {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;
	background-color: var(--gray);
	border-radius: 100px;
}

.header_user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.header_avatar {
	width: 44px;
	min-width: 44px;
	height: 44px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 100px;
	box-shadow: var(--shadow_button);
}

.header_avatar.empty {
	background-color: var(--gray);
	background-image: url(img/avatar_empty.svg);
	background-size: 55%;
}

.header_name {
	color: var(--white);
}

/* header */



/* layout */

.layout {
	display: flex;
	gap: var(--gap);

	padding: 0 var(--gap) var(--gap);
}

.content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: var(--gap);

	width: 0;
}

/* layout */



/* sidebar */

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 8px;

	width: 320px;
	min-height: 660px;
	padding: 28px;
}

.sidebar_item {
	display: flex;
	align-items: center;
	gap: 12px;

	padding: 12px 20px 12px 16px;
	background-color: var(--gray);
	border-radius: 100px;
}

.sidebar_item.last {
	margin-top: auto;
}

.sidebar_name {
	flex-grow: 1;
}

.sidebar_count {
	color: var(--orange);
}

.sidebar_line {
	height: 1px;
	margin: 12px;
	background-color: var(--gray);
}

/* sidebar */



/* channel */

.channel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;

	padding: 20px;
}

.channel_head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.channel_mark {
	width: 8px;
	height: 24px;
	background-color: var(--purple);
	border-radius: 4px;
}

.channel_name {

}

.channel_table {
	display: flex;
	flex-direction: column;
	gap: 8px;

	width: 100%;
}

.channel_row {
	display: flex;
	gap: 8px;
}

.channel_cell {
	flex-grow: 1;
	display: flex;
	align-items: center;
	overflow: hidden;

	width: 0;
	height: 28px;
	padding: 0 14px;
	color: var(--white);
	font-size: var(--caps);
	text-transform: uppercase;
	line-height: 16px;
	white-space: nowrap;
	background-color: var(--gray);
	border-radius: 8px;
}

.channel_cell.date {
	flex-grow: 0;
	gap: 8px;

	width: 190px;
	min-width: 190px;
	padding: 0 20px 0 12px;
}

.channel_cell.add {
	justify-content: center;

	cursor: pointer;
}

.channel_cell.add:hover,
.channel_cell.slot:hover {
	background-color: var(--tile_light);
}

.channel_cell.slot {
	gap: 8px;

	padding: 0 12px 0 8px;
	color: var(--text);
	cursor: pointer;
}

.channel_cell.dim {
	opacity: .4;
}

.channel_cell.head {
	justify-content: center;

	height: auto;
	padding: 0;
	color: var(--mid_gray);
	background-color: transparent;
}

.channel_cell.small {
	flex-grow: 0;
	gap: 8px;

	width: 100px;
	padding: 0 20px 0 8px;
}

.channel_cell.small.long {
	width: 120px;
}

.channel_cell.name {
	flex-grow: 0;

	width: 105px;
	color: var(--text);
}

.channel_cell.wide {
	gap: 8px;

	padding: 0 20px 0 8px;
}

.channel_cell.buyer {
	flex-grow: 0;
	gap: 8px;

	width: 150px;
	padding: 0 12px 0 8px;
	color: var(--text);
}

.channel_cell.buyer[data-action] {
	cursor: pointer;
}

.channel_cell.buyer[data-action]:hover {
	background-color: var(--tile_light);
}

.channel_cell_text {
	overflow: hidden;

	text-overflow: ellipsis;
}

.channel_icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 16px;
	height: 16px;
}

.channel_user {
	width: 28px;
	min-width: 28px;
	height: 28px;
	background-image: url(img/avatar.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 100px;
	box-shadow: var(--shadow_button);
}

.channel_user.empty {
	background-color: var(--gray);
	background-image: url(img/avatar_empty.svg);
	background-size: 55%;
}

.channel_status {
	padding: 6px 16px;
	color: var(--dark_gray);
	white-space: nowrap;
	background-color: var(--done);
	border-radius: 8px;
}

.channel_status.fixed {
	width: 100px;
	padding: 6px 0;
	text-align: center;
}

.channel_status.new {
	background-color: var(--orange);
}

.channel_status.cancel {
	color: var(--text);
	background-color: var(--mid_gray);
}

.channel_cell.dark {
	background-color: var(--dark_gray);
}

.channel_cell.logo {
	gap: 8px;

	padding: 0 20px 0 2px;
	color: var(--text);
}

.channel_logo {
	width: 24px;
	height: 24px;
	background-image: url(img/avatar.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border: 1px solid var(--mid_gray);
	border-radius: 8px;
}

.channel_logo.round {
	border-radius: 100px;
}

/* channel */



/* profile */

.profile {
	display: flex;
	align-items: center;
	gap: 16px;

	padding: 20px;
}

.profile_logo {
	width: 80px;
	min-width: 80px;
	height: 80px;
	background-image: url(img/avatar.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 8px;
	box-shadow: var(--shadow_button);
}

.profile_logo.pictogram {
	background-size: contain;
	border-radius: 0;
	box-shadow: none;
}

.profile_info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.profile_name {

}

.profile_link {
	color: var(--mid_gray);
	line-height: normal;
}

/* profile */



/* pane */

.pane {
	display: none;
	flex-direction: column;
	gap: var(--gap);
}

.pane.active {
	display: flex;
}

/* pane */



/* tabs */

.tabs_row {
	display: flex;
	justify-content: space-between;
}

.tabs {
	display: flex;
	gap: 4px;

	padding: 4px;
	border-radius: 100px;
}

.tab {
	padding: 9px 32px 10px;
	color: var(--text);
	white-space: nowrap;
	border-radius: 4px;
	cursor: pointer;
}

.tab.active {
	color: var(--light_corp);
	background-image: linear-gradient(96deg, var(--corp_start) 0%, var(--corp_end) 100%);
	border-radius: 100px;
	box-shadow: var(--shadow_button);
}

.tab.white {
	color: var(--white);
}

/* tabs */



/* finance */

.finance {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;

	padding: 20px;
}

.finance_date {
	display: flex;
	align-items: center;
	gap: 10px;

	padding: 13px 20px 14px;
	line-height: normal;
	background-color: var(--black);
	border-radius: 12px;
	box-shadow: var(--shadow_input);
	cursor: pointer;
}

.finance_input {
	width: 92px;
	padding: 0;
	color: var(--text);
	font-size: var(--h5);
	font-weight: 700;
	font-family: inherit;
	text-align: center;
	background-color: transparent;
	border: 0;
	outline: none;
	cursor: pointer;
}

.finance_dash {
	color: var(--mid_gray);
}

.finance_note {
	display: flex;
	align-items: center;

	min-width: 16px;
	margin-left: 8px;
}

.finance_arrow {
	width: 8px;
	height: 8px;
	padding-left: 2.5px;

	transform: rotate(90deg);
}

.finance_stats {
	display: flex;
	gap: 40px;

	width: 100%;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--gray);
}

.finance_stat {
	flex-grow: 1;

	width: 0;
}

.finance_value.plus {
	color: var(--green);
}

.finance_value.minus {
	color: var(--pink);
}

.finance_label {

}

.finance_table {
	display: flex;
	flex-direction: column;
	gap: 8px;

	width: 100%;
}

.finance_row {
	display: flex;
	gap: 8px;
}

.finance_cell {
	flex-grow: 1;
	display: flex;
	align-items: center;
	overflow: hidden;

	width: 0;
	height: 28px;
	padding: 0 14px;
	color: var(--text);
	font-size: var(--caps);
	text-transform: uppercase;
	line-height: 16px;
	white-space: nowrap;
	background-color: var(--gray);
	border-radius: 8px;
}

.finance_cell.date {
	flex-grow: 0;
	gap: 8px;

	width: 160px;
	padding: 0 20px 0 8px;
	color: var(--white);
}

.finance_cell.sum {
	flex-grow: 0;
	gap: 8px;

	width: 100px;
	padding: 0 20px 0 8px;
	color: var(--white);
}

.finance_buttons {
	display: flex;
	gap: 12px;
}

/* finance */



/* post */

.post {
	display: flex;
	flex-direction: column;
	gap: 8px;

	width: 100%;
	padding: 8px;
	background-color: var(--gray);
	border-radius: 20px;
}

.post_channels {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.post_channel {
	display: flex;
	align-items: center;
	gap: 10px;

	line-height: normal;
	white-space: nowrap;
}

.post_buttons {
	display: flex;
	gap: 8px;
}

.post_action {
	position: relative;
}

.post_popover {
	display: none;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;

	width: 320px;
	max-width: calc(100vw - 64px);
	padding: 12px;
	background-color: var(--dark_gray);
	border-radius: 12px;
	box-shadow: var(--shadow_tile), 0 8px 24px rgba(0, 0, 0, .4);
	z-index: 6;
}

.post_popover.open {
	display: flex;
}

.post_date_input {
	position: absolute;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

/* post */



/* card */

.cards {
	display: flex;
	flex-direction: column;
	gap: 16px;

	padding: 20px;
}

.cards_title {

}

.cards_list {
	display: flex;
	flex-direction: column;
	gap: 8px;

	width: 100%;
}

.card {
	display: flex;
	align-items: center;
	gap: 16px;

	padding: 8px 20px 8px 8px;
	background-color: var(--gray);
	border-radius: 12px;
}

.card.plain {
	min-height: 76px;
	padding: 8px 20px;
}

.card_main {
	flex-grow: 1;
	display: flex;
	align-items: center;
	gap: 16px;

	width: 0;
}

.card_main:hover .card_name {
	color: var(--light_corp);
}

.card_logo {
	width: 60px;
	min-width: 60px;
	height: 60px;
	background-image: url(img/avatar.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 8px;
	box-shadow: var(--shadow_button);
}

.card_logo.pictogram {
	background-size: contain;
	box-shadow: none;
}

.card_note.with_pic {
	display: flex;
	align-items: center;
	gap: 6px;
}

.card_note_text {
	overflow: hidden;

	text-overflow: ellipsis;
}

.card_info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;

	width: 0;
}

.card_text {
	flex-grow: 1;

	text-align: center;
	line-height: normal;
}

.card_dim {
	color: var(--mid_gray);
}

.card_name {
	overflow: hidden;

	text-overflow: ellipsis;
	white-space: nowrap;
}

.card_note {
	white-space: nowrap;
}

.card_button {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 28px;
	height: 28px;
	background-image: linear-gradient(96deg, var(--button_start) 0%, var(--button_end) 100%);
	border-radius: 100px;
	box-shadow: var(--shadow_button);
	cursor: pointer;
}

/* card */



/* upload */

.upload {
	display: flex;
	align-items: center;
	gap: 16px;

	padding: 20px 36px 20px 20px;
}

.upload.drag {
	background-color: var(--gray);
	box-shadow: var(--shadow_tile), 0 0 0 2px var(--corp);
}

.upload.loading {
	pointer-events: none;
	opacity: .6;
}

.upload_logo {
	width: 80px;
	min-width: 80px;
	height: 80px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 100px;
	box-shadow: var(--shadow_button);
}

.upload_logo.empty {
	background-color: var(--gray);
	background-image: url(img/avatar_empty.svg);
	background-size: 45%;
}

.upload_info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.upload_text {
	color: var(--mid_gray);
	font-weight: 400;
	line-height: normal;
}

.upload_err {

}

.upload_buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.upload_remove.hide {
	display: none;
}

.upload_file {
	display: none;
}

.upload_hl {
	color: var(--text);
}

/* Зона завантаження аватарки каналу в висувному меню: квадрат із радіусом 8px, клік по ньому відкриває вибір файлу */
.upload.card {
	padding: 8px 20px 8px 8px;
}

.upload.error {
	box-shadow: var(--shadow_tile), 0 0 0 1px var(--pink);
}

.upload_logo.square {
	width: 60px;
	min-width: 60px;
	height: 60px;
	border-radius: 8px;
	cursor: pointer;
}

.upload_info.small {
	flex-basis: 0;

	min-width: 120px;
}

/* upload */



/* form */

.form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;

	padding: 20px;
}

.form_title {

}

.form_row {
	display: flex;
	gap: 20px;

	width: 100%;
}

.form_field {
	flex-grow: 1;
	flex-basis: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.form_label {
	line-height: normal;
}

.form_box {
	position: relative;
}

.form_input {
	display: block;

	width: 100%;
	padding: 13px 20px 14px;
	color: var(--text);
	font-size: var(--h5);
	font-weight: 700;
	font-family: inherit;
	line-height: normal;
	background-color: var(--black);
	border: 0;
	border-radius: 12px;
	box-shadow: var(--shadow_input);
	outline: none;
}

.form_input.area {
	height: 100px;
	resize: none;
}

.form_input.date {
	padding-right: 44px;
	cursor: pointer;
}

.form_date_icon {
	position: absolute;
	top: 50%;
	right: 20px;

	pointer-events: none;

	transform: translate3d(0, -50%, 0);
}

.form_input::placeholder {
	color: var(--mid_gray);
	opacity: 1;
}

.form_star {
	position: absolute;
	top: 8px;
	right: 8px;
}

.form_input.error {
	box-shadow: var(--shadow_input), 0 0 0 1px var(--pink);
}

.form_err {
	color: var(--pink);
	font-size: var(--note);
	font-weight: 400;
	line-height: 1.6;
}

.form_err:empty {
	display: none;
}

.form_ok {
	color: var(--green);
	font-size: var(--note);
	font-weight: 400;
	line-height: 1.6;
}

.form_ok:empty {
	display: none;
}

.form_row.half {
	flex-grow: 1;
	flex-basis: 0;
}

.form_field.full {
	flex-grow: 0;
	flex-basis: auto;

	width: 100%;
}

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

.form_footer {
	display: flex;
	justify-content: space-between;

	width: 100%;
}

/* form */



/* drawer */

.drawer {
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow-y: auto;
	visibility: hidden;
	position: fixed;
	top: 12px;
	left: 12px;

	width: 440px;
	max-height: calc(100% - 24px);
	padding: 20px;
	z-index: 10;

	transform: translate3d(-460px, 0, 0);
	transition: transform .23s ease-out, visibility .23s linear;
}

.drawer.active {
	visibility: visible;

	transform: translate3d(0, 0, 0);
}

/* Права панель (фільтри) виїжджає справа */
.drawer.right {
	left: auto;
	right: 12px;

	transform: translate3d(460px, 0, 0);
}

.drawer.right.active {
	transform: translate3d(0, 0, 0);
}

.drawer_head {
	display: flex;
	align-items: center;
	justify-content: space-between;

	width: 100%;
}

.drawer_title {

}

.drawer_close {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 38.6px;
	height: 38.6px;
	background-image: linear-gradient(96deg, var(--button_start) 0%, var(--button_end) 100%);
	border-radius: 100px;
	box-shadow: var(--shadow_button);
	cursor: pointer;
}

.drawer_cross {
	transform: rotate(45deg);
}

/* drawer */



/* filter */

/* Смуга фільтра під шапкою: кнопка, чіпи активних значень і скидання */
.filter_bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.filter_chip {
	display: flex;
	align-items: center;
	gap: 8px;

	max-width: 100%;
	padding: 8px 14px 9px;
	color: var(--light_corp);
	font-size: var(--note);
	line-height: normal;
	background-color: var(--dark_gray);
	border-radius: 100px;
	box-shadow: var(--shadow_tile), 0 0 0 1px var(--corp);
	cursor: pointer;
}

.filter_chip_text {
	overflow: hidden;

	text-overflow: ellipsis;
	white-space: nowrap;
}

.filter_chip_x {
	color: var(--mid_gray);
	font-size: var(--h5);
	line-height: 14px;
	transition: color .2s ease-out;
}

.filter_chip:hover .filter_chip_x {
	color: var(--pink);
}

/* filter */



/* toast */

.toast {
	visibility: hidden;
	position: fixed;
	left: 50%;
	bottom: 24px;

	padding: 14px 24px;
	line-height: normal;
	background-color: var(--gray);
	border-radius: 12px;
	box-shadow: var(--shadow_tile), 0 8px 24px rgba(0, 0, 0, .4);
	opacity: 0;
	z-index: 40;

	transform: translate3d(-50%, 12px, 0);
	transition: opacity .23s ease-out, visibility .23s linear, transform .23s ease-out;
}

.toast.active {
	visibility: visible;

	opacity: 1;

	transform: translate3d(-50%, 0, 0);
}

/* toast */



/* datepicker */

/* Календар jQuery UI: назви класів задає бібліотека (з дефісами), стилі її власної теми не підключаємо */
.ui-datepicker {
	display: none;

	width: 280px;
	padding: 12px;
	background-color: var(--gray);
	border-radius: 12px;
	box-shadow: var(--shadow_tile), 0 8px 24px rgba(0, 0, 0, .4);
}

.ui-datepicker-header {
	position: relative;

	padding: 2px 0 8px;
}

.ui-datepicker-prev,
.ui-datepicker-next {
	position: absolute;
	top: 0;

	width: 28px;
	height: 28px;
	background-color: var(--dark_gray);
	background-image: url(img/arrow_down.svg);
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 100px;
	box-shadow: var(--shadow_button);
	cursor: pointer;
}

.ui-datepicker-prev {
	left: 0;

	transform: rotate(180deg);
}

.ui-datepicker-next {
	right: 0;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
	display: none;
}

.ui-datepicker-title {
	line-height: 28px;
	font-weight: 700;
	text-align: center;
}

.ui-datepicker-calendar {
	width: 100%;

	table-layout: fixed;
	border-collapse: collapse;
}

.ui-datepicker-calendar th {
	padding: 6px 0;
	color: var(--mid_gray);
	font-size: var(--note);
	font-weight: 400;
	text-align: center;
}

.ui-datepicker-calendar td {
	padding: 2px;
}

.ui-state-default {
	display: block;

	padding: 7px 0 8px;
	color: var(--text);
	font-size: var(--note);
	line-height: normal;
	text-align: center;
	text-decoration: none;
	border-radius: 8px;
	cursor: pointer;
}

.ui-state-default:hover {
	background-color: var(--dark_gray);
}

.ui-priority-secondary {
	color: var(--mid_gray);
}

.ui-state-highlight {
	box-shadow: 0 0 0 1px var(--corp);
}

.ui-state-active,
.ui-state-active:hover {
	color: var(--white);
	background-color: var(--corp);
}

/* datepicker */



/* login */

.login {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 40px;

	padding: 80px;
}

.login_title {
	text-align: center;
}

.login_card {
	display: flex;
	flex-direction: column;
	gap: 20px;

	width: 360px;
	padding: 40px;
}

.login_fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* login */



/* admin_card */

/* Віконце адміна біля комірки в таблиці: піктограма, імʼя, посилання, нотатка й кнопки */
.admin_card {
	display: none;
	flex-direction: column;
	gap: 12px;
	position: fixed;
	top: 0;
	left: 0;

	width: 320px;
	max-width: calc(100vw - 24px);
	padding: 16px;
	background-color: var(--gray);
	border-radius: 12px;
	box-shadow: var(--shadow_tile), 0 8px 24px rgba(0, 0, 0, .4);
	z-index: 20;
}

.admin_card.open {
	display: flex;
}

.admin_card_head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.admin_card_pic {
	width: 48px;
	min-width: 48px;
	height: 48px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.admin_card_info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;

	width: 0;
}

.admin_card_name {
	overflow: hidden;

	font-size: var(--h5);
	font-weight: 700;
	line-height: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.admin_card_link {
	overflow: hidden;

	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color .2s ease-out;
}

.admin_card_link:hover {
	color: var(--light_corp);
}

.admin_card_note {
	max-height: 96px;
	overflow-y: auto;
	word-break: break-word;
}

.admin_card_buttons {
	display: flex;
	gap: 8px;
}

/* admin_card */



/* hover */

/* Наведення, фокус і плавні переходи для інтерактивних елементів: кольори й рамки змінюються плавно, кнопки трохи підіймаються, списки з'являються з легким зсувом */
.button {
	transition: filter .2s ease-out, transform .2s ease-out;
}

.button:hover {
	filter: brightness(1.15);

	transform: translate3d(0, -1px, 0);
}

.button:active {
	filter: brightness(.95);

	transform: translate3d(0, 0, 0);
}

.tab {
	transition: color .2s ease-out, background-color .2s ease-out, border-radius .2s ease-out;
}

.tab:hover {
	background-color: var(--gray);
	border-radius: 100px;
}

.sidebar_item {
	transition: background-color .2s ease-out;
}

.sidebar_item:hover {
	background-color: var(--tile_light);
}

.header_burger,
.header_avatar {
	transition: opacity .2s ease-out, filter .2s ease-out;
}

.header_burger:hover {
	opacity: .7;
}

.header_avatar:hover {
	filter: brightness(1.15);
}

.header_bell,
.card_button,
.drawer_close,
.ui-datepicker-prev,
.ui-datepicker-next,
.upload_logo {
	transition: filter .2s ease-out;
}

.header_bell:hover,
.card_button:hover,
.drawer_close:hover,
.ui-datepicker-prev:hover,
.ui-datepicker-next:hover,
.upload_logo:hover {
	filter: brightness(1.3);
}

.drawer_cross,
.card_cross {
	transition: transform .23s ease-out;
}

.drawer_close:hover .drawer_cross,
.card_button:hover .card_cross {
	transform: rotate(135deg);
}

.card {
	transition: background-color .2s ease-out;
}

.card:hover {
	background-color: var(--tile_light);
}

.card_name {
	transition: color .2s ease-out;
}

.channel_cell {
	transition: background-color .2s ease-out, opacity .2s ease-out;
}

.channel_cell.logo:hover {
	background-color: var(--tile_light);
}

.select,
.finance_date,
.form_input,
.select_find {
	transition: box-shadow .2s ease-out;
}

.select:hover,
.finance_date:hover,
.form_input:hover {
	box-shadow: var(--shadow_input), 0 0 0 1px var(--mid_gray);
}

.select.live.open,
.form_input:focus,
.select_find:focus {
	box-shadow: var(--shadow_input), 0 0 0 1px var(--corp);
}

.select.live.error:hover,
.form_input.error:hover,
.form_input.error:focus {
	box-shadow: var(--shadow_input), 0 0 0 1px var(--pink);
}

.select_arrow {
	transition: transform .2s ease-out;
}

.select_li {
	transition: background-color .15s ease-out, color .15s ease-out;
}

.select_li.pic {
	transition: background-color .15s ease-out, box-shadow .15s ease-out;
}

.select_tag_x {
	transition: color .2s ease-out;
}

.ui-state-default {
	transition: background-color .15s ease-out, color .15s ease-out;
}

.select_ul.open,
.post_popover.open,
.admin_card.open {
	animation: select_show .15s ease-out;
}

.confirm.active {
	animation: confirm_show .2s ease-out;
}

.confirm_box {
	animation: confirm_box_show .2s ease-out;
}

@keyframes select_show {
	from {
		opacity: 0;

		transform: translate3d(0, -4px, 0);
	}

	to {
		opacity: 1;

		transform: translate3d(0, 0, 0);
	}
}

@keyframes confirm_show {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes confirm_box_show {
	from {
		transform: scale(.96);
	}

	to {
		transform: scale(1);
	}
}

/* hover */



@media only screen and (max-width: 1280px) {
	/* global */

	.shade.active {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;

		background-color: rgba(0, 0, 0, .4);
		z-index: 15;
	}

	/* global */



	/* sidebar */

	/* Сайдбар на ширині ≤1280 стає виїзним меню: у вузькій колонці контенту сітка бронювань не вміщається */
	.sidebar {
		overflow-y: auto;
		visibility: hidden;
		position: fixed;
		top: var(--gap);
		left: var(--gap);
		bottom: var(--gap);

		min-height: 0;
		z-index: 20;

		transform: translate3d(-340px, 0, 0);
		transition: transform .23s ease-out, visibility .23s linear;
	}

	.sidebar.active {
		visibility: visible;

		transform: translate3d(0, 0, 0);
	}

	/* sidebar */
}



@media only screen and (max-width: 1080px) {
	/* channel */

	.channel_cell {
		padding: 0 8px;
	}

	/* channel */
}



@media only screen and (max-width: 880px) {
	/* tabs */

	.tabs_row {
		flex-wrap: wrap;
		gap: 8px;
	}

	/* tabs */



	/* channel */

	.channel_table {
		overflow-x: auto;
	}

	.channel_row {
		min-width: 800px;
	}

	.channel_row.sales {
		min-width: 900px;
	}

	.channel_row.wrap {
		flex-wrap: wrap;

		min-width: 0;
	}

	.channel_cell.wide {
		min-width: 160px;
	}

	/* channel */
}



@media only screen and (max-width: 660px) {
	:root {
		--h2: 28px;
		--h3: 20px;
		--radius: 20px;
		--gap: 8px;
	}



	/* header */

	.header {
		padding: 12px 16px;
	}

	.header_right {
		gap: 12px;
	}

	/* header */



	/* global */

	.global_header {
		flex-wrap: wrap;
	}

	/* global */



	/* profile */

	.profile {
		flex-wrap: wrap;
	}

	.profile_info {
		min-width: 200px;
	}

	/* profile */



	/* finance */

	.finance_stats {
		flex-direction: column;
		gap: 12px;
	}

	.finance_stat {
		width: 100%;
	}

	.finance_row {
		flex-wrap: wrap;
	}

	.finance_cell {
		min-width: 160px;
	}

	.finance_cell.sum {
		min-width: 100px;
	}

	/* finance */



	/* upload */

	.upload {
		flex-wrap: wrap;

		padding: 20px;
	}

	/* upload */



	/* form */

	.form_row.stack {
		flex-direction: column;
	}

	/* form */



	/* login */

	.login {
		padding: 40px 20px;
	}

	.login_card {
		width: 100%;
		max-width: 360px;
		padding: 24px;
	}

	/* login */
}



@media only screen and (max-width: 480px) {
	/* header */

	.header {
		padding: 12px;
	}

	.header_name {
		display: none;
	}

	/* header */



	/* sidebar */

	.sidebar {
		width: calc(100% - 24px);
		max-width: 320px;
		padding: 20px;
	}

	/* sidebar */



	/* tabs */

	.tab {
		padding: 9px 20px 10px;
	}

	/* tabs */



	/* post */

	.post_buttons {
		flex-wrap: wrap;
	}

	/* post */



	/* form */

	.form_row {
		flex-direction: column;
	}

	.form_row.half {
		flex-direction: row;
	}

	/* form */



	/* drawer */

	.drawer {
		width: calc(100% - 24px);
		padding: 16px;
	}

	/* drawer */
}
