html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Bootstrap 4 has no gap utilities; same spacing as Bootstrap 5's gap-2. */
.gap-2 {
    gap: .5rem;
}

/* Bootstrap 4.1 utilities missing from 4.0, same definitions. */
.w-auto {
    width: auto !important;
}

.table-borderless th,
.table-borderless td,
.table-borderless thead th,
.table-borderless tbody + tbody {
    border: 0;
}

/* Document of a prijava next to its pregled (Pregled/Prijave/Details). */
.pregled-dokument {
    height: calc(100vh - 15rem);
}

/* Komentar of a prijava keeps its line breaks (Pregled/Prijave/Details). */
.komentar-tekst {
    white-space: pre-wrap;
}

/* Ocena select in the tagovanje of a prijava (Pregled/Prijave/Details). */
.ocena-select {
    width: 3.5rem;
}

.form-control-sm .ts-control {
    padding: .25rem .5rem;
}

.ts-wrapper {
    padding: 0;
}

.ts-control > * {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Sudo button countdown at 00:00 (site.js). */
.sudo-expired {
    animation: sudo-blink 1s step-start infinite;
}

@keyframes sudo-blink {
    50% {
        visibility: hidden;
    }
}

/* Monaco editor of a template's tekst (template-markdown.js), on the email and document template pages. */
.template-body-editor {
    height: 60vh;
}

.flatpickr-day {
    border-radius: 5px;
}