/* START TOOLTIP STYLES */

/* Applies to all tooltips */
.left-menu [tooltip]::before,
.left-menu [tooltip]::after {
    text-transform: none;
    /* opinion 2 */
    font-size: .9em;
    /* opinion 3 */
    line-height: 1;
    user-select: none;
    pointer-events: none;
    position: absolute;
    display: none;
    opacity: 0;
}

.left-menu [tooltip]::before {
    content: '';
    border: 5px solid transparent;
    /* opinion 4 */
    z-index: 1001;
    /* absurdity 1 */
}

.left-menu [tooltip]::after {
    content: attr(tooltip);
    /* magic! */
    /* most of the rest of this is opinion */
    text-align: center;
    /*
        Let the content set the size of the tooltips 
        but this will also keep them from being obnoxious
    */
    min-width: 3em;
    max-width: 21em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 1ch 1.5ch;
    border-radius: .3ch;
    box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
    background: #333;
    color: #fff;
    z-index: 1000;
    /* absurdity 2 */
}

/* Make the tooltips respond to hover */
.left-menu [tooltip]:hover::before,
.left-menu [tooltip]:hover::after {
    display: block;
}

/* don't show empty tooltips */
.left-menu [tooltip='']::before,
.left-menu [tooltip='']::after {
    display: none !important;
}

/* FLOW: UP */
.left-menu [tooltip]:not([flow])::before,
.left-menu [tooltip][flow^="up"]::before {
    bottom: 100%;
    border-bottom-width: 0;
    border-top-color: #333;
}

.left-menu [tooltip]:not([flow])::after,
.left-menu [tooltip][flow^="up"]::after {
    bottom: calc(100% + 5px);
}

.left-menu [tooltip]:not([flow])::before,
.left-menu [tooltip]:not([flow])::after,
.left-menu [tooltip][flow^="up"]::before,
.left-menu [tooltip][flow^="up"]::after {
    left: 50%;
    transform: translate(-50%, -.5em);
}

/* FLOW: DOWN */
.left-menu [tooltip][flow^="down"]::before {
    top: 100%;
    border-top-width: 0;
    border-bottom-color: #333;
}

.left-menu [tooltip][flow^="down"]::after {
    top: calc(100% + 5px);
}

.left-menu [tooltip][flow^="down"]::before,
.left-menu [tooltip][flow^="down"]::after {
    left: 50%;
    transform: translate(-50%, .5em);
}

/* FLOW: LEFT */
.left-menu [tooltip][flow^="left"]::before {
    top: 50%;
    border-right-width: 0;
    border-left-color: #333;
    left: calc(0em - 5px);
    transform: translate(-.5em, -50%);
}

.left-menu [tooltip][flow^="left"]::after {
    top: 50%;
    right: calc(100% + 5px);
    transform: translate(-.5em, -50%);
}

/* FLOW: RIGHT */
.left-menu [tooltip][flow^="right"]::before {
    top: 50%;
    border-left-width: 0;
    border-right-color: #333;
    right: calc(0em - 5px);
    transform: translate(.5em, -50%);
}

.left-menu [tooltip][flow^="right"]::after {
    top: 50%;
    left: calc(100% + 5px);
    transform: translate(.5em, -50%);
}

/* KEYFRAMES */
@keyframes tooltips-vert {
    to {
        opacity: .9;
        transform: translate(-50%, 0);
    }
}

@keyframes tooltips-horz {
    to {
        opacity: .9;
        transform: translate(0, -50%);
    }
}

/* FX All The Things */
.left-menu[tooltip]:not([flow]):hover::before,
.left-menu[tooltip]:not([flow]):hover::after,
.left-menu [tooltip][flow^="up"]:hover::before,
.left-menu [tooltip][flow^="up"]:hover::after,
.left-menu [tooltip][flow^="down"]:hover::before,
.left-menu [tooltip][flow^="down"]:hover::after {
    animation: tooltips-vert 300ms ease-out forwards;
}

.left-menu [tooltip][flow^="left"]:hover::before,
.left-menu [tooltip][flow^="left"]:hover::after,
.left-menu [tooltip][flow^="right"]:hover::before,
.left-menu [tooltip][flow^="right"]:hover::after {
    animation: tooltips-horz 300ms ease-out forwards;
}

.dp-custom-input {
    /* border-color: rgb(220 38 38) !important; */
}

.dp__menu.dp__menu_index.dp__theme_light {
    border: none;
    border-radius: 5px;
}

.dp__calendar_header_item {
    font-weight: 600;
    font-size: 13px;
}

.dp__cell_inner {
    font-size: 13px;
}

.dp__range_end,
.dp__range_start,
.dp__active_date {
    border-radius: 50%;
    background: #FB821C;
}

.dp__action_buttons span {
    font-size: 15px;
    font-weight: 600;
}

.dp__arrow_bottom,
.dp__arrow_top {
    display: none;
}


/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) var(--primary);
  }
  
  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 15px;
  }
  
  *::-webkit-scrollbar-track {
    background: var(--primary);
    border-radius: 5px;
  }
  
  *::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
    border-radius: 14px;
    border: 3px solid var(--primary);
  }