/* ====================== */
/* === GLOBAL CLASSES === */
/* ====================== */

/* === TOP LEVEL CSS === */
/* HTML element css */

fieldset[disabled] {
    display: none;
}

img {
    max-width: 100%;
}

/* === END TOP LEVEL CSS === */


/* === HELPER CLASSES === */
/*
    Useful classes to avoid inline styling,
    classes dealing with color are in tb-appearance!
 */

/* Position */
.block {
    display: block;
}

/* Text Alignment */
.center {
    text-align: center;
}

.right {
    text-align: right;
}

.left {
    text-align: left;
}

@media (min-width: 768px) {
    .md-text-left {
        text-align: left;
    }
}

@media (min-width: 992px) {
    .lg-text-left {
        text-align: left;
    }
}

/* Font Size */
.text-xs {
    font-size: 10px;
}

.text-sm {
    font-size: 12px;
}

.text-md {
    font-size: 14px;
}

.text-lg {
    font-size: 16px;
}

.text-xl {
    font-size: 20px;
}

.text-2xl {
    font-size: 24px;
}

/* Font Weight */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

/* Flex */
.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-spread {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start
}

.justify-center {
    justify-content: center;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.flex-grow {
    flex-grow: 1;
}

.flex-1 {
    flex: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Gap */
.gap-sm {
    gap: 5px;
}

.gap-md {
    gap: 10px;
}

.gap-lg {
    gap: 24px;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media(min-width: 575px) {
    .sm-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sm-grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media(min-width: 768px) {
    .md-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md-grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .md-grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media(min-width: 992px) {
    .lg-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg-grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media(min-width: 1200px) {
    .xl-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xl-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media(min-width: 1580px) {
    .xxl-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Text Overflow */
.text-ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.whitespace-nowrap {
    white-space: nowrap;
}

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

/* Margin/Padding */
.m-0 {
    margin: 0;
}

.my-0 {
    margin-top: 0;
    margin-bottom: 0;
}

.mx-0 {
    margin-right: 0;
    margin-left: 0;
}

.p-0 {
    padding: 0;
}

.py-0 {
    padding-top: 0;
    padding-bottom: 0;
}

.px-0 {
    padding-right: 0;
    padding-left: 0;
}

/* Width/Height */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Position */
.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

/* Opacity */
.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 100;
}

/* Object Fit */
.object-contain {
    object-fit: contain;
}

/* Z-Index */
.z-1 {
    z-index: 1;
}

/* === END HELPER CLASSES === */


/* === ANIMATIONS === */

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.fadeIn {
    animation: fadeIn;
    animation-fill-mode: forwards;
    animation-duration: 300ms;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.fadeOut {
    animation: fadeOut;
    animation-fill-mode: forwards;
    animation-duration: 300ms;
}

/* === END ANIMATIONS === */


/* === UTILITY CLASSES === */
/* Misc. classes used globally */

/* This css class replicates the old resizePhoto logic */
/* It uses important because the old logic set inline styles */
.resize-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.absolute-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fixed-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mask-icon {
    height: 100%;
    width: 100%;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.align-table {
    display: table;
}

.align-middle {
    display: table-cell;
    vertical-align: middle;
    float: inherit;
}

.wrapper {
    min-height: 100%;
}

.jumboglyph {
    font-size: 50px;
    color: rgba(0, 0, 0, 0.3);
}

.image-form-wrapper {
    cursor: pointer;
    position: relative;
    top: 0;
    left: 0;
    background: var(--grey-100) url('/static/icons/share-image-bg.png') no-repeat top center;
    background-size: 1005px 121px;
    color: #fff;
    font-size: 150px;
    overflow: hidden;
}

.tbits-status-network-ico {
    float: left;
    width: 20px;
    height: 20px;
    color: #fff;
    background: #333;
    margin-right: 2px;
}

.tbits-modal-lg {
    min-width: 80%;
    width: 900px;
    max-width: calc(100% - 20px);
}

/* Sectioned Area */
.tbits-sectioned-area {
    width: 100%;
    padding: 10px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

.tbits-sectioned-area > div {
    max-width: calc(100% - 50px);
}

.tbits-sectioned-area h4 {
    margin: 3px 0;
    white-space: nowrap;
    overflow-x: hidden;
    font-weight: 600;
    max-width: calc(100%);
    font-size: 14px;
    line-height: 17px;
}

.white-sectioned-cell {
    width: 150px;
    flex: 2 0 150px;
    height: 100%;
    border-left: 1px solid var(--grey-200);
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    text-align: center;
    flex-direction: column;
    user-select: none;
}

.btn-sectioned-cell {
    flex: 2 0 100px;
    height: 100%;
    border-left: 1px solid var(--grey-500);
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    text-align: center;
    flex-direction: column;
    background-color: var(--grey-200);
    user-select: none;
    cursor: pointer;
}

.btn-sectioned-cell:hover {
    background-color: var(--grey-400);
}

.blue-sectioned-well {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    align-content: stretch;
    background-color: var(--blue-000);
    border: 1px solid var(--blue-500);
    border-radius: 3px;
    margin: 5px 0;
    padding: 0;
    box-shadow: var(--shadow-20);
    width: 100%;
    height: 90px;
}

.white-sectioned-well {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    align-content: stretch;
    background-color: var(--bg-color);
    border-radius: 4px;
    margin: 10px 0 5px 0;
    padding: 0;
    width: 100%;
    height: 60px;
    box-shadow: var(--shadow-20);
}

.blue-sectioned-well .row, .white-sectioned-well .row {
    height: 100%;
}

/* === END UTILITY CLASSES === */


/* === GLOBAL ELEMENT CLASSES === */
/* Classes for elements that are used globally */
/* e.g. throbber, footer, etc. */

#white-wall {
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    height: 4000px;
    width: 100%;
    background: var(--bg-color, #fff);
    opacity: .75;
    display: none;
    z-index: 2000;
}

#white-wall img {
    position: fixed;
    top: calc(50% - 40px);
    left: calc(50% - 40px);
    z-index: 2001;
}

img.tbits-throbber {
    width: 80px;
    height: 80px;
    animation: tbits-throbber-spin 1s ease-in-out infinite;
    user-select: none;
}

img.tbits-throbber.nospin {
    animation: none;
}

img.media-manager-throbber {
    width: 60px;
    height: 50px;
    animation: tbits-throbber-spin 1s ease-in-out infinite;
    user-select: none;
}

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

.ui-autocomplete.ui-front {
    z-index: 1060;
}

/* Empty State */
.tbits-empty-state img {
    height: 200px;
    width: 100%;
    object-fit: contain;
}

.tbits-empty-state {
    animation: state-blendin 1s normal;
    opacity: 1;
}

@keyframes state-blendin {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* === END GLOBAL ELEMENT CLASSES === */


/* ========================== */
/* === END GLOBAL CLASSES === */
/* ========================== */