/* Enables Bootstrap text-truncate in table cells. */
table.table-fixed {
    table-layout: fixed;
}

/* An icon is a rendered item or fluid. */
img.icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
}

div.icon-container {
    display: inline-block;
    position: relative;
}

span.icon-overlay {
    position: absolute;
    padding: 2px;
    border-radius: 0.375rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    text-shadow: 1px 1px 2px black;
}

/* An even tinier image, shown as an overlay over an icon. */
img.icon-overlay {
    position: absolute;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
}

.icon-overlay.top-left {
    top: 0;
    left: 0;
}

.icon-overlay.top-right {
    top: 0;
    right: 0;
}

.icon-overlay.bottom-left {
    bottom: 0;
    left: 0;
}

.icon-overlay.bottom-right {
    bottom: 0;
    right: 0;
}

table.recipe-grid-table td {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid black;
}
table.recipe-grid-table td.recipe-grid-shaded {
    background-color: rgba(0, 0, 0, 0.25);
}

.table-view > .text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
    display: inline-block;
}