body {
    background-color: ghostwhite;
}

/* An expanded Bootstrap navbar keeps its links on one nowrap row, so a long
   menu overflows the document rather than the navbar and the whole page starts
   scrolling sideways. Wrap onto further rows instead. */
.navbar-nav {
    flex-wrap: wrap;
}

.clickable_row:hover {
    background: lightblue;
    cursor: pointer;
}

.clickable:hover {
    cursor: pointer;
}

/* delete button for gallery */
button.gallery-delete-button:hover {
    color: red;
}



/* Simon Styling for fixed header - 26.04.2022 */
.tablefixhead thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #f2f2f2;
}


.logline_notchat {
    display: none;
    color: dimgray;
}

.logline_chat {
    display: inline;
}

button.delete-button:hover {
    color: red;
}


.quillpost {
    overflow-wrap: break-word;
}

.quillpost p {
    padding: 0;
    margin: 0;
}

/* Pasted screenshots are often wider than the news column. */
.quillpost img {
    max-width: 100%;
    height: auto;
}

/* Quill's own stylesheet scopes these formats to its editor. */
.quillpost .ql-align-center {
    text-align: center;
}

.quillpost .ql-align-right {
    text-align: right;
}

.quillpost .ql-align-justify {
    text-align: justify;
}

.tooltip-inner {
    min-width: 20px;
    max-width: 50%;
    text-align: left;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.125rem;
    margin-left: 0.1rem;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-toggle::after {
    float: right;
    margin-top: 0.5rem;
}

.relation-role-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}

.relation-role-label > i {
    flex: 0 0 auto;
}

.relation-role-label--icon-only {
    gap: 0;
}

.relation-role-label--parent,
.relation-role-label--mother {
    color: #175cd3;
}

.relation-role-label--related {
    color: #6941c6;
}

.relation-role-label--child,
.relation-role-label--daughter {
    color: #067647;
}

/* Nachorder purpose on overview cards: Kundin (blue, person) or Für Verkauf (green, tag). */
.nachorder-purpose-badge {
    font-size: .75rem;
    font-weight: 600;
}

.nachorder-purpose-badge .fa-solid {
    margin-right: .3rem;
}

.nachorder-purpose-badge-client {
    background-color: #2563a6;
}

.nachorder-purpose-badge-stock {
    background-color: #17624c;
}

/* A colour's picture with its Farbmuster as inset (tools/picture.html). */
.picture-with-swatch {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.picture-swatch {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: .25rem;
    box-shadow: 0 0 2px rgba(0, 0, 0, .4);
}

.picture-swatch-system {
    display: block;
}

/* Enlarged image view of a Nachbestellung position: three portrait pictures fit side by side. */
.nachorder-image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.nachorder-image-gallery-picture {
    height: min(calc(100vh - 10rem), calc((100vw - 8rem) * 4 / 9));
}

@media (min-width: 576px) {
    .nachorder-image-dialog {
        max-width: calc(100vw - 3.5rem);
        width: fit-content;
    }
}

@media (max-width: 575.98px) {
    .nachorder-image-gallery-picture {
        width: calc(100vw - 3rem);
        height: auto;
    }
}

/* Drop target of a gallery picture dragged into the first position (tools/gallery/drag.html). */
.gallery-drop-first {
    outline: 2px dashed #0d6efd;
    outline-offset: 2px;
}

/* Primary star and kind icon in the top right corner of a gallery picture (tools/gallery/kind_actions.html). */
.gallery-corner-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    background: rgba(255, 255, 255, .85);
    border-radius: 0 0 0 .35rem;
}

.gallery-corner-actions .btn {
    padding: .2rem .4rem;
    font-size: .85rem;
    line-height: 1;
    color: #111;
}
