/* Tickera — vzhled. Hustší než CRM (hodně dat), ale vzdušný; modrá značka z loga (gradient #0a9bff → #1a2ee8), navy #0b1a35. */
:root {
    --tk-primary: #0b63f6;
    --tk-primary-dark: #0a4fd1;
    --tk-primary-soft: #eaf2ff;
    --tk-gradient: linear-gradient(135deg, #0a9bff 0%, #1a2ee8 100%);
    --tk-bg: #f4f7fb;
    --tk-surface: #ffffff;
    --tk-border: #e2e8f1;
    --tk-text: #0b1a35;
    --tk-muted: #667085;
    --tk-sidebar: #0b1a35;
    --tk-sidebar-text: #b8c3da;
    --tk-todo: #64748b;
    --tk-progress: #2563eb;
    --tk-done: #16a34a;
    --bs-primary: #0b63f6;
    --bs-primary-rgb: 11, 99, 246;
    --bs-link-color: #0a4fd1;
    --bs-link-color-rgb: 10, 79, 209;
    --bs-link-hover-color: #07348f;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: var(--tk-text);
    --bs-border-color: var(--tk-border);
    --bs-border-radius: .55rem;
}
body { background: var(--tk-bg); font-size: .9rem; }
h1, h2, h3, h4, h5 { font-family: 'Montserrat', 'Inter', sans-serif; letter-spacing: -.01em; }
.btn-primary { --bs-btn-bg: #0b63f6; --bs-btn-border-color: #0b63f6; --bs-btn-hover-bg: #0a4fd1; --bs-btn-hover-border-color: #0a4fd1; --bs-btn-active-bg: #0840ad; --bs-btn-disabled-bg: #8db4fb; --bs-btn-disabled-border-color: #8db4fb; }
.btn-primary:not(:disabled):not(.disabled) { background-image: linear-gradient(135deg, rgba(10, 155, 255, .55), rgba(26, 46, 232, .25)); }
.btn-outline-primary { --bs-btn-color: #0a4fd1; --bs-btn-border-color: #bcd3fd; --bs-btn-hover-bg: #0b63f6; --bs-btn-hover-border-color: #0b63f6; --bs-btn-active-bg: #0a4fd1; }
.form-control:focus, .form-select:focus { border-color: #8db4fb; box-shadow: 0 0 0 .2rem rgba(11, 99, 246, .15); }
.text-muted { color: var(--tk-muted) !important; }
.min-w-0 { min-width: 0; }
.fs-7 { font-size: .8rem; }
.text-xs { font-size: .72rem; }

/* ── Layout ─────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: 0 0 236px; background: var(--tk-sidebar); color: var(--tk-sidebar-text); display: flex; flex-direction: column; padding: .9rem .7rem; position: sticky; top: 0; height: 100vh; z-index: 1040; overflow-y: auto; }
.sidebar .brand { display: flex; align-items: center; text-decoration: none; padding: .55rem .45rem .35rem; }
.ws-name { font-size: .75rem; opacity: .6; padding: .1rem .55rem .9rem calc(.45rem + 41px); }
.sidebar .nav-link { color: var(--tk-sidebar-text); border-radius: .45rem; padding: .45rem .7rem; display: flex; align-items: center; gap: .65rem; margin-bottom: 1px; font-size: .88rem; }
.sidebar .nav-link i { font-size: 1.05rem; opacity: .85; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar .nav-link.active { background: rgba(64, 140, 255, .3); color: #fff; }
.sidebar .nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #7d8bab; padding: .9rem .7rem .3rem; display: flex; align-items: center; }
.sidebar .nav-section a { color: #7d8bab; margin-left: auto; text-decoration: none; }
.sidebar .nav-section a:hover { color: #fff; }
.sidebar .proj-link { padding: .3rem .7rem; font-size: .84rem; }
.proj-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; display: inline-block; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: .5rem; padding: .6rem 1.4rem; background: var(--tk-surface); border-bottom: 1px solid var(--tk-border); position: sticky; top: 0; z-index: 1030; }
.content { padding: 1.3rem 1.4rem; width: 100%; }
.content.narrow { max-width: 1280px; }
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
    .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1035; }
    .content { padding: 1rem; }
    .topbar { padding: .55rem 1rem; }
}

/* ── Logo ───────────────────────────────────────────────── */
.tkt-logo { display: inline-flex; align-items: center; line-height: 1; color: var(--tk-text); }
.tkt-mark { flex: 0 0 auto; display: block; }
.tkt-light { color: #fff; } /* nápis loga = currentColor */

/* ── Hledání ───────────────────────────────────────────── */
.search-box { position: relative; flex: 1; max-width: 460px; }
.search-box > i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--tk-muted); }
.search-box input { padding-left: 2.2rem; background: var(--tk-bg); border-color: transparent; }
.search-box input:focus { background: #fff; }
.search-results { width: 100%; max-height: 440px; overflow: auto; }
.search-results .dropdown-item { display: flex; gap: .6rem; align-items: center; white-space: normal; }
.search-results .dropdown-item small { color: var(--tk-muted); }
.search-results .dropdown-item.active, .search-results .dropdown-item:active { background: var(--tk-primary-soft); color: var(--tk-text); }

/* ── Komponenty ───────────────────────────────────────── */
.avatar-btn { border: 0; background: none; padding: 0; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: .74rem; font-weight: 600; flex: 0 0 auto; }
.avatar.sm { width: 22px; height: 22px; font-size: .6rem; }
.avatar.xs { width: 18px; height: 18px; font-size: .52rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar.empty { background: #e7e9f2; color: #98a0b8; border: 1px dashed #b8bdd2; }
.avatar-stack .avatar { margin-left: -6px; border: 2px solid #fff; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; margin-bottom: 1.1rem; }
.page-head h1 { font-size: 1.4rem; margin: 0; font-weight: 700; }
.page-head .sub { color: var(--tk-muted); font-size: .85rem; }
.page-head .actions { margin-left: auto; display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.breadcrumbs { font-size: .8rem; color: var(--tk-muted); margin-bottom: .2rem; }
.breadcrumbs a { color: var(--tk-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--tk-primary); }

.card { border-color: var(--tk-border); border-radius: .8rem; box-shadow: 0 1px 2px rgba(20, 24, 60, .04); }
.card-header { background: transparent; border-bottom-color: var(--tk-border); font-weight: 600; padding: .75rem 1rem; display: flex; align-items: center; gap: .5rem; }
.card-header .ms-auto { font-weight: 400; }
.card-body { padding: 1rem; }

.kpi { padding: 1rem 1.1rem; }
.kpi .label { color: var(--tk-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 1.55rem; font-weight: 700; font-family: 'Montserrat', sans-serif; margin-top: .15rem; line-height: 1.2; }
.kpi .hint { font-size: .78rem; color: var(--tk-muted); }

.table { --bs-table-bg: transparent; margin: 0; }
.table > :not(caption) > * > * { padding: .55rem .75rem; border-bottom-color: var(--tk-border); vertical-align: middle; }
.table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tk-muted); font-weight: 600; background: #fafbfe; white-space: nowrap; }
.table thead th a { color: inherit; text-decoration: none; }
.table-hover tbody tr[data-href] { cursor: pointer; }
.row-link { color: inherit; text-decoration: none; font-weight: 600; }
.row-link:hover { color: var(--tk-primary); }

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--tk-muted); }
.empty-state i { font-size: 2.4rem; color: #c3cede; display: block; margin-bottom: .7rem; }
.empty-state h3 { font-size: 1.05rem; color: var(--tk-text); }
.dl-grid { display: grid; grid-template-columns: 120px 1fr; gap: .45rem .75rem; margin: 0; align-items: center; }
.dl-grid dt { color: var(--tk-muted); font-weight: 400; font-size: .82rem; }
.dl-grid dd { margin: 0; word-break: break-word; min-width: 0; }
kbd { background: #eef2f8; color: #444; border: 1px solid #d9dbe6; font-size: .72rem; }
.filter-pills .btn { border-radius: 99px; }

/* ── Tiket: odznaky ───────────────────────────────────── */
.type-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: #fff; font-size: .62rem; flex: 0 0 auto; vertical-align: -3px; }
.type-icon.lg { width: 26px; height: 26px; font-size: .85rem; border-radius: 6px; }
.issue-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--tk-muted); white-space: nowrap; text-decoration: none; }
a.issue-key:hover { color: var(--tk-primary); }
.issue-key.done { text-decoration: line-through; }
.status-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: .35rem; padding: .18rem .5rem; white-space: nowrap; background: color-mix(in srgb, var(--st, #64748b) 14%, white); color: color-mix(in srgb, var(--st, #64748b) 80%, black); }
.status-pill.cat-done { background: #dcfce7; }
.prio { display: inline-flex; align-items: center; justify-content: center; width: 18px; font-weight: 700; }
.label-tag { display: inline-block; background: #eef2f8; color: #33415c; border-radius: .3rem; padding: .05rem .45rem; font-size: .72rem; margin: 0 .2rem .2rem 0; text-decoration: none; }
a.label-tag:hover { background: var(--tk-primary-soft); color: var(--tk-primary); }
.sp-badge { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 .35rem; border-radius: 99px; background: #e8edf5; color: #33415c; font-size: .7rem; font-weight: 700; }
.epic-tag { display: inline-block; font-size: .7rem; font-weight: 600; border-radius: .3rem; padding: .05rem .45rem; background: #f1e9ff; color: #6d28d9; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; text-decoration: none; }
.sla { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 600; border-radius: .3rem; padding: .08rem .45rem; white-space: nowrap; }
.sla-ok { background: #e0f2fe; color: #075985; }
.sla-warning { background: #fef3c7; color: #92400e; }
.sla-breached { background: #fee2e2; color: #991b1b; }
.sla-met { background: #dcfce7; color: #166534; }
.overdue { color: #dc2626 !important; font-weight: 600; }

.progress-thin { height: 6px; border-radius: 99px; background: #e8edf5; overflow: hidden; display: flex; }
.progress-thin span { display: block; height: 100%; }
.progress-thin .p-done { background: var(--tk-done); }
.progress-thin .p-progress { background: var(--tk-progress); }

/* ── Seznam tiketů ────────────────────────────────────── */
.issue-row { display: flex; align-items: center; gap: .55rem; padding: .45rem .75rem; border-bottom: 1px solid var(--tk-border); background: #fff; }
.issue-row:last-child { border-bottom: 0; }
.issue-row:hover { background: #f8fbff; }
.issue-row .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.issue-row .title:hover { color: var(--tk-primary); }
.issue-row.is-done .title { color: var(--tk-muted); }
.filters-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .8rem; }
.filters-bar .form-select, .filters-bar .form-control { width: auto; min-width: 120px; }

/* ── Detail tiketu ────────────────────────────────────── */
.issue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
@media (max-width: 1100px) { .issue-layout { grid-template-columns: 1fr; } }
.issue-title { font-size: 1.45rem; font-weight: 700; margin: .2rem 0 .7rem; font-family: 'Montserrat', sans-serif; }
.md { line-height: 1.6; word-wrap: break-word; }
.md p { margin-bottom: .6rem; }
.md h3, .md h4, .md h5 { font-size: 1rem; font-weight: 700; margin: 1rem 0 .4rem; font-family: inherit; }
.md ul, .md ol { padding-left: 1.3rem; margin-bottom: .6rem; }
.md ul.md-tasks { list-style: none; padding-left: .2rem; }
.md ul.md-tasks li.done { color: var(--tk-muted); text-decoration: line-through; }
.md ul.md-tasks .bi-check-square-fill { color: var(--tk-done); }
.md blockquote { border-left: 3px solid #bcd3fd; padding-left: .8rem; color: #475569; margin: .4rem 0; }
.md code { background: #f0f3f8; color: #b4235c; padding: .1rem .3rem; border-radius: .25rem; font-size: .85em; }
.md pre.md-code { background: #0b1a35; color: #e3ebfa; padding: .8rem 1rem; border-radius: .5rem; font-size: .82rem; overflow: auto; }
.md pre.md-code code { background: none; color: inherit; padding: 0; }
.md .mention { background: var(--tk-primary-soft); color: var(--tk-primary-dark); border-radius: .25rem; padding: 0 .2rem; font-weight: 600; }
.md a.issue-ref { font-weight: 600; text-decoration: none; }
.side-card dt { font-size: .78rem; }
.side-card .form-select-sm, .side-card .form-control-sm { border-color: transparent; background-color: transparent; padding-left: .3rem; margin-left: -.3rem; }
.side-card .form-select-sm:hover, .side-card .form-control-sm:hover, .side-card .form-select-sm:focus, .side-card .form-control-sm:focus { border-color: var(--tk-border); background-color: #fff; }
.transition-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tab-nav .nav-link { color: var(--tk-muted); padding: .4rem .8rem; font-size: .85rem; border-radius: .4rem; }
.tab-nav .nav-link.active { background: var(--tk-primary-soft); color: var(--tk-primary-dark); font-weight: 600; }
.activity-item { display: flex; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--tk-border); }
.activity-item:last-child { border-bottom: 0; }
.activity-item.internal { background: #fffbeb; margin: 0 -1rem; padding: .7rem 1rem; }
.activity-item.customer .comment-author { color: #b45309; }
.activity-item .comment-actions { opacity: 0; transition: opacity .15s; }
.activity-item:hover .comment-actions { opacity: 1; }
.history-line { font-size: .82rem; color: var(--tk-muted); padding: .35rem 0; }
.history-line b { color: var(--tk-text); font-weight: 600; }
.dev-link { display: flex; gap: .5rem; align-items: center; padding: .35rem 0; font-size: .82rem; border-bottom: 1px dashed var(--tk-border); }
.dev-link:last-child { border-bottom: 0; }
.subtask-list .issue-row { padding: .35rem .5rem; }
.attachment-tile { display: flex; gap: .5rem; align-items: center; border: 1px solid var(--tk-border); border-radius: .5rem; padding: .4rem .6rem; font-size: .82rem; text-decoration: none; color: inherit; max-width: 260px; }
.attachment-tile img { width: 40px; height: 40px; object-fit: cover; border-radius: .3rem; }
.attachment-tile:hover { border-color: #8db4fb; }
.copy-field { font-family: ui-monospace, monospace; font-size: .78rem; }

/* ── Tabule (kanban) ──────────────────────────────────── */
.board-toolbar { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .8rem; }
.board { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.board-lane { margin-bottom: 1rem; }
.board-lane-head { font-weight: 600; font-size: .85rem; padding: .35rem .2rem; display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.board-col { flex: 0 0 272px; background: #eceef6; border-radius: .7rem; display: flex; flex-direction: column; }
.board-col.over-wip { background: #fde8e8; }
.board-col-head { padding: .6rem .75rem .45rem; border-top: 3px solid var(--col-color, #94a3b8); border-radius: .7rem .7rem 0 0; display: flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #475569; }
.board-col-head .count { font-weight: 600; color: var(--tk-muted); }
.board-col-head .wip { margin-left: auto; font-size: .7rem; font-weight: 600; color: var(--tk-muted); text-transform: none; letter-spacing: 0; }
.board-col.over-wip .wip { color: #dc2626; }
.board-cards { padding: 0 .5rem .5rem; min-height: 50px; flex: 1; }
.board-cards.drop-ok { background: rgba(22, 163, 74, .08); outline: 2px dashed rgba(22, 163, 74, .45); outline-offset: -4px; border-radius: .5rem; }
.board-cards.drop-no { opacity: .45; }
.board-cards.drag-over { background: rgba(11, 99, 246, .1); }
.issue-card { background: #fff; border-radius: .55rem; padding: .55rem .65rem; margin-bottom: .45rem; box-shadow: 0 1px 2px rgba(20,24,60,.09); cursor: grab; border: 1px solid transparent; display: block; color: inherit; text-decoration: none; border-left: 3px solid transparent; }
.issue-card:hover { border-color: #bcd3fd; color: inherit; }
.issue-card.dragging { opacity: .4; }
.issue-card .card-title { font-size: .86rem; line-height: 1.3; font-weight: 500; margin-bottom: .4rem; }
.issue-card .card-foot { display: flex; align-items: center; gap: .35rem; font-size: .75rem; }
.issue-card .card-foot .ms-auto { display: flex; align-items: center; gap: .3rem; }
.issue-card.is-blocked { border-left-color: #dc2626; }
.issue-card.flag-overdue .due { color: #dc2626; font-weight: 600; }

/* ── Backlog ──────────────────────────────────────────── */
.sprint-box { background: #fff; border: 1px solid var(--tk-border); border-radius: .75rem; margin-bottom: 1rem; }
.sprint-box.is-active { border-color: #8db4fb; box-shadow: 0 0 0 3px rgba(11, 99, 246, .08); }
.sprint-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .65rem .9rem; border-bottom: 1px solid var(--tk-border); }
.sprint-head .name { font-weight: 700; }
.sprint-head .meta { font-size: .78rem; color: var(--tk-muted); }
.sprint-list { min-height: 42px; }
.sprint-list.drag-over { background: rgba(11, 99, 246, .07); }
.sprint-list .issue-row { cursor: grab; }
.sprint-list .issue-row.dragging { opacity: .4; }
.sprint-list:empty::after { content: 'Přetáhněte sem tikety z backlogu'; display: block; padding: .8rem; text-align: center; color: var(--tk-muted); font-size: .82rem; }
.sp-sum { display: inline-flex; gap: .25rem; }
.sp-sum span { border-radius: 99px; padding: 0 .45rem; font-size: .7rem; font-weight: 700; }
.sp-sum .todo { background: #e8edf5; color: #475569; }
.sp-sum .progress { background: #dbeafe; color: #1d4ed8; }
.sp-sum .done { background: #dcfce7; color: #166534; }

/* ── Roadmapa / Gantt ─────────────────────────────────── */
.gantt { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--tk-border); border-radius: .75rem; }
.gantt-grid { display: grid; min-width: 900px; }
.gantt-head { display: flex; border-bottom: 1px solid var(--tk-border); position: sticky; top: 0; background: #fafbfe; z-index: 2; }
.gantt-label-col { flex: 0 0 280px; padding: .5rem .8rem; font-size: .72rem; text-transform: uppercase; color: var(--tk-muted); font-weight: 600; border-right: 1px solid var(--tk-border); }
.gantt-months { flex: 1; display: flex; position: relative; }
.gantt-months div { flex: 1; padding: .5rem .4rem; font-size: .72rem; color: var(--tk-muted); border-left: 1px solid var(--tk-border); text-transform: capitalize; font-weight: 600; }
.gantt-row { display: flex; border-bottom: 1px solid #f0f1f6; min-height: 40px; }
.gantt-row:hover { background: #f8fbff; }
.gantt-row .gantt-label { flex: 0 0 280px; padding: .45rem .8rem; border-right: 1px solid var(--tk-border); display: flex; align-items: center; gap: .45rem; font-size: .85rem; min-width: 0; }
.gantt-row .gantt-label a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-row.group .gantt-label { font-weight: 700; background: #fafbfe; }
.gantt-track { flex: 1; position: relative; }
.gantt-bar { position: absolute; top: 9px; height: 22px; border-radius: .35rem; background: var(--bar, #7c3aed); color: #fff; font-size: .7rem; padding: 0 .4rem; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.gantt-bar .fill { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.28); }
.gantt-bar span { position: relative; }
.gantt-bar:hover { filter: brightness(1.08); color: #fff; }
.gantt-milestone { position: absolute; top: 11px; width: 16px; height: 16px; transform: rotate(45deg); background: #16a34a; border-radius: 2px; }
.gantt-milestone.open { background: #fff; border: 3px solid #d97706; }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: #dc2626; z-index: 1; opacity: .7; }
.gantt-sprint { position: absolute; top: 4px; bottom: 4px; background: rgba(11, 99, 246,.08); border: 1px dashed rgba(11, 99, 246,.35); border-radius: .3rem; font-size: .65rem; color: var(--tk-primary-dark); padding: 0 .3rem; overflow: hidden; white-space: nowrap; }

/* ── Grafy (charts.js / SVG) ─────────────────────────── */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis { stroke: #d6d9e6; }
.chart .grid { stroke: #eef2f8; }
.chart text { fill: #7a819c; font-size: 11px; font-family: Inter, sans-serif; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .78rem; color: var(--tk-muted); margin-top: .4rem; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.hbar { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; font-size: .83rem; }
.hbar .nm { width: 150px; flex: 0 0 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .bar { flex: 1; height: 20px; background: #f0f3f8; border-radius: .3rem; overflow: hidden; display: flex; }
.hbar .bar span { display: block; height: 100%; min-width: 2px; }
.hbar .val { width: 70px; text-align: right; font-weight: 600; }

/* ── Notifikace ─────────────────────────────────────── */
.bell-btn { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.bell-count { position: absolute; top: -3px; right: -5px; font-size: .62rem; }
.bell-menu { width: 360px; max-width: 92vw; }
.bell-list { max-height: 420px; overflow: auto; }
.notif-row { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .9rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--tk-border); }
.notif-row:hover { background: #f7f8fc; color: inherit; }
.notif-row.unread { background: #eef5ff; }
.notif-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: #eef2f8; color: #475569; }
.notif-icon.type-assigned { background: #dcfce7; color: #15803d; }
.notif-icon.type-mention { background: #fef3c7; color: #b45309; }
.notif-icon.type-sla { background: #fee2e2; color: #b91c1c; }
.notif-icon.type-sprint { background: var(--tk-primary-soft); color: var(--tk-primary-dark); }

/* ── Přihlášení / registrace ──────────────────────────── */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(circle at 85% 110%, rgba(64, 140, 255, .5), transparent 55%), linear-gradient(160deg, #0f3a8a 0%, #0b1a35 55%, #071226 100%); color: #c3d1ea; padding: 3rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.auth-side .bi-check-circle-fill { color: #5c9dff; }
.auth-side h2 { color: #fff; font-size: 2rem; font-weight: 800; }
.auth-side li { margin-bottom: .6rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: #fff; }
.auth-form .inner { width: 100%; max-width: 400px; }
.auth-mobile-logo { display: none; }
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-mobile-logo { display: block; } }

/* ── Nastavení: workflow editor ───────────────────────── */
.wf-diagram { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.wf-diagram .st { border-radius: .4rem; padding: .3rem .6rem; font-size: .78rem; font-weight: 700; color: #fff; }
.screen-table td, .screen-table th { font-size: .85rem; }
.color-input { width: 42px; padding: .2rem; height: 31px; }

/* Administrace platformy (provozovatel) */
.operator-banner { padding: .45rem .8rem; border-radius: .55rem; background: #0b1a35; color: #dfe8f8; font-size: .82rem; }
.operator-banner .bi { color: #8db4fb; margin-right: .3rem; }

/* ── Úpravy na místě (inline.js, issue/_inline.html.twig) ── */
.ie { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; border-radius: .4rem; padding: .1rem .3rem; margin: -.1rem -.3rem; transition: background .12s, box-shadow .12s; max-width: 100%; }
.ie:hover { background: rgba(11, 99, 246, .08); }
.ie:focus-visible { outline: none; box-shadow: 0 0 0 .18rem rgba(11, 99, 246, .35); }
.ie-empty { color: var(--tk-muted); }
.ie .ie-ph { color: var(--tk-muted); opacity: .55; font-size: .85em; }
.ie:hover .ie-ph { opacity: 1; }
.ie .sp-empty { background: transparent; border: 1px dashed #bcd3fd; color: var(--tk-muted); opacity: .55; }
.ie:hover .sp-empty { opacity: 1; }
.ie-caret { font-size: .7rem; color: var(--tk-muted); opacity: 0; transition: opacity .12s; }
.ie:hover .ie-caret, .ie:focus-visible .ie-caret { opacity: 1; }
.ie-saving { opacity: .45; pointer-events: none; }
.ie-saved { animation: ie-flash 1.2s ease-out; }
@keyframes ie-flash { 0% { background: rgba(22, 163, 74, .22); } 100% { background: transparent; } }
.issue-title .ie { margin: 0; padding: 0 .25rem; }
.ie-title-input { font: inherit; padding: .1rem .4rem; }
.ie-title { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; }
.ie-pencil { opacity: 0; font-size: .8rem; color: var(--tk-muted); }
tr:hover .ie-pencil, .ie-pencil:focus-visible { opacity: 1; }
.ie-link { color: var(--bs-link-color); cursor: pointer; display: inline-block; margin-top: .15rem; }
.ie-link:hover { text-decoration: underline; }
.ie-desc { position: relative; }
.ie-desc-edit { position: absolute; top: .4rem; right: .6rem; z-index: 1; font-size: .78rem; color: var(--tk-muted); opacity: 0; background: var(--tk-surface); margin: 0; }
.ie-desc:hover .ie-desc-edit, .ie-desc-edit:focus-visible { opacity: 1; }
/* karta tabule: pole se zvýrazní jen na hover karty, ať karta zůstane klidná */
.issue-card .ie { padding: 0 .15rem; margin: 0 -.15rem; }
.issue-card .sp-empty { display: none; }
.issue-card:hover .sp-empty { display: inline-block; }
.issue-card .due .ie-ph { display: none; }
.issue-card:hover .due .ie-ph { display: inline; }

.ie-pop { position: absolute; z-index: 1080; width: 270px; padding: .55rem; background: var(--tk-surface); border: 1px solid var(--tk-border); border-radius: .6rem; box-shadow: 0 12px 32px rgba(30, 27, 75, .18); font-size: .86rem; }
.ie-pop.wide { width: 380px; }
.ie-pop:focus { outline: none; }
.ie-pop-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--tk-muted); margin-bottom: .35rem; }
.ie-search { margin-bottom: .35rem; }
.ie-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.ie-opt { display: flex; align-items: center; gap: .45rem; padding: .32rem .45rem; border-radius: .4rem; cursor: pointer; }
.ie-opt.active { background: var(--tk-primary-soft); }
.ie-opt[aria-selected="true"] { font-weight: 600; }
.ie-opt-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-opt-sub { color: var(--tk-muted); font-size: .76rem; margin-left: auto; white-space: nowrap; padding-left: .4rem; }
.ie-opt .bi-check2 { color: var(--tk-primary); }
.ie-opt-sub + .bi-check2 { margin-left: .3rem !important; }
.ie-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tk-muted); padding: .45rem .45rem .15rem; }
.ie-none { padding: .4rem .45rem; color: var(--tk-muted); }
.ie-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.ie-chip { border: 1px solid var(--tk-border); background: var(--tk-surface); border-radius: 1rem; padding: .1rem .55rem; font-size: .8rem; }
.ie-chip:hover, .ie-chip.on { border-color: var(--tk-primary); color: var(--tk-primary-dark); background: var(--tk-primary-soft); }
.ie-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .4rem; }
.ie-tags .label-tag button { border: 0; background: none; padding: 0 0 0 .2rem; line-height: 1; color: inherit; opacity: .6; }
.ie-tags .label-tag button:hover { opacity: 1; }
.ie-suggest { margin-top: .3rem; max-height: 180px; }
.ie-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 1090; display: flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: .6rem; background: #0b1a35; color: #fff; font-size: .86rem; box-shadow: 0 8px 24px rgba(30, 27, 75, .3); max-width: calc(100vw - 2rem); }
.ie-toast .bi { color: #86efac; }
.ie-toast.error { background: #7f1d1d; }
.ie-toast.error .bi { color: #fecaca; }
.ie-toast .btn-link { color: #bcd3fd; padding: 0 0 0 .4rem; font-weight: 600; }
@media (max-width: 576px) { .ie-pop, .ie-pop.wide { width: calc(100vw - 16px); } }
@media print { .ie-caret, .ie-pencil, .ie-desc-edit, .ie-ph, .sp-empty { display: none !important; } }
.ie-pair { display: inline-flex; flex-wrap: wrap; gap: .1rem .7rem; align-items: center; }
/* ve výpisu a řádcích jsou prázdné „+“ placeholdery vidět jen na řádku pod myší (a při fokusu) */
tr:not(:hover) .ie:not(:focus-visible) .ie-ph, tr:not(:hover) .ie:not(:focus-visible) .sp-empty,
.issue-row:not(:hover) .ie:not(:focus-visible) .ie-ph, .issue-row:not(:hover) .ie:not(:focus-visible) .sp-empty { visibility: hidden; }
.ie-opt-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.ie-opt-main .ie-opt-sub { margin-left: 0; padding-left: 0; font-size: .72rem; overflow: hidden; text-overflow: ellipsis; }
.ie-opt-main:empty { display: none; }
.ie-suggest .ie-opt-sub { margin-left: auto; }
.ie { white-space: nowrap; }
.ie-title .row-link { white-space: normal; }
.issue-title .ie, .ie-labels, .ie-epic { white-space: normal; }
.ie-labels { flex-wrap: wrap; }
.ie-desc-add { color: var(--tk-muted); margin: 0; }
.ie-desc-add:hover { color: var(--tk-primary-dark); }

/* ── Stopky práce (timer.js) ── */
.timer-widget { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .25rem .2rem .6rem; border-radius: 2rem; background: #ecfdf5; border: 1px solid #a7f3d0; font-size: .84rem; }
.timer-widget[hidden] { display: none; }
.timer-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #16a34a; animation: timer-pulse 1.6s infinite; }
@keyframes timer-pulse { 50% { opacity: .3; } }
.timer-key { font-family: var(--bs-font-monospace); font-weight: 600; color: #065f46; text-decoration: none; }
.timer-time { font-variant-numeric: tabular-nums; color: #065f46; min-width: 3.2em; }
.timer-stop, .timer-more { border: 0; background: transparent; color: #065f46; border-radius: 50%; width: 1.7rem; height: 1.7rem; display: inline-grid; place-items: center; padding: 0; }
.timer-stop { background: #16a34a; color: #fff; }
.timer-stop:hover { background: #15803d; }
.timer-more:hover { background: #d1fae5; }
.timer-widget.long { background: #fffbeb; border-color: #fcd34d; }
.timer-widget.long .timer-dot { background: #d97706; }
.timer-widget.long .timer-key, .timer-widget.long .timer-time { color: #92400e; }
.timer-pop { width: 290px; }
.timer-warn { background: #fffbeb; border: 1px solid #fde68a; border-radius: .45rem; padding: .35rem .5rem; font-size: .8rem; margin-bottom: .5rem; }
.timer-btn { border: 1px solid transparent; background: transparent; color: var(--tk-muted); border-radius: 1rem; padding: 0 .3rem; line-height: 1.4; font-size: .85rem; display: inline-flex; align-items: center; gap: .25rem; }
.timer-btn:hover { color: #15803d; background: #ecfdf5; border-color: #a7f3d0; }
.timer-btn.running { color: #fff; background: #16a34a; border-color: #16a34a; }
.timer-btn.with-label { border-color: var(--tk-border); padding: .15rem .55rem; font-size: .82rem; color: var(--bs-body-color); background: var(--tk-surface); }
.timer-btn.with-label.running { color: #fff; background: #16a34a; border-color: #16a34a; font-variant-numeric: tabular-nums; }
/* ve výpisu, řádcích a na kartách jen při najetí (běžící je vidět vždy) */
tr:not(:hover) .timer-btn:not(.running):not(:focus-visible), .issue-row:not(:hover) .timer-btn:not(.running):not(:focus-visible),
.issue-card:not(:hover) .timer-btn:not(.running):not(:focus-visible) { visibility: hidden; }
@media (max-width: 576px) { .timer-widget .timer-key { display: none; } }
@media print { .timer-widget, .timer-btn { display: none !important; } }

/* ── Osobní dashboard (dashboard.js) ── */
.dash-col { display: flex; flex-direction: column; gap: 1rem; min-height: 2rem; }
.dw { overflow: hidden; transition: box-shadow .15s, opacity .15s; }
.dw-head { display: flex; align-items: center; gap: .45rem; padding: .55rem .75rem; border-bottom: 1px solid var(--tk-border); }
.dw.collapsed .dw-head { border-bottom: 0; }
.dw.collapsed .dw-body, .dw.collapsed .dw-settings { display: none; }
.dw-icon { color: var(--tk-primary); }
.dw-title { font-size: .9rem; font-weight: 600; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; letter-spacing: 0; }
.dw-tools { display: flex; align-items: center; gap: .1rem; }
.dw-tool { border: 0; background: transparent; color: var(--tk-muted); width: 1.75rem; height: 1.75rem; border-radius: .4rem; display: inline-grid; place-items: center; padding: 0; }
.dw-tool:hover, .dw-tool:focus-visible { background: var(--tk-primary-soft); color: var(--tk-primary-dark); }
.dw-view { opacity: 0; transition: opacity .12s; }
.dw:hover .dw-view, .dw-view:focus-visible, .dw.collapsed .dw-view[data-act="collapse"] { opacity: 1; }
.dw-edit, .dw-handle { display: none !important; }
.dash-editing .dw-edit { display: inline-grid !important; }
.dash-editing .dw-handle { display: inline-flex !important; cursor: grab; color: var(--tk-muted); margin-left: -.3rem; }
.dash-editing .dw { outline: 1px dashed #bcd3fd; outline-offset: 2px; }
.dash-editing .dw-view { opacity: 1; }
.dw-body { padding: .6rem .75rem .75rem; min-height: 3rem; }
.dw.loading .dw-body { opacity: .55; }
.dw-body .issue-row { margin: 0 -.75rem; padding-left: .75rem; padding-right: .75rem; }
.dw-settings { padding: .7rem .75rem; background: var(--tk-primary-soft); border-bottom: 1px solid var(--tk-border); }
.dw-skeleton span { display: block; height: .7rem; margin: .45rem 0; border-radius: .3rem; background: linear-gradient(90deg, #eef2f8, #f7f8fb, #eef2f8); background-size: 200% 100%; animation: dw-shimmer 1.2s infinite; }
.dw-skeleton span:nth-child(2) { width: 80%; } .dw-skeleton span:nth-child(3) { width: 60%; }
@keyframes dw-shimmer { to { background-position: -200% 0; } }
.dw-empty { color: var(--tk-muted); font-size: .85rem; padding: .6rem 0; }
.dw-more { display: block; font-size: .8rem; margin-top: .5rem; }
.dw-group { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .55rem 0 .2rem; }
.dw-group span { font-weight: 400; }
.dw-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tk-muted); margin: .6rem 0 .2rem; }
.dw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.dw-kpi { display: flex; flex-direction: column; padding: .55rem .7rem; border: 1px solid var(--tk-border); border-radius: .55rem; text-decoration: none; color: inherit; }
a.dw-kpi:hover { border-color: #bcd3fd; background: var(--tk-primary-soft); }
.dw-kpi .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tk-muted); }
.dw-kpi .value { font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.dw-kpi .hint { font-size: .74rem; color: var(--tk-muted); }
.small-kpis { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.small-kpis .value { font-size: 1.15rem; }
.dw-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.dw-list li { display: flex; gap: .4rem; padding: .2rem 0; border-top: 1px solid var(--tk-border); min-width: 0; }
.dw-timer { display: flex; align-items: center; gap: .4rem; font-size: .82rem; background: #ecfdf5; border-radius: .45rem; padding: .3rem .5rem; margin-bottom: .4rem; }
.dw-activity { display: flex; gap: .5rem; padding: .4rem 0; border-top: 1px solid var(--tk-border); }
.dw-activity:first-child { border-top: 0; }
.dw-sprint { padding: .45rem 0; border-top: 1px solid var(--tk-border); }
.dw-sprint:first-child { border-top: 0; padding-top: 0; }
.dw-load { display: grid; grid-template-columns: auto minmax(80px, 1fr) 2fr auto; align-items: center; gap: .5rem; padding: .25rem 0; font-size: .84rem; }
.dw-load .bar { height: 6px; background: #eef2f8; border-radius: 3px; overflow: hidden; }
.dw-load .bar span { display: block; height: 100%; }
.dw-error { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; border-top: 1px solid var(--tk-border); text-decoration: none; color: inherit; }
.dw-error:first-child { border-top: 0; }
.dw-error:hover .fw-semibold { color: var(--tk-primary-dark); }
.dash-drop-hint { display: none; }
.dash-editing .dash-col:not(:has(> .dw)) .dash-drop-hint, .is-dragging .dash-drop-hint { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 4.5rem; border: 2px dashed #bcd3fd; border-radius: .6rem; color: var(--tk-muted); font-size: .84rem; }
.is-dragging .dash-col:has(> .dw) .dash-drop-hint { min-height: 2.5rem; opacity: .6; }
.dw-placeholder { border: 2px dashed var(--tk-primary); border-radius: .6rem; background: var(--tk-primary-soft); }
.dw.dragging { opacity: .35; }
.dw-new, .dw-moved { animation: dw-pop .6s ease-out; }
@keyframes dw-pop { 0% { box-shadow: 0 0 0 .3rem rgba(11, 99, 246, .35); } 100% { box-shadow: none; } }
.dash-layouts { display: flex; gap: .3rem; }
.dash-layout { display: flex; gap: 2px; width: 2.4rem; height: 1.6rem; padding: 3px; border: 1px solid var(--tk-border); border-radius: .35rem; background: var(--tk-surface); }
.dash-layout span { background: #bcd3fd; border-radius: 2px; }
.dash-layout:hover { border-color: var(--tk-primary); }
.dash-layout[aria-checked="true"] { border-color: var(--tk-primary); box-shadow: 0 0 0 .15rem rgba(11, 99, 246, .25); }
.dash-layout[aria-checked="true"] span { background: var(--tk-primary); }
.dw-gallery-group { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tk-muted); margin: .8rem 0 .4rem; }
.dw-gallery-group:first-child { margin-top: 0; }
.dw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem; }
.dw-card { display: flex; align-items: flex-start; gap: .6rem; text-align: left; padding: .6rem .7rem; border: 1px solid var(--tk-border); border-radius: .6rem; background: var(--tk-surface); }
.dw-card:hover, .dw-card:focus-visible { border-color: var(--tk-primary); background: var(--tk-primary-soft); }
.dw-card-icon { width: 2rem; height: 2rem; border-radius: .5rem; display: grid; place-items: center; background: var(--tk-primary-soft); color: var(--tk-primary); flex: none; }
.dw-card-text { flex: 1; font-size: .86rem; }
.dw-card-add { color: var(--tk-primary); opacity: .5; }
.dw-card:hover .dw-card-add { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dw-skeleton span, .dw-new, .dw-moved { animation: none; } }
@media print { .dash-actions, .dash-toolbar, .dw-tools { display: none !important; } }
.dw-list a { white-space: nowrap; }
.dw-list li .text-truncate { min-width: 0; flex: 1; }

/* ── Klienti a náklady ── */
.client-avatar { width: 2rem; height: 2rem; border-radius: .55rem; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: .78rem; flex: none; }
.client-avatar.lg { width: 3rem; height: 3rem; font-size: 1.05rem; border-radius: .8rem; }
.pay-schedule td { padding-top: .2rem; padding-bottom: .2rem; }
.pay-schedule input[type=time] { min-width: 5.6rem; }
.pay-schedule .input-group { min-width: 6.5rem; }
.pay-schedule td:first-child { white-space: nowrap; }
@media print { .no-print, .sidebar, .topbar, .ai-fab, .timer-widget { display: none !important; } .invoice-basis { border: 0; } .invoice-basis .card-body { padding: 0; } main.content { padding: 0 !important; } }

/* Pracovní role (Nastavení → Pracovní role) */
.role-icon { width: 2.25rem; height: 2.25rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: none; }
.role-card { transition: box-shadow .15s, transform .15s; }
.role-card:hover { box-shadow: 0 .25rem .9rem rgba(0,0,0,.08); transform: translateY(-1px); }

/* ── Snímky a záznamy obrazovky (public/js/capture.js) ── */
[data-capture] { position: relative; }
.cap-drop-hint { display: none; }
[data-capture].cap-drop { outline: 2px dashed var(--tk-primary); outline-offset: -4px; }
[data-capture].cap-drop .cap-drop-hint { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; gap: .5rem; background: rgba(234, 242, 255, .92); color: var(--tk-primary-dark); font-weight: 600; border-radius: inherit; z-index: 5; pointer-events: none; }
.cap-buttons .btn { white-space: nowrap; }
.cap-stage { background: repeating-conic-gradient(#eef2f8 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid var(--tk-border); border-radius: .4rem; display: flex; justify-content: center; align-items: center; max-height: 68vh; overflow: auto; }
.cap-stage canvas { max-width: 100%; max-height: 66vh; touch-action: none; display: block; }
.cap-toolbar .btn.active { background: var(--tk-primary); color: #fff; border-color: var(--tk-primary); }
.cap-color { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--tk-border); padding: 0; }
.cap-color.active { box-shadow: 0 0 0 2px var(--tk-primary); }
.cap-video { width: 100%; max-height: 70vh; background: #000; border-radius: .4rem; display: block; }
.cap-image { max-width: 100%; max-height: 75vh; display: block; margin: 0 auto; border-radius: .3rem; }
.cap-recbar { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 2000; display: flex; align-items: center; gap: .6rem; background: #0b1a35; color: #fff; padding: .45rem .55rem .45rem .9rem; border-radius: 99px; font-variant-numeric: tabular-nums; }
.cap-dot { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; animation: cap-pulse 1.2s infinite; }
.cap-recbar.paused .cap-dot { animation: none; background: #f59e0b; }
@keyframes cap-pulse { 50% { opacity: .25; } }
.cap-countdown { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; font-size: 7rem; font-weight: 800; color: #fff; background: rgba(11, 26, 53, .35); pointer-events: none; }
.cap-progress { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 2000; width: 300px; background: #fff; border: 1px solid var(--tk-border); border-radius: .6rem; padding: .7rem .9rem; }
.cap-chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--tk-border); border-radius: 99px; padding: .2rem .4rem .2rem .7rem; font-size: .8rem; background: #fff; }
.attachment-video { width: 40px; height: 40px; border-radius: .3rem; background: #0b1a35; color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.cap-new { animation: cap-in .4s ease-out; }
@keyframes cap-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .cap-dot, .cap-new { animation: none; } }

/* ── Analýza hlášení (issue/_insights.html.twig, js/insights.js) ── */
.insight-card .card-header { background: linear-gradient(90deg, var(--tk-primary-soft), #fff 70%); }
.insight-section { padding: .55rem 0; border-top: 1px dashed var(--tk-border); }
.insight-section:first-child { border-top: 0; }
.insight-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tk-muted); font-weight: 600; margin-bottom: .4rem; }
.insight-chip { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--tk-border); background: #f8fbff; border-radius: 99px; padding: .12rem .6rem; font-size: .78rem; color: inherit; text-decoration: none; }
a.insight-chip:hover { border-color: #8db4fb; }
.insight-chip-err { background: #fef2f2; border-color: #fecaca; color: #991b1b; font-family: ui-monospace, monospace; font-size: .74rem; }
.insight-row { display: flex; gap: .7rem; align-items: center; padding: .45rem .3rem; border-radius: .45rem; }
.insight-row:hover { background: #f8fbff; }
.insight-row.ai-yes { background: #ecfdf5; box-shadow: inset 3px 0 0 #16a34a; }
.insight-row.ai-no { opacity: .55; }
.insight-actions form { margin: 0; }
.insight-score { --size: 38px; position: relative; flex: none; width: var(--size); height: var(--size); display: grid; place-items: center; font-size: .72rem; }
.insight-score span { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#94a3b8 calc(var(--p) * 1%), #e8edf5 0); -webkit-mask: radial-gradient(farthest-side, transparent 68%, #000 70%); mask: radial-gradient(farthest-side, transparent 68%, #000 70%); }
.insight-score.mid span { background: conic-gradient(#f59e0b calc(var(--p) * 1%), #e8edf5 0); }
.insight-score.hi span { background: conic-gradient(#e11d48 calc(var(--p) * 1%), #e8edf5 0); }
.insight-score b { position: relative; }
.insight-more summary { cursor: pointer; }
.similar-box { grid-column: 1 / -1; width: 100%; border: 1px solid #fde68a; background: #fffbeb; border-radius: .6rem; padding: .6rem .8rem; font-size: .85rem; }
.similar-item { display: flex; gap: .6rem; align-items: center; padding: .3rem 0; }
.similar-item .insight-score { --size: 32px; font-size: .68rem; }
.wave-card { border-color: #fecaca; }
.wave-card .card-header { background: #fef2f2; }
.hd-badge-dup { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.cap-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 2200; background: #0b1a35; color: #fff; padding: .55rem 1rem; border-radius: .6rem; font-size: .88rem; max-width: 90vw; }
.cap-toast-err { background: #b91c1c; }
.portal-match { border: 1px solid #fde68a; background: #fffbeb; border-radius: .6rem; padding: .6rem .8rem; }
.portal-match .chosen { background: #ecfdf5; border-radius: .4rem; padding-left: .4rem !important; }
.portal-diag .form-check-label { line-height: 1.35; }
.triage-suggest { font-size: .78rem; margin-top: .2rem; background: var(--tk-primary-soft); border-radius: .35rem; padding: .15rem .45rem; display: inline-block; max-width: 100%; }

/* ── Hlášení z mobilu (/nahlasit) ── */
.mreport { max-width: 640px; margin: 0 auto; }
.mreport .form-select, .mreport .form-control { font-size: 16px; } /* iOS jinak při psaní přiblíží stránku */
.mreport-page-card { display: flex; gap: .6rem; align-items: center; background: var(--bs-light, #f4f7fb); border: 1px solid #dfe6f1; border-radius: .6rem; padding: .5rem .75rem; }
.mreport-page-card > i { font-size: 1.4rem; color: #0b63f6; }
.mreport-pick { min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; }
.mreport-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.mreport-thumb { position: relative; display: block; border: 1px solid #dfe6f1; border-radius: .5rem; overflow: hidden; background: #fff; margin: 0; cursor: pointer; }
.mreport-thumb img, .mreport-thumb .vid { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #0b1a35; color: #fff; font-size: 2rem; }
.mreport-thumb .nm { display: block; font-size: .7rem; padding: .15rem .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #5b6475; }
.mreport-thumb input[type=checkbox] { position: absolute; top: .35rem; left: .35rem; width: 1.2rem; height: 1.2rem; z-index: 1; }
.mreport-thumb .rm { position: absolute; top: .25rem; right: .25rem; padding: 0 .3rem; line-height: 1.4; }
.mreport-submit { position: sticky; bottom: 0; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bs-body-bg, #fff) 30%); margin-top: .75rem; z-index: 5; }
@media (max-width: 576px) { main.content.mreport-page { padding-left: .75rem !important; padding-right: .75rem !important; } }

/* ── Virtuální uživatel / napříč firmami ── */
.firm-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c, #64748b); flex: 0 0 auto; vertical-align: baseline; }
.firm-badge { display: inline-block; max-width: 120px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; font-weight: 700; padding: .05rem .4rem; border-radius: .3rem; color: color-mix(in srgb, var(--c) 85%, black); background: color-mix(in srgb, var(--c) 14%, white); }
.firm-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.firm-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; padding: .2rem .6rem; border-radius: 99px; border: 1px solid #dfe3ee; color: var(--tk-muted, #64748b); text-decoration: none; background: #fff; }
.firm-chip.on { border-color: var(--c); color: #0b1a35; background: color-mix(in srgb, var(--c) 10%, white); }
.firm-chip .firm-dot { background: var(--c); opacity: .45; }
.firm-chip.on .firm-dot { opacity: 1; }
.firm-card { border-top: 3px solid var(--c); }
.firm-card .firm-dot { background: var(--c); }
.firm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.firm-kpis a { display: flex; flex-direction: column; padding: .4rem .5rem; border-radius: .45rem; background: #f4f6fb; color: inherit; text-decoration: none; line-height: 1.15; }
.firm-kpis a:hover { background: #eaf0fe; }
.firm-kpis b { font-size: 1.15rem; }
.firm-kpis span { font-size: .7rem; color: var(--tk-muted, #64748b); }
.firm-kpis a.warn b { color: #dc2626; }
.firm-kpis a.info b { color: #d97706; }
.cross-board .board-col { flex: 1 1 300px; min-width: 272px; }
.cross-card { border-left-width: 4px; }
.firm-switch { display: inline-flex; align-items: center; gap: .4rem; }
.firm-switch .firm-dot { background: var(--c); }
.firm-menu form { margin: 0; }
.firm-menu .dropdown-item { display: flex; align-items: center; gap: .45rem; }
@media (max-width: 576px) { .firm-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ── Import a analýza logu ── */
.log-drop { border: 2px dashed #c9d3e6; border-radius: .7rem; padding: 1rem; text-align: center; background: #f8fafd; }
.log-drop.over { border-color: #0b63f6; background: #eaf2ff; }
.log-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: .4rem; text-align: center; }
.log-levels > div { display: flex; flex-direction: column; gap: .2rem; align-items: center; }
.log-levels b { font-size: 1.15rem; }
.log-pre { background: #0b1a35; color: #e3ebfa; border-radius: .5rem; padding: .6rem .75rem; font-size: .74rem; max-height: 320px; overflow: auto; white-space: pre; margin: .3rem 0 0; }
.log-group .card-body { padding-left: .8rem; padding-right: .8rem; }
