html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

html {
    font-size: 1em; /* Default root size */
}

body {
    font-family: "Arial", "Helvetica", sans-serif;
    font-optical-sizing: auto;
    font-size: 1em;
    font-weight: 400;
    font-style: normal;
    color: #2d3034;
}

a {
    color: #5179b6;
    text-decoration: none;
}


/* Overlay handling - START*/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other elements */
}

.htmx-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 9999;
    pointer-events: all; /* blocks clicks */
}

.htmx-loader .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3rem;
    height: 3rem;
    margin: -1.5rem 0 0 -1.5rem;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Overlay handling - END*/



.debug {
    font-size: 0.7em;
    color: red;
    background-color: white;
    border: 1px dotted red;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
}

.page-header {
    background-color: cornflowerblue;
}


/* Filter stuff */

.filterActive
{
    color: cornflowerblue;
}

.filterNone
{
    /* @extend .text-muted; */
    --bs-text-opacity:1;color:var(--bs-secondary-color)!important;
}


/* Pagination stuff */

.pagination_bar {
    /* @extend .d-flex; */
    display:flex!important;

    /* @extend .justify-content-end; */
    justify-content:flex-end!important;
}





/* Table stuff */

thead.stdTableHead {
    border-top: 1px solid cornflowerblue;
    border-bottom: 1px solid cornflowerblue;
}

th.stdTableSubHeader {
    border-bottom: 1px solid gray;
}


.listSubItemTitle
{
    font-weight: bold;
    padding-right: 0.2rem;
}

.listSubItemSeparator
{
    height: 0.3rem;
}

.price-eur {
    text-align: right;
    white-space: nowrap;
}

.dare {
    color: red;
}

.avere {
    color: royalblue;
}


/* Text stuff */

.nowrap
{
    white-space: nowrap;
}

.strike-through
{
    color: gray;
    text-decoration: line-through;
}



/* Hide spinners from IntegerType */
.no-spinners::-webkit-inner-spin-button,
.no-spinners::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
.no-spinners {
    -moz-appearance: textfield;
}

