/* ==========================================================================
   Utility Classes
   Was zu keiner Komponente gehoert und was Bootstrap nicht hat. Alles, wofuer
   es eine Bootstrap-Klasse gibt, steht hier nicht mehr (#706).
   ========================================================================== */

/* 2rem steht in Bootstraps Skala nicht: gap-4 ist 1,5rem, gap-5 ist 3rem. */
.u-gap-md {
    gap: 2rem;
}

/* Cursor utilities */
.u-cursor-pointer {
    cursor: pointer;
}

/* Perspective utility for 3D effects */
.u-perspective-40 {
    perspective: 40px;
}

/* Links */
a:link,
a:visited,
.hover-text:not(td) {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

a:hover,
a:active,
.hover-text:not(td):hover {
    cursor: pointer;
}

td.hover-text {
    color: var(--bs-info);
    cursor: pointer;
}

td.hover-text:hover {
    background-color: var(--app-surface-muted);
}

/* Freshness badge color coding — matches the ProgressBar thresholds/colors */
.freshness-success {
    color: var(--app-positive);
}

.freshness-warning {
    color: var(--bs-warning);
}

.freshness-orange {
    color: var(--app-orange);
}

.freshness-danger {
    color: var(--bs-danger);
}

/* Max-width utilities */
.u-max-w-200 {
    max-width: 200px;
}

.u-max-w-240 {
    max-width: 240px;
}

.u-max-w-620 {
    max-width: 620px;
}

.u-w-80 {
    width: 80px;
}

.u-w-auto {
    width: auto;
}

/* Off-screen helper for transient elements (e.g. execCommand copy fallback) */
.u-offscreen {
    position: absolute;
    left: -9999px;
    top: 0;
}
