@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

.rs-widget-host {
	margin: 0;
	font-family: 'Nunito', system-ui, sans-serif;
	background: #f7f7fb;
	color: #2c3340;
}

.rs-widget-host .page {
	max-width: 1120px;
	margin: 24px auto;
	padding: 0 16px;
}

.rs-widget-host .auth-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999;
}

.rs-widget-host .auth-spinner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: #2c3340;
	font-weight: 600;
}

.rs-widget-host .spinner-circle {
	width: 56px;
	height: 56px;
	border: 6px solid #d8dcf0;
	border-top-color: #6c3ff5;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.rs-widget-host .spinner-text {
	font-size: 14px;
}

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

/* header */

.rs-widget-host .page-header h1 {
	margin: 0 0 24px 0;
	font-size: 20px;
	font-weight: 600;
	color: #364161;
}

/* filter sor */

.rs-widget-host .filters {
	display: flex;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.rs-widget-host .filter-group {
	min-width: 140px;
	display: flex;
	flex-direction: column;
	position: relative;
	flex: 1;
	min-width: 160px;
}

.rs-widget-host .multi-dropdown {
	position: relative;
}

.rs-widget-host .multi-display {
	border: none;
	border-bottom: 1px solid #c7ccd8;
	border-radius: 0px;
	padding: 8px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	background: transparent;
	gap: 8px;
}

.rs-widget-host .multi-display span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.rs-widget-host .dropdown-arrow {
	font-size: 12px;
	color: #7d8399;
	flex-shrink: 0;
}

.rs-widget-host .multi-panel {
	position: fixed;
	background: #fff;
	border: 1px solid #e0e3f0;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(48, 55, 100, 0.12);
	display: none;
	flex-direction: column;
	gap: 8px;
	z-index: 50;
	padding: 8px;
	min-width: 200px;
}

.rs-widget-host .multi-panel.show {
	display: flex;
}

.rs-widget-host .multi-search {
	border: 1px solid #d5d9e5;
	border-radius: 6px;
	padding: 6px 8px;
	font-size: 14px;
}

.rs-widget-host .multi-options {
	font-weight: normal;
	max-height: 180px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rs-widget-host .multi-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 6px;
	border-radius: 6px;
	cursor: pointer;
}

.rs-widget-host .multi-option:hover {
	background: #f4f5fb;
}

.rs-widget-host .multi-option.selected {
	background: #ede7ff;
}

.rs-widget-host .multi-option input[type='checkbox'] {
	width: 14px;
	height: 14px;
}

.rs-widget-host .school-option {
	gap: 0;
	padding: 6px 8px;
}

.rs-widget-host .school-option span {
	display: block;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rs-widget-host .school-option.selected {
	background: #eef2ff;
}

.rs-widget-host .filter-group.disabled {
	opacity: 0.6;
	pointer-events: none;
}

.rs-widget-host .filter-label {
	display: block;
	font-size: 12px;
	color: #a0a7b8;
	margin-bottom: 8px;
}

.rs-widget-host .date-range {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 6px;
	border-bottom: 1px dotted #c9ceda;
}

.rs-widget-host .date-range input[type='date'] {
	border: none;
	background: transparent;
	font-size: 14px;
	color: #5b6475;
	outline: none;
}

.rs-widget-host .date-range.display-only {
	border: none;
	border-bottom: 1px solid #d6daf0;
	border-radius: 0px;
	padding: 0px;
	cursor: pointer;
	gap: 10px;
	min-height: 36px;
	background: transparent;
	transition: all 0.15s ease;
}
.rs-widget-host .date-range.display-only:hover,
.rs-widget-host .text-input:hover,
.rs-widget-host .multi-display:hover {
	box-shadow: inset 0 -1px 0 0 #91939b;
}

.rs-widget-host .date-range.display-only input {
	border: none;
	width: 100%;
	font-size: 14px;
	background: transparent;
	color: #444a63;
	cursor: pointer;
}

.rs-widget-host .date-range.display-only input::placeholder {
	color: #b2b7c7;
}

.rs-widget-host .date-range .dash {
	color: #c0c5d3;
}

.rs-widget-host .calendar-icon {
	font-size: 16px;
	color: #8d45ff;
}

.rs-widget-host .dp-range-wrapper {
	position: relative;
}

.rs-widget-host .dp-container {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	display: none;
}

.rs-widget-host .hidden-input {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

.rs-widget-host .datepicker {
	font-family: 'Inter', system-ui, sans-serif;
	box-shadow: 0 16px 30px rgba(48, 55, 100, 0.14);
	border: 1px solid #e0e3f0;
	border-radius: 12px;
	position: absolute;
}

.rs-widget-host .datepicker-picker {
	background: #fff;
	border: none;
}

.rs-widget-host .datepicker .datepicker-header .datepicker-title {
	font-weight: 700;
	color: #5a6280;
}

.rs-widget-host .datepicker .datepicker-controls .button {
	color: #5a6280;
}

.rs-widget-host .datepicker .datepicker-view .dow {
	color: #8a8fa3;
}

.rs-widget-host .datepicker .datepicker-cell {
	border-radius: 0px;
	color: #4a5268;
}

.rs-widget-host .datepicker .datepicker-cell.range {
	background: #ede7ff;
	color: #6130c7;
}

.rs-widget-host .datepicker .datepicker-cell.selected,
.rs-widget-host .datepicker .datepicker-cell.range-start,
.rs-widget-host .datepicker .datepicker-cell.range-end {
	background: #8d45ff;
	color: #fff;
	box-shadow: 0 6px 12px rgba(141, 69, 255, 0.35);
}

.rs-widget-host .datepicker .datepicker-cell:hover {
	background: #f0e8ff;
}

.rs-widget-host .flatpickr-footer {
	padding: 10px;
	border-top: 1px solid #e6e8f3;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	background: #fafbff;
}

.rs-widget-host .fp-filter-btn {
	padding: 8px 14px;
	border-radius: 10px;
	border: none;
	background: linear-gradient(135deg, #8d45ff, #a86aff);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 16px rgba(141, 69, 255, 0.25);
}

.rs-widget-host .fp-filter-btn.disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rs-widget-host .datepicker-footer {
	padding: 10px;
	border-top: 1px solid #e6e8f3;
	display: flex;
	justify-content: flex-end;
	background: #fafbff;
	gap: 8px;
}

.rs-widget-host .pagination-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 16px;
	padding: 12px 24px;
	font-size: 14px;
	color: #5a6280;
}

.rs-widget-host .page-size {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rs-widget-host .page-size.inline label {
	font-size: 13px;
	color: #7a8096;
}

.rs-widget-host .pagination {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rs-widget-host .mat-paginator {
	display: flex;
	align-items: center;
	gap: 16px;
}

.rs-widget-host .mat-paginator-range-label {
	font-size: 13px;
	color: #7a8096;
}

.rs-widget-host .mat-paginator-range-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rs-widget-host .mat-icon-button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s ease;
	padding: 0px;
}

.rs-widget-host .mat-icon-button:hover:not(:disabled) {
	background: #f4f5fb;
	box-shadow: 0 2px 6px rgba(48, 55, 100, 0.12);
}

.rs-widget-host .mat-icon-button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.rs-widget-host .mat-paginator-icon {
	width: 18px;
	height: 18px;
	fill: #4a5268;
}

.sort-indicator {
	margin-left: 4px;
	font-size: 11px;
	color: #9aa1b7;
}

.rs-widget-host .text-input {
	border: none;
	border-bottom: 1px solid #c7ccd8;
	border-radius: 0px;
	padding: 8px 10px;
	font-size: 14px;
	color: #4a5268;
	background-color: transparent;
}

.rs-widget-host .ghost-btn {
	align-self: flex-start;
	padding: 16px 10px;
	border: none;
	background: #fff;
	color: #5a6280;
	cursor: pointer;
	font-size: 12px;
}

.rs-widget-host .summary-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 14px;
	color: #5a6280;
}

.rs-widget-host .pagination {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rs-widget-host .page-label {
	font-weight: normal;
	color: #373d57;
}

.rs-widget-host .ghost-btn.small {
	padding: 4px 8px;
}

/* kártya */

.rs-widget-host .card {
	margin-top: 8px;
	background: #ffffff;
	border-radius: 3px;
	box-shadow: 0 5px 15px rgba(58, 12, 113, 0.22);
	padding: 20px 0px 24px;
}

.rs-widget-host .card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding: 0 24px;
}

.rs-widget-host .card-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #373d57;
	padding: 12px 0;
}

.card-header .count {
	font-weight: 400;
	color: #7d8399;
}

.rs-widget-host .status-label {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	color: #9aa1b7;
	display: none;
}

/* gombok */

.rs-widget-host .header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.rs-widget-host .primary-btn {
	padding: 8px 16px;
	border-radius: 999px;
	border: none;
	background: #6c3ff5;
	color: white;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(108, 63, 245, 0.35);
}

.rs-widget-host .primary-btn:disabled {
	opacity: 0.6;
	cursor: default;
	box-shadow: none;
}

.rs-widget-host .link-btn {
	border: none;
	background: transparent;
	color: #7b35ff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.rs-widget-host .table-wrapper {
	margin-top: 12px;
	border-top: 1px solid #e0e3f0;
	padding: 12px 18px;
	overflow-x: auto;
	background: #fff;
	position: relative;
	min-height: 160px;
}

.rs-widget-host .loading-bar {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.85);
	z-index: 10;
}

.rs-widget-host .loading-bar::before {
	content: '';
	width: 48px;
	height: 48px;
	border: 6px solid #d8dcf0;
	border-top-color: #6c3ff5;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.rs-widget-host .loading-bar::after {
	content: 'Loading report…';
	margin-top: 70px;
	position: absolute;
	color: #2c3340;
	font-weight: 600;
	font-size: 14px;
}

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

.rs-widget-host .report-table {
	width: max-content;
	min-width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: auto;
	font-size: 14px;
}

.rs-widget-host .report-table thead th {
	text-align: left;
	padding: 8px 6px 16px;
	color: rgba(48, 65, 86, 0.54);
	white-space: nowrap;
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
}

.rs-widget-host .report-table tbody td {
	padding: 16px 6px;
	border-top: 1px solid #f0f1f8;
	color: #4a5268;
	word-break: break-word;
	background: #fff;
}

.rs-widget-host .report-table thead th,
.rs-widget-host .report-table tbody td {
	white-space: nowrap;
}

.rs-widget-host .report-table thead th.sticky-col-1,
.rs-widget-host .report-table tbody td.sticky-col-1 {
	position: sticky;
	left: 0;
	background: #fff;
	z-index: 2;
}

.rs-widget-host .report-table thead th.sticky-col-2,
.rs-widget-host .report-table tbody td.sticky-col-2 {
	position: sticky;
	left: var(--sticky-2, 0);
	background: #fff;
	z-index: 2;
}

.rs-widget-host .report-table thead th.sticky-col-3,
.rs-widget-host .report-table tbody td.sticky-col-3 {
	position: sticky;
	left: var(--sticky-3, 0);
	background: #fff;
	z-index: 2;
}

.rs-widget-host .report-table thead th.sticky-col-4,
.rs-widget-host .report-table tbody td.sticky-col-4 {
	position: sticky;
	left: var(--sticky-4, 0);
	background: #fff;
	z-index: 2;
}

.rs-widget-host .report-table tbody tr:nth-child(even) {
	background: #fff;
}

.rs-widget-host .pill {
	display: inline-block;
	font-size: 12px;
	margin: 2px 4px 2px 0;
	white-space: nowrap;
}

.rs-widget-host .pill.completed {
	color: #2c7a34;
}

.rs-widget-host .pill.not-completed {
	color: #b42b39;
}

.rs-widget-host .more-btn {
	border: 1px solid #d5d9e5;
	background: #fff;
	border-radius: 8px;
	padding: 4px 8px;
	font-size: 12px;
	cursor: pointer;
	margin-top: 4px;
	color: #373d57;
	font-weight: normal;
}

.rs-widget-host .empty-state {
	margin-top: 40px;
	color: #3f3f41;
	display: none;
	width: 100%;
	text-align: center;
	font-size: 18px;
}

.rs-widget-host .modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 200;
}

.rs-widget-host .modal.show {
	display: flex;
}

.rs-widget-host .modal-content {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(48, 55, 100, 0.2);
	padding: 16px;
	min-width: 320px;
	max-width: 480px;
}

.rs-widget-host .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.rs-widget-host .modal-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rs-widget-host .book-list-header {
	font-size: 12px;
	color: #7d8399;
	font-weight: 700;
	padding: 6px 12px;
	border-bottom: 1px solid #e6e8f3;
}

.rs-widget-host .book-list {
	display: flex;
	flex-direction: column;
}

.rs-widget-host .book-row {
	display: flex;
	padding: 10px 12px;
	border-bottom: 1px solid #eef0f6;
	background: #fff;
	transition: background 0.15s ease;
}

.rs-widget-host .book-row:hover {
	background: #f7f9fc;
}

.rs-widget-host .book-title {
	font-size: 14px;
	color: #2c3340;
	font-weight: 500;
}

.rs-widget-host .book-title.completed {
	color: #2c7a34;
	font-weight: 600;
}

.rs-widget-host .book-title.not-completed {
	color: #b42b39;
	font-weight: 600;
}
.rs-widget-host #total-label {
	display: none;
}
.rs-widget-host #page-label {
	white-space: nowrap;
}
.rs-widget-host label {
	font-weight: normal;
}

.rs-widget-host #count-label {
	font-weight: bold;
	color: #373d57;
}
.rs-widget-host .datepicker-cell.range-start:not(.range-end):not(.month) {
	border-radius: 40% 0 0 40%;
}
.rs-widget-host .datepicker-cell.range-end:not(.range-start):not(.month) {
	border-radius: 0 40% 40% 0;
}

.rs-widget-host .datepicker-cell.range-end:not(.range-start):hover,
.rs-widget-host .datepicker-cell.range-start:not(.range-end):hover {
	color: #1e243f;
	background-color: rgb(189, 150, 252);
}
.rs-widget-host .datepicker-cell.focused:not(.selected) {
	background-color: transparent;
}

.rs-widget-host .datepicker-cell.month,
.rs-widget-host .datepicker-cell.month.range-start,
.rs-widget-host .datepicker-cell.month.range-end,
.rs-widget-host .datepicker-cell.year {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	height: 100%;
}

.rs-widget-host .datepicker-cell.month.range-end {
	border-color: #8d45ff;
	border-width: 2px;
	background-color: #ede7ff;
	color: #6130c7;
}
.rs-widget-host .datepicker-cell.selected,
.datepicker-cell.selected:hover {
	color: #1e243f;
	border-radius: 50%;
	background-color: rgb(189, 150, 252);
}

.rs-widget-host #modal-close {
	max-width: 30px;
	align-self: center;
	cursor: pointer;
}
