/* TomSelect dropdown fix — ensure opaque background */
.ts-dropdown {
    background-color: var(--tblr-bg-surface, #ffffff) !important;
    z-index: 1050;
}

/* TomSelect — hide empty input line after selection in single-value mode */
.ts-wrapper.single .ts-control > input {
    min-width: 0 !important;
    width: 0 !important;
}

.ts-wrapper.single.has-items .ts-control > input:not(:focus) {
    position: absolute;
}

/* Fix Symfony checkbox form_row — remove left padding offset inside cards */
.card-body .form-check {
    padding-left: 0;
}

.card-body .form-check .form-check-input {
    margin-left: 0;
    position: relative;
    float: left;
    margin-right: 0.5rem;
}

/* Form B-IV — Přehled pracovišť (tabular editor) */
.practice-workplaces-table .drag-handle {
    cursor: move;
    user-select: none;
    width: 24px;
}

.practice-workplaces-table tr.dragging {
    opacity: 0.4;
}

.practice-workplaces-table tr.drag-over-top td {
    box-shadow: inset 0 2px 0 0 var(--tblr-primary);
}

.practice-workplaces-table tr.drag-over-bottom td {
    box-shadow: inset 0 -2px 0 0 var(--tblr-primary);
}

.practice-workplaces-table textarea.form-control {
    resize: none;
    min-height: calc(1.5em + 0.5rem + 2px);
    overflow: hidden;
}

/* Subject preview — klikatelný název předmětu se zvýrazní jako odkaz s tečkovaným podtržením. */
a[data-controller="subject-preview"],
a.entity-link {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a[data-controller="subject-preview"]:hover,
a[data-controller="subject-preview"]:focus,
a.entity-link:hover,
a.entity-link:focus {
    color: var(--tblr-primary, #066fd1);
    text-decoration-style: solid;
}

/* C-I tabulky — fixed layout vyžaduje wrap dlouhého textu (org. názvy v "Vztah k VŠ"),
   jinak obsah přetéká přes sousední buňku. */
.table.card-table {
    word-break: break-word;
    overflow-wrap: anywhere;
}
