/* BEM CSS — Příprava na schůzky (Admin) */

/* ========== STICKY QUICKBAR (reuse stejné jako detail-firmy.css; tato stránka má vlastní cssFile) ========== */
.quickbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	margin: -32px -24px 24px -24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quickbar__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.quickbar__title {
	display: flex;
	align-items: center;
	gap: 14px;
}

.quickbar__back {
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	transition: color 0.15s;
}

.quickbar__back:hover {
	color: #1e3a8a;
}

.quickbar__firma {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	border-left: 1px solid #e2e8f0;
	padding-left: 14px;
}

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

.quickbar__btn {
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 7px;
	color: #475569;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s;
	font-family: inherit;
}

.quickbar__btn:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #0f172a;
}

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

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

/* ========== HLAVIČKA STRÁNKY ========== */
.priprava-head {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 22px 24px;
	margin-bottom: 24px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	align-items: center;
}

.priprava-head__title {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
}

.priprava-head__sub {
	font-size: 13px;
	color: #64748b;
}

.priprava-head__sub strong {
	color: #0f172a;
	font-weight: 600;
}

.priprava-head__legend {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.priprava-head__chip {
	background: #f1f5f9;
	color: #475569;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}

/* ========== Společný styl sekcí ========== */
.stat,
.block-obj,
.block-nab,
.block-otaz,
.block-vime,
.block-hist {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

/* ========== 1) STATISTIKY ========== */
.stat__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.stat__title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
}

.stat__hint {
	font-size: 12px;
	color: #64748b;
	max-width: 580px;
	line-height: 1.4;
}

.stat__period {
	display: flex;
	align-items: center;
}

.stat__period-label {
	display: block;
	font-size: 11px;
	color: #94a3b8;
	margin-bottom: 4px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stat__period-select {
	padding: 8px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 7px;
	font-size: 13px;
	background: #fff;
	font-family: inherit;
	color: #0f172a;
	min-width: 280px;
}

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

.stat__group {
	border: 1px solid #e2e8f0;
	border-left: 4px solid #cbd5e1;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 14px;
}

.stat__group:last-of-type {
	margin-bottom: 0;
}

.stat__group--brigady { border-left-color: #d97706; }
.stat__group--prace   { border-left-color: #1e3a8a; }
.stat__group--celkem  { border-left-color: #059669; background: #f8fafc; }

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

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

.stat__group-count {
	background: #f1f5f9;
	color: #475569;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.stat__triplet {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.stat-card {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 14px;
	background: #fff;
}

.stat-card--primary {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.stat-card--top {
	background: #fef3c7;
	border-color: #fde68a;
}

.stat-card--plain {
	background: #f8fafc;
}

.stat-card__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.stat-card__label {
	font-size: 11px;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stat-card__count {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	font-variant-numeric: tabular-nums;
}

.stat-card__list {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	font-size: 12px;
}

.stat-card__list dt {
	color: #64748b;
}

.stat-card__list dd {
	color: #0f172a;
	font-weight: 600;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.stat-card__highlight {
	color: #1e3a8a !important;
	font-weight: 800 !important;
}

.stat__note {
	margin-top: 16px;
	padding: 12px 14px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	font-size: 12px;
	color: #92400e;
	line-height: 1.5;
}

.stat__note strong {
	color: #78350f;
}

/* ========== 2) OBJEDNANÉ SLUŽBY ========== */
.block-obj__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 14px;
}

.block-obj__title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.block-obj__count {
	background: #d1fae5;
	color: #047857;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.block-obj__kredity {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	margin-bottom: 14px;
}

.block-obj__kredity-label {
	font-size: 12px;
	font-weight: 600;
	color: #1e3a8a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.block-obj__kredity-value {
	font-size: 28px;
	font-weight: 800;
	color: #1e3a8a;
	font-variant-numeric: tabular-nums;
	margin-left: auto;
}

.objednane-list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.objednane-list__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-left: 3px solid #059669;
	border-radius: 6px;
	background: #f8fafc;
	font-size: 13px;
}

.objednane-list__item--konci {
	border-left-color: #d97706;
	background: #fffbeb;
}

.objednane-list__item--ukonceno {
	border-left-color: #94a3b8;
	background: #f1f5f9;
	opacity: 0.7;
}

.objednane-list__main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.objednane-list__nazev {
	font-weight: 600;
	color: #0f172a;
}

.objednane-list__detail {
	font-size: 12px;
	color: #64748b;
}

.objednane-list__do {
	font-size: 12px;
	color: #64748b;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.objednane-list__do strong {
	color: #0f172a;
	font-weight: 600;
}

.block-obj__software {
	border-top: 1px solid #f1f5f9;
	padding-top: 14px;
}

.block-obj__software-title {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 8px;
}

.software-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.software-list__item {
	padding: 4px 12px;
	background: #f1f5f9;
	color: #475569;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.block-obj__software-hint {
	margin-top: 10px;
	font-size: 11px;
	color: #94a3b8;
	font-style: italic;
}

/* ========== 3) CO NABÍDNOUT ========== */
.block-nab__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}

.block-nab__title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.block-nab__count {
	background: #eff6ff;
	color: #1e3a8a;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.block-nab__hint {
	font-size: 12px;
	color: #94a3b8;
	margin-bottom: 14px;
}

.nab-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.nab-list__item {
	display: grid;
	grid-template-columns: minmax(220px, 280px) 1fr;
	gap: 10px;
	align-items: center;
	padding: 6px 12px;
	border-bottom: 1px solid #f1f5f9;
	background: #fff;
	transition: background 0.15s;
}

.nab-list__item:last-child { border-bottom: none; }
.nab-list__item:hover      { background: #f8fafc; }

.nab-list__item--on {
	background: #eff6ff;
}

.nab-list__item--on:hover {
	background: #dbeafe;
}

.nab-list__check {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.nab-list__check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.nab-list__box {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 2px solid #cbd5e1;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s;
	flex-shrink: 0;
}

.nab-list__box::after {
	content: "";
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.15s;
	margin-top: -2px;
}

.nab-list__check input:checked + .nab-list__box {
	background: #1e3a8a;
	border-color: #1e3a8a;
}

.nab-list__check input:checked + .nab-list__box::after {
	transform: rotate(45deg) scale(1);
}

.nab-list__nazev {
	font-size: 13px;
	color: #0f172a;
	font-weight: 500;
}

.nab-list__item--on .nab-list__nazev {
	color: #1e3a8a;
	font-weight: 600;
}

.nab-list__komentar {
	width: 100%;
	padding: 4px 8px;
	border: 1px solid transparent;
	border-radius: 5px;
	font-size: 12px;
	color: #475569;
	font-family: inherit;
	background: transparent;
	transition: all 0.15s;
}

.nab-list__komentar::placeholder {
	color: #cbd5e1;
	font-style: italic;
}

.nab-list__komentar:hover {
	background: #fff;
	border-color: #e2e8f0;
}

.nab-list__komentar:focus {
	outline: none;
	background: #fff;
	border-color: #1e3a8a;
	color: #0f172a;
	box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

/* ========== 4) NA CO SE ZEPTAT ========== */
.block-otaz__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}

.block-otaz__title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.block-otaz__count {
	background: #fef3c7;
	color: #92400e;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.block-otaz__hint {
	font-size: 12px;
	color: #94a3b8;
	margin-bottom: 14px;
}

.otaz-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.otaz-list__item {
	border-bottom: 1px solid #f1f5f9;
	padding: 10px 14px;
	background: #fff;
	transition: background 0.15s;
}

.otaz-list__item:last-child { border-bottom: none; }
.otaz-list__item:hover      { background: #f8fafc; }

.otaz-list__main {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.otaz-list__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.otaz-list__check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.otaz-list__box {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 2px solid #cbd5e1;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s;
	flex-shrink: 0;
	margin-top: 2px;
}

.otaz-list__box::after {
	content: "";
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.15s;
	margin-top: -2px;
}

.otaz-list__check input:checked + .otaz-list__box {
	background: #059669;
	border-color: #059669;
}

.otaz-list__check input:checked + .otaz-list__box::after {
	transform: rotate(45deg) scale(1);
}

.otaz-list__check input:checked ~ .otaz-list__text {
	text-decoration: line-through;
	color: #94a3b8;
}

.otaz-list__text {
	font-size: 13px;
	color: #0f172a;
	font-weight: 500;
	line-height: 1.4;
}

.otaz-list__meta {
	padding-left: 26px;
	font-size: 11px;
	color: #94a3b8;
}

.otaz-list__zdroj {
	color: #d97706;
	font-weight: 600;
}

/* ========== 5) CO VÍME ========== */
.block-vime__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}

.block-vime__title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.block-vime__count {
	background: #d1fae5;
	color: #047857;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.block-vime__hint {
	font-size: 12px;
	color: #94a3b8;
	margin-bottom: 14px;
}

.vime-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.vime-list__item {
	display: grid;
	grid-template-columns: 24px minmax(220px, 280px) 1fr;
	gap: 10px;
	align-items: center;
	padding: 6px 12px;
	border-bottom: 1px solid #f1f5f9;
	background: #fff;
	font-size: 13px;
}

.vime-list__item:last-child { border-bottom: none; }

.vime-list__item--on {
	background: #f0fdf4;
}

.vime-list__mark {
	font-weight: 700;
	color: #cbd5e1;
	text-align: center;
}

.vime-list__item--on .vime-list__mark {
	color: #059669;
}

.vime-list__nazev {
	color: #0f172a;
	font-weight: 500;
}

.vime-list__item--on .vime-list__nazev {
	color: #064e3b;
	font-weight: 600;
}

.vime-list__pozn {
	font-size: 12px;
	color: #64748b;
	font-style: italic;
}

/* ========== 6) HISTORIE ========== */
.block-hist__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.block-hist__title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.block-hist__more {
	font-size: 13px;
	color: #1e3a8a;
	font-weight: 500;
}

.block-hist__more:hover { text-decoration: underline; }

.hist-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hist-list__item {
	display: flex;
	gap: 14px;
	padding: 12px 4px;
	border-bottom: 1px solid #f1f5f9;
}

.hist-list__item:last-child { border-bottom: none; }

.hist-list__icon {
	width: 36px;
	height: 36px;
	background: #f1f5f9;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}

.hist-list__body { flex: 1; }

.hist-list__popis {
	font-size: 13px;
	color: #0f172a;
	margin-bottom: 2px;
}

.hist-list__meta {
	font-size: 11px;
	color: #94a3b8;
}

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

@media (max-width: 900px) {
	.priprava-head {
		flex-direction: column;
		align-items: flex-start;
	}
	.stat__head {
		flex-direction: column;
	}
	.block-obj__kredity {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
	.block-obj__kredity-value {
		margin-left: 0;
	}
	.nab-list__item {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.vime-list__item {
		grid-template-columns: 24px 1fr;
	}
	.vime-list__pozn {
		grid-column: 2 / -1;
		padding-left: 0;
	}
}

@media (max-width: 600px) {
	.quickbar {
		margin: -20px -16px 16px -16px;
	}
	.quickbar__inner {
		padding: 10px 16px;
	}
	.quickbar__title {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.quickbar__firma {
		border-left: none;
		padding-left: 0;
	}
	.objednane-list__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}
