:root {
    /* ---------- Color ---------- */
    /* Brand colors */
    --purple: #5b5fc7;
    --purple-bright: rgb(132, 136, 255);
    --darkorange: #da3b01;
    --yellow: #FFE315;

    --white: #fff;
    --black: #000;

    /* Accents */
    --teal: #00B7C3;
    --green: #28a745;
    --red: #C4314B;
    --orange: #F8D22A;
    --pink: #E959D9;

    /* Grey scale */
    --grey-000: #FFFFFF;
    --grey-025: #f1f1f1;
    --grey-050: #F5F5F5;
    --grey-100: #ebebeb;
    --grey-200: #e0e0e0;
    --grey-300: #ACACAC;
    --grey-400: #919191;
    --grey-500: #5d5d5d;
    --grey-600: #313131;
    --grey-700: #262626;
    --grey-800: #1F1F1F;
    --grey-900: #141414;

    /* Semantics */

    --bg-base: light-dark(var(--white), var(--grey-700));
    --fg-base: light-dark(var(--grey-700), var(--white));

    --bg-sunken: light-dark(var(--grey-050), var(--grey-800));
    --bg-raised: light-dark(var(--grey-100), var(--grey-600));

    --fg-primary: var(--fg-base);
    --fg-secondary: light-dark(var(--grey-700), var(--grey-200));
    --fg-tertiary: light-dark(var(--grey-500), var(--grey-400));
    --fg-muted: light-dark(var(--grey-200), var(--grey-500));

    --fg-brand: var(--purple);
    --fg-brand-light: color-mix(in oklab, var(--fg-brand) 50%, var(--bg-base));
    --bg-brand: color-mix(in oklab, var(--fg-brand) 5%, var(--bg-base));
    --bg-brand-transparent: light-dark(
        color-mix(in oklab, var(--fg-brand) 10%, transparent), 
        color-mix(in oklab, var(--fg-brand) 10%, transparent));

    --fg-alert: var(--darkorange);
    --fg-alert-light: color-mix(in oklab, var(--fg-alert) 50%, var(--bg-base));
    --bg-alert: color-mix(in oklab, var(--fg-alert) 10%, var(--bg-base));
    --bg-alert-transparent: light-dark(
        color-mix(in oklab, var(--fg-alert) 10%, transparent), 
        color-mix(in oklab, var(--fg-alert) 15%, transparent));

    --fg-success: var(--green);
    --fg-success-light: color-mix(in oklab, var(--fg-success) 50%, var(--bg-base));
    --bg-success: color-mix(in oklab, var(--fg-success) 10%, var(--bg-base));

    --fg-info: var(--teal);
    --fg-info-light: color-mix(in oklab, var(--fg-info) 50%, var(--bg-base));
    --bg-info: color-mix(in oklab, var(--fg-info) 20%, var(--bg-base));

    --fg-disabled: color-mix(in oklab, currentColor 70%, transparent);
    --bg-disabled: var(--bg-sunken);

    --fg-warning: var(--orange);
    --fg-warning-light: color-mix(in oklab, var(--fg-warning) 50%, var(--bg-base));
    --bg-warning: color-mix(in oklab, var(--fg-warning) 10%, var(--bg-base));

    --fg-danger: var(--red);
    --fg-danger-light: color-mix(in oklab, var(--fg-danger) 50%, var(--bg-base));
    --bg-danger: color-mix(in oklab, var(--fg-danger) 10%, var(--bg-base));

    --fg-accent: var(--pink);
    --fg-highlight: var(--yellow);

    --fg-brand-gradient: linear-gradient(
        90deg,
        var(--fg-brand) 0%,
        var(--fg-info) 100%
    );

    /* Text colors */
    --text: var(--fg-primary);
    --text-light: var(--white);
    --text-reverse: var(--bg-base);
    --text-secondary: var(--fg-secondary);
    --text-tertiary: var(--fg-tertiary);
    --text-disabled: var(--fg-disabled);
    --text-brand: light-dark(var(--fg-brand), var(--purple-bright));
    --text-alert: var(--fg-alert);
    --text-muted: var(--fg-muted);
    --text-success: var(--fg-success);
    --text-info: var(--fg-info);


    /* Spacing and sizes */
    --footer-height: 4rem;

    --border-radius-sm: .25rem;
    --border-radius-md: .25rem;
    --border-radius-lg: 1rem;

    --padding-2xs: .125rem;
    --padding-xs: .25rem;
    --padding-sm: .5rem;
    --padding-md: 1.2rem;
    --padding-lg: 2rem;
    --padding-xl: 3rem;

    --font-size-xs:  0.75rem;
    --font-size-sm:  0.875rem;
    --font-size-md:  1rem;
    --font-size-lg:  1.125rem;
    --font-size-xl:  1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;

    /* Borders */
    --bd-primary: 1px solid color-mix(in oklab, var(--fg-muted) 50%, transparent);
    --bd-light: 1px solid color-mix(in oklab, var(--fg-muted) 20%, transparent);
    --bd-brand: 1px solid var(--fg-brand);

    /* font */
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

    /*filters */
    --drop-shadow-small: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.1));

    /* Select caret — chevron SVGs stroked in a mode-appropriate grey.
       Overridden below for dark mode (prefers-color-scheme and body.theme-dark). */
    --caret-down: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235d5d5d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
    --caret-up:   url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235d5d5d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M1 6.5l5-5 5 5'/></svg>");

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --caret-down: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23919191' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
        --caret-up:   url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23919191' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M1 6.5l5-5 5 5'/></svg>");
    }
}

body.theme-dark {
    --caret-down: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23919191' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
    --caret-up:   url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23919191' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M1 6.5l5-5 5 5'/></svg>");
}

.page-load {
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--bg-base);
    top: 0;
    bottom: 0;
    z-index: 2;
}

.show-mobile {
    display: none;
}

@media screen and (max-width: 600px) {
    .hide-mobile {
        display: none;
    }
    .show-mobile {
        display: block;
    }
}
.hide {
    display: none;
}

.vertically-center {
    margin-top: 6% !important;
}

.dropdown-toggle, .dropdown-toggle:hover {
    line-height: 16px;
    &:after {
        display: none;
    }
}

html {
    height: 100%;
}
body {
    background-color: var(--bg-sunken);
    color: var(--text);
    height: 100%;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--body-font);
}
html, body {
    max-width: 100%;
}

.container-fluid{
    align-items: start;
    align-content: start;
    padding-bottom: 60px;

    >.row {
        min-height: calc(100vh - 60px);
    }
}
.container-fluid {
    overflow: scroll;
}

@media only all and (max-height: 500px) {
    body {
        overflow: scroll;
    }   
}  

/* components */

/* Tooltip — shared element for x-tooltip directive and chart tooltips */
.ht-tooltip {
    --ht-tooltip-bg: var(--fg-primary);
    --ht-tooltip-arrow: 0.5rem;
    --ht-tooltip-gap: 0.5rem;

    position: absolute;
    pointer-events: none;
    background: var(--ht-tooltip-bg);
    color: var(--text-reverse);
    font-size: 0.8125rem;
    line-height: 1.4;
    padding: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition:
        opacity 0.12s ease,
        left 0.12s ease,
        top 0.12s ease;
    transform: translate(-50%, calc(-100% - var(--ht-tooltip-gap)));

    /* Arrow */
    &::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        border: var(--ht-tooltip-arrow) solid transparent;
        top: 100%;
        border-top-color: var(--ht-tooltip-bg);
    }

    .ht-chart-tooltip__title {
        font-weight: bold;
        margin-bottom: var(--padding-sm);
    }

    .ht-chart-tooltip__row {
        display: flex;
        align-items: center;
        gap: var(--padding-sm);
    }

    .ht-chart-tooltip__swatch {
        display: inline-block;
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 50%;
        flex-shrink: 0;
    }
}

.panel {
    background: var(--bg-base);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: var(--padding-md);

    &:has(.panel-header, .panel-body, .panel-footer) {
        padding: 0;
    }

    .panel-header {
        width: 100%;
        padding: var(--padding-md);
        border-bottom: var(--bd-primary);
        display: flex;
        align-items: end;
        justify-content: space-between;
    }

    .panel-body {
        padding: var(--padding-md);
    }

    .panel-footer {
        padding: var(--padding-md);
        border-top: var(--bd-primary);
        display: flex;
        align-items: top;
        justify-content: space-between;
    }
}

/* Buttons */
.btn {
    padding: .375rem .9rem;

    i.fa {
        display: inline-block;
        color: currentColor;
        height: 1rem;
        padding: 0;
        margin: 0 1px;
        &::before{
            display: inline-block;
        } 
    }

    &.btn-outline {
        border-color: var(--fg-muted);
        background-color: transparent;
        color: var(--text);
    }

    &.btn-brand-subtle {
        background-color: var(--bg-brand-transparent);
        color: var(--text-brand);
    }

    &.btn-alert-subtle {
        background-color: var(--bg-alert-transparent);
        color: var(--text-alert);
    }
}

.btn-xs {
    font-size: .8rem;
    padding: .2rem .5rem;
}

.btn-light {
    color: var(--text);
    background-color: var(--bg-base);
    border-color: var(--fg-muted);
}

.btn-secondary {
    background-color: #fff !important;
    color: #555 !important;
    border: none;
    border: 1px solid #ddd !important;
}

.btn-primary, .btn-primary:active, .btn-primary:disabled {
    background: var(--fg-brand);
    color: #fff !important;
    border: none;
    border: 1px solid var(--fg-brand) !important;
}

.btn-primary:hover {
    background-color: #4c509e;
    opacity: 1;
}

.btn-danger-subtle {
    background-color: color-mix(in oklab, var(--red) 10%, var(--bg-base));
    color: var(--red);
    border: 1px solid color-mix(in oklab, var(--red) 20%, var(--bg-base));
}

.btn-danger-subtle:hover {
    background-color: color-mix(in oklab, var(--red) 20%, var(--bg-base));
    color: var(--red);
}

.btn-light:not(:disabled):not(.disabled).active, .btn-light:not(:disabled):not(.disabled):active, .show > .btn-light.dropdown-toggle {
    color: #000000;
    background-color: #ffffff;
    border-color: #d9d9d9;
}

.btn-group-sm>.btn, .btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: .2rem;
    font-weight: 400;
}

.btn-redeem {
        background: #464775;
    color: #fff;
    font-size: 13px;
    padding: 3px 10px;
    font-weight: bold;
}

/* Icon-only button — pairs with a single Tabler icon. Used for row-action
   affordances (filter toggles, delete, etc). aria-expanded="true" surfaces
   an active state automatically. */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    margin: 0;
    background: var(--bg-base);
    border: var(--bd-primary);
    border-radius: var(--border-radius-md);
    color: var(--text);
    font-size: var(--font-size-lg);
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;

    &:hover:not(:disabled) { background-color: var(--bg-raised); }
    &:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
    &:disabled { color: var(--text-muted); cursor: not-allowed; opacity: 0.6; }
    &[aria-expanded="true"] { background-color: var(--bg-raised); }
}

.btn-icon-sm {
    width: 1.75rem;
    height: 1.75rem;
    font-size: var(--font-size-md);
    border-radius: var(--border-radius-sm);
}

.btn-outline-success,
.btn-outline-success:active,
.btn-outline-success:focus {
    background: var(--bg-success);
    color: var(--fg-success);
    border: 1px solid var(--fg-success);
    &:hover {
        color: var(--text-reverse);
        background: var(--fg-success);
    }
}

.close-btn {
    background-color: var(--bg-brand-transparent);
    display: flex;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    border: var(--bd-brand);
    color: var(--text-brand);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 120ms ease, color 120ms ease;
    &:hover {
        background: var(--bg-sunken);
    }
}


.close-btn-large {
    height: 30px;
    width: 30px;
    position: fixed;
    box-sizing: border-box;
    line-height: 50px;
    text-indent: -99999px;
    right: 30px;
    z-index: 2;
    top: 24px;
}
.close-btn-large:before, .close-btn-large:after {
  transform: rotate(-45deg);
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -5px;
  margin-left: -25px;
  display: block;
  height: 3px;
  width: 30px;
  background-color: #000;
  transition: all 0.25s ease-out;
}
.close-btn-large:after {
  transform: rotate(-135deg);
}
.close-btn-large:hover:before, .close-btn-large:hover:after {
  transform: rotate(0deg);
}

.teams-tab-link {
    cursor: pointer;
}

/*inputs */
input, select, .form-control{
    background-color: var(--bg-base);
    color: currentColor;
    border-radius: var(--border-radius-md);
    padding: var(--padding-xs);
    border: var(--bd-primary);
    line-height: 100%;

    &.sm {
        padding: var(--padding-xs);
        font-size: small;
    }

    &.input-search {
        padding-left: 1.8rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1rem' height='1rem' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: .3rem;
        background-size: 1rem;
    }

    &:focus {
        background-color: var(--bg-brand);
        color: var(--text-base);
        border-color: var(--fg-brand);
        box-shadow: none;
    }
    &:disabled, &[readonly] {
        cursor: default;
        user-select: none;
        pointer-events: none;
        background-color: var(--bg-disabled);
        color: var(--text-disabled);
    }

    &.error {
        border-color: var(--fg-alert);
        background: var(--bg-alert);
    }

}
.input-group-text{
    background-color: var(--bg-disabled);
    color: var(--text-disabled);
    border-radius: var(--border-radius-md);
    border: var(--bd-primary);
}

textarea {
    overflow: auto;
    resize: vertical;
    field-sizing: content;
    transition: height 0.2s ease;
}

img {
    max-width: 100%;
}

/** Cards and Popovers **/

.card, .popover, .card-brand {
    padding: var(--padding-md);
    &:has(.card-header, .card-body, .card-footer, .popover-body, .popover-header) {
        padding: 0;
    }
    
    .card-header, .popover-header {
        background-color: #99999932;
    }

    .card-body {
        padding: var(--padding-md);
        display: flex;
        flex-direction: column;
        gap: var(--padding-sm);
    }

    .card-footer{
        padding: 0 var(--padding-md) var(--padding-md);
        background-color: unset;
        border:none;
    }

    &.card-brand {
        background-color: var(--bg-brand);
        border: var(--bg-brand);
    }

    &.card-warning {
        background-color: var(--bg-warning);
        border-color: var(--bg-warning);
    }

    &.card-sm{
        padding: var(--padding-sm);
    }
}

.popover {
    overflow: hidden;
    .popover-body {
        padding: 1rem;
    }
}

/* Strip the user-agent button chrome from any <button> used as a segmented
   control option or as a menu item. These are styled by their own classes;
   the browser default border + focus ring just fights with the design. */
.segmented-control button,
button.menu-item,
button.segment {
    background: none;
    border: none;
}

.segmented-control button:focus,
button.menu-item:focus,
button.segment:focus {
    outline: none;
    box-shadow: none;
}

.segmented-control button:focus-visible,
button.menu-item:focus-visible,
button.segment:focus-visible {
    outline: 2px solid var(--fg-brand);
}

.segmented-control {
    display: flex;
    background-color: var(--bg-brand-transparent);
    border-radius: var(--border-radius-md);
    padding: var(--padding-xs);
    gap: var(--padding-xs);

    .segment {
        padding: var(--padding-xs) var(--padding-sm);
        border-radius: var(--border-radius-md);
        color: var(--text-brand);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: var(--padding-xs);
        cursor: pointer;

        &.active {
            background-color: var(--bg-base);
            color: var(--text-base);
            font-weight: 600;
        }

        .segment-count {
            font-size: 70%;
            background-color: var(--bg-brand-transparent);
            color: var(--text-brand);
            width: var(--padding-md);
            aspect-ratio: 1/1;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 100%;
        }
    }
}

.badge {
    padding: var(--padding-sm) var(--padding-md);
    border-radius: var(--padding-md);
    font-size: small;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: var(--padding-sm);

    .ti {
        font-size: 1em;
    }

    &.badge-sm {
        padding: var(--padding-xs) var(--padding-sm);
        font-size: smaller;

        .ti {
            font-size: 0.875rem;
        }
    }

    &.badge-xs {
        padding: var(--padding-xs);
        font-size: smaller;
    }

    &.badge-brand {
        background-color: var(--fg-brand);
        color: var(--text-light);
    }

    &.badge-info {
        background-color: var(--fg-info);
        color: var(--text-light);
    }

    &.badge-success {
        background-color: var(--fg-success);
        color: var(--text-light);
    }

    &.badge-alert {
        background-color: var(--fg-alert);
        color: var(--text-light);
    }

    &.badge-warning {
        background-color: var(--fg-warning);
        color: var(--text-light);
    }

    &.badge-secondary {
        background-color: var(--fg-secondary);
        color: var(--text-light);
    }

    &.badge-gradient {
        background: var(--fg-brand-gradient);
        color: var(--text-light);
    }

    &.badge-subtle {
        &.badge-brand {
            background-color: var(--bg-brand);
            color: var(--fg-brand);
        }

        &.badge-info {
            background-color: var(--bg-info);
            color: var(--fg-info);
        }

        &.badge-success {
            background-color: var(--bg-success);
            color: var(--fg-success);
        }

        &.badge-alert {
            background-color: var(--bg-alert);
            color: var(--text-alert);
        }

        &.badge-warning {
            background-color: var(--bg-warning);
            color: var(--fg-warning);
        }

        &.badge-secondary {
            background-color: color-mix(in oklab, var(--fg-secondary) 15%, var(--bg-base));
            color: var(--fg-secondary);
        }
    }
}

/* Native <select> — replaces bootstrap-select. Uses appearance: base-select
   (Chromium's new native-styling primitive) where supported, falling back to
   a caret-image background for older engines. */
select, select.form-control {
    appearance: none;
    -webkit-appearance: none;

    /* Caret rendered as a background image. Light/dark variants keep the caret
       readable against either surface; swapped to an "up" chevron when :open. */
    background-color: var(--bg-base);
    background-repeat: no-repeat;
    background-position: right var(--padding-sm) center;
    background-size: 0.65rem auto;
    background-image: var(--caret-down);
    height: auto !important;
    line-height: 1.5;

    border: var(--bd-primary);
    border-radius: var(--border-radius-sm);
    padding: .375rem 1.75rem .375rem .75rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    transition: background-color 0.15s ease;

    &:hover:not(:disabled) { background-color: var(--bg-sunken); }
    &:focus { background-color: var(--bg-base); box-shadow: none; }
    &:disabled { color: var(--text-muted); cursor: not-allowed; opacity: 0.6; }

    /* Declared after appearance: none so supporting browsers prefer base-select. */
    &, &::picker(select) { appearance: base-select; }

    /* Suppress the default picker-icon so our background-image caret is the only one. */
    &::picker-icon { display: none; }

    /* Flip to an "up" chevron while the picker is open (base-select browsers). */
    &:open {
        background-image: var(--caret-up)
    }

    & option::checkmark { display: none; }

    &::picker(select) {
        background-color: var(--bg-base);
        border: var(--bd-primary);
        border-radius: var(--border-radius-sm);
        filter: var(--drop-shadow-small);
        padding: var(--padding-xs);
        margin-top: var(--padding-xs);
    }

    & option {
        background-color: var(--bg-base);
        color: var(--text);
        padding: var(--padding-sm);
        border-radius: var(--border-radius-sm);
        font-weight: 500;
        cursor: pointer;

        &:hover:not(:disabled) { background-color: var(--bg-sunken); }
        &:checked { background-color: var(--bg-sunken); font-weight: 600; }
        &:disabled { color: var(--text-muted); cursor: not-allowed; }
    }

    &.sm {
        padding: var(--padding-xs) var(--padding-md) var(--padding-xs) var(--padding-sm);
        border-radius: var(--border-radius-sm);
        font-size: var(--font-size-xs);
    }
}

hr {
    border-color: var(--fg-muted);
}
/* Colors */
.style-color-a, .style-color-b, .style-color-c {
  background: #a02fff; }

.style-color-d, .style-color-e, .style-color-f {
  background: #32ca32; }

.style-color-g, .style-color-h, .style-color-i {
  background: #4d8ff8; }

.style-color-j, .style-color-k, .style-color-l {
  background: #d3ca2b; }

.style-color-m, .style-color-n, .style-color-o {
  background: #ef8644; }

.style-color-p, .style-color-q, .style-color-r {
  background: #49eba4; }

.style-color-s, .style-color-t, .style-color-u {
  background: #33bab2; }

.style-color-v, .style-color-w, .style-color-x {
  background: #296899; }

.style-color-y, .style-color-z, .style-color- {
  background: #e542d4; }

.tab-footer .progress-bar {
    width: 100%;
    padding: 2px 9px;
    background-color: var(--darkorange);
}
.tab-footer .promo {
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    background: #444;
    height: 21px;
    vertical-align: bottom;
} 
.tab-footer .promo:hover {
    opacity: .8;
    text-decoration: none;
} 

.morris-hover {
    z-index: 3 !important;
}

body.noscroll {
    overflow: hidden;
}

.full-height {
    width: 100%;
	height: fit-content;
}

.muted {
    color: var(--text-muted);
}

.progress {
    position: relative;
    .percentage {
        line-height: 100%;
        margin-top: .1rem;
        &.completed {
            position: absolute;
            left: calc( 50% - 2rem );
            color: var(--text-light);
        }
    }
    .progress-bar {
        background-color: var(--teal);
        &.progress-bar-success{
            background-color: var(--fg-success);
            right: 0;
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
        }
    }

}



/*Tacos*/

.taco-emoji-md {
    margin-left: 3px;
}
.emojione {
    width: 20px;
    margin-top: -.6rem;
}
.taco-emoji-sm {
  width: 22px; }

.taco-emoji-md {
  width: 30px;
  vertical-align: text-bottom; }

/* Modals */

.modal-backdrop {
    background-color: #f3f2f1;
    position: relative;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    background: rgb(243 242 241 / .9);
}
.modal-content {
    border: none;
    border-radius: var(--border-radius-md);
}
.modal-body {
    border-radius: var(--border-radius-md);
}
.modal-dialog {
    margin-top: 8%;
}
.modal h1 {
    font-weight: bold;
}
.modal-close-btn {
    opacity: 1;
    display: inline-block;
    transform: scaleX(1) scaleY(1);
    position: absolute;
    right: .8rem;
    border: none;
    background: none;
    font-size: 2rem;
    color: #999;
    z-index: 999;
    cursor: pointer;
}
.large-download-icon {
    font-size: 6rem;
    color: #d2d2d2;
    margin-top: 2rem;
}

/* Native modal - uses <dialog> and supporting baseline infro rather than bs or custom js - use in favor of any other modal */
dialog {
    margin: auto;
    border: none;
    padding: var(--padding-md);
    border-radius: var(--border-radius-md);
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition:
        opacity 200ms ease,
        transform 200ms ease,
        overlay 200ms ease allow-discrete,
        display 200ms ease allow-discrete;
    &[open] {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    &::backdrop {
        background-color: color-mix(in srgb, var(--bg-sunken) 70%, transparent );
        backdrop-filter: blur(4px);
        opacity: 0;
        transition:
            opacity 200ms ease,
            backdrop-filter 200ms ease,
            overlay 200ms ease allow-discrete,
            display 200ms ease allow-discrete;
    }
    &[open]::backdrop {
        opacity: 1;
    }
}
@starting-style {
    dialog[open] {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    dialog[open]::backdrop {
        opacity: 0;
    }
}
dialog:not([open]) {
    display: none;
}


/* Notifications */
.notification {
    display: none;
    background: var(--fg-success);
    position: fixed;
    bottom: 60px;
    left: 0;
    z-index: 999;
    width: 100%;
    text-align: center;
    padding: 10px;
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    &.error {
        background: var(--fg-alert);
    }
}
.notification-error {
    background: var(--fg-alert);
}

.invalid {
    outline: 2px solid var(--fg-alert);
}

.validation-error {
    position: absolute;
    background: var(--fg-alert);
    color: #fff;
    bottom: calc(100% + .3rem);
    padding: .3rem;
    border-radius: .1rem;
    width: auto;

    &:is(li) {
        position: relative;
        bottom: unset;
    }
}
.alert-danger {
    color: #ffffff;
    background-color: var(--fg-alert);
    border-color: var(--bg-alert);
}


.no-results {
    text-align: center;
    padding-top: 20%;
}
.no-results img {
    opacity: .5;
    width: 120px;
}
.no-results h2 {
    font-size: 22px;
    font-weight: 600;
    color: #777;
    -webkit-font-smoothing: antialiased;
    margin: 5px;
}
.no-results p {
    color: #777;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}



/* Danger Zone */
.danger-zone {
    border: 1px solid #cd4931;
    border-radius: .1rem;
    margin-bottom: 2rem;
    background-color: #cd493111;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    >div{
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
         >div{
            flex-basis: 50%;
            flex: 1;
         }
    }
}


a, a:hover{
    color: var(--text-brand);
}

.scrollable {
    padding-top: 65px;
}
/* Pagination — Slack-style numbered links with prev/next chevrons on the ends.
   Bootstrap 4 provides the base .pagination (display: flex, list-style: none). */
.pagination {
    align-items: center;
    gap: var(--padding-2xs);
    padding: var(--padding-sm) var(--padding-md);
    color: var(--text);

    li {
        margin: 0;
        font-weight: normal;
        display: inline-flex;
        align-items: center;
    }

    a, span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2rem;
        padding: var(--padding-sm);
        border-radius: var(--border-radius-sm);
        color: var(--text);
        text-decoration: none;
        line-height: 1;
    }

    a:hover {
        background: var(--bg-sunken);
        text-decoration: none;
    }

    a.active {
        background: var(--bg-brand-transparent);
        color: var(--text-brand);
        font-weight: 600;
    }

    .pagination__prev { margin-right: auto; }
    .pagination__next { margin-left: auto; }

    .pagination__prev a,
    .pagination__next a,
    .pagination__prev span,
    .pagination__next span {
        gap: var(--padding-2xs);
    }

    .pagination__prev [aria-disabled="true"],
    .pagination__next [aria-disabled="true"] {
        color: var(--text-muted);
        cursor: not-allowed;
    }
}

.no-padding-left {
    padding-left: 0 !important;
}


label {
    display: inline-block;
    margin-bottom: .5rem;
}


.background-light {
    background-color: var(--bg-base);
    padding: 0;
    margin: 0;
}

.rounder-corners-3 {
    border-radius: 3px;
}

/* Sign in */
.signin .tab-footer {
    display: none;
}
.signin-container {
    position: absolute;
    top: 15%;
    max-width: 500px;
    min-height: 350px;
    left:50%;
    margin-left: -250px;
    background: var(--bg-base);
    padding: 35px;
    box-shadow: 1px 1px 14px -13px #000;
    border-radius: 5px;
}
.signin .signin-logo {
    margin: 20px auto 0px;
    width: 70px;
    text-align: center;
    border-radius: 5px;
}
.signin h1 {
    font-size: 20px;
    max-width: 420px;
    margin: 5px auto 10px;
    line-height: 26px;
    padding: 17px 20px 0;
}
.signin-container p {
    margin-top: 0;
    margin-bottom: 0;
}
.signin .alert-no-account {
    max-width: 460px;
    margin: 20px auto 0;
    font-size: 14px;
}
.microsoft-icon {
    width: 25px;
    vertical-align: middle;
    margin: 2px 7px 2px 0;
}
.signin .btn {
    margin-top: 30px;
    background-color: var(--bg-base);
    border-color: var(--fg-tertiary);
}
.signin .btn span {
    vertical-align: middle;
    font-size: 15px;
}

.signin .open-intercom-btn {
    display: inline-block;
    margin: 25px 0 0;
    color: #242424;
    font-size: 14px;
    background: #fffff0;
    padding: 5px 15px;
    text-decoration: underline;
}
.signin .open-intercom-btn:hover {
    text-decoration: none;
}

/* Hide the HelpScout beacon on mobile */
@media (max-width: 768px) {
    #beacon-container {
        display: none !important;
    }
}

#mobile-menu {
    background: #f3f2f1;
}

#hamburger-btn span {
    background-color: #646262;
}

/* Footer */
.tab-footer {
    position: fixed;
    bottom: 0;
    background: var(--bg-sunken);
    outline: var(--bd-primary);
    width: 100%;
    height: 60px;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 20px;
    z-index: 9;
}
.tab-footer a {
    color: var(--text-tertiary);
}    
.tab-footer a.footer-logo {
    width: 120px;
    color: transparent;
    float: left;
    background: transparent url("/images/logo-full.png") no-repeat center / contain;
    height: 35px;
}

/* Typography */
h1 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    padding: 18px 0 0;
}

h2 {
    font-size: 1.1rem;
    line-height: 95%;
    margin: 0;
    font-weight: 600;
    color: var(--text-secondary);
}

h3 {
    font-size: 1rem;
    line-height: 95%;
    margin: 0;
    font-weight: 600;
    color: var(--text-secondary);
}

b{
    font-weight: 800;
}

small{
    font-size: 90%;
}

.main-column h1 {
    padding: 18px 0 0 18px;
}


/* Filers */
.filters {
    margin: 15px;
}
.filters .title {
    vertical-align: middle;
    font-size: 13px;
    color: #a9a9a9;
    font-weight: 400;
}
.filters-group {
    display: inline-block;
    width: 100%;
}
.page .filters {
    margin: 18px 18px 0px;
}
.switch-profile {
    display: block;
}

.filters label {
  display: none; }
.filters .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
width: auto; }


/* User Panel */
.user-panel {
    padding: 0;
    text-align: center;

    .large-avatar {
        border-radius: 100%;
        width: 100%;
        max-width: 175px;
        margin: 25px auto 10px;
        display: block;
    }
    .generic-large-avatar {
        border-radius: 100%;
        width: 100%;
        max-width: 175px;
        margin: 25px auto 10px;
        display: block;
        font-size: 80px;
        color: #fff;
        text-align: center;
        padding-top: 24px;
        margin: 10px auto;
        height: 175px;
    }
    .generic-large-avatar:hover {
        text-decoration: none;
        opacity: .8;
    }
    h2 {
        font-size: 20px;
    }
    .btn {
        max-width: 190px;
        margin: 0 auto;
    }
    .btn:hover {
        opacity: .85;
    }
    .total-redeemable-title {
        font-size: 13px;
        color: #999;
        margin: 20px 0 0;
    }
    .total-redeemable-tacos {
        font-size: 28px;
        font-weight: 500;
        margin-top: -5px;
    }
    .taco-emoji-md {
        width: 26px;
        vertical-align: middle;
        margin-top: -2px;
    }
    .filters {
        margin: 15px 0;
    }
    .dropdown-toggle {
        background-color: #e9e8e8;
    }
    .user-panel-team-select .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
        width: 100%;
    }
}

/*Admin Banner*/
.admin-banner {
    margin: var(--padding-sm) var(--padding-sm) 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--padding-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media screen and (min-width: 1300px) {
    .user-panel {
        right: 6%;
    }    
}    
@media screen and (max-width: 900px) {
    .user-panel .large-avatar {
        max-width: 160px;
    }
}    

/* Tables */

.table {
    font-size: small;
    a {
        font-weight: 500;
    }
    .rank {
        padding: var(--padding-md);
        font-size: large;
        text-align: center;
        font-weight: 500;
    }
    .rank-title:first-child {
        width: 3rem; 
        font-size: large;
    }
    .rank-title:first-child {
        font-size: small;
    }
    .total-tacos, .total {
        font-size: large;
        font-weight: 500;
    }
    thead tr th {
        color: var(--text-tertiary);
        font-weight: 400;
        background: none;
        border: none;
        border-bottom: var(--bd-primary);
    }
    td, th {
        border-top: var(--bd-primary);
        vertical-align: middle;
    }
    .ranking {
        width: 3rem;
    }
}

/* Sortable column headers — two supported patterns:
     (1) <table class="sortable">…<th><a class="asc|desc">…</a></th></table>
         used by admin pages; the anchor gets an absolute-positioned Tabler
         sort indicator, .asc/.desc swap in the directional arrow.
     (2) <th class="sortable" data-sort-dir="asc|desc">…</th>
         used by JS-driven click sorters that don't wrap header content in
         anchors; ::after handles the indicator directly. */
table.sortable th {
    &.sorted-by { background: var(--bg-sunken); }

    a {
        color: inherit;
        display: inline-block;
        position: relative;
        padding-right: 1.25rem;
        text-decoration: none;

        &:hover, &:focus {
            text-decoration: none;
        }
    }

    a::after {
        content: "\eb5a"; /* ti-arrows-sort */
        font-family: "tabler-icons";
        font-weight: normal;
        font-style: normal;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 1em;
        line-height: 1;
    }

    a.asc::after {
        content: "\ea1d"; /* ti-arrow-narrow-up */
        color: var(--text);
    }

    a.desc::after {
        content: "\ea1a"; /* ti-arrow-narrow-down */
        color: var(--text);
    }
}

th.sortable {
    position: relative;
    padding-right: 1.5rem;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;

    &::after {
        content: "\eb5a"; /* ti-arrows-sort */
        font-family: "tabler-icons";
        font-weight: normal;
        font-style: normal;
        position: absolute;
        right: 0.25rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 1em;
        line-height: 1;
    }

    &[data-sort-dir="asc"]::after {
        content: "\ea1d"; /* ti-arrow-narrow-up */
        color: var(--text);
    }

    &[data-sort-dir="desc"]::after {
        content: "\ea1a"; /* ti-arrow-narrow-down */
        color: var(--text);
    }
}

.data-table{
    display: flex;
    flex-direction: column;
    gap: var(--padding-sm);
    position: relative;

    /* Filter/action row above .data-table__wrap. .table-controls is the flex
    row that holds any left-aligned action buttons plus a right-aligned
    .table-filters cluster (search + dropdowns). Wraps on narrow viewports. */
    .table-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: var(--padding-sm);

        input, button, .btn, form {
            margin: 0;
        }
    }

    .table-buttons {
        display: flex;
        align-items: center;
        gap: var(--padding-sm);
    }

    .table-filters {
        display: flex;
        align-items: center;
        gap: var(--padding-sm);

        .filter {
            display: flex;
            align-items: center;
            gap: var(--padding-sm);
            label { margin: 0; }
        }
    }

    /* Admin table */
    .data-table__wrap {
        border: var(--bd-primary);
        border-radius: var(--border-radius-md);
        overflow: auto;
        min-height: 15rem;
        max-width: 100%;
        position: relative;

        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: var(--font-size-sm);

            th, td {
                padding: var(--padding-sm) var(--padding-md);
                border-bottom: var(--bd-light);
            }

            thead th {
                position: sticky;
                top: 0;
                z-index: 1;
                font-weight: 600;
                color: var(--text-secondary);
                border-bottom: var(--bd-primary);
                text-transform: none;
            }

            tbody:last-of-type tr:last-of-type td {
                border-bottom: none;
            }

            tfoot td {
                position: sticky;
                bottom: 0;
                z-index: 1;
                border-top: var(--bd-primary);
                border-bottom: none;
                background: var(--bg-raised);
                color: var(--text-secondary);
                font-weight: bold;
            }
        }

        tr.is-expandable {
            cursor: pointer;
            &:hover {
                background: var(--bg-sunken);
                .row-actions-cell {
                    background: var(--bg-sunken);
                }
            }
        }

        .row-details {
            background: var(--bg-sunken);
            .row-actions-cell {
                background: var(--bg-sunken);
            }
        }

        /* Last-column actions cluster — sticks to the right edge of .data-table__wrap
        so the buttons stay visible during horizontal scroll. */
        .row-actions-cell {
            position: sticky;
            right: 0;
            z-index: 2;
            background: var(--bg-base);
            text-align: right;
        }

        thead th.row-actions-cell {
            z-index: 3;
        }

        .row-actions {
            display: inline-flex;
            align-items: center;
            gap: var(--padding-sm);
            justify-content: flex-end;
        }

        .row-actions .btn {
            margin: 0;
            display: inline-flex;
            align-items: center;
            gap: var(--padding-xs);
            white-space: nowrap;
        }

        .data-table__empty {
            text-align: center;
            color: var(--text-muted);
            padding: var(--padding-xl);
        }
    }
}

/* Search bar — input + typeahead dropdown. */
.search-bar {
    display: flex;
    align-items: center;
    gap: var(--padding-md);
    position: relative;
    max-width: 100%;
}

.search-bar__input__wrap {
    position: relative;
}

.search-bar__input {
    position: relative;
    width: 22rem;
    max-width: 100%;
    flex-shrink: 1;
}

.search-bar__input .form-control {
    width: 100%;
    height: 2.5rem;
    padding: var(--padding-md);
    padding-left: var(--padding-xl);
    padding-right: var(--padding-xl);
}

.search-bar__input input[type="search"]::-webkit-search-cancel-button,
.search-bar__input input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.search-bar__icon {
    position: absolute;
    top: 50%;
    left: var(--padding-md);
    transform: translateY(-50%);
    color: var(--text);
    pointer-events: none;
}

.search-bar__clear {
    position: absolute;
    top: 50%;
    right: var(--padding-sm);
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--padding-xs);
    line-height: 1;
}

.search-bar__clear:hover {
    color: var(--text);
}

.search-bar__button {
    position: absolute;
    inset: var(--padding-xs) var(--padding-xs) var(--padding-xs) auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: var(--bd-primary);
}

.search-bar__count {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-style: italic;
    white-space: nowrap;
}

.search-bar__chip {
    max-width: 14rem;
}

.search-bar__chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.search-bar__chip-clear {
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    margin-left: var(--padding-2xs);
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
}

.search-bar__chip-clear:hover,
.search-bar__chip-clear:focus-visible {
    opacity: 1;
    outline: none;
}

.search-bar__results {
    position: absolute;
    top: calc(100% + var(--padding-xs));
    left: 0;
    right: 0;
    z-index: 10;
    max-height: 22rem;
    overflow-y: auto;
    background: var(--bg-base);
    border: var(--bd-primary);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.search-bar__group + .search-bar__group {
    border-top: var(--bd-primary);
}

.search-bar__heading {
    padding: var(--padding-xs) var(--padding-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: var(--bg-sunken);
}

.search-bar__option {
    display: flex;
    align-items: center;
    gap: var(--padding-sm);
    width: 100%;
    padding: var(--padding-sm) var(--padding-md);
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    font-size: var(--font-size-sm);
}

.search-bar__option:hover:not(:disabled),
.search-bar__option:focus-visible:not(:disabled) {
    background: var(--bg-sunken);
    outline: none;
}

.search-bar__option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-bar__meta {
    margin-left: auto;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.search-bar__avatar.ht-avatar {
    width: 1.5rem;
    height: 1.5rem;
}

.search-bar__state {
    padding: var(--padding-sm) var(--padding-md);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.user-profile{
    display: flex;
    align-items: center;
    gap: .8rem;
}


/* Avatars */
.avatar {
    display: flex;
    container-type: inline-size;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 100%;
    overflow: hidden;
    color: white;
    font-size: 50%;
    img { width: 100%; height: 100%; object-fit: cover; }

    &:is(a){
        text-decoration: none;
        &:hover{
            color: white;
        }
    }

    span{
        font-size: 40cqi; 
        /* ^ text size will always be proportional to .avatar's size (method requires container-type on parent) */
    }

    &.xs{
        width: 1.5rem;
    }

    &.sm{
        width: 2rem;
    }

    &.radius-sm {
        border-radius: var(--border-radius-sm);
    }
    &.avatar--placeholder { background: var(--grey-300); }
}

.avatar-small {
    width: 42px;
    height: 42px;
    border-radius: 100px;
    display: inline-block;
    margin-right: 8px;
}
.avatar-small:hover {
    opacity: .9;
} 
.avatar-large {
    width: 160px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 100px;
    margin: 10px auto;
    margin-top: -30px;
    display: inline-block;
}

.generic-avatar-small {
    font-size: 15px;
    color: #fff;
    text-align: center;
    padding-top: 10px;
}
.generic-avatar-large {
    font-size: 70px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.generic-small-avatar-giver{
    left: -9px;
    bottom: -3px;
    width: 21px;
    border: 2.4px solid #f3f2f1;
    border-radius: 100px;
    height: 21px;
    font-size: 8px;
    box-shadow: none;
    padding: 3px 0;
}
.generic-small-avatar-giver a {
    color: #fff;
}
.generic-small-avatar-giver a:hover,.generic-small-avatar-giver:hover {
    text-decoration: none;
    opacity: .8;
}



/* Level */
.level-ribbon{
    background-color: var(--yellow);
    color: #000;
    display: table;
    font-size: 13px;
    line-height: 1;
    margin: -32px auto 15px;
    max-width: 70%;
    padding: 6px 10px;
    position: relative;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0px 1px 1px 0px #ccc;
}
.level-ribbon::before, .level-ribbon::after {
    content: '';
    position: absolute;
    top: 3px;
    border: 12.5px solid #f8bd10;
    z-index: 0;
}
.level-ribbon::before {
    left: -20px;
    border-left: 8px solid transparent;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    box-shadow: 0px 2px 1px -1px #ccc;
}
.level-ribbon::after {
    right: -20px;
    border-right: 8px solid transparent;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0px 2px 1px -1px #ccc;
}
.level-ribbon .level-text {
    position: relative;
    z-index: 1;
}

.team-select .dropdown-toggle, .team-select .dropdown-toggle:hover {
    border: 1px solid #d5d5d5;
    background: #f3f2f1;
    font-size: 12px;
    height: 29px;
}

/* Tags */
.tag-title {
    font-size: 18px;
    margin: 8px 18px 0;
}
.view-all-tags {
    font-size: 13px;
    margin: 0 17px 17px;
}
.leaderboard-tags {
    margin-bottom: 35px;
}

/* Team Admin */
.menu {
    padding: 16px 0;
}
.menu-item:hover {
    text-decoration: none;
    opacity: .8;
}
.menu-item.current {
    background: #e8e8f3;
}

.menu-item {
  position: relative;
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.admin h1, .settings h1 {
    padding-left: 0;
}
.admin .stats-box h2 {
    padding: 24px 0 0;
    margin: 0;
    font-size: 36px;
}
.admin h3 {
    font-size: 18px;
    font-weight: normal;
}
.admin .stats-box {
    height: 120px;
    text-align: center;
    color: #6c6c6c;
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    width: 100%;
    font-weight: 500;
    font-size: 12px;
}
.trial-notification-box {
    border: 1px solid #eee;
    padding: 14px;
    margin-top: 40px;
    font-size: 14px;
    border-radius: 5px;
    text-align: center;
}


/* Activity */
.activity {
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: start;
}

.activity-items {
    width: 100%;
}
.activity .avatars{
    position: relative;
}
.activity .avatars .giver .avatar{
    position: absolute;
    left: -9px;
    bottom: -3px;
    border: 2px solid #f3f2f1;
}
.activity .item {
    display: grid;
    grid-template-columns: min-content auto;
    gap: .5rem;
    align-items: start;
    width: 100%;
    .avatars {
        grid-row-start: 2;
        grid-column-start: 1;
    }
    .who {
        grid-row-start: 1;
        grid-column-start: 2;
    }
    .message {
        grid-row-start: 2;
        grid-column-start: 2;
        background-color: #aeaeae1b;
        padding: 10px;
        font-size: 14px;
        border-radius: 3px;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: .5rem;
        width: 100%;

        .milestone &{
            max-width: 28rem;
            background-color: #d1d1d11a;
            box-shadow: 0 0 2px rgba(0,0,0,0.24);
        }
        
        .message-content {
            display: flex;
            align-items: start;
            >p{
                flex: 1;
            }
            gap: 1rem;       
            .milestone-image {
                width: 6rem;
                aspect-ratio: 1/1;
            }
        }
    }
}

.item.infinite-item {
    overflow: hidden;
    width: 100%;
    padding: 3px 0;
}

.activity .who {
    font-size: 12.5px;
}
.activity .time {
    color: #aaa;
    font-size: 12.5px;
    margin-left: 3px;
    font-weight: 400;
}
.activity ol {
    list-style: none;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.activity .date-group {
    border-bottom: 1px solid #f3f2f1;
    position: relative;
    text-align: center;
    height: 0;
    margin: 1rem 0;
}

.activity .date-group-time {
    color: #595959;
    position: relative;
    font-weight: 400;
    background: #fff;
    font-size: 12px;
    vertical-align: text-top;
    text-align: center;
    margin: 0 auto;
    top: -.7rem;
    padding: 0 .5rem;
}

/* Dropdowns */
.dropdown-menu {
    background-color: #fff;
    padding: 0;
    box-shadow: 0px 0.125rem 0.75rem 0px rgba(22, 35, 58, 0.36);
    border:none;
}
.dropdown-toggle, .dropdown-toggle:hover {
    height: 28px;
    border: none;
    color: #252424;
    padding: 4px 16px 3px 8px;
    font-size: 13.5px;
    min-width: 138px;
    border-radius: 3px;
    background: var(--bg-raised) url(../images/arrow-down.png) no-repeat right;
    background-size: 14px;
    background-position: 93% 50%;
}
.btn-light:not(:disabled):not(.disabled).active, .btn-light:not(:disabled):not(.disabled):active, .show > .btn-light.dropdown-toggle {
    color: #252424;
    background: var(--bg-raised) url(../images/arrow-down.png) no-repeat right;
    border: none;
    background-size: 14px;
    background-position: 93% 50%;
    opacity: 1;
}
.dropdown-item {
    padding: 5px 9px;
    font-size: 14px;
    color: #222;
}
.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    background-color: #6264A7;
}
.dropdown-item:focus, .dropdown-item:hover {
    color: #fff;
    text-decoration: none;
    background-color: #6264A7;
}
.dropdown-item {
    padding: 5px 9px;
    font-size: 13px;
    color: #535353;
}
.dropdown-item .text {
    width: 100%;
}
.dropdown-item .text .total-people{
    color: #999;
    float: right;
}
.dropdown-item.selected .text .total-people {
    color: #fff;
}

.filters .team-name {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    margin-left: 5px;
}
.dropdown-toggle::after {
    border: none;

}
.admin .dropdown-toggle, .settings .dropdown-toggle  {
    min-width: 200px;
}
.admin .filters, .settings .filters {
    margin: 18px 0 0px;
}

.pricing .dropdown-toggle, .pricing .dropdown-toggle:hover {
    height: auto;
    border: none;
    color: #252424;
    padding: 6px 14.4px;
    font-size: 16px;
    min-width: 138px;
    border-radius: 3px;
    background: #f3f2f1;
    background-image: none;
}
.pricing .dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}
.pricing .scrollable-menu {
    height: auto;
    max-height: 200px;
    overflow-x: hidden;
    width: 100%;
}

/* Settings */

.settings h3 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 0;
}
.settings .table {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin: 0;
    font-size: small;

    a{
        font-size: inherit;
    }
    
    tbody {
        display: flex;
        flex-direction: column;
        gap: .8rem;
        
        &.collapse:not(.show) {
            display: none;
        }
    }
    
    tbody {
        
        &+ tbody, &+ thead{

            border-top:none;

            &::before {
                display: block;
                padding: 1rem 0 0 0;
                content: '';
                width: 100%;
                border-top: var(--bd-primary);
            }
        }
    }
    
    tr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    td {
        border-top: none;
        padding: 0;
        flex: 1 auto; 
        min-width: 0; 
        display: flex;
        gap: .2rem;
    }
}

.setting-button {
    background-color: #bababa;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 0 0 0.0625rem transparent;
    box-sizing: border-box;
    cursor: pointer;
    height: 1.25rem;
    margin: 0.125rem;
    outline: none;
    padding: 0;
    position: relative;
    width: 2.5rem;
}
.setting-button:enabled:before {
    background-color: #ffffff;
    border-radius: 50%;
    content: "";
    height: 0.875rem;
    left: 0.1875rem;
    position: absolute;
    top: 0.18750000000000003rem;
    transition: 0.2s;
    width: 0.875rem;
}
.setting-button.enabled {
    background-color: #5458af;
}
.setting-button.enabled:before {
    background-color: #FFFFFF;
    transform: translateX(1.25rem);
}
.setting-button-input {
    display: none;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.5rem;
    margin: 0;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-sunken);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1rem;
    width: 1rem;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
  background-color: var(--fg-brand);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--fg-brand);
}

input:checked + .slider:before {
  -webkit-transform: translateX(1.5rem);
  -ms-transform: translateX(1.5rem);
  transform: translateX(1.5rem);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.settings .saved-msg {
    color: green;
    margin: 5px;
    font-size: 14px;
    display: none;
}
.admin-layout.settings .table td {
    align-items: center;
}

/* Profile */
.profile {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: color-mix(in srgb, var(--bg-sunken) 90%, transparent);
    z-index: 999;
    display: none;
    cursor: pointer;
}
.profile .user-total-tacos {
    background: #f3f2f1;
    font-weight: bold;
    font-size: 28px;
    min-width: 110px;
    padding: 15px 15px 6px;
    display: inline-block;
    margin: 0 2px 0;
    line-height: 24px;
    border-radius: 3px;
}

.profile .user-total-tacos:hover {
    background: #edecea
}    
.profile .recent-activity {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    cursor: default;
}
.profile .username {
    margin: 0px 0 0;
    font-size: 22px;
    font-weight: normal;
}
.profile .user-total-tacos a {
    color: #3b3b3b;
}
.profile .user-total-tacos a:hover {
    text-decoration: none;
}

.profile .user-profile-details {
    background: #ffffff;
    padding-bottom: 20px;
    margin-top: 31px;
}

.profile .user-total-tacos small {
    font-size: 13px;
    display: block;
    color: #777;
    font-weight: normal;
}


.profile .recent-activity h1 {
    margin: 0px 20px 10px;
}

.profile .filters  {
    margin: 18px 14px 0;
}

/* Reward */
/* Profile */
#reward, #team-reward, #manual-redemption {
    inset: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: fixed;
    background: color-mix(in srgb, var(--bg-sunken) 99%, transparent);
    z-index: 2;
    display: none;
    cursor: pointer;
	margin-bottom: 46px;
}

#team-reward .container {
    padding: var(--padding-lg);
    cursor: auto;
    max-width: 60rem;
    height: 100%;
    display: flex;
    align-items: center;
}
#team-reward .container .background-light{
    padding: 20px;
}
   

#team-reward .taco-emoji {
    width: 28px;
    vertical-align: top;
    margin: 2px 3px;
}
#team-reward .reward-progress {
    padding: 65px 10px 20px;
}
#team-reward .reward-progress h2 {
    font-size: 24px;
    margin: 0;
    font-weight: 500;
}
#team-reward .reward-progress p {
    color: #444;
    font-size: 16px;
}
#team-reward .progressbar-container {
    margin: 10px 0 35px;
}
#team-reward .progress {
    border-radius: 15px;
    height: 20px;
    width: 100%;
    float: left;
    margin: 0 16px 10px 0;
}
#team-reward .progress-percent {
    float: none;
    font-size: 14px;
}
#team-reward .description {
    margin: 15px 0 20px;
    font-size: 14px;
    line-height: 20px;
}
#team-reward .contributors {
    padding: 10px;
    margin-top: 30px;
}
#team-reward .contributors ul {
    margin: 0;
    padding: 0;
}
#team-reward .no-contributions-msg {
    font-size: 16px;
    color: #999;
    line-height: 20px;
}
#team-reward .contribution-amount {
    width: 145px;
    margin: 15px auto 10px;
    text-align: center;
    font-size: 38px;
    padding: 10px;
    height: 70px;
}
#team-reward .contributors h2 {
    margin-top: 0;
    font-size: 20px;
}
#team-reward .total-contributed-title {
    color: #999;
    font-size: 14px;
    margin-top: 6px;
}
#team-reward .contributors li {
    overflow: hidden;
    margin-top: 5px;
}
#team-reward .contribution-details {
    padding-left: 54px;
}
#team-reward .contribution-details .username {
    font-weight: 500;
    font-size: 13px;
}
#team-reward .contribution-details .timestamp {
    font-size: 13px;
    color: #a1a1a1;
}
#team-reward .medium-avatar {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    float: left;
    border-radius: 50%;
}
#team-reward .edit-btn {
    padding: 3px 10px;
    border-radius: 18px;
    color: #999 !important;
    margin: 36px 0 0;
    font-size: 14px;
}
#team-reward .total-contributed {
    font-size: 20px;
    font-weight: 500;
    margin-top: 5px;
}
#team-reward .total-contributed .taco-emoji {
    width: 23px;
    vertical-align: bottom;
}

/* Rewards */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: var(--padding-md);
    padding: var(--padding-md);
}

/** reward item **/

.reward {
    cursor: pointer;
    transition: all .2s;

    &:hover {
        transform: translateY(-.3rem);
        filter: var(--drop-shadow-small);

    }

    &.gift-card .reward-image {
        margin: var(--padding-sm);
        border-radius: var(--border-radius-md);
    }

    .reward-faded {
        opacity: .1;
    }

    .reward-out-of-stock, .gift-card-unavailable{
        position: absolute;
        background: var(--fg-alert);
        color: #fff;
        padding: 5px 10px;
        font-weight: bold;
        font-size: 13px;
        z-index: 2;
        color: #fff !important;
    }

}

.cropped img {
    width: 100%;
}
#reward_guidance {
    font-size: 13px;
    line-height: 20px;
    margin: 10px 0 30px;
    max-width: 400px;
    color: #555;
}
.not-enough-modal, .example-modal {
    padding: 40px 0 !important;
    border-radius: var(--border-radius-md);
}
.contribution-modal {
    padding: 75px 0 !important;
    border-radius: var(--border-radius-md);
}
.add-edit-reward-wrap {
    display: flex;
    min-height: calc(100% - (var(--padding-xl)*2));
    width: 100%;
    padding: var(--padding-xl);
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}
.add-reward-wrap {
    display: flex;
    flex: 0 1 auto;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-height: calc(100% - (var(--padding-xl)*2));
}

.reward-type-select {
    max-width: 60rem;
    width: 100%;

    .options {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        .option {
            padding: 0 var(--padding-md) var(--padding-md);
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            border-radius: var(--border-radius-md);
            min-width: 15rem;
            max-width: 20rem;
            background-color: var(--bg-base);
            &>div{
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            h2 {
                margin: 15px 0 10px;
                font-size: 22px;
            }
            .icon {
                margin-top: -20px;
                width: 100px;
                height: 100px;
                border-radius: 50%;
            }
        }
    }
}
.reward-type-select .fa {
    font-size: 65px;
    color: #444;
}
.reward-type-select p {
    text-align: left;
    margin-bottom: 35px;
    font-size: 14px;
    line-height: 18px;
}
.reward-contributors{
    display: flex;
    align-items: center;
    gap: var(--padding-sm);
    color: var(--text-tertiary);
    font-style: italic;
}
.reward .progressbar-container {
    overflow: hidden;
}
.progress {
    background-color: var(--bg-sunken);
    color: var(--text-info);
}
.reward .progress {
    margin-bottom: 0;
}
.rewards .progress {
    width: 100%;
}
.reward .progress-percent {
    font-size: 13px;
    margin: 2px 0 0;
}
.reward .progress-percent .taco {
    width: 16px;
    vertical-align: text-top;
}

.reward-form{
    display: flex;
    gap: var(--padding-md);
    flex-wrap: wrap;
    align-items: top;
    .form-group{
        margin: 0;
    }
    label {
        margin-bottom: var(--padding-xs);
    }
    &>div{
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 20rem;
        gap: var(--padding-sm);
    }
    img{
        border-radius: var(--border-radius-md);
    }
    .gift-card-preview{
        display: flex;
        flex-direction: column;
        gap: var(--padding-md);
        
        .details{
            display: flex;
            flex-direction: column;
            gap: var(--padding-sm);
        }
        dl {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: var(--padding-sm) var(--padding-md);
            margin: 0;
        }
        dd {
            margin: 0;
        }

        dt {
            margin: 0;
            font-weight: 600;
        }
    }
}
.imageBox {
    position: relative;
    height: 400px;
    width: 100%;
    border: 1px solid #aaa;
    background: #fff;
    overflow: hidden;
    background-repeat: no-repeat;
    cursor: move;
}
.imageBox .thumbBox {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 465px;
    height: 350px;
    margin-top: -175px;
    margin-left: -232.5px;
    border: 1px solid rgb(102, 102, 102);
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
    background: none repeat scroll 0% 0% transparent;
}
.imageBox .spinner {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    line-height: 400px;
    background: rgba(0, 0, 0, 0.7);
}


.btn-add-img {
    background: none;
    border: 1px solid #fff;
    width: 100%;
    font-size: 15px;
    color: #5458af;
}
.reward-ideas .close {
    margin: 0 -3.75rem;
    opacity: 1;
    background-color: var(--fg-brand);
    position: fixed;
    padding: var(--padding-sm);
    width: 2.5rem;
    aspect-ratio: 1/1;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.reward-ideas {
    position: fixed;
    overflow: scroll;
    right: 0;
    z-index: 5;
    background: var(--bg-brand);
    width: 25rem;
    border-left: var(--bd-brand);
    top: 0;
    padding: var(--padding-md) var(--padding-md) var(--padding-xl) var(--padding-md);
    text-align: left;
    height: 100%;
    margin-right: -30rem;
    -webkit-transition: .3s ease-in;
    -moz-transition: .3s ease-in;
    -o-transition: .3s ease-in;
    -ms-transition: .3s ease-in;
    transition: .3s ease-in;
    display: none;
}

.reward-ideas .add-idea {
    font-size: 12px;
    float: right;
    background: var(--bg-brand-transparent);
    padding: 3px 8px;
    border-radius: 2px;
    color: var(--text-brand);
    border: var(--bd-brand);
}
.reward-ideas .idea {
    background-color: var(--bg-base);
    padding: var(--padding-md);
    margin-top: var(--padding-md);
    border-radius: var(--border-radius-md);
}
@media screen and (max-width: 600px) {
    .rewards-filters {
        display: none !important;
    }
}
.reward-ideas .idea-image {
    display: none;
}

.reward-ideas.show {
    margin-right: 0;
}
.reward-ideas h3 {
    margin: 0 0 5px;
    font-weight: 600;
}
.reward-ideas h4 {
    font-size: 16px;
    margin-top: var(--padding-xs);
    font-weight: 600;
}
.reward-ideas p {
    text-align: left;
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 15px;
}

.return-to-type-select, .return-to-gift-card-select, .return-to-catalog, .return {
    color: var(--text-brand);
    position: absolute;
    bottom: calc(100% + var(--padding-sm));
}

#add-edit-reward {
  width: 100%;
}

.add-edit-reward {
    max-width: 60rem;
    width: 100%;
    margin: auto;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    .panel-header{
        border: none;
    }
    .panel-body{
        padding-top: 0;
    }
}

.add-edit-reward .error-msg {
    padding-left: 28px;
    font-size: 14px;
}
.add-edit-reward h1 {
    padding: 0;
}

.add-edit-reward .instructions  {
    height: 100px;
}

.draft-reward-btn, .edit-reward-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: var(--padding-md);
    padding: 0 var(--padding-sm);
    height: 2rem;
    top: var(--padding-md);
    background-color: var(--bg-base);
    border-radius: var(--border-radius-md);
    color: var(--fg-brand);
    font-weight: bold;
    font-size: 13px;
    z-index: 2;
}
.edit-reward-btn {
    right: var(--padding-md);
    left: unset;
    width: 2rem;
    aspect-ratio: 1/1;
}
.draft-reward-btn{
    color: var(--text-reverse);
    background-color: var(--fg-info);
}
.edit-reward-btn:hover, .draft-reward-btn:hover {
    opacity: .8;
}

.image-upload-container {
    position: relative;
    display: none;
}
.image-upload-container .actions {
    position: absolute;
    bottom: 90px;
    left: 41%;
    display: none;
}
.image-upload-container .actions .btn {
    width: 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 24px;
    height: 40px;
    padding: 0px;
    background: #fff;
    line-height: 34px;
    border: 1px solid #eee;
}

.file-uploader, .file-uploader:hover {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.imageBox {
    position: relative;
    height: 400px;
    width: 100%;
    border: 1px solid #aaa;
    background: #fff;
    overflow: hidden;
    background-repeat: no-repeat;
    cursor: move;
}
.imageBox .thumbBox {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 350px;
    margin-top: -175px;
    margin-left: -250px;
    border: 1px solid rgb(102, 102, 102);
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
    background: none repeat scroll 0% 0% transparent;
}
.imageBox .spinner
{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    line-height: 400px;
    background: rgba(0,0,0,0.7);
}

.change-image, .change-image:hover {
    right: 40px;
    position: absolute;
    z-index: 10;
    top: 35px;
    color: #fff;
    display: none;
    background: #474747;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
}

.upload-new-image-btn {
    background: none;
    border: 2px solid #e8e8e8;
    width: 100%;
    font-size: 15px;
    color: #5458af;
}
.file-cropper {
    display: none;
        background: none;
    border: 2px solid #e8e8e8;
    width: 100%;
    font-size: 15px;
    color: #5458af;
}


/* Redemption modal */
.redemption-modal .modal-content h3 {
    max-width: 400px;
    margin: 0 auto 15px;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
}
.redemption-modal .need-more-tacos {
    display: none;
}
.redemption-modal .redeem-amount .taco-icon {
    width: 35px;
    vertical-align: sub;
}
.redemption-modal .redeem-amount-value {
    font-size: 40px;
    font-weight: 500;
}
.redemption-modal .confirmation p {
    color: #aaa;
}
.fulfilled {
    opacity: .5;
}
.additional-info-capture {
    margin: 12px 10% 20px;
    text-align: left;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-top: 12px;
    display: none;
}


/** Heytaco avatar **/
.avatar-wrapper {
    position: relative;
    width: 2.3rem; /* whole element scales to this value **/
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;

    .heytaco-avatar, .avatar {
        width: 100%;
        height: 100%;
        border-radius: .25rem;
    }
}

.daterangepicker {
    font-family: inherit;
    
    div, .calendar-table {
        background-color: inherit;
    }
    
    .calendar-table {
        border-color: transparent;
        
        .prev, .next {
            color: currentColor;
            span {
                color: currentColor;
                border-color: currentColor;
            }
            &:hover {
                background-color: rgba(161, 161, 161, 0.178);
            }
        }
    }
    
    td.off, td.available {
        &:hover {
            background-color: rgba(161, 161, 161, 0.178) !important;
        }
    }
    
    td.off {
        background-color: rgba(128, 128, 128, 0.178);
        
        &.in-range {
            background-color: inherit;
        }
    }
    
    td.active, td.active:hover, td.end-date.active {
        background-color: #6264a6;
        color: white;
    }
    
    .drp-buttons {
        border-top: 1px solid rgba(155, 155, 155, 0.48);
    }
    
    td.in-range {
        background-color: rgba(187, 184, 197, 0.21);
        color: inherit;
    }
}

.date-edit-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    .date-picker-wrapper {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: .3rem
    }

    .date-picker-icon {
        cursor: pointer;
    }
}

.popover-admins {
    display: flex;
    gap: .3rem;
    align-items: center;

    .popover-avatar {
        width: 1.5rem;
        aspect-ratio: 1/1;
        border-radius: 100%;
    }

    &+ .popover-admins {
        margin-top: .5rem;
    }
}

.get-deluxe-cta{
    background-color: var(--bg-base);
    position: relative;

    img#taco-treasure {
        width: 135px;
        bottom: calc(100% - 1rem);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }


    &.get-deluxe-cta-inline {
        padding: var(--padding-xl) var(--padding-lg) var(--padding-lg);
        border-radius: var(--border-radius-md);
        img#taco-treasure {
            bottom: calc(100% - 3rem);
        }
    }

    &.get-deluxe-cta-modal {
        padding: var(--padding-sm) var(--padding-lg) var(--padding-lg);
    }

    .success-screen, .failure-screen {
        text-align: center;
        flex-direction: column;
        align-items: center;
        max-width: 28rem;
        gap: var(--padding-md);
    }

    h2{
        font-size: xx-large;
        max-width: 80%;
        line-height: 110%;
    }

    .get-deluxe-screen {
        display: flex;
        text-align: center;
        align-items: center;
        max-width: 28rem;
        flex-direction: column;
        gap: var(--padding-md);

        .includes {
            padding: 1.25rem;
            outline: 3px solid var(--fg-brand);
            background-color: var(--bg-brand);
            border: 1px solid transparent;
            border-radius: var(--border-radius-md);
        }
    }
}

.emoji-bullets {
    list-style: none;
    padding-left: 0;
    margin: .5rem 0 0;
    text-align: start;
    li {
        position: relative;
        padding-left: 1.5rem;
        line-height: 130%;
        &::before {
            content: '✓';
            position: absolute;
            left: 0;
            top: 2px;
            line-height: 1;
        }
    }
}

/* Utility Functions */
.text-tertiary {
    color: var(--text-tertiary);
}

/* !important added to override bootstrap class */
.text-success {
    color: var(--text-success) !important;
}

.max-w-md {
    max-width: 40rem;
}

.max-w-sm {
    max-width: 30rem;
}

.min-w-5 { min-width: 5rem; }

.bg-sunken {
    background-color: var(--bg-sunken);
}

/* Text color utility — match Bootstrap's .text-primary slot but force our
   own primary token. This is because bs uses important on their text-prim utility*/
.text-primary {
    color: var(--text) !important;
}
.text-secondary {
    color: var(--text-secondary) !important;
}

/* Font size utility. */
.font-size-sm {
    font-size: var(--font-size-sm) !important;
}

/* Truncate a text block with an ellipsis when it overflows its container. */
.text-overflow-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

/* Font weight utility — "medium" (500). */
.fw-medium {
    font-weight: 500;
}

/* Gap utilities — Bootstrap 4.1 doesn't ship gap utilities, so we provide
   our own keyed to the spacing scale. Pair with Bootstrap's flex utilities
   (e.g. `d-flex flex-column gap-sm`). */
.gap-2xs { gap: var(--padding-2xs); }
.gap-xs  { gap: var(--padding-xs); }
.gap-sm  { gap: var(--padding-sm); }
.gap-md  { gap: var(--padding-md); }
.gap-lg  { gap: var(--padding-lg); }

/* Soft flex utilities — same intent as Bootstrap's d-flex/flex-column/etc.
   but without !important, so container queries or other contextual rules
   can override `display` / `flex-direction` cleanly. Use these (instead of
   d-flex / flex-column) on elements you may want to override display
   inside a media or container query. */
.flex        { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col    { flex-direction: column; }
.flex-row    { flex-direction: row; }

/* Theme Overrides */
body.theme-default {
    color-scheme: light;
}

body.theme-dark {
    color-scheme: dark;

    .tab-footer a.footer-logo {
        background: transparent url(/images/logo-white.png) no-repeat center / contain;
    }
    h2 {
        color: #fff;
    }
    .btn-secondary {
        background-color: #303030 !important;
        color: #fff !important;
        border: 1px solid #4b4a49 !important;
    }
    .btn-outline-dark {
        color: white;
        border-color: currentColor;
        &.disabled, &:disabled {
            color: currentColor;
        }

        &:hover, &:active, &:focus, &.active{
            &:not(:disabled):not(.disabled){
                background-color: white;
                color: #303030;
            }
            
        }
    }
    .btn-dark {
        color: white;
        background-color: #201f1f;
        border: 1px solid #201f1f;
        &.disabled, &:disabled {
            color: currentColor;
        }

        &:hover, &:active, &:focus, &.active{
            &:not(:disabled):not(.disabled){
                background-color: white;
                color: #201f1f;
            }
            
        }
    }
    .table {
        background: none;
    }
    .menu-item.current {
        background: #464775;
        color: #fff;
    }

    .subscription {
        background: rgba(32, 31, 31, 0.85);
    }

    .no-results img {
        opacity: 0;
        width: 120px;
    }

    .level-ribbon::before, .level-ribbon::after,.level-ribbon  {
        box-shadow: none;
    }

    #mobile-menu {
        background: #201f1f;
    }

    #hamburger-btn span {
        background-color: #fdfdfd;
    }

    .user-panel .dropdown-toggle {
        background-color: #282828;
    }

    .user-panel h2 {
        color: #fff;
    }
    .no-results h2 {
        color: #ccc;
    }


    .close-btn-large:before, .close-btn-large:after {
        background-color: #fff;
    }

    .trial-notification-box {
        border: none;
        background: #343434;
    }

    .activity .date-group-time {
        color: #c8c6c4;
        background: #262626;
    }
    .admin .stats-box {
        color: #fff;
        background: #262626;
        border: none;
    }
    .admin h2 {
        color: #fff;
    }

    .profile .user-profile-details, .profile .recent-activity {
        background: #303030;
    }
    .profile .user-total-tacos {
        background: #4f4f4f;
    }
    .profile .user-total-tacos:hover {
        background: #222222;
        opacity: .8;
    }
    .profile .user-total-tacos a {
        color: #ffffff;
    }

    .admin .stats-box {
        color: #fff;
        background: #303030;
    }

    /* Profile */
    #profile {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(31, 31, 31, .9);
        z-index: 999;
        display: none;
    }
    #profile .user-total-tacos, #user-profile .user-total-tacos {
        background: #3a3a3a;
    }
    #profile .recent-activity {
        max-width: 600px;
        margin: 0 auto;
        background: #1f1f1f;
    }
    #profile .username, #user-profile .username {
        margin: 0px 0 0;
        font-size: 22px;
        font-weight: normal;
    }
    .user-total-tacos a {
        color: #fff;
    }

    .nav-tabs {
    border-color:#4f4f4f;

    .nav-link {
        background-color: #262626;
        border-color:#262626;
        border-bottom-color: #4f4f4f;
        color: #fff;
        &.active {
            background-color: #262626;
            border-color:#4f4f4f;
            color: #fff;
            border-bottom-color: #262626;
            outline: 0;
        }
    }
    }

    .card, .list-group-item, .popover {
        background: var(--bg-raised);
    }

    .card-brand{
        background-color: var(--bg-brand-transparent);
    }

    .card-warning{
        background-color: var(--bg-warning);
    }

    .popover {
        .arrow::after {
            border-right-color: #343434;
        }
    }

    .modal {
        background: rgb(22 21 20 / 90%);
        .close {
            color: currentColor;
        }
    }
    .modal-content {
        background-color: #1f1f1f;
    }
    .not-enough-modal, .example-modal {
        border: 1px solid #4f4f4f;
    }

    h1 {
        color: #fff;
    }

    .dropdown-toggle, .dropdown-toggle:hover {
        height: 28px;
        border: none;
        color: #252424;
        padding: 4px 16px 3px 8px;
        font-size: 13.5px;
        min-width: 138px;
        border-radius: 3px;
        background: var(--bg-raised) url("/images/dropdown-arrow-white.png") no-repeat right;
        background-size: 14px;
        background-position: 93% 50%;
    }


    .dropdown-menu {
        background-color: #404040;
        .dropdown-header {
            color: white;
        }
    }
    .dropdown-toggle, .dropdown-toggle:hover {
        border: 1px solid #464646;
        background-color: #2c2c2c;
        color: #fff;
    }
    .dropdown-item {
        color: #ccc;
    }
    .dropdown-item.active, .dropdown-item:active {
        color: #fff;
        background-color: #858ad7;
        font-weight: bold;
    }
    .dropdown-item:focus, .dropdown-item:hover {
        color: #ffffff;
        text-decoration: none;
        background-color: #5c5d5d;
    }


    .team-select .dropdown-toggle, .team-select .dropdown-toggle:hover {
        border: 1px solid #2c2c2c;
    }

    .btn-light:not(:disabled):not(.disabled).active, .btn-light:not(:disabled):not(.disabled):active, .show > .btn-light.dropdown-toggle {
        color: #ffffff;
        background-color: #2c2c2c;
        border-color: #636262;
    }


    .btn-redeem {
            background: #464775;
        color: #fff;
        font-size: 13px;
        padding: 3px 10px;
        font-weight: bold;
    }


    .close-btn-large {
        color: #fff;
        position: fixed;
        z-index: 3;
        opacity: 1;
        font-size: 40px;
        font-weight: normal;
        right: 30px;
    }


    /* Avatars */
    .activity ol.items .small-avatar-receiver {
        width: 42px;
        border-radius: 100px;
    }
    .avatar-small-giver {
        position: absolute;
        left: -9px;
        bottom: -3px;
        width: 21px;
        border: 2.4px solid #1f1f1f;
        border-radius: 100px;
        height: 21px;
        font-size: 11px;
    }

    .activity .time {
        color: #aaa;
    }

    .activity .date-group {
        border-bottom: 1px solid #3b3a39;
    }



    a.problems {
        margin-top: 25px;
        color: #ccc;
        font-size: 13px;
        display: block;
    }
    .logo {
        border-radius: 5px;
        margin:0;
        padding:0;
        width: 70px;
        vertical-align: middle;
    }
    .fa {
        font-size: inherit;
        color: currentColor;
        margin: 0 5px;
        vertical-align: middle;

    }

    .daterangepicker {
        background-color: #1d1d1d;
        border-color: #262626;
    }

}
:root:has(body.theme-contrast) {
    --grey-000: #FFFFFF;
    --grey-050: #ffffff;
    --grey-100: #ffffff;
    --grey-200: #ffffff;
    --grey-300: #ffffff;
    --grey-400: #ffffff;
    --grey-500: #ffffff;
    --grey-600: #ffffff;
    --grey-700: #000000;
    --grey-800: #000000;
    --grey-900: #000000;

    --bg-brand: #000000;
    --bg-brand-transparent: #000000;

    --bd-primary: 1px solid #fff;
    --bd-light: 1px solid rgba(255, 255, 255, 0.5);
}

body.theme-contrast {
    background: #000;
    color: #fff;
    color-scheme: dark;

    .page {
        background: #000;
        color: #fff;
    }

    .panel{
        border: var(--bd-primary)
    }


    .background-light {
        background-color: #000;
        border: 1px solid #fff;
    }

    h1, h2 {
        color: #fcff00;
    }
    .admin h2 {
        color: #fff;
    }

    a, a:hover {
        color: var(--yellow);
    }


    .menu-item.current {
        background: #d6d709;
        color: #000;
    }

    .tab-footer a {
        color: #fcff00;
    }

    #hamburger-btn span {
        background-color: #fcff00;
    }

    .tab-footer a.footer-logo {
        background: transparent url(/images/logo-white.png) no-repeat center / contain;
    }
    .tab-footer {
        background: #000000;
    }

    #mobile-menu {
        background: #000000;
    }

    .btn-primary, .btn-primary:active, .btn-primary:focus,  .btn-primary:disabled{
        background: #000000;
        background-color: #000000 !important;
        color: #fcff00 !important;
        border: none;
        border: 1px solid #fcff00 !important;
    }

    .table {
        background: none;
    }    

    .activity .item .message {
        background-color: #000000;
        border: 1px solid #fff;
    }

    .activity .date-group-time {
        color: #ffffff;
        background: #000;
    }

    .dropdown-toggle, .dropdown-toggle:hover {
        background: #000000;
        color: #fff;
        border: 1px solid #fff;
    }


    .level-ribbon {
        background-color: #fcff00;
        color: #000;
        font-weight: 600;
    }

    .level-ribbon::before, .level-ribbon::after {
        content: '';
        position: absolute;
        top: 0;
        border: 12.5px solid #fcff00;
        z-index: 0;
    }
    .rewards .reward h2 {
        color: #feff05;
    }
    .rewards .description {
        color: #feff05;
    }

    .reward-type-select .option {
        border: 1px solid #feff05;
    }
    .reward-type-select p {
        color: #feff05;
    }
    .reward-type-select .option h2 {
        color: #feff05;
    }

    .card, .list-group-item, .card-header, .card-footer, .popover{
        background: transparent;
        border: 1px solid white;
    }

    .popover {
        .arrow::after {
            border-right-color: #000;
        }
    }


    .btn-outline-dark {
    color: white;
    border-color: currentColor;
    }
    .modal {
        background: rgb(0 0 0 / 90%);
        .close {
            color: currentColor;
        }
    }
    .modal-content {
        background-color: black;
        border: 1px solid white;;
    }

    .daterangepicker {
        background-color: #000000;
        border-color: #ffffff;
    }

}

[x-cloak] {
    display: none !important;
}

/* Drawer — reusable right-side panel. Apply x-drawer="<openExpr>" to the panel
   element; the directive injects the backdrop and wires open/close behavior. */
.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: 30rem;
    max-width: 100vw;
    background: var(--bg-base);
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.08);
    z-index: 1060;
    padding: 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.2s ease-out;
    display: flex;
    flex-direction: column;
    gap: .5rem;

    &.is-open {
        transform: translateX(0);
    }

    .drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .drawer__title {
        margin: 0;
        font-weight: 700;
        color: var(--text);
    }
    .drawer__list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: .5rem;
        li {
            padding: var(--padding-sm);
            border-radius: var(--border-radius-md);
            background: var(--bg-sunken);
        }
    }
}
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1055;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
    &.is-open {
        opacity: 1;
        pointer-events: auto;
    }
}