/* ========================== */
/* === APPEARANCE CLASSES === */
/* ========================== */


/* === DARK MODE DEFINITIONS === */

:root {
    --black: #000000;
    --white: #FFFFFF;
    --grey-public: #B1B6C2;
    --grey-public2: #90949E;
    --search-well-padding: 12px;
    --search-well-margin: 8px;

    --blue-000-rgb: 243, 253, 255;
    --blue-100-rgb: 120, 198, 221;
    --blue-200-rgb: 100, 189, 216;
    --blue-300-rgb: 75, 179, 210;
    --blue-400-rgb: 55, 170, 205;
    --blue-500-rgb: 32, 159, 197;
    --blue-600-rgb: 29, 145, 180;
    --blue-700-rgb: 26, 127, 158;
    --blue-800-rgb: 22, 113, 141;
    --blue-900-rgb: 19, 95, 118;

    --green-000-rgb: 248, 255, 251;
    --green-100-rgb: 101, 215, 185;
    --green-200-rgb: 75, 210, 174;
    --green-300-rgb: 51, 204, 163;
    --green-400-rgb: 26, 199, 153;
    --green-500-rgb: 0, 189, 138;
    --green-600-rgb: 0, 173, 127;
    --green-700-rgb: 0, 153, 112;
    --green-800-rgb: 0, 133, 97;
    --green-900-rgb: 0, 112, 82;

    --orange-000-rgb: 255, 253, 247;
    --orange-100-rgb: 248, 213, 113;
    --orange-200-rgb: 247, 206, 90;
    --orange-300-rgb: 246, 199, 66;
    --orange-400-rgb: 245, 192, 43;
    --orange-500-rgb: 244, 185, 19;
    --orange-600-rgb: 220, 167, 17;
    --orange-700-rgb: 195, 148, 15;
    --orange-800-rgb: 171, 130, 13;
    --orange-900-rgb: 146, 111, 11;

    --red-000-rgb: 255, 247, 247;
    --red-100-rgb: 238, 169, 169;
    --red-200-rgb: 235, 154, 155;
    --red-300-rgb: 233, 140, 141;
    --red-400-rgb: 230, 125, 126;
    --red-500-rgb: 227, 111, 112;
    --red-600-rgb: 204, 100, 101;
    --red-700-rgb: 182, 89, 90;
    --red-800-rgb: 159, 78, 78;
    --red-900-rgb: 136, 67, 67;

    --grey-000-rgb: 251, 251, 251;
    --grey-100-rgb: 245, 245, 245;
    --grey-200-rgb: 235, 235, 235;
    --grey-300-rgb: 224, 224, 224;
    --grey-400-rgb: 214, 214, 214;
    --grey-500-rgb: 204, 204, 204;
    --grey-600-rgb: 163, 163, 163;
    --grey-700-rgb: 122, 122, 122;
    --grey-800-rgb: 82, 82, 82;
    --grey-900-rgb: 41, 41, 41;

    --fg-color: #000000;
    --bg-color: #ffffff;
    --fg-color-rgb: 0, 0, 0;
    --bg-color-rgb: 255, 255, 255;

    --transition-time-medium: 400ms;
}

:root body.dark-scheme {
  /*  makes scrollbars and form controls dark */
  color-scheme: dark;
}

body.dark-scheme {
    --blue-000-rgb: 0, 28, 36;
    --blue-100-rgb: 0, 67, 87;
    --blue-200-rgb: 0, 86, 113;
    --blue-300-rgb: 0, 106, 138;
    --blue-400-rgb: 0, 125, 164;
    --blue-500-rgb: 0, 145, 189;
    --blue-600-rgb: 0, 161, 209;
    --blue-700-rgb: 0, 176, 230;
    --blue-800-rgb: 0, 192, 250;
    --blue-900-rgb: 16, 199, 255;

    --green-000-rgb: 0, 34, 25;
    --green-100-rgb: 0, 82, 60;
    --green-200-rgb: 0, 108, 79;
    --green-300-rgb: 0, 133, 98;
    --green-400-rgb: 0, 159, 116;
    --green-500-rgb: 0, 184, 135;
    --green-600-rgb: 0, 204, 150;
    --green-700-rgb: 0, 225, 165;
    --green-800-rgb: 0, 245, 180;
    --green-900-rgb: 11, 255, 190;

    --orange-000-rgb: 45, 33, 0;
    --orange-100-rgb: 128, 93, 0;
    --orange-200-rgb: 154, 112, 0;
    --orange-300-rgb: 179, 131, 0;
    --orange-400-rgb: 205, 149, 0;
    --orange-500-rgb: 230, 168, 0;
    --orange-600-rgb: 250, 183, 0;
    --orange-700-rgb: 255, 191, 16;
    --orange-800-rgb: 255, 196, 36;
    --orange-900-rgb: 255, 202, 57;

    --red-000-rgb: 46, 0, 0;
    --red-100-rgb: 73, 13, 13;
    --red-200-rgb: 95, 17, 17;
    --red-300-rgb: 117, 20, 20;
    --red-400-rgb: 138, 24, 24;
    --red-500-rgb: 160, 28, 28;
    --red-600-rgb: 177, 31, 31;
    --red-700-rgb: 195, 34, 34;
    --red-800-rgb: 212, 37, 37;
    --red-900-rgb: 219, 50, 50;

    --grey-000-rgb: 44, 44, 44;
    --grey-100-rgb: 52, 52, 52;
    --grey-200-rgb: 66, 66, 66;
    --grey-300-rgb: 94, 94, 94;
    --grey-400-rgb: 115, 115, 115;
    --grey-500-rgb: 135, 135, 135;
    --grey-600-rgb: 158, 158, 158;
    --grey-700-rgb: 181, 181, 181;
    --grey-800-rgb: 204, 204, 204;
    --grey-900-rgb: 227, 227, 227;

    --shadow-10: 0 1px 1px rgba(0, 0, 0, 0.7);
    --shadow-20: 0 2px 2px rgba(0, 0, 0, 0.7);
    --shadow-30: 0 3px 3px rgba(0, 0, 0, 0.7);
    --shadow-40: 0 4px 4px rgba(0, 0, 0, 0.7);
    --shadow-50: 0 5px 5px rgba(0, 0, 0, 0.7);
    --shadow-60: 0 6px 6px rgba(0, 0, 0, 0.7);
    --shadow-70: 0 7px 7px rgba(0, 0, 0, 0.7);
    --shadow-80: 0 8px 8px rgba(0, 0, 0, 0.7);
    --shadow-90: 0 9px 9px rgba(0, 0, 0, 0.7);
    --shadow-100: 0 10px 10px rgba(0, 0, 0, 0.7);

    --fg-color: #f0f0f0;
    --bg-color: #242424;
    --fg-color-rgb: 240, 240, 240;
    --bg-color-rgb: 36, 36, 36;

    background-color: #151515;

}

body {
    --blue-000: rgb(var(--blue-000-rgb));
    --blue-100: rgb(var(--blue-100-rgb));
    --blue-200: rgb(var(--blue-200-rgb));
    --blue-300: rgb(var(--blue-300-rgb));
    --blue-400: rgb(var(--blue-400-rgb));
    --blue-500: rgb(var(--blue-500-rgb));
    --blue-600: rgb(var(--blue-600-rgb));
    --blue-700: rgb(var(--blue-700-rgb));
    --blue-800: rgb(var(--blue-800-rgb));
    --blue-900: rgb(var(--blue-900-rgb));

    --green-000: rgb(var(--green-000-rgb));
    --green-100: rgb(var(--green-100-rgb));
    --green-200: rgb(var(--green-200-rgb));
    --green-300: rgb(var(--green-300-rgb));
    --green-400: rgb(var(--green-400-rgb));
    --green-500: rgb(var(--green-500-rgb));
    --green-600: rgb(var(--green-600-rgb));
    --green-700: rgb(var(--green-700-rgb));
    --green-800: rgb(var(--green-800-rgb));
    --green-900: rgb(var(--green-900-rgb));

    --orange-000: rgb(var(--orange-000-rgb));
    --orange-100: rgb(var(--orange-100-rgb));
    --orange-200: rgb(var(--orange-200-rgb));
    --orange-300: rgb(var(--orange-300-rgb));
    --orange-400: rgb(var(--orange-400-rgb));
    --orange-500: rgb(var(--orange-500-rgb));
    --orange-600: rgb(var(--orange-600-rgb));
    --orange-700: rgb(var(--orange-700-rgb));
    --orange-800: rgb(var(--orange-800-rgb));
    --orange-900: rgb(var(--orange-900-rgb));

    --red-000: rgb(var(--red-000-rgb));
    --red-100: rgb(var(--red-100-rgb));
    --red-200: rgb(var(--red-200-rgb));
    --red-300: rgb(var(--red-300-rgb));
    --red-400: rgb(var(--red-400-rgb));
    --red-500: rgb(var(--red-500-rgb));
    --red-600: rgb(var(--red-600-rgb));
    --red-700: rgb(var(--red-700-rgb));
    --red-800: rgb(var(--red-800-rgb));
    --red-900: rgb(var(--red-900-rgb));

    --grey-000: rgb(var(--grey-000-rgb));
    --grey-100: rgb(var(--grey-100-rgb));
    --grey-200: rgb(var(--grey-200-rgb));
    --grey-300: rgb(var(--grey-300-rgb));
    --grey-400: rgb(var(--grey-400-rgb));
    --grey-500: rgb(var(--grey-500-rgb));
    --grey-600: rgb(var(--grey-600-rgb));
    --grey-700: rgb(var(--grey-700-rgb));
    --grey-800: rgb(var(--grey-800-rgb));
    --grey-900: rgb(var(--grey-900-rgb));
}

body.light-scheme .if-dark-scheme,
body.dark-scheme .if-light-scheme {
    display: none !important;
}

body:not(.light-scheme) .if-light-scheme,
body:not(.dark-scheme) .if-dark-scheme {
    display: none !important;
}

/* === END DARK MODE DEFINITIONS === */


/* === HELPER CLASSES === */
/* Same idea as the helpers in global, but use colors defined above */

/* Text Color */
.text-fg {
    color: var(--fg-color);
}

.text-grey-600 {
    color: var(--grey-600);
}

.text-grey-700 {
    color: var(--grey-700);
}

.text-blue-300 {
    color: var(--blue-300);
}

.text-blue-500 {
    color: var(--blue-500);
}

.text-blue-900 {
    color: var(--blue-900);
}

.text-red-500 {
    color: var(--red-500);
}

.text-green-500 {
    color: var(--green-500);
}

/* Box Shadow */
:root {
    --shadow-10: 0 1px 1px rgba(0, 0, 0, 0.15);
    --shadow-20: 0 2px 2px rgba(0, 0, 0, 0.15);
    --shadow-30: 0 3px 3px rgba(0, 0, 0, 0.15);
    --shadow-40: 0 4px 4px rgba(0, 0, 0, 0.15);
    --shadow-50: 0 5px 5px rgba(0, 0, 0, 0.15);
    --shadow-60: 0 6px 6px rgba(0, 0, 0, 0.15);
    --shadow-70: 0 7px 7px rgba(0, 0, 0, 0.15);
    --shadow-80: 0 8px 8px rgba(0, 0, 0, 0.15);
    --shadow-90: 0 9px 9px rgba(0, 0, 0, 0.15);
    --shadow-100: 0 10px 10px rgba(0, 0, 0, 0.15);
}

.shadow-10 {
    box-shadow: var(--shadow-10);
}

.shadow-20 {
    box-shadow: var(--shadow-20);
}

.shadow-30 {
    box-shadow: var(--shadow-30);
}

.shadow-40 {
    box-shadow: var(--shadow-40);
}

.shadow-50 {
    box-shadow: var(--shadow-50);
}

.shadow-60 {
    box-shadow: var(--shadow-60);
}

.shadow-70 {
    box-shadow: var(--shadow-70);
}

.shadow-80 {
    box-shadow: var(--shadow-80);
}

.shadow-90 {
    box-shadow: var(--shadow-90);
}

.shadow-100 {
    box-shadow: var(--shadow-100);
}

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


/* === MISC CLASSES === */
/* Classes used around the platform */

h3.page-title {
    font-weight: bold;
}

div.divider {
    width: 100%;
    margin: 30px 0;
    height: 1px;
    background-color: var(--grey-800);
}

.red {
    color: var(--red-400);
    font-weight: 600;
}

.required {
    border: 1px solid #B94A48 !important;
}

.required-filled {
    border: 1px solid #00ba95 !important;
}

.tbits-login-label {
    font-weight: 700;
    color: var(--grey-700);
    font-size: 14px;
}

/* Shared Reports */
.shared-report-popover {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: #50BD91;
    border-radius: 50%;
    line-height: 24px;
}

.shared-report-popover .glyphicons {
    color: #FFF;
    font-size: 16px;
    top: -1px;
    left: 3px;
}

/* Action Required Alert */
.tbits-alert-red {
    display: inline;
    color: var(--red-500) !important;
}

.tbits-alert-orange {
    display: inline;
    color: var(--orange-500) !important;
}

.tbits-alert-blue {
    display: inline;
    color: var(--blue-500) !important;
}


/* Fan Rating */
.fan-rating {
    --percent: calc(var(--rating, 0) / 5 * 100%);
    line-height: 1;
    font-size: 16px;
    font-family: Times, serif;
}

.fan-rating::before {
    content: '★★★★★';
    background: linear-gradient(90deg, var(--orange-500) var(--percent), var(--bg-color) var(--percent));
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px var(--orange-500);
}

/* === END MISC CLASSES === */


/* === BUTTONS === */

.tbits-btn {
    display: inline-grid;
    grid-auto-flow: column;
    column-gap: 0.375em;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.428571429;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 6px 12px;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
}

label.tbits-btn {
    margin: 0;
}

.tbits-btn-xs, .tbits-btn-group-xs > .tbits-btn {
    padding: 2px 4px;
    font-size: 12px;
    line-height: 1.5;
}

.tbits-btn-sm, .tbits-btn-group-sm > .tbits-btn {
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1.5;
}

.tbits-btn-lg, .tbits-btn-group-lg > .tbits-btn {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33333333;
}

/* make button 42px tall like .tbits-control */
.tbits-btn-tall {
    padding: 12px;
}

.tbits-btn:focus {
    outline: none;
}

.tbits-btn[disabled], .tbits-btn.disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.65;
}

.tbits-btn .glyphicons {
    top: 0;
}

.tbits-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tbits-btn-primary {
    background-color: var(--blue-500);
    color: white;
}

.tbits-btn-primary:hover, .tbits-btn-primary:focus {
    background-color: var(--blue-600);
    color: white;
}

.tbits-btn-primary:active {
    background-color: var(--blue-700);
    color: white;
}

.tbits-btn-primary[disabled], .tbits-btn-primary.disabled {
    background-color: var(--blue-200);
}

.tbits-btn-secondary {
    background-color: var(--bg-color);
    border-color: var(--blue-500);
    color: var(--blue-500);
}

.tbits-btn-secondary:hover, .tbits-btn-secondary:focus {
    background-color: var(--grey-100);
    color: var(--blue-500);
}

.tbits-btn-secondary:active {
    background-color: var(--grey-200);
    color: var(--blue-500);
}

.tbits-btn-secondary[disabled], .tbits-btn-secondary.disabled {
    border-color: var(--blue-200);
    color: var(--blue-200);
}

.tbits-btn-danger {
    background-color: var(--bg-color);
    border-color: var(--red-500);
    color: var(--red-500);
}

.tbits-btn-danger:hover, .tbits-btn-danger:focus {
    background-color: var(--grey-100);
    color: var(--red-500);
}

.tbits-btn-danger:active {
    background-color: var(--grey-200);
    color: var(--red-500);
}

.tbits-btn-danger[disabled], .tbits-btn-danger.disabled {
    border-color: var(--red-300);
    color: var(--red-300);
}

.tbits-btn-green {
    background-color: var(--bg-color);
    border-color: var(--green-500);
    color: var(--green-500);
}

.tbits-btn-green:hover, .tbits-btn-green:focus {
    background-color: var(--grey-100);
    color: var(--green-500);
}

.tbits-btn-green:active {
    background-color: var(--grey-200);
    color: var(--green-500);
}

.tbits-btn-green[disabled], .tbits-btn-green.disabled {
    border-color: var(--green-300);
    color: var(--green-300);
}

/* Icon Buttons */
.tbits-icon-btn {
    display: inline-block;
    font-size: 16px;
    line-height: 1.428571429;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: none;
    padding: 3px;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
}

.tbits-icon-btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.tbits-icon-btn-group-vertical {
    flex-direction: column;
}

.tbits-icon-btn-group > .tbits-icon-btn,
.tbits-icon-btn-group-vertical > .tbits-icon-btn {
    flex: 1 1 auto;
}

.tbits-icon-btn {
    color: var(--blue-500);
}

.tbits-icon-btn:hover, .tbits-icon-btn:focus {
    color: var(--blue-600);
}

.tbits-icon-btn:active {
    color: var(--blue-700);
}

.tbits-icon-btn-danger {
    color: var(--red-500);
}

.tbits-icon-btn-danger:hover, .tbits-icon-btn-danger:focus {
    color: var(--red-600);
}

.tbits-icon-btn-danger:active {
    color: var(--red-700);
}

.tbits-icon-btn:disabled, .tbits-icon-btn.disabled {
    pointer-events: none;
    color: var(--grey-500);
}

.btn.tbits-btn-disabled {
    background-color: var(--bg-color);
    color: var(--grey-700);
    transition: .1s ease all;
    border-color: var(--grey-700);
    outline: none !important;
    cursor: initial;
    pointer-events: none;
}

.btn.tbits-btn-disabled:hover,
.btn.tbits-btn-disabled.hovered {
    background-color: var(--bg-color);
    color: var(--grey-700);
}

.btn.tbits-btn-disabled:focus,
.btn.tbits-btn-disabled.focused {
    background-color: var(--bg-color);
    color: var(--grey-700);
    outline: none !important;
}

.btn.tbits-btn-multi,
input[type='checkbox']:checked + .tbits-btn-multi,
input[type='radio']:checked + .tbits-btn-multi {
    background-color: var(--green-500);
    color: var(--white);
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 2px 12px;
    outline: none !important;
    font-weight: 500;
}

.btn.tbits-btn-multi:hover,
.btn.tbits-btn-multi.hovered,
input[type='checkbox']:checked + .tbits-btn-multi:hover,
input[type='radio']:checked + .tbits-btn-multi:hover {
    background-color: var(--green-600);
    color: var(--white);
    border: 1px solid transparent;
    font-weight: 500;
}

.btn.tbits-btn-multi[disabled],
.btn.tbits-btn-multi.disabled,
.btn.tbits-btn-multi.inactive,
input[type='checkbox']:not(checked) + .tbits-btn-multi,
input[type='radio']:not(checked) + .tbits-btn-multi {
    background: var(--bg-color);
    color: var(--fg-color);
    border: 1px solid var(--grey-600);
    font-weight: 400;
}

.btn.tbits-btn-multi[disabled]:hover,
.btn.tbits-btn-multi.disabled:hover,
.btn.tbits-btn-multi.inactive:hover,
input[type='checkbox']:not(checked) + .tbits-btn-multi:hover,
input[type='radio']:not(checked) + .tbits-btn-multi:hover {
    background: var(--grey-100);
    color: var(--fg-color);
    border: 1px solid var(--grey-600);
    font-weight: 400;
}

/* FB Shadow Button */
.btn-fb-shadow {
    border-radius: 4px;
    transition: none;
    background: #1877f2;
    color: white;
    font-weight: 600;
}

.btn-fb-shadow:hover,
.btn-fb-shadow:focus {
    position: relative;
    box-shadow: none;
    background: #0F5DBF;
    transition: none;
    color: white;
}

.btn-fb-shadow > .tbits-icon {
    margin-right: 1ch;
}

fieldset[disabled] textarea {
    pointer-events: none;
    background-color: var(--grey-100);
}

/* === END BUTTONS === */


/* === MEDIA UPLOAD === */

.media-upload-background {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-size: 1005px 121px;
    border-radius: 5px;
    border: dashed 1px var(--grey-600);
    background: var(--grey-100) url(/static/icons/share-image-bg.png) no-repeat top center;
    overflow: hidden;
}

.media-upload-background-dark {
    border: 1px solid var(--grey-200);
    background-color: var(--grey-100);
}

.media-upload-text {
    font-size: 14px;
    font-weight: 600;
    padding-top: 10px;
    text-align: center;
    color: var(--fg-color);
}

.media-upload-icon-flexbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
}

fieldset[disabled] .media-upload-icon-flexbox {
    pointer-events: none;
}

fieldset[disabled] .media-manager-btn {
    border-color: var(--grey-500);
}

fieldset[disabled] .media-manager-btn span {
    color: var(--grey-500);
}

fieldset[disabled] .media-manager-btn p {
    color: var(--grey-500);
}

.media-upload-icon-flexbox > *:not(.media-manager-throbber) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-manager-progress {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #ccc;
    font-size: 25px;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    color: #999;
}

.media-upload-icons {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.media-upload-icon-flexbox:hover > *,
.media-upload-icon-flexbox.media-manager-active > * {
    opacity: 1;
}

.media-upload-icon-flexbox.no-upload-txt:hover,
.media-upload-icon-flexbox.media-manager-active.no-upload-txt {
    background-color: rgba(0, 0, 0, 0.2);
}

.media-upload-icon-flexbox:not(.media-manager-active) > .media-upload-text {
    display: none;
}

.media-upload-icon-flexbox.no-upload-txt > .media-upload-text {
    display: none;
}

.media-manager-btn {
    width: min(40%, 80px);
    height: min(40%, 80px);
    aspect-ratio: 1;
    margin: 5px;
    background-color: transparent;
    border-radius: 4px;
    border: solid 1px var(--blue-500);
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-weight: bold;
    color: var(--blue-500);
}

.media-manager-btn.small {
    width: 60px;
    height: 60px;
}

.media-manager-btn.small span {
    margin-top: 10px;
    font-size: 20px;
}

.media-manager-btn:hover {
    cursor: pointer;
    background: var(--grey-100);
    color: var(--blue-500);
}

.media-manager-btn span {
    margin-top: 15px;
    font-size: 18px;
    padding-bottom: 5px;
}

.media-manager-btn p {
    font-size: 13px;
}

.media-upload-img {
    object-fit: cover;
    /*background-color: white;*/
}

.media-selector-scrollable-selection-window {
    height: 600px;
    max-height: 80vh;
    width: 100%;
    overflow-y: scroll;
}

.selector-img-detail {
    display: none;
    position: absolute;
    bottom: 0px;
    padding: 0px 8px;
    font-size: 12px;
    background: rgba(51, 51, 51, 0.8);
    color: #FFF;
}

.selector-img:is(:hover,:focus) .selector-img-detail {
    display: block;
}

.selector-img {
    height: auto;
    margin-bottom: 15px;
    border: 1px solid #979797;
}

.selector-img img {
    width: 100%;
}

.selector-img:hover {
    cursor: pointer;
}

.selector-sizer,
.selector-img {
    width: 22%;
}

@media (max-width: 1199px) {
    .selector-sizer,
    .selector-img {
        width: 30.66%;
    }
}

@media (max-width: 767px) {
    .selector-sizer,
    .selector-img {
        width: 48%;
    }
}

@media (max-width: 480px) {
    .selector-sizer,
    .selector-img {
        width: 100%;
    }
}

.selector-spacer {
    width: 4%;
}

.media-manager-selector-image-masonry {
    /* Trust me, you want to use !important here or masonry.js will be annoying with inline CSS */
    width: 100% !important;
}

.media-manager-non-image-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #D8D8D8;
    color: #6C6E70;
    font-size: 2em;
}

.media-manager-non-image-file .glyphicons {
    font-size: 2.5em;
}

.media-manager-non-image-file p {
    font-size: 0.65em;
}

/* Tbits Media Uploader */

tbits-media-uploader {
    display: block;
    height: 200px;
}

.media-uploader {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: var(--grey-100) url(/static/icons/share-image-bg.png) no-repeat top center;
    border: 1px dashed var(--grey-600);
}

.media-uploader-controls {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}

.media-uploader-btns {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-inline: 1rem;
}

.media-uploader-btn {
    flex: 0 1 75px;
    aspect-ratio: 1;
    overflow: hidden;
    display: grid;
    grid-auto-flow: row;
    place-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
}

.media-uploader-throbber-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none;
}

.media-uploader-throbber {
    width: 80px;
    height: 80px;
    aspect-ratio: 1;
    animation: tbits-throbber-spin 1s ease-in-out infinite;
}

.media-uploader-preview {
    position: absolute;
    inset: 0;
    margin-inline: auto;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: var(--grey-100);
}

.media-uploader.has-media {
    border: 1px solid var(--grey-200);
}

.media-uploader.has-media .media-uploader-btns {
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.media-uploader.has-media:hover .media-uploader-btns {
    opacity: 1;
}

/* === END MEDIA UPLOAD === */


/* === TBITS TABLES === */

.tbits-table-well {
    overflow: hidden;
}

.tbits-table {
    margin-bottom: 20px;
    width: 100%;
    color: var(--fg-color);
}

.tbits-table > thead {
    border-bottom: 1px solid var(--grey-200);
}

.tbits-table > tbody > tr, .tbits-table > thead > tr {
    border-top: 1px solid var(--grey-200);
}

.tbits-well .tbits-table:first-child > tbody > tr:first-child,
.tbits-well .tbits-table:first-child > thead > tr:first-child,
.well > .tbits-table:first-child > tbody > tr:first-child,
.well > .tbits-table:first-child > thead > tr:first-child {
    border-top: none;
}

.tbits-well .tbits-table:last-child > tbody > tr:last-child,
.tbits-well .tbits-table:last-child > thead > tr:last-child,
.well > .tbits-table:last-child > tbody > tr:last-child,
.well > .tbits-table:last-child > thead > tr:last-child {
    border-bottom: none;
}

.tbits-table > tbody > tr > th, .tbits-table > thead > tr > th {
    font-weight: 600;
}

.tbits-table > tbody > tr > td, .tbits-table > thead > tr > td {
    font-weight: 400;
}

.tbits-table > tbody > tr > th, .tbits-table > thead > tr > th {
    padding: 10px 20px;
}

.tbits-table > tbody > tr > td, .tbits-table > thead > tr > td {
    padding: 7px 20px;
}

.tbits-table > tbody > tr:nth-child(2n) > td, .tbits-table > tbody > tr:nth-child(2n) > th,
.tbits-table > thead + tbody > tr:nth-child(2n+1) > td, .tbits-table > thead + tbody > tr:nth-child(2n+1) > th,
.tbits-table > thead > tr:nth-child(2n) > td, .tbits-table > thead > tr:nth-child(2n) > th {
    background-color: var(--grey-000);
    vertical-align: middle;
}

.tbits-table > thead + tbody > tr:nth-child(2n) > td, .tbits-table > thead + tbody > tr:nth-child(2n) > th,
.tbits-table > tbody > tr:nth-child(2n+1) > td, .tbits-table > tbody > tr:nth-child(2n+1) > th,
.tbits-table > thead > tr:nth-child(2n+1) > td, .tbits-table > thead > tr:nth-child(2n+1) > th {
    background-color: var(--bg-color);
    vertical-align: middle;
}

/* Partial Scroll Table */
.tbits-table-well-partial-scroll {
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
}

.tbits-table-well-partial-scroll tr {
    white-space: nowrap;
    height: 60px;
}

.data-table-cell .red {
    color: var(--red-500);
}

.tbits-table-well-partial-scroll > .scrolling-section {
    display: inline-block;
    border-left: 1px solid var(--grey-500);
    width: fit-content;
    overflow-x: auto;
    flex-grow: 1;
}

.tbits-table-well-partial-scroll.full > .scrolling-section {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-left: none;
}

.tbits-table-well-partial-scroll > .scrolling-section > .tbits-table:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.tbits-table-well-partial-scroll > .scrolling-section::-webkit-scrollbar {
    -webkit-appearance: none;
}

.tbits-table-well-partial-scroll > .scrolling-section::-webkit-scrollbar:horizontal {
    height: 11px;
}

.tbits-table-well-partial-scroll > .scrolling-section::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 2px solid var(--bg-color);
    background-color: var(--grey-500);
}

.tbits-table-well-partial-scroll > .scrolling-section::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    border-radius: 8px;
}

/* === END TBITS TABLES === */


/* === TBITS AUTH APPEARANCE === */

.tbits-auth-container, .tbits-auth-container label.checkbox-inline, .tbits-auth-container label.radio-inline {
    font-weight: 400;
    font-size: 14px;
}

.tbits-auth-container .tbits-instructions {
    color: var(--grey-600);
    font-weight: 400;
    font-size: 14px;
}

.tbits-auth-container .help-block, .modal-dialog .help-block {
    color: var(--grey-600);
    font-weight: 400;
    font-size: 12px;
    padding-top: 0;
}

.tbits-auth-container input.form-control:disabled {
    color: var(--grey-600);
}

/* === END TBITS AUTH APPEARANCE === */


/* === TBITS WELL === */

.tbits-well {
    background-color: var(--bg-color);
    border-radius: 4px;
    box-shadow: var(--shadow-20);
    margin: 20px 0;
}

.tbits-well-header {
    display: flex;
    align-items: center;
    min-height: 50px;
}

.tbits-well-header[data-toggle="collapse"] {
    cursor: pointer;
}

.tbits-well-header:not([data-toggle="collapse"]) {
    border-bottom: 1px solid var(--grey-200);
}

.tbits-well-header[data-toggle="collapse"] ~ .collapse.in,
.tbits-well-header[data-toggle="collapse"] ~ .collapsing {
    border-top: 1px solid var(--grey-200);
}

.tbits-well-collapse-icon.glyphicons-chevron-right {
    color: var(--fg-color);
    font-size: 18px;
    margin: 0 10px;
    top: 0;
    transition: transform 0.35s ease; /* based on bootstrap collapse transition */
    cursor: pointer;
}

.tbits-well-header[data-toggle="collapse"][aria-expanded="true"] > .tbits-well-collapse-icon,
.tbits-well-collapse-icon[data-toggle="collapse"][aria-expanded="true"] {
    transform: rotate(90deg);
}

.tbits-well-title {
    flex: 1 1 auto;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: var(--fg-color);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tbits-well-title:first-child {
    padding-left: 20px;
}

.tbits-well-title:last-child {
    padding-right: 20px;
}

.tbits-well-header-extra {
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    cursor: initial;
}

.tbits-well-body {
    padding: 20px;
}

.tbits-well .tbits-table {
    margin-bottom: 0;
}

/* Well Buttons */
.tbits-well-btn-group {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 1px;
    border-top: 1px solid var(--grey-200);
    background-color: var(--grey-200);
    border-radius: 0 0 4px 4px;
}

.tbits-well-btn {
    flex: 1 1 auto;
    display: grid;
    grid-auto-flow: column;
    gap: 1ch;
    justify-content: center;
    place-items: center;
    padding: 6px;
    cursor: pointer;
    background-color: var(--grey-000);
    color: var(--fg-color);
    font-weight: bold;
    font-size: 12px;
    border: none;
}

.tbits-well-btn:hover, .tbits-well-btn:focus, .tbits-well-btn:active {
    background-color: var(--grey-100);
    color: var(--fg-color);
}

.tbits-well-btn:disabled, .tbits-well-btn.disabled {
    color: var(--grey-500);
    pointer-events: none;
}

.tbits-well-btn-primary {
    background-color: var(--blue-500);
    color: var(--white);
}

.tbits-well-btn-primary:hover, .tbits-well-btn-primary:focus, .tbits-well-btn-primary:active {
    background-color: var(--blue-600);
    color: var(--white);
}

.tbits-well-btn-danger {
    background-color: var(--red-500);
    color: var(--white);
}

.tbits-well-btn-danger:hover, .tbits-well-btn-danger:focus, .tbits-well-btn-danger:active {
    background-color: var(--red-600);
    color: var(--white);
}

.tbits-well-btn > .glyphicons {
    top: 0;
}

.tbits-well-btn-group:last-child .tbits-well-btn:first-child {
    border-bottom-left-radius: 4px;
}

.tbits-well-btn-group:last-child .tbits-well-btn:last-child {
    border-bottom-right-radius: 4px;
}

/* Tbits Metric Well */

.tbits-metrics-grid {
    display: grid;
    gap: 15px 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 25px;
}

.tbits-metric-well {
    display: flex;
    flex: 1;
    align-items: center;
}

.tbits-well.tbits-metric-well {
    margin: 0;
    padding: 20px;
}

.tbits-metric-desc {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.tbits-metric-desc > strong {
    font-size: 24px;
    color: var(--green-500);
}

.tbits-metric-desc > small {
    font-size: 14px;
}

.tbits-metric-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    color: var(--green-500);
    font-size: 25px;
}

.tbits-metric-icon > .glyphicons {
    top: 0;
}

.tbits-metric-icon > .tbits-icon {
    font-size: 35px;
}

.tbits-metric-icon::before {
    position: absolute;
    top: 0;
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--green-500);
    opacity: 0.1;
}

.tbits-metric-flex-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tbits-metric-flex-container > .tbits-metric-well {
    min-width: 290px;
    margin: 0;
}

.tbits-metric-flex-container.four-across > .tbits-metric-well {
    min-width: 230px;
}

/* === END TBITS WELLS === */


/* === TBITS SEARCH WELLS === */

.tbits-search-well {
    display: flex;
    padding: var(--search-well-padding);
    flex-wrap: wrap;
    align-items: stretch;
}

.tbits-search-well > * {
    margin: var(--search-well-margin);
    width: auto;
}

.tbits-search-well > .tbits-search-well {
    margin: 0;
    padding: 0;
    width: 100%;
}

.tbits-search-well > *.stretch {
    width: calc(100% - calc(2 * var(--search-well-margin)));
}

.tbits-search-well-btns {
    display: flex;
    align-items: center;
}

.tbits-search-well-btns > *:not(:last-child) {
    margin-right: var(--search-well-margin);
}

.tbits-search-well > .btn {
    max-height: 44px;
    line-height: 2;
}

/* === END TBITS SEARCH WELLS === */


/* === TBITS NAV TABS === */

.tbits-nav-tabs {
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    overflow: hidden;
    box-shadow: var(--shadow-20);
}

.tbits-well > .tbits-nav-tabs {
    margin: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid var(--grey-300);
    box-shadow: none;
}

ul.tbits-nav-tabs {
    list-style: none;
    padding: 0;
}

ul.tbits-nav-tabs > li {
    flex: 1 0;
}

.tbits-nav-tab,
ul.tbits-nav-tabs > li > a {
    display: flex;
    align-items: center;
    flex: 1 0;
    padding: 6px 10px 10px 10px;
    background-color: var(--bg-color);
    color: var(--grey-600);
    font-weight: 600;
    border: 0;
    border-top: 4px solid transparent;
    cursor: pointer;
    user-select: none;
}

.tbits-nav-tab:not(:last-of-type),
ul.tbits-nav-tabs > li:not(:last-of-type) > a {
    border-right: 1px solid var(--grey-300);
}

.tbits-nav-tab,
a.tbits-nav-tab,
ul.tbits-nav-tabs > li > a {
    color: var(--grey-600);
}

.tbits-nav-tab:not(.active):hover {
    background-color: var(--grey-200);
}

.tbits-nav-tab:hover,
a.tbits-nav-tab:hover,
ul.tbits-nav-tabs > li > a:hover,
.tbits-nav-tab:focus,
a.tbits-nav-tab:focus,
ul.tbits-nav-tabs > li > a:focus {
    color: var(--fg-color);
    background-color: var(--bg-color);
    outline: none;
}

.tbits-nav-tab.active,
a.tbits-nav-tab.active,
ul.tbits-nav-tabs > li.active > a {
    border-top: 4px solid var(--green-500);
    color: var(--fg-color);
    background-color: var(--bg-color);
}

.tbits-nav-tab > .glyphicons,
ul.tbits-nav-tabs > li > a > .glyphicons,
.tbits-nav-tab > .tbits-icon,
ul.tbits-nav-tabs > li > a > .tbits-icon {
    font-size: 16px;
    top: 0;
    margin: auto 10px;
}

/* === END TBITS NAV TABS === */


/* === DATEPICKER === */

.ui-datepicker.ui-widget {
    box-shadow: var(--shadow-20);
}

.ui-widget-content {
    background-color: var(--bg-color);
    color: var(--fg-color);
}

.ui-widget.ui-widget-content {
    border-color: var(--grey-200);
}

.ui-widget-header {
    background-color: var(--bg-color);
    color: var(--fg-color);
    border-color: transparent;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
    border-color: var(--grey-200);
    background-color: var(--grey-100);
    color: var(--fg-color);
}

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus,
.ui-button:hover, .ui-button:focus {
    background-color: var(--green-300);
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
    border-color: var(--grey-200);
    background-color: var(--green-100);
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active, .ui-button:active,
.ui-button.ui-state-active:hover {
    border-color: var(--grey-200);
    background-color: var(--green-400);
}

.ui-datepicker td span, .ui-datepicker td a {
    padding: 0.2em 0.4em;
}

body.dark-scheme .ui-datepicker .ui-datepicker-prev span,
body.dark-scheme .ui-datepicker .ui-datepicker-next span {
    filter: invert(1);
}

/* === END DATEPICKER === */


/* === HELP === */

.tbits-help-container {
    display: flex;
    align-items: stretch;
    user-select: none;
}

.tbits-help-container > .tbits-help-img {
    flex: 1 1 30%;
    padding: 0 20px;
}

@media screen and (max-width: 767px) {
    .tbits-help-container > .tbits-help-img {
        display: none;
    }
}

.tbits-help-container > .tbits-help-text {
    flex: 1 1 100%;
    flex-direction: column;
    align-content: space-between;
    display: flex;
}

.help-body {
    flex-grow: 2;
    white-space: pre-line;
    padding-right:20px;
    display:inline-block;
}

.tbits-help-text .help-body {
    white-space: normal;
}

.tbits-help-text > :last-child {
    margin-bottom: 0;
}

.tbits-icon-help-outline-icon.page-help-icon {
    color: var(--grey-600);
    cursor: pointer;
}

.glyphicons-info-sign.help-popover {
    font-size: 12px;
    color: var(--blue-500);
    cursor: default;
}

.tbits-main-container .select2-selection__choice {
    max-width: 100%;
    white-space: normal;
}

.help-block-icon {
    width: 30px;
    height: 20px;
    color: red;
    position: relative;
    font-size: 15px;
    padding: 5px;
}

.help-content-body {
    position: absolute;
    right: 30px;
    top: 25px;
    width: 300px;
    background-color: var(--grey-800);
    color: var(--grey-100);
    padding: 10px;
    z-index: 3;
    display: none;
    user-select: none;
    cursor: default;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8)
}

@media screen and (max-width: 778px) {
    .help-content-body {
        width: 220px;
    }
}

.help-close-icon {
    position: absolute;
    top: 10px;
    right: 0;
    width: 20px;
    height: 20px;
    font-weight: bold;
    cursor: pointer;
}

.help-feedback {
    display: block;
    padding-top: 10px;
    color: var(--grey-500);
    font-weight: bold;
    font-size: smaller;
    text-align: right;
}

.help-thumbs-down :hover {
    color: var(--red-500);
}

.help-thumbs-up :hover {
    color: var(--green-400);
}

tbits-help {
    position: relative;
}

.help-content-body {
    display: none;
}

.active.help-content-body {
    display: block;
}


#help-page-description {
    display: none;
}

#help-page-description.active {
    display: block;
}

@media screen and (max-height: 600px) {
    .tbits-help-container > .tbits-help-img {
        flex: 1 1 30%;
        padding: 0 0;
    }

    .help-body {
        flex-grow: 2;
        white-space: pre-line;
        padding-right: 0;
        display:inline-block;
    }

    .help-block-icon {
        width: 5px;
        height: 5px;
        color: red;
        position: relative;
        font-size: 10px;
        padding: 0;
    }

    .help-content-body {
        position: absolute;
        right: 5px;
        top: 5px;
        width: 300px;
        background-color: var(--grey-800);
        color: var(--grey-100);
        padding: 5px;
        z-index: 3;
        display: none;
        user-select: none;
        cursor: default;
        border-radius: 1px;
        font-size: 8px;
        font-weight: normal;
        box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8)
    }
}

.tippy-box {
    background-color: var(--grey-800);
    color: var(--grey-000);
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.15));
    font-size: 12px;
    line-height: 14px;
}

.tippy-arrow {
    color: var(--grey-800);
}

.tippy-arrow::before {
    transform: scale(1.4);
}

 /* hack to center tippy arrow on tbits-popover-icon */
.tippy-box[data-placement^="bottom"] > .tippy-arrow::before,
.tippy-box[data-placement^="top"] > .tippy-arrow::before {
    left: -2px;
}
.tippy-box[data-placement^="left"] > .tippy-arrow::before,
.tippy-box[data-placement^="right"] > .tippy-arrow::before {
    top: -2px;
}

/* === END HELP === */


/* === TBITS TABLESORT === */

.tablesort .sort-btn {
    color: var(--grey-500);
}

.tablesort .sort-btn:not(.active) {
    visibility: hidden;
}

.tablesort .sort-btn.active {
    color: var(--blue-500);
}

.tablesort th:hover .sort-btn {
    visibility: visible;
}

.tablesort .sort-btn:is(.active, :hover) {
    color: var(--blue-500);
}

/* === END TBITS TABLESORT === */


/* === TBITS BETA === */

tbits-beta:not([small]) {
    vertical-align: text-bottom;
}

.tbits-beta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 0;
    padding: 5px;
    background: rgba(var(--green-100-rgb), 0.75);
    border-radius: 4px;
    color: var(--green-900);
    font-weight: 700;
    user-select: none;
}

.tbits-beta-icon {
    top: 0;
    font-size: calc(2rem / 3);
}

.tbits-beta-label {
    font-size: 12px;
}

.tbits-beta-small {
    justify-content: center;
    text-align: center;
    padding: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.tbits-beta-small .tbits-beta-label {
    display: none;
}

/* === END TBITS BETA === */


/* ============================== */
/* === END APPEARANCE CLASSES === */
/* ============================== */