/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}
:root {
    --vh: 1vh;
}

html, body {
    height: 100%;
}

body {
    min-height: 100svh; /* moderne browsers */
}

@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
    /* iOS */
}
/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/*sticky top and bottom bar that "frames" the content. Content will remain scrollable*/
/* Sticky top bar */
.top-bar {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1000;
    border-bottom: 1px solid #ececec;
    overflow: hidden;
}

/* Sticky bottom bar */
.bottom-bar {
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 1000;
    border-top: 1px solid #ececec;
    overflow: hidden;
}

.scrollable-content {
    overflow-y: auto;
    flex-grow: 1;
    padding: 0.25rem;
    /* Optional: fix horizontal scroll issue */
    overflow-x: hidden;
}

.table-small-text {
    font-size: 12px;
}

video.photo-viewfinder {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

.photo-container
{
    border: 2px solid black;
    transform: translateX(-50%);
}

.konvajs-content {
    width: 100%;
    height: 100vh;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Element outline for debugging*/
.debug {
    outline: 1px solid #ff0000;
}

/*order lines tablew - more prominent interaction*/
/* Make table rows highlight with semi-transparent btn-primary color */
#orderLinesTable tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
    cursor: pointer; /* Show pointing finger */
    transition: background-color 0.2s ease-in-out;
}

