/* ==========================================================================
   Fail2ban by AdminIT – nový design administrace (2026)
   Používá layout app/UI/@app.latte. Starý style.css se zde nenačítá.
   ========================================================================== */

:root {
	--bg: #eef2f8;
	--surface: #ffffff;
	--surface-2: #f5f7fb;
	--border: #e2e8f1;
	--border-strong: #d3dbe7;

	--navy-950: #0a1a3c;
	--navy-900: #0c2049;
	--navy-800: #10295a;
	--navy-700: #173a78;
	--navy-600: #24508f;

	--text: #0f1e3d;
	--text-2: #44536b;
	--muted: #6b7890;
	--muted-2: #95a1b5;

	--primary: #1667e0;
	--primary-600: #0f58c7;
	--primary-soft: #e8f0fd;

	--danger: #cf2b2b;
	--danger-soft: #fde9e9;
	--success: #2c8a34;
	--success-600: #23742a;
	--success-soft: #e6f4e7;
	--warning: #d98613;
	--warning-soft: #fdf2e1;
	--info: #5a6b85;
	--info-soft: #eef1f6;

	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 18px;
	--shadow-sm: 0 1px 2px rgba(15, 30, 61, .04);
	--shadow: 0 1px 2px rgba(15, 30, 61, .04), 0 4px 16px rgba(15, 30, 61, .05);

	--font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--sidebar-w: 208px;
}

/* ---------- základ ---------- */
html, body.app { height: 100%; }
body.app {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}
body.app a { color: var(--primary); text-decoration: none; }
body.app a:hover { color: var(--primary-600); }
.app .mono { font-family: var(--mono); letter-spacing: -.01em; }
.app .muted { color: var(--muted); }
.app .i {
	width: 18px; height: 18px; flex: none;
	fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.app .visually-hidden-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- rozložení ---------- */
.app-shell { display: flex; min-height: 100vh; padding: 12px; gap: 20px; }
.app-main { flex: 1; min-width: 0; padding: 12px 8px 32px; }

/* ---------- sidebar ---------- */
.app-sidebar {
	position: sticky; top: 12px;
	width: var(--sidebar-w); flex: none;
	height: calc(100vh - 24px);
	display: flex; flex-direction: column;
	background: var(--navy-900);
	border-radius: var(--radius-lg);
	padding: 22px 14px 14px;
	color: #c9d4e8;
	overflow-y: auto;
}
.app-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; color: #fff !important; }
.app-brand__logo {
	width: 34px; height: 34px; border-radius: 9px;
	display: grid; place-items: center;
	background: var(--primary); color: #fff;
}
.app-brand__logo .i { width: 19px; height: 19px; }
.app-brand__img { width: 40px; height: 40px; flex: none; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); }
.app-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.app-brand__text strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.app-brand__text small { font-size: 11px; color: #9fb0cd; font-weight: 500; }

.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav__section {
	font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
	color: #8395b7; padding: 14px 10px 6px;
}
.app-nav__section:first-child { padding-top: 0; }
.app-nav__item {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 12px; border-radius: 10px;
	color: #d7e0f0 !important; font-weight: 600; font-size: 14px;
	border: 1px solid transparent;
	transition: background .15s, border-color .15s;
}
.app-nav__item .i { color: #b5c3dc; }
.app-nav__item:hover { background: rgba(255, 255, 255, .05); color: #fff !important; }
.app-nav__item.is-active { background: var(--navy-700); border-color: #2c5397; color: #fff !important; }
.app-nav__item.is-active .i { color: #fff; }

.app-user {
	margin-top: auto;
	display: flex; align-items: center; gap: 8px;
	background: rgba(255, 255, 255, .05);
	border-radius: var(--radius);
	padding: 12px 10px 12px 12px;
}
.app-user__profile { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: #fff !important; }
.app-user__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.app-user__text strong { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.app-user__text small { font-size: 11px; color: #9fb0cd; }
.app-user__logout { color: #b5c3dc !important; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.app-user__logout:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.app-avatar {
	position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%;
	display: grid; place-items: center;
	background: linear-gradient(135deg, #5b8def, #2a5fc9); color: #fff;
	font-size: 12px; font-weight: 700;
}
.app-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.app-avatar__status {
	position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%;
	background: #37b24d; border: 2px solid var(--navy-900);
}

/* ---------- topbar ---------- */
.app-topbar { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.app-topbar__title { flex: 1; min-width: 0; }
.app-breadcrumb { font-size: 12.5px; color: var(--text-2); font-weight: 500; margin-bottom: 2px; }
.app-title {
	margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text);
	display: flex; align-items: center; gap: 12px; line-height: 1.25;
}
.app-title__count {
	font-size: 12px; font-weight: 600; color: var(--text-2);
	background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
	padding: 3px 9px; letter-spacing: 0;
}
.app-topbar__actions { display: flex; align-items: center; gap: 8px; }
.app-search {
	display: flex; align-items: center; gap: 10px;
	width: 216px; height: 38px; padding: 0 6px 0 12px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
	color: var(--muted);
}
.app-search .i { width: 16px; height: 16px; }
.app-search input {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
	font: 500 13px var(--font); color: var(--text);
}
.app-search input::placeholder { color: var(--text-2); }
.app-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.app-search kbd {
	font: 600 10.5px var(--font); color: var(--text-2);
	background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px;
}
.app-icon-btn {
	width: 38px; height: 38px; display: grid; place-items: center; flex: none;
	background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
	color: var(--text-2) !important; cursor: pointer;
}
.app-icon-btn:hover { color: var(--text) !important; border-color: var(--border-strong); }
.app-nav-toggle { display: none; }

/* ---------- flash zprávy ---------- */
.app-flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.app-flash {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px; border-radius: var(--radius);
	background: var(--info-soft); color: var(--text); border: 1px solid var(--border);
	font-weight: 500;
}
.app-flash > div { flex: 1; }
.app-flash--success { background: var(--success-soft); border-color: #c4e5c7; }
.app-flash--success > .i { color: var(--success); }
.app-flash--danger { background: var(--danger-soft); border-color: #f4c7c7; }
.app-flash--danger > .i { color: var(--danger); }
.app-flash--warning { background: var(--warning-soft); border-color: #f3d9ab; }
.app-flash--warning > .i { color: var(--warning); }
.app-flash__close { border: 0; background: none; color: var(--muted); padding: 2px; cursor: pointer; display: grid; }

/* ---------- karty ---------- */
.card-x {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 20px;
	min-width: 0;
}
.card-x__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-x__title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.card-x__meta { font-size: 11.5px; font-weight: 600; color: var(--text-2); letter-spacing: .03em; }
.card-x__link { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 13px; }
.card-x__link .i { width: 16px; height: 16px; }

.icon-tile {
	width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none;
	background: var(--primary-soft); color: var(--primary);
}
.icon-tile .i { width: 16px; height: 16px; }
.icon-tile--danger { background: var(--danger-soft); color: var(--danger); }
.icon-tile--ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }

/* ---------- tlačítka & formuláře ---------- */
.btn-x {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 40px; padding: 0 18px; border-radius: 10px;
	font: 700 14px var(--font); border: 1px solid transparent; cursor: pointer;
	transition: background .15s, border-color .15s, box-shadow .15s;
	white-space: nowrap; text-decoration: none !important;
}
.btn-x .i { width: 16px; height: 16px; }
.btn-x--primary { background: var(--primary); color: #fff !important; }
.btn-x--primary:hover { background: var(--primary-600); }
.btn-x--success { background: var(--success); color: #fff !important; box-shadow: 0 6px 14px rgba(44, 138, 52, .25); }
.btn-x--success:hover { background: var(--success-600); }
.btn-x--outline-success { background: var(--surface); color: var(--success) !important; border-color: #9fcfa3; }
.btn-x--outline-success:hover { background: var(--success-soft); }
.btn-x--ghost { background: var(--surface); color: var(--text-2) !important; border-color: var(--border); }
.btn-x--ghost:hover { border-color: var(--border-strong); color: var(--text) !important; }
.btn-x--danger { background: var(--danger); color: #fff !important; }
.btn-x--danger:hover { background: #b62222; }
.btn-x--block { width: 100%; }
.btn-x--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-x:disabled { opacity: .55; cursor: not-allowed; }

.input-x {
	width: 100%; height: 42px; padding: 0 12px;
	background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
	font: 500 14px var(--font); color: var(--text); outline: 0;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.input-x::placeholder { color: var(--muted-2); }
.input-x:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.input-x.mono { font-family: var(--mono); font-size: 13.5px; }
textarea.input-x { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; }
.label-x { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }

/* ---------- štítky ---------- */
.tag {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.tag--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag--banned { color: var(--danger); }
.tag--unbanned { color: var(--success); }
.tag--expired { color: var(--info); }
.pill {
	display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
	font-size: 12px; font-weight: 700; white-space: nowrap;
}
.pill--banned { background: var(--danger-soft); color: var(--danger); }
.pill--unbanned { background: var(--success-soft); color: var(--success); }
.pill--expired { background: var(--info-soft); color: var(--info); }
.pill--vip { background: var(--warning-soft); color: #b06a05; height: 18px; font-size: 10.5px; padding: 0 6px; letter-spacing: .04em; }
.chip-code {
	display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600;
	background: var(--primary-soft); color: var(--navy-800);
	padding: 3px 7px; border-radius: 6px; white-space: nowrap;
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-stat { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 170px; padding: 22px 22px 20px; }
.dash-stat__head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.dash-stat__head .dash-stat__arrow { margin-left: auto; }
.dash-stat__value { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 22px 0 14px; color: var(--text); }
.dash-stat__sub { font-size: 13px; color: var(--text-2); font-weight: 500; margin-top: auto; }

.dash-stat--hero {
	background: var(--navy-800); border-color: var(--navy-800); color: #fff !important;
	transition: transform .15s, box-shadow .15s;
}
.dash-stat--hero:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(16, 41, 90, .25); }
.dash-stat--hero .dash-stat__head,
.dash-stat--hero .dash-stat__value,
.dash-stat--hero .dash-stat__sub { color: #fff; position: relative; }
.dash-stat--hero .dash-stat__sub { color: #c9d6ee; }
.dash-stat__watermark {
	position: absolute; right: -34px; bottom: -48px; width: 170px; height: 170px;
	color: rgba(255, 255, 255, .07); stroke-width: 2.2;
}
.dash-stat--link { color: inherit !important; transition: border-color .15s, box-shadow .15s; }
.dash-stat--link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

.dash-quick form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }

.dash-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }

.donut-wrap { display: flex; align-items: center; gap: 28px; }
.donut { position: relative; width: 132px; height: 132px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; }
.donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut__center strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.donut__center small { font-size: 11px; color: var(--text-2); margin-top: 4px; }

.legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.legend__row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 6px; }
.legend__dot { width: 9px; height: 9px; border-radius: 3px; }
.legend__name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend__val { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.legend__val strong { color: var(--text); font-size: 14px; font-weight: 800; }
.legend__bar { grid-column: 2 / 4; height: 5px; border-radius: 99px; background: #e8edf5; overflow: hidden; }
.legend__bar span { display: block; height: 100%; border-radius: inherit; }

.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.recent__item { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.recent__item + .recent__item { border-top: 1px solid #f0f3f8; }
.recent__icon { width: 32px; height: 32px; border-radius: 9px; }
.recent__body { flex: 1; min-width: 0; }
.recent__ip { display: block; font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--text) !important; }
.recent__ip:hover { color: var(--primary) !important; }
.recent__meta { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
	width: 30px; height: 30px; display: grid; place-items: center; flex: none;
	border: 0; background: none; border-radius: 8px; color: var(--text-2); cursor: pointer;
}
.copy-btn .i { width: 15px; height: 15px; }
.copy-btn:hover { background: var(--surface-2); color: var(--text); }
.copy-btn.is-copied { color: var(--success); }

.empty-state { padding: 26px 8px; text-align: center; color: var(--muted); font-weight: 500; }

/* Graf „Bany za poslední měsíc“ */
.dash-trend { margin-top: 16px; }
.dash-trend .card-x__meta strong { color: var(--text); font-weight: 800; }
.dash-trend__head { flex-wrap: wrap; }
.dash-trend__head .card-x__meta { margin-right: auto; }
.dash-trend .seg a.seg__item { text-decoration: none !important; }
.dash-trend__customer { margin: 0; }
.dash-trend .bar-chart, .dash-trend .empty-state { transition: opacity .15s ease; }
.dash-trend.is-loading .bar-chart, .dash-trend.is-loading .empty-state { opacity: .45; pointer-events: none; }
.dash-trend.is-loading .seg, .dash-trend.is-loading .dash-trend__customer { pointer-events: none; }
.dash-trend__customer .input-x { height: 38px; min-width: 200px; max-width: 280px; font-size: 13px; padding-right: 30px; }
.bar-chart--dense .bar-chart__plot { gap: 1px; }
.bar-chart--dense .bar-chart__bar { border-radius: 2px 2px 0 0; }
.bar-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; }
.bar-chart__axis {
	display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
	height: 200px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.bar-chart__axis span { line-height: 1; transform: translateY(-50%); }
.bar-chart__axis span:last-child { transform: translateY(50%); }
.bar-chart__plot { display: flex; align-items: stretch; gap: 4px; min-width: 0; }
.bar-chart__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.bar-chart__bar-wrap {
	position: relative; height: 200px; display: flex; align-items: flex-end;
	border-bottom: 1px solid var(--border-strong);
	background: linear-gradient(to top, transparent calc(50% - .5px), #eef2f7 calc(50% - .5px), #eef2f7 calc(50% + .5px), transparent calc(50% + .5px)),
	            linear-gradient(to bottom, #eef2f7 1px, transparent 1px);
}
.bar-chart__bar {
	display: block; width: 100%; height: var(--h, 0%); min-height: 2px; border-radius: 4px 4px 0 0;
	background: var(--primary); transition: background .15s ease;
}
.bar-chart__bar.is-zero { background: var(--border-strong); min-height: 2px; }
.bar-chart__col { outline: 0; }
.bar-chart__col:hover .bar-chart__bar, .bar-chart__col:focus-visible .bar-chart__bar { background: var(--primary-600); }
.bar-chart__col:hover .bar-chart__bar.is-zero, .bar-chart__col:focus-visible .bar-chart__bar.is-zero { background: var(--muted); }

/* tooltip nad sloupcem */
.bar-chart__tip {
	position: absolute; z-index: 5; left: 50%; bottom: calc(max(var(--h, 0%), 2px) + 8px);
	transform: translate(-50%, 4px); pointer-events: none; opacity: 0; visibility: hidden;
	display: flex; flex-direction: column; align-items: center; gap: 1px;
	padding: 6px 10px; border-radius: 8px; white-space: nowrap;
	background: var(--text); color: #fff; box-shadow: 0 6px 18px rgba(15, 30, 61, .22);
	transition: opacity .12s ease, transform .12s ease, visibility .12s;
}
.bar-chart__tip strong { font-size: 13px; font-weight: 800; line-height: 1.2; }
.bar-chart__tip small { font-size: 11px; color: rgba(255, 255, 255, .72); line-height: 1.2; }
.bar-chart__tip::after {
	content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
	border: 5px solid transparent; border-top-color: var(--text);
}
.bar-chart__col:hover .bar-chart__tip, .bar-chart__col:focus-visible .bar-chart__tip {
	opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
/* u krajních sloupců tooltip nepřetéká mimo kartu */
.bar-chart__col:nth-child(-n+2) .bar-chart__tip { left: 0; transform: translate(0, 4px); align-items: flex-start; }
.bar-chart__col:nth-last-child(-n+2) .bar-chart__tip { left: auto; right: 0; transform: translate(0, 4px); align-items: flex-end; }
.bar-chart__col:nth-child(-n+2):hover .bar-chart__tip, .bar-chart__col:nth-child(-n+2):focus-visible .bar-chart__tip,
.bar-chart__col:nth-last-child(-n+2):hover .bar-chart__tip, .bar-chart__col:nth-last-child(-n+2):focus-visible .bar-chart__tip { transform: none; }
.bar-chart__col:nth-child(-n+2) .bar-chart__tip::after { left: 12px; transform: none; }
.bar-chart__col:nth-last-child(-n+2) .bar-chart__tip::after { left: auto; right: 12px; transform: none; }
.bar-chart--dense .bar-chart__col:nth-child(-n+6) .bar-chart__tip { left: 0; right: auto; transform: translate(0, 4px); align-items: flex-start; }
.bar-chart--dense .bar-chart__col:nth-last-child(-n+6) .bar-chart__tip { left: auto; right: 0; transform: translate(0, 4px); align-items: flex-end; }
.bar-chart--dense .bar-chart__col:nth-child(-n+6):hover .bar-chart__tip,
.bar-chart--dense .bar-chart__col:nth-last-child(-n+6):hover .bar-chart__tip { transform: none; }
.bar-chart--dense .bar-chart__col:nth-child(-n+6) .bar-chart__tip::after { left: 4px; right: auto; transform: none; }
.bar-chart--dense .bar-chart__col:nth-last-child(-n+6) .bar-chart__tip::after { left: auto; right: 4px; transform: none; }
.bar-chart__label {
	height: 22px; padding-top: 6px; font-size: 11px; color: var(--text-2);
	display: flex; justify-content: center; white-space: nowrap; overflow: visible;
}
.bar-chart__col:first-child .bar-chart__label { justify-content: flex-start; }
.bar-chart__col:last-child .bar-chart__label { justify-content: flex-end; }
@media (max-width: 600px) {
	.dash-trend__customer, .dash-trend__customer .input-x { width: 100%; max-width: none; }
	.dash-trend .seg { width: 100%; }
	.dash-trend .seg__item { flex: 1; justify-content: center; padding: 0 6px; }
	.bar-chart__plot { gap: 2px; }
	.bar-chart__axis, .bar-chart__bar-wrap { height: 150px; }
}

/* ==========================================================================
   BLOKOVANÉ IP
   ========================================================================== */
.bans-layout { display: block; }
.bans-card { padding: 0; overflow: hidden; }
.bans-toolbar { padding: 14px 18px 0; }
.bans-toolbar__top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.tabs-x { display: flex; gap: 18px; }
.tabs-x a {
	position: relative; padding: 6px 0 10px; font-weight: 600; color: var(--text-2) !important; font-size: 14px;
}
.tabs-x a:hover { color: var(--text) !important; }
.tabs-x a.is-active { color: var(--text) !important; font-weight: 700; }
.tabs-x a.is-active::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--primary);
}

.bans-search {
	margin-left: auto; display: flex; align-items: center; gap: 10px;
	width: 268px; max-width: 100%; height: 38px; padding: 0 12px;
	background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; color: var(--muted);
}
.bans-search .i { width: 16px; height: 16px; }
.bans-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 13px var(--font); color: var(--text); }
.bans-search:focus-within { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }

.filter-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 0 14px; }
.filter-chip {
	display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
	border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
	font: 600 13px var(--font); color: var(--text); cursor: pointer;
}
.filter-chip .i { width: 14px; height: 14px; }
.filter-chip:hover { border-color: var(--border-strong); }
.filter-chip.is-active { background: var(--primary-soft); border-color: #c4d8fa; color: var(--primary-600); }
.filter-chip--reset { color: var(--danger); border-color: #f2cccc; }
.filter-chip--reset:hover { background: var(--danger-soft); border-color: #eab4b4; }

.filter-fields {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;
	padding: 2px 0 16px;
}
.filter-fields[hidden] { display: none; }
.filter-field[hidden] { display: none; }
.filter-fields .input-x { height: 36px; font-size: 13px; }
.filter-fields__actions { display: flex; align-items: flex-end; gap: 8px; }

.table-x-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
.table-x { width: 100%; border-collapse: collapse; min-width: 720px; }
.table-x th {
	text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: var(--text-2); padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table-x th:first-child, .table-x td:first-child { padding-left: 22px; }
.table-x th a { color: inherit !important; display: inline-flex; align-items: center; gap: 4px; }
.table-x th a .i { width: 12px; height: 12px; opacity: .5; }
.table-x th a:hover .i { opacity: 1; }
.table-x td { padding: 12px 14px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.table-x tbody tr:last-child td { border-bottom: 0; }
.table-x tbody tr { cursor: pointer; transition: background .1s; }
.table-x tbody tr:hover { background: #f7f9fc; }
.table-x tbody tr.is-selected { background: #edf3fd; }
.table-x tbody tr:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.ban-ip { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--text); }
.ban-id { font-size: 12px; color: var(--text-2); }
.ban-src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ban-src__name { font-size: 12.5px; color: var(--text-2); }

.ban-period { min-width: 170px; }
.ban-period__range { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--text); }
.ban-period__bar { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.ban-period__track { width: 76px; height: 3px; background: #edf0f5; border-radius: 99px; overflow: hidden; flex: none; }
.ban-period__track span { display: block; height: 100%; background: var(--danger); border-radius: inherit; }
.ban-period__track--done span { background: #b4bfd0; }
.ban-period__len { font-size: 11.5px; color: var(--text-2); white-space: nowrap; }

.pager { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pager__info { font-size: 13px; color: var(--text-2); font-weight: 500; }
.pager__pages { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pager__pages a, .pager__pages span {
	min-width: 34px; height: 34px; padding: 0 6px; display: grid; place-items: center;
	border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--text) !important;
}
.pager__pages a:hover { background: var(--surface-2); }
.pager__pages .is-current { background: var(--navy-900); color: #fff !important; }
.pager__pages .is-disabled { color: var(--muted-2) !important; pointer-events: none; }
.pager__pages .i { width: 16px; height: 16px; }

/* sloupec Akce */
.table-x th.col-actions, .table-x td.col-actions { width: 1%; text-align: right; white-space: nowrap; padding-right: 22px; }
.table-x td.col-actions .btn-x { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }

/* ==========================================================================
   OBECNÉ SEZNAMY (Notifikace VIP, …)
   ========================================================================== */
.list-card { padding: 0; overflow: hidden; }
.list-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.list-toolbar__info { font-size: 13px; color: var(--text-2); font-weight: 500; margin-right: auto; }
.list-toolbar__info strong { color: var(--text); }
.list-toolbar .bans-search { margin-left: 0; }
.list-name { font-weight: 700; font-size: 14px; color: var(--text) !important; }
.list-name:hover { color: var(--primary) !important; }
.list-mail { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.list-mail .i { width: 15px; height: 15px; color: var(--muted-2); }
.list-mails { display: flex; flex-direction: column; gap: 3px; }
.chip-code--plain { font-family: var(--font); font-size: 12.5px; }
.row-actions { display: inline-flex; align-items: center; gap: 4px; }
.icon-act {
	width: 32px; height: 32px; display: grid; place-items: center;
	border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer;
	color: var(--text-2) !important; transition: background .15s, color .15s, border-color .15s;
}
.icon-act .i { width: 16px; height: 16px; }
.icon-act:hover { background: var(--surface-2); border-color: var(--border); color: var(--text) !important; }
.icon-act--danger:hover { background: var(--danger-soft); border-color: #f2cccc; color: var(--danger) !important; }

/* ==========================================================================
   DETAIL A FORMULÁŘE (Notifikace VIP – detail, úprava)
   ========================================================================== */
.app-breadcrumb a { color: var(--text-2) !important; }
.app-breadcrumb a:hover { color: var(--primary) !important; }

.info-card { margin-bottom: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; margin: 0; }
.info-grid dt { font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 4px; }
.info-grid dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.info-grid .list-mail { font-weight: 600; color: var(--text); }

.detail-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; margin-bottom: 16px; }
.detail-split--single { grid-template-columns: minmax(0, 1fr); }
.section-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; }
.section-head .card-x__title { margin-right: auto; }
.section-head--plain { padding: 0 0 16px; }
.section-head .app-title__count { font-size: 11.5px; }
.table-x.table-x--static { min-width: 520px; }
.table-x-wrap--scroll { max-height: 560px; overflow: auto; }
.table-x-wrap--scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.table-x--static tbody tr { cursor: default; }
.table-x--static tbody tr:hover { background: transparent; }
.table-x .cell-note { color: var(--text-2); font-size: 13px; max-width: 260px; overflow-wrap: anywhere; }
.table-x .cell-url { max-width: 280px; overflow-wrap: anywhere; font-size: 13px; }
.table-x .chip-code { white-space: normal; overflow-wrap: anywhere; }

.toggle-pill {
	display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
	font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
	background: var(--info-soft); color: var(--muted) !important; border: 1px solid var(--border);
}
.toggle-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.toggle-pill.is-on { background: var(--success-soft); color: var(--success) !important; border-color: #c4e5c7; }
.toggle-pill:hover { border-color: var(--border-strong); }

/* formuláře */
.form-page { max-width: 760px; }
.form-card { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.form-card__head { display: flex; align-items: flex-start; gap: 12px; }
.form-card__head .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.form-card__sub { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; min-width: 0; }
.form-hint { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.form-hint code, .form-help code { font-size: 11.5px; color: var(--navy-800); background: var(--primary-soft); padding: 1px 5px; border-radius: 4px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; border-top: 1px solid var(--border); padding-top: 16px; }
.form-errors { background: var(--danger-soft); border: 1px solid #f4c7c7; color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn .input-x { flex: 1; min-width: 0; }
.input-with-btn .btn-x { height: 42px; flex: none; }
.form-help { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.form-help summary { cursor: pointer; color: var(--primary); font-weight: 600; width: fit-content; }
.form-help p { margin: 8px 0; }
.form-help pre, .code-box {
	font-family: var(--mono); font-size: 12px; line-height: 1.5; margin: 6px 0 10px;
	background: var(--navy-900); color: #e5ecf9; border-radius: 9px; padding: 10px 12px; overflow: auto; max-height: 400px;
}
.api-test-loading { display: flex; align-items: center; gap: 10px; color: var(--text-2); }

/* validace (Bootstrap .needs-validation / .was-validated) */
.was-validated .input-x:invalid { border-color: var(--danger); background: var(--surface); }
.was-validated .input-x:invalid:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.invalid-feedback { font-size: 12px; color: var(--danger); margin-top: 6px; }

/* ==========================================================================
   AGENTI
   ========================================================================== */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.seg__item {
	display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 8px;
	font-weight: 600; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; margin: 0;
}
.seg__item input { position: absolute; opacity: 0; pointer-events: none; }
.seg__item:hover { color: var(--text); }
.seg__item.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(15, 30, 61, .08); }
.seg__item:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--on { background: #37b24d; }
.dot--off { background: var(--danger); }

.tag--online { color: var(--success); }
.tag--offline { color: var(--danger); }
.tag--inactive { color: var(--warning); }
.agent-name { font-family: var(--mono); font-weight: 600; font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.count-pill {
	display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 9px;
	border-radius: 999px; font-weight: 800; font-size: 12.5px; background: var(--danger-soft); color: var(--danger);
}
.count-pill--link { text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.count-pill--link:hover { box-shadow: 0 0 0 2px rgba(207, 43, 43, .25); }
.count-pill--link.count-pill--zero:hover { box-shadow: 0 0 0 2px var(--border-strong); }
.filter-chip--agent { cursor: default; gap: 6px; padding-right: 6px; }
.filter-chip--agent .mono { font-size: 12.5px; }
.filter-chip__remove { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: inherit !important; }
.filter-chip__remove:hover { background: rgba(22, 103, 224, .15); }
.filter-chip__remove .i { width: 12px; height: 12px; }
.count-pill--zero { background: var(--info-soft); color: var(--muted); }
.cell-strong { font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; }
.cell-ip { font-size: 12.5px; color: var(--text-2); }
.table-x .cell-muted { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.table-x .chip-link { white-space: nowrap; }
.chip-link:hover { background: #dbe7fb; }
.icon-act--success:hover { background: var(--success-soft); border-color: #c4e5c7; color: var(--success) !important; }
.icon-act--danger { color: var(--danger) !important; }
.icon-act--success { color: var(--success) !important; }

/* datepicker v novém vzhledu */
.app .datepicker.dropdown-menu { font-family: var(--font); border-radius: 12px; border-color: var(--border); box-shadow: var(--shadow); padding: 6px; }

/* ==========================================================================
   UŽIVATELÉ
   ========================================================================== */
.user-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-cell__text { min-width: 0; }
.app-avatar img { position: absolute; inset: 0; }
.app-avatar .app-avatar__status { z-index: 1; }
.user-avatar { width: 36px; height: 36px; font-size: 12.5px; }
.app-avatar.is-muted { filter: grayscale(1); opacity: .6; }
.role-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--info-soft); color: var(--text-2); }
.role-pill--2 { background: #efe9fc; color: #6a3fc2; }
.role-pill--1 { background: var(--primary-soft); color: var(--primary-600); }
.mfa { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mfa .i { width: 14px; height: 14px; }
.mfa--on { color: var(--success); }

/* detail uživatele */
.profile-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 22px; }
.profile-avatar { width: 96px; height: 96px; font-size: 32px; margin-bottom: 14px; }
.profile-card__name { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.profile-card__login { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.profile-card__tags { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.profile-card__mfa { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); width: 100%; }
.info-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.info-note__label { font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 4px; }
.info-note__text { font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.btn-x--ghost-danger { color: var(--danger) !important; border-color: #f2cccc; }
.btn-x--ghost-danger:hover { background: var(--danger-soft); color: var(--danger) !important; border-color: #eab4b4; }

/* formulář uživatele */
.user-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.user-form__side { display: flex; flex-direction: column; gap: 16px; }
.form-field--wide { grid-column: 1 / -1; }
.req { color: var(--danger); }
.field-error { font-size: 12px; color: var(--danger); margin-top: 6px; }
.form-options { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.check-x { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; cursor: pointer; margin: 0; width: fit-content; }
.check-x input { width: 17px; height: 17px; accent-color: var(--primary); margin: 0; }
.icon-act--box { width: 42px; height: 42px; flex: none; border-color: var(--border); background: var(--surface); }
.icon-act--box.is-copied { color: var(--success) !important; border-color: #c4e5c7; }
.seg--full { display: flex; }
.seg--full .seg__item { flex: 1; justify-content: center; }
.input-x.input-file { height: auto; padding: 8px 10px; font-size: 13px; }
.input-x.input-file::file-selector-button { font: 600 12.5px var(--font); border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 5px 10px; margin-right: 10px; cursor: pointer; }
select.input-x { appearance: auto; }
.form-actions--sticky {
	position: sticky; bottom: 12px; z-index: 5; margin-top: 16px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 16px; box-shadow: var(--shadow);
}

/* ==========================================================================
   ZÁKAZNÍCI
   ========================================================================== */
.customer-agents { margin-top: 0; }
.count-pill--btn { margin-left: 2px; min-width: 22px; height: 20px; font-size: 11.5px; }
.agent-link { color: var(--text) !important; }
.agent-link:hover { color: var(--primary) !important; }
.company-tile { width: 36px; height: 36px; border-radius: 10px; font-weight: 800; font-size: 15px; background: var(--primary-soft); color: var(--primary-600); }
.detail-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.perm-card .section-head { flex-wrap: wrap; }
.perm-card__actions { display: flex; gap: 8px; margin-left: auto; }
.perm-card__hint { margin: -6px 0 12px; }
.perm-list, .share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.perm-item {
	display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; margin: 0; width: 100%;
	border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: background .15s, border-color .15s;
}
.perm-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.perm-item__check { width: 17px; height: 17px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.perm-item__text { display: flex; flex-direction: column; min-width: 0; }
.perm-item__text strong { font-size: 13.5px; font-weight: 700; }
.perm-item__text small { font-size: 12.5px; color: var(--text-2); }
.perm-item:has(.perm-item__check:checked) { border-color: #c4d8fa; background: var(--primary-soft); }
.perm-list.is-readonly .perm-item { cursor: default; opacity: .75; }
.perm-list.is-readonly .perm-item:hover { background: transparent; border-color: var(--border); }
.perm-list.is-readonly .perm-item:has(.perm-item__check:checked) { background: var(--primary-soft); }
.share-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-toolbar .bans-search { margin-left: 0; flex: 1; }
.share-count { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.share-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.share-list li[hidden] { display: none; }

/* ==========================================================================
   PROFIL
   ========================================================================== */
.profile-warning { margin-bottom: 16px; }
.profile-facts { width: 100%; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.profile-facts div { display: flex; justify-content: space-between; gap: 12px; }
.profile-facts dt { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.profile-facts dd { margin: 0; font-size: 13px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.profile-tabs-card { padding: 0; overflow: hidden; }
.profile-tabs { padding: 14px 22px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tabs-x a.active { color: var(--text) !important; font-weight: 700; }
.tabs-x a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--primary); }
.profile-tab-content { padding: 22px; }
.profile-section + .profile-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.profile-section__title { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.profile-section__hint { margin: -6px 0 12px; }
.form-grid--3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.profile-form .form-actions { margin-top: 22px; }
.input-x.is-invalid-x { border-color: var(--danger); background: var(--surface); }

/* 2FA komponenty z knihovny adminit/opensesame (šablony ve vendor – stylujeme jen přes třídy) */
.twofa-panel { font-size: 13.5px; color: var(--text); }
.twofa-intro { margin: 0 0 16px; }
.twofa-panel h3 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.twofa-panel h3:first-of-type { margin-top: 0; }
.twofa-panel p { margin: 0 0 10px; }
.twofa-panel .twofa-code-box, .twofa-panel .twofa-code-box + h3 + div { padding-left: 0 !important; }
.twofa-panel .twofa-code-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px !important; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); width: fit-content; }
.twofa-panel .twofa-code-box img, .twofa-panel .qr-pair img { border-radius: 8px; background: #fff; padding: 6px; border: 1px solid var(--border); max-width: 220px; height: auto; }
.twofa-panel .twofa-code-box strong { font-family: var(--mono); letter-spacing: .08em; }
.twofa-panel .twofa-form-on { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.twofa-panel .twofa-row { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.twofa-panel .twofa-row > [class*="col-"] { width: 100%; max-width: none; padding: 0; margin: 0; flex: none; }
.twofa-panel .twofa-code-label, .twofa-panel label { font-size: 12px; font-weight: 600; color: var(--text-2); text-align: left; padding: 0; margin: 0 0 4px; }
.twofa-panel .form-control {
	height: 42px; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
	font: 500 14px var(--font); color: var(--text); box-shadow: none;
}
.twofa-panel .twofa-code-input { font-family: var(--mono); letter-spacing: .2em; max-width: 220px; }
.twofa-panel .form-control:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.twofa-panel .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px;
	font: 700 13.5px var(--font); border: 1px solid transparent; box-shadow: none; text-decoration: none;
}
.twofa-panel .btn .fa { display: none; }
.twofa-panel .twofa-btn-save, .twofa-panel .twofa-btn-pair, .twofa-panel .twofa-btn-confirm { background: var(--primary); color: #fff !important; }
.twofa-panel .twofa-btn-save:hover, .twofa-panel .twofa-btn-pair:hover, .twofa-panel .twofa-btn-confirm:hover { background: var(--primary-600); }
.twofa-panel .twofa-btn-disable { background: var(--surface); color: var(--danger) !important; border-color: #f2cccc; }
.twofa-panel .twofa-btn-disable:hover { background: var(--danger-soft); }
.twofa-panel .twofa-btn-cancel { background: var(--surface); color: var(--text-2) !important; border-color: var(--border); }
.twofa-panel .twofa-modal-header .close { order: 2; margin-left: auto; border: 0; background: none; font-size: 0; width: 28px; height: 28px; position: relative; opacity: .6; }
.twofa-panel .twofa-modal-header .close::before { content: "×"; font-size: 24px; line-height: 28px; position: absolute; inset: 0; color: var(--text); }
.twofa-panel .twofa-modal-body { display: flex; flex-direction: column; gap: 12px; }
.twofa-panel .twofa-modal-body .form-group { margin: 0; }

/* detail blokace – modální okno */
.ban-detail-modal .modal-dialog { max-width: 95vw; width: 95vw; height: 95vh; margin: 2.5vh auto; }
.ban-detail-modal .modal-dialog-centered { min-height: 0; }
.ban-detail-modal .modal-content.ban-detail { height: 95vh; max-height: 95vh; display: flex; flex-direction: column; overflow: hidden; }
.ban-detail-modal .ban-detail > * { flex-shrink: 0; }
.ban-detail-modal .ban-detail__grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ban-detail-modal .ban-detail > .ban-detail__section--grow { flex: 1 1 0; min-height: 140px; display: flex; flex-direction: column; }
.ban-detail-modal .ban-detail__section--grow > .ban-detail__box { flex: 1 1 0; height: auto; max-height: none; min-height: 0; overflow: auto; font-size: 12.5px; }
.app .ban-detail-modal .modal-content.ban-detail { padding: 22px 22px 20px; }
.ban-detail-modal .modal-dialog-scrollable .modal-content { overflow-y: auto; }
.ban-detail__head { display: flex; align-items: flex-start; gap: 8px; }
.ban-detail__head > div { flex: 1; min-width: 0; }
.ban-detail__id { font-size: 12px; color: var(--text-2); }
.ban-detail__ip { font-family: var(--mono); font-weight: 600; font-size: 22px; line-height: 1.25; margin: 2px 0 8px; overflow-wrap: anywhere; color: var(--text); }
.ban-detail__close { border: 0; background: none; padding: 4px; color: var(--text-2); border-radius: 8px; cursor: pointer; display: grid; }
.ban-detail__close:hover { background: var(--surface-2); color: var(--text); }
.ban-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin: 18px 0 20px; }
.ban-detail__grid dt { font-size: 12px; font-weight: 500; color: var(--text-2); margin: 0 0 2px; }
.ban-detail__grid dd { margin: 0; font-size: 12.5px; font-weight: 700; overflow-wrap: anywhere; }
.ban-detail__section { margin-bottom: 18px; }
.ban-detail__section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ban-detail__section-head h3 { margin: 0; font-size: 13px; font-weight: 700; }
.ban-detail__section-head button {
	border: 0; background: none; padding: 0; color: var(--primary); font: 700 12.5px var(--font); cursor: pointer;
}
.ban-detail__box {
	font-family: var(--mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
	background: var(--surface-2); border-radius: 9px; padding: 9px 11px; color: var(--text-2);
	max-height: 160px; overflow: auto;
}
.ban-detail__box--dark { background: var(--navy-900); color: #e5ecf9; }
.ban-detail__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ban-detail__actions .btn-x {
	min-width: 0; height: auto; min-height: 40px; padding: 6px 8px; gap: 6px;
	font-size: 13px; line-height: 1.15; white-space: normal; text-align: center;
}
.ban-detail__actions .btn-x:only-child { grid-column: 1 / -1; }

/* ---------- modaly (Bootstrap 5) ---------- */
.app .modal-content { border: 0; border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(10, 26, 60, .25); font-family: var(--font); }
.app .modal-header { border-bottom: 1px solid var(--border); padding: 18px 22px; }
.app .modal-title { font-weight: 700; font-size: 17px; }
.app .modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.app .modal-footer { border-top: 1px solid var(--border); padding: 14px 22px; gap: 8px; }
.app .modal-footer > * { margin: 0; }
.app .modal-body .alert { border-radius: 10px; font-size: 13px; padding: 10px 12px; margin: 8px 0 0; }

/* ==========================================================================
   Responzivita
   ========================================================================== */
@media (max-width: 1100px) {
	.profile-layout, .user-form__grid { grid-template-columns: minmax(0, 1fr); }
	.detail-split { grid-template-columns: minmax(0, 1fr); }
	.dash-stats { grid-template-columns: 1fr 1fr; }
	.dash-quick { grid-column: 1 / -1; }
	.dash-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.app-shell { padding: 0; gap: 0; }
	.app-main { padding: 16px 16px 32px; }
	.app-sidebar {
		position: fixed; z-index: 1040; top: 0; left: 0; height: 100vh; border-radius: 0;
		transform: translateX(-100%); transition: transform .2s ease;
	}
	body.nav-open .app-sidebar { transform: none; }
	.app-backdrop { position: fixed; inset: 0; z-index: 1039; background: rgba(10, 26, 60, .45); display: none; }
	body.nav-open .app-backdrop { display: block; }
	.app-nav-toggle { display: grid; }
	.app-topbar { flex-wrap: wrap; align-items: center; }
	.app-topbar__actions { width: 100%; order: 3; }
	.app-search { flex: 1; width: auto; }
	.app-search kbd { display: none; }
	.app-title { font-size: 22px; }
}
@media (max-width: 600px) {
	.dash-stats { grid-template-columns: 1fr; }
	.donut-wrap { flex-direction: column; align-items: stretch; }
	.donut { align-self: center; }
	.bans-search { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   PŘIHLÁŠENÍ (Sign: @layout.latte – in, verify, newPass)
   ========================================================================== */
body.sign-page { min-height: 100vh; }
.sign-page *, .sign-page *::before, .sign-page *::after { box-sizing: border-box; }
.sign-shell { display: grid; grid-template-columns: minmax(0, 49%) minmax(0, 1fr); min-height: 100vh; padding: 10px; gap: 10px; }

.sign-hero {
	position: relative; overflow: hidden; display: flex; flex-direction: column;
	background: var(--navy-900); border-radius: var(--radius-lg); padding: 40px 34px 34px; color: #d7e0f0;
}
.sign-hero__brand { padding: 0; position: relative; z-index: 1; }
.sign-hero__logo { width: 48px; height: 48px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.sign-hero__body { margin-top: auto; margin-bottom: auto; padding: 40px 0; position: relative; z-index: 1; max-width: 380px; }
.sign-hero__title { margin: 0 0 24px; font-size: 36px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.sign-hero__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sign-hero__list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: #d7e0f0; }
.sign-hero__tick { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .08); color: #9fc0f5; }
.sign-hero__tick .i { width: 14px; height: 14px; }
.sign-hero__footer { margin: 0; font-size: 12.5px; color: #9fb0cd; position: relative; z-index: 1; }
.sign-hero__footer a { color: #d7e0f0 !important; text-decoration: underline !important; text-underline-offset: 2px; }
.sign-hero__art { position: absolute; right: -80px; bottom: -110px; width: 520px; height: 520px; color: rgba(126, 160, 220, .16); pointer-events: none; }
.sign-hero__art path { color: rgba(126, 160, 220, .45); }

.sign-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.sign-card { width: 100%; max-width: 352px; }
.sign-card__title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.sign-card__sub { margin: 6px 0 22px; font-size: 14px; color: var(--text-2); }
.sign-card .app-flashes { margin-bottom: 16px; }
.sign-card__back { margin-top: 22px; text-align: center; font-size: 13.5px; }
.sign-card__back a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text-2) !important; }
.sign-card__back a:hover { color: var(--primary) !important; }
.sign-card__back .i { width: 16px; height: 16px; }

.sign-form { display: flex; flex-direction: column; gap: 16px; }
.sign-field { display: flex; flex-direction: column; }
.sign-field[hidden] { display: none; }
.sign-field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sign-page .label-x { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.sign-page .input-x { height: 44px; background: var(--surface); border-color: var(--border); font-size: 14.5px; }
.sign-page .input-x:focus { box-shadow: 0 0 0 3px var(--primary-soft); }
.sign-password { position: relative; }
.sign-password .input-x { padding-right: 44px; }
.sign-password__toggle {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
	display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--text-2); cursor: pointer;
}
.sign-password__toggle:hover { background: var(--surface-2); color: var(--text); }
.sign-password__toggle .i { width: 17px; height: 17px; }
.sign-hint { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 12.5px; color: var(--primary-600); background: var(--primary-soft); border-radius: 9px; padding: 8px 10px; }
.sign-hint[hidden] { display: none; }
.sign-hint .i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.sign-remember { font-size: 13.5px; color: var(--text); margin-top: 2px; }
.sign-remember input { width: 18px; height: 18px; border-radius: 5px; }
.sign-submit { width: 100%; height: 46px; margin-top: 8px; font-size: 15px; box-shadow: 0 8px 18px rgba(22, 103, 224, .25); }
.sign-submit:disabled { opacity: .8; cursor: progress; }
.sign-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: sign-spin .7s linear infinite; }
.sign-spinner[hidden] { display: none; }
@keyframes sign-spin { to { transform: rotate(360deg); } }

/* 2FA ověření – šablony z knihovny adminit/opensesame (VerifyCodeControl, VerifyPushControl) */
.sign-verify .form-signin { margin: 0; }
.sign-verify .twofa-box-verify { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.sign-verify .twofa-input-verify {
	width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
	font: 600 18px var(--mono); letter-spacing: .3em; text-align: center; color: var(--text); outline: 0;
}
.sign-verify .twofa-input-verify::placeholder { font: 500 13px var(--font); letter-spacing: 0; color: var(--muted-2); }
.sign-verify .twofa-input-verify:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sign-verify .twofa-btn-verify {
	width: 100%; height: 46px; border: 0; border-radius: 10px; background: var(--primary); color: #fff;
	font: 700 15px var(--font); cursor: pointer; box-shadow: 0 8px 18px rgba(22, 103, 224, .25);
}
.sign-verify .twofa-btn-verify:hover { background: var(--primary-600); }
.sign-verify .verify-title { color: var(--text) !important; font-weight: 600; margin: 0 0 16px; }
.sign-verify .spinner-container { position: relative; width: 120px; height: 120px; margin: 8px auto 0; display: grid; place-items: center; }
.sign-verify .spinner { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: sign-spin 1s linear infinite; }
.sign-verify .countdown { position: relative; font: 800 28px var(--font); color: var(--text); text-align: center; max-width: 220px; }
.sign-verify .countdown:not(:empty) { line-height: 1.2; }

@media (max-width: 900px) {
	.sign-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; padding: 0; gap: 0; }
	.sign-hero { border-radius: 0; padding: 22px 22px 26px; }
	.sign-hero__body { padding: 22px 0 0; margin: 0; }
	.sign-hero__title { font-size: 24px; margin-bottom: 0; }
	.sign-hero__list, .sign-hero__footer, .sign-hero__art { display: none; }
	.sign-main { align-items: flex-start; padding: 28px 20px 40px; }
}

/* ---------- vícenásobný výběr (agenti, zákazníci) ---------- */
.multi-native { display: none !important; }
.multi-x { position: relative; }
.multi-x__btn { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; width: 100%; min-height: 40px; height: auto; padding-top: 5px; padding-bottom: 5px; text-align: left; cursor: pointer; background: #fff; }
.multi-x__placeholder { color: var(--text-2); }
.multi-x__tag { background: var(--primary-soft); color: var(--navy-800); border-radius: 6px; padding: 2px 7px; font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-x__more { font-size: 12px; font-weight: 700; color: var(--text-2); }
.multi-x__panel { position: relative; z-index: 30; margin-top: 4px; background: #fff; border: 1px solid var(--border, #e3e8f0); border-radius: 10px; box-shadow: 0 12px 30px rgba(16, 24, 40, .14); padding: 8px; }
.multi-x__search { height: 34px; margin-bottom: 6px; }
.multi-x__list { max-height: 260px; overflow-y: auto; }
.multi-x__item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font-size: 13px; cursor: pointer; margin: 0; }
.multi-x__item:hover { background: var(--surface-2); }
.multi-x__item[hidden] { display: none; }
.multi-x__item input { margin: 0; accent-color: var(--primary); }
.multi-x__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border, #e3e8f0); margin-top: 6px; padding-top: 6px; font-size: 12px; color: var(--text-2); }
.multi-x__foot button { border: 0; background: none; padding: 0; color: var(--primary); font: 600 12.5px var(--font); cursor: pointer; }
.filter-fields .multi-x__btn { height: auto; min-height: 36px; }
.filter-fields .multi-x__search { height: 32px; }
