.quotes-page {
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 1.6rem;
}

.quotes-page .jq-selectbox__dropdown ul {
	max-height: 300px;
	overflow: auto;
}

.quotes-page,
.quotes-modal,
.quotes,
.modal-quotes-window,
.modal-quotes-window__footer {
	--color-accent: #418BCA;
}

.quotes-page__current {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.quotes-page__current__control {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 24px;
}

.quotes-page__current__other {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	align-items: center;
}

.quotes-page__header {
	margin-top: 43px;
	margin-bottom: -6px;
}

.quotes-page__subtitle {
	font-size: 2rem;
}

.quotes-page__domate {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 16px 20px;
	border: 1.5px solid #c9e2f7;
	border-radius: 5px;
	background-color: #f0f8ff;
}

.quotes-page__domate-text {
	font-size: 1.4rem;
	line-height: 1.4;
}

.quotes-page__domate-name {
	font-weight: 700;
	text-decoration: none;
}

.quotes-page__domate-name-du {
	color: #32b8c6;
}

.quotes-page__domate-name-mate {
	color: #275f97;
}

.quotes-page__domate .button {
	flex-shrink: 0;
	padding: 8px 24px;
	min-height: 40px;
	font-size: 1.4rem;
	white-space: nowrap;
}

.quotes {
	--gap: 24px;
}

.quotes__status {
	display: none;
	padding: 10px 20px;
	margin: 5px 0 5px 0;
}

.quotes__status.has-success {
	color: #3c763d;
	background-color: #dff0d8;
	border-left: 3px solid #3c763d;
	display: block;
}

.quotes__status.has-warning {
	color: #8a6d3b;
	background-color: #fcf8e3;
	border-left: 3px solid #8a6d3b;
	display: block;
}

.quotes__status.has-error {
	color: #b23838;
	background-color: #b2383840;
	border-left: 3px solid #b23838;
	display: block;
}

.quote__error {
	color: #b23838 !important;
	font-size: 14px;
	margin-top: -4px;
	display: none;
}

.quote__error.is-active {
	display: block;
}

.quote__count {
	font-size: 14px;
	color: #c4c4c4;
	text-align: right;
	margin-top: -4px;
	margin-bottom: 8px;
}

.quote__count.is-invalid {
	color: #b23838 !important;
}

.quote__count span {
	color: inherit !important;
}

.quote__count__max::before {
	content: " / ";
}

:is(#edit-quotation-modal, #edit-quotation-book-modal) .quotes__error {
	margin-bottom: 12px;
	font-size: 1.4rem;
}

.quotes.is-loading::after {
	content: "";
	display: block;
	margin: 24px auto;
	width: 56px;
	height: 56px;
	background-image: url(/img/svg/spinner_b.svg);
	background-size: contain;
}

.quotes.is-loading :is(.quotes__item, .quotation-manage) {
	display: none;
}

.quotation-info > .quotation-intro {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.quotation-intro__tip {
	display: flex;
	align-items: center;
	gap: 12px;
}

.quotation-intro__tip::before {
	content: "";
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url(/img/reader2/icons/quote4.svg);
}

.quotation-intro__link a {
	color: var(--color-accent);
}

.quotation-info > .quotation-manage {
	display: none;
}

.quotation-info.has-items > .quotation-intro {
	display: none;
}

.quotation-info.has-items > .quotation-manage {
	display: block;
	text-align: right;
}

.quotes__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	padding-top: var(--gap);
	padding-bottom: var(--gap);
	font-size: 13px;
	overflow-wrap: break-word;
}

.quotes__item:not(:first-child) {
	border-top: 1px solid #c0c0c0;
}

.quotes--full .quotes__item {
	padding-left: var(--gap);
	padding-right: var(--gap);
	border-left: 1.5px solid #c9e2f7;
	border-right: 1.5px solid #c9e2f7;
	border-top: 1.5px solid #c9e2f7;
}

.quotes--full .quotes__item:not(:has(+ .quotes__item)) {
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	border-bottom: 1.5px solid #c9e2f7;
}

.quotes--full .quotes__item:not(.quotes__item + .quotes__item) {
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

.quotes__item__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

@media (max-width: 768px) {
	.quotes__item__footer {
		flex-direction: column;
		gap: 8px;
	}
}

.quotes-page .quotes__item {
	font-size: 1.3rem;
}

.quotes__item.is-copied::after {
	content: "";
	position: absolute;
	inset: 12px -8px;
	box-shadow: 0 0 7px 3px rgb(65 139 202 / 0.5);
	pointer-events: none;
	opacity: 0;
	border-radius: 5px;
	animation: copy-highlight 1s ease 1 forwards alternate;
}

.quotes--full .quotes__item__text {
	display: flex;
	gap: 12px;
}

.quotes--full .quotes__item__text::before {
	content: "";
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-image: url(/img/reader2/icons/quote4.svg);
	mask-image: url(/img/reader2/icons/quote4.svg);
	background-color: currentColor;
}

@media (max-width: 768px) {
	.quotes--full .quotes__item__text::before {
		display: none;
	}
}

.quotes__item__text__head,
.quotes__item__text__tail {
	font: inherit;
}

.quotes__item__text__tail:not(:has(+ .quotes__item__text__toggler.is-active)) {
	display: none;
}

.quotes__item__text__toggler::before {
	content: " ";
}

.quotes__item__text__toggler::after {
	content: "\2022\2022\2022";
	width: 24px;
	height: 12px;
	background: #d2e7f9;
	display: inline-flex;
	color: #377cb5;
	align-items: center;
	justify-content: center;
	vertical-align: text-bottom;
	border-radius: 4px;
	font-weight: 300;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	cursor: pointer;
}

:is(.theme1, .theme2, .theme3, .theme4, .theme5) .quotes__item__text__toggler::after {
	background-color: #0000;
	border-width: 1px;
	border-style: solid;
}

.quotes__item__text__toggler.is-active {
	display: none;
}

.quotes__item__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px
}

.quotes__item__title {
	font-size: 18px
}

.quotes-page .quotes__item__title {
	font-size: 1.8rem;
}

.quotes__item__datetime {
	color: var(--color-accent);
	display: flex;
	gap: 12px;
}

@media (max-width: 768px) {
	.quotes__item__datetime {
		flex-direction: column;
		gap: 6px;
	}
}

.quotes__item__datetime__date,
.quotes__item__datetime__time {
	display: flex;
	align-items: center;
	gap: 6px;
}

.quotes__item__datetime__date {
	color: #f58220;
}

.quotes-page__current__actions,
.quotes__item__actions {
	display: flex;
	gap: 4px;
}

.quotes-page__current__action,
.quotes__item__action {
	position: relative;
	display: flex;
	border: none;
	outline: none;
	background: none;
	cursor: pointer;
	padding: 0;
}

:is(.quotes-page__current__action, .quotes__item__action) :is(.quotes-page__current__action__tip) {
	position: absolute;
	background-color: #377cb5;
	color: #fff;
	font-size: 12px;
	padding: 2px 7px;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
	opacity: 0;
	line-height: 1;
	font-weight: 400;
}

:is(.quotes-page__current__action, .quotes__item__action) :is(.quotes-page__current__action__tip)::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 10px;
	height: 10px;
	clip-path: polygon(50% 50%, 0 0, 100% 0);
	background-color: inherit;
}

:is(.quotes-page__current__action, .quotes__item__action):hover :is(.quotes-page__current__action__tip) {
	opacity: 1;
}

:is(.quotes-page__current__action, .quotes__item__action) svg {
	height: 24px;
	width: 24px;
	fill: var(--color-accent);
}

.quotes-page :is(.quotes-page__current__action, .quotes__item__action) svg {
	height: 2.4rem;
	width: 2.4rem;
}

:root:not(.withAccess) :is(.quotes__item__action, .quotes-page__current__action):hover svg {
	fill: #f58220;
}

:root.withAccess :is(.quotes__item__action, .quotes-page__current__action) svg {
	fill: currentColor;
}

:root.withAccess :is(.quotes__item__action, .quotes-page__current__action):hover {
	outline: 0.2rem solid currentColor;
}

.quotes__item__record__opener {
	padding: 0;
	border: none;
	outline: none;
	background: none;
	cursor: pointer;
	color: var(--color-accent)
}

.quotes__item__record__opener:hover {
	text-decoration: underline
}

.quotes__item__record__opener:not(.is-active) ~ .quotes__item__record__text {
	display: none
}

.quotes__item__record__opener.is-active {
	display: none
}

.quotes__item__record__text {
	font-size: 12px;
	color: #B2B2B2;
}

.quotes-page .quotes__item__record__text {
	font-size: 1.2rem;
}

.quotes-select {
	position: relative;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.quotes-select::after {
	content: "";
	position: absolute;
	-webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMSIgaGVpZ2h0PSI2IiBmaWxsPSJub25lIj48ZGVmcy8+PHBhdGggc3Ryb2tlPSIjNDE4QkNBIiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTEwIDEuNUw1LjUgNSAxIDEuNSIvPjwvc3ZnPg==);
	mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMSIgaGVpZ2h0PSI2IiBmaWxsPSJub25lIj48ZGVmcy8+PHBhdGggc3Ryb2tlPSIjNDE4QkNBIiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTEwIDEuNUw1LjUgNSAxIDEuNSIvPjwvc3ZnPg==);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	background-color: rgb(55, 124, 181);
	right: 15px;
	width: 11px;
	height: 11px;
	pointer-events: none;
}

.quotes-select__select {
	appearance: none;
}

:root.withAccess .quotes-select::after {
	background-color: currentColor;
}

.quotes-select__select,
:is(input, textarea).modal-quotes-window__input,
.modal-quotes-window__select {
	color: #000;
	border: 1px solid #c4c4c4;
	border-radius: 3px;
	transition-property: border-color;
	transition-timing-function: ease;
	transition-duration: .3s;
	background-color: #fff;
	padding: 6px 12px;
	font-size: 16px;
	font-style: normal;
	line-height: 120%;
	font-family: inherit;
	width: 100%;
	outline: none;
	flex-grow: 1
}

.quotes-page :is(.quotes-select__select, .modal-quotes-window__input, .modal-quotes-window__select) {
	font-size: 1.6rem;
}

.modal-quotes-window__input:is(input, textarea):-moz-read-only {
	background-color: #f0f8ff
}

.modal-quotes-window__input:is(input, textarea):read-only {
	background-color: #f0f8ff
}

.modal-quotes-window__button,
.modal-quotes-window__textbutton,
.quotes-page__current__textbutton,
.quotes__item__link,
.quotes__item__text__toggler {
	padding: 0;
	border: none;
	outline: none;
	background-color: unset;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
}

.quotes-page :is(.modal-quotes-window__button, .modal-quotes-window__textbutton, .quotes-page__current__textbutton, .quotes__item__link, .quotes__item__text__toggler) {
	font-size: 1.4rem;
}

.modal-quotes-window {
	display: flex;
	flex-direction: column;
	gap: 16px
}

.modal-quotes-window__title {
	font-size: 22px;
	font-style: normal;
	line-height: 120%;
	font-family: inherit
}

.quotes-page .modal-quotes-window__title {
	font-size: 2.2rem;
}

.quotes-select__select,
.modal-quotes-window__select,
.modal-quotes-window__input {
	height: 40px;
}

.quotes-page :is(.quotes-select__select, .modal-quotes-window__select, .modal-quotes-window__input) {
	height: 4rem;
}

.modal-quotes-window__input:is(textarea) {
	min-height: 120px;
	resize: vertical
}

.modal-quotes-window__input.modal-quotes-window__input--high:is(textarea) {
	min-height: 300px;
}

.modal-quotes-window__controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap-reverse;
	gap: 12px
}

.quotes-page__current__textbutton,
.modal-quotes-window__textbutton,
.quotes__item__link,
.quotes__item__text__toggler {
	color: var(--color-accent);
	text-decoration: none
}

.quotes__item__link {
	display: flex;
	align-items: center;
	gap: 6px;
}

.modal-quotes-window__textbutton--toggler {
	display: flex;
	align-items: center;
	gap: 4px
}

.modal-quotes-window__textbutton--toggler.is-active::after {
	transform: scaleY(-1)
}

.modal-quotes-window__textbutton--toggler::after {
	content: "";
	width: 24px;
	height: 24px;
	background-size: 28px;
	background-position: center;
	background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzM0N2FiNyIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiPjxkZWZzLz48cGF0aCBkPSJNNDgwLTM1Ny44NUwyNTMuODUtNTg0IDI5Ni02MjYuMTVsMTg0IDE4NCAxODQtMTg0TDcwNi4xNS01ODQgNDgwLTM1Ny44NXoiLz48L3N2Zz4=)
}

.modal-quotes-window__button {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 15px;
	background-color: var(--color-accent);
	color: #fff;
	border-radius: 3px;
	transition: .3s ease opacity
}

.modal-quotes-window__button:hover {
	opacity: .8
}

.modal-quotes-window__formgroup {
	display: flex;
	gap: 12px
}

.modal-quotes-window__formgroup:not(.is-active) {
	display: none
}

.modal-quotes-window__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	flex-wrap: wrap
}

#modal-quotes-window .window-modal-popup {
	width: 600px;
	max-width: calc(100vw - 48px)
}

@keyframes copy-highlight {
	0% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.quotes-page .book-labels__item {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: lowercase;
	border: none;
	color: #fff;
	padding: 5px 7px;
	margin-right: 6px;
	margin-top: 6px;
}