/* BEM CSS — Dotazníky uchazečů (Nový admin)
   Vzor převzat z souhrn-firem.css (.tabulka, .filtr, .faze-badge)
   a detail-firmy.css (.qmodal) — jen styly OBSAHU podstránky,
   chrome (navbar, sidebar, patička) řeší Limitless z CDN. */

/* ========== HLAVIČKA + FILTRY ========== */
.prehled__header {
	margin-bottom: 20px;
}

.filtry {
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 20px;
}

.filtry__radek {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 18px;
}

.filtry__pole {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.filtry__label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.filtry__select,
.filtry__input {
	height: 38px;
	min-width: 180px;
	padding: 0 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	color: #0f172a;
	font: inherit;
	font-size: 13px;
}

.filtry__select:focus,
.filtry__input:focus {
	outline: none;
	border-color: #1e3a8a;
	box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.filtry__extra-label {
	flex-basis: 100%;
	font-size: 11px;
	font-weight: 600;
	color: #1e3a8a;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

/* ========== HLAVIČKA S REŽIMEM VYHODNOCENÍ ========== */
.filtry__moznosti-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	padding-bottom: 16px;
	border-bottom: 1px dashed #e2e8f0;
}

.filtry__moznosti-head .filtry__reset {
	margin-left: auto;
}

/* ========== BLOKY FILTRU (obecné / pozice / detail pozice) ========== */
.filtry__blok {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 16px;
	border-top: 1px dashed #e2e8f0;
}

.filtry__blok-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.filtry__blok-nadpis {
	font-size: 14px;
	font-weight: 500;
	color: #0f172a;
}

.filtry__blok-popis {
	font-size: 12px;
	color: #64748b;
}

/* Detailní blok k pozici — skrytý, dokud není pozice v bloku 2 zaškrtnutá */
.filtry__blok--detail {
	display: none;
	background: #f8fafc;
	border-radius: 10px;
	padding: 14px 16px;
	border-top: none;
	margin-top: -4px;
}

.filtry__blok--detail.is-active {
	display: flex;
}

/* ========== GRID VÝBĚRU POZIC ========== */
.filtry__pozice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
}

.filtry__pozice {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13px;
	color: #0f172a;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.filtry__pozice:has(.filtry__pozice-checkbox:checked) {
	border-color: #1e3a8a;
	background: #eff6ff;
}

.filtry__pozice-checkbox {
	accent-color: #1e3a8a;
	cursor: pointer;
}

.filtry__pozice-label {
	font-weight: 500;
}

.filtry__rezim {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.filtry__rezim-opt {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #0f172a;
	cursor: pointer;
}

.filtry__rezim-opt input {
	accent-color: #1e3a8a;
	cursor: pointer;
}

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

.filtry__skupina-label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.filtry__checklist {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.filtry__check {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: #0f172a;
	cursor: pointer;
}

.filtry__check input {
	accent-color: #1e3a8a;
	cursor: pointer;
}

.filtry__reset {
	height: 38px;
	padding: 0 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	color: #475569;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
	align-self: flex-end;
}

.filtry__reset:hover {
	background: #f1f5f9;
	color: #0f172a;
}

/* ========== BADGE — stav / viditelnost ========== */
.stav-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.stav-badge--green  { background: #d1fae5; color: #047857; }
.stav-badge--cyan   { background: #cffafe; color: #0e7490; }
.stav-badge--amber  { background: #fef3c7; color: #92400e; }
.stav-badge--slate  { background: #e2e8f0; color: #475569; }

.pozice-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 999px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
}

/* ========== TABULKA VÝPISU ========== */
.tabulka {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-top: 20px;
}

.tabulka__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.tabulka__title {
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
	margin: 0;
}

.tabulka__filter-info {
	font-size: 13px;
	color: #64748b;
}

.tabulka__filter-info strong {
	color: #1e3a8a;
}

.tabulka__wrap {
	overflow-x: auto;
}

.tabulka__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.tabulka__table thead th {
	text-align: left;
	padding: 10px 12px;
	background: #f8fafc;
	color: #475569;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid #e2e8f0;
	white-space: nowrap;
}

.tabulka__table tbody td {
	padding: 12px;
	border-bottom: 1px solid #f1f5f9;
	color: #0f172a;
	vertical-align: top;
}

.tabulka__table tbody tr:hover {
	background: #f8fafc;
	cursor: pointer;
}

.tabulka__uchazec {
	font-weight: 500;
}

.tabulka__email,
.tabulka__telefon {
	color: #475569;
	white-space: nowrap;
}

.tabulka__pozice-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	max-width: 260px;
}

.tabulka__cv-link {
	color: #1e3a8a;
	font-weight: 500;
	font-size: 12px;
	text-decoration: none;
	white-space: nowrap;
}

.tabulka__cv-link:hover {
	text-decoration: underline;
}

.tabulka__cv-chybi {
	color: #94a3b8;
	font-size: 12px;
	font-style: italic;
}

.tabulka__link {
	color: #1e3a8a;
	font-weight: 500;
	font-size: 12px;
	background: none;
	border: none;
	font-family: inherit;
	cursor: pointer;
	padding: 0;
}

.tabulka__link:hover {
	text-decoration: underline;
}

.tabulka__prazdny {
	text-align: center;
	color: #94a3b8;
	padding: 40px 12px;
	font-size: 13px;
}

/* Skrytý řádek (odfiltrovaný JS filtrem) */
.tabulka__row--hidden {
	display: none;
}

/* Postupné rozbalování dalších záznamů */
.tabulka__more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}

.tabulka__more-button {
	padding: 9px 20px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	color: #1e3a8a;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.tabulka__more-button:hover {
	background: #f1f5f9;
	border-color: #1e3a8a;
}

.tabulka__more-info {
	font-size: 12px;
	color: #94a3b8;
}

.tabulka__more--done .tabulka__more-button {
	display: none;
}

/* ========== MODAL S DETAILEM DOTAZNÍKU (na bázi .qmodal) ========== */
.qmodal {
	border-radius: 12px;
	overflow: hidden;
	border: none;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.qmodal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

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

.qmodal__title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.qmodal__subtitle {
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
}

.qmodal__close {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: none;
	background: transparent;
	font-size: 16px;
	color: #94a3b8;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: all 0.15s;
	flex-shrink: 0;
}

.qmodal__close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.qmodal__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-height: 70vh;
	overflow-y: auto;
}

/* Kontaktní hlavička uchazeče v modalu */
.dotaznik-detail__kontakt {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.dotaznik-detail__kontakt-pole {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.dotaznik-detail__kontakt-label {
	font-size: 10px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.dotaznik-detail__kontakt-value {
	font-size: 13px;
	color: #0f172a;
	font-weight: 500;
}

/* Sekce dotazníku (Základní info / jedna sekce na vybranou pozici) */
.dotaznik-detail__sekce {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}

.dotaznik-detail__sekce-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 13px;
	font-weight: 700;
}

.dotaznik-detail__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
	padding: 14px;
}

.dotaznik-detail__field {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.dotaznik-detail__field--full {
	grid-column: 1 / -1;
}

.dotaznik-detail__field-label {
	font-size: 10px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.dotaznik-detail__field-value {
	font-size: 13px;
	color: #0f172a;
	line-height: 1.5;
}

.dotaznik-detail__field-value--prazdne {
	color: #94a3b8;
	font-style: italic;
}

.qmodal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

.qmodal__btn {
	padding: 9px 20px;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	border: none;
	transition: all 0.15s;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.qmodal__btn--primary {
	background: #1e3a8a;
	color: #fff;
}

.qmodal__btn--primary:hover {
	background: #1e40af;
	color: #fff;
}

.qmodal__btn--secondary {
	background: #fff;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.qmodal__btn--secondary:hover {
	background: #f1f5f9;
	color: #0f172a;
}

/* ========== RESPONZIVITA ========== */
@media (max-width: 900px) {
	.dotaznik-detail__kontakt {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.filtry__radek {
		flex-direction: column;
		align-items: stretch;
	}
	.filtry__select,
	.filtry__input {
		min-width: 0;
		width: 100%;
	}
	.filtry__moznosti-head {
		flex-direction: column;
		align-items: flex-start;
	}
	.filtry__moznosti-head .filtry__reset {
		margin-left: 0;
	}
	.filtry__pozice-grid {
		grid-template-columns: 1fr;
	}
	.dotaznik-detail__grid,
	.dotaznik-detail__kontakt {
		grid-template-columns: 1fr;
	}
}
