@import 'components/belt_picker.tailwind.css';
@import 'components/count_in_modal.tailwind.css';
@import 'components/school_search.tailwind.css';
@import 'pages/home.tailwind.css';
@import 'pages/terms_and_conditions.tailwind.css';
@import 'pages/videos.tailwind.css';
@import 'pages/watch.tailwind.css';

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
    .show-skipped-session-link{
         @apply text-sm flex justify-center cursor-pointer relative bg-white px-2 text-slate-700;

        &:hover {
            @apply underline;
        }
    }

    .partition-header {
        @apply relative mb-8;

        display: flex;
        justify-content: center;

        &::before {
            @apply block bg-slate-400 absolute w-full top-1/2;

            height: 1px;
            content: '';
        }
    }
}

body {
    background: #f5f4f4;
}

body.sessions, body.confirmations {
    background: rgb(0,0,0);
    background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,20,1) 62%);
}

.main-content {
    @apply container mx-auto md:mt-10 py-1 px-3 md:p-6;
}

body.promotions {
    .main-content {
        @apply p-0;
    }
}


.results-header {
    @apply grid grid-cols-[auto,1fr] items-center pt-4 md:pt-2 pb-5 sticky md:static top-0 z-10;
    background: #f5f4f4;
}

.pagination {
    @apply flex justify-center my-2 py-2 mb-24;
}

.pagination span {
    @apply
        text-gray-700
        mx-2
        no-underline
        bg-white
        rounded-lg
        text-center
        flex
        items-center
        justify-center;

    min-width: 30px;
}

.pagination a, .pagination span.current {
    @apply px-3 py-2;
}

.pagination a {
    @apply block;
}

.pagination a:hover {
    @apply font-semibold text-white bg-black;
}

.highlighted {
    background: #C1E1C1;
}

.submit {
    @apply bg-black text-white py-3 px-4 rounded-lg cursor-pointer;

    &.--disabled {
        @apply opacity-50 cursor-not-allowed;
    }
}

.text-input {
    @apply text-black rounded-lg mt-2 w-full;
}

.pill-link {
    @apply rounded-3xl px-4 py-2 border-solid border-[1px] border-black text-black;

    &:hover {
      @apply underline;
    }

    &.selected {
        @apply bg-black border-black font-semibold border-2 text-white;

        &:hover P{
            @apply no-underline;
        }
    }
}

.modal-wrapper {
    background: #f5f4f4;
    bottom: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    left: 0;
    position: fixed;
    right: 0;
    z-index: 1;
}

.modal-background {
    @apply z-20;
    
    background-color: rgba(0,0,0,0.5);
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.modal-background.--open {
    display: grid;
}

.modal-close {
    @apply text-3xl;

    justify-self: flex-end;
    margin-top: 8px;
    margin-right: 15px;
}

.modal-content {
    overflow: scroll;
    padding: 10px 15px;
}

.mobile-order-links {
    @apply text-sm;

    li {
        margin: 12px 0;
        text-align: center;
    }

    a {
        display: block;
    }
}

.video-filters {
    @apply w-full;
    z-index: 100;
}

.results {
    @apply grid md:grid-cols-3 gap-2;
}

.filter-count {
    @apply rounded-full bg-white text-black text-center text-[10px];
    padding: 1% 2.5%;
}

.filter-group-header {
    @apply mt-1 font-semibold cursor-pointer p-4 flex gap-2 items-center bg-black text-white rounded-lg;
}

.filter-group-filters {
    @apply p-4;
    background: #f5f4f4;
}

.filter-group-wrapper.--open {
    .filter-group-filters {
        display: block;
    }

    .filter-group-header {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

.filter-group-wrapper {
    .filter-group-filters {
        display: none;
    }
}

body.registrations, body.email_confirmation, body.onboarding {
    background: black;
    color: #fff;

    select {
        color: #000;
    }

    .submit {
        @apply bg-purple-900 font-semibold text-lg;
    }
}

.onboarding-progress {
    @apply grid grid-cols-7 gap-2 mt-4;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;

    .step {
        @apply bg-gray-900 rounded-xl;
        height: 8px;
    }

    .step.--active {
        @apply bg-purple-900;
    }
}

body.onboarding {
    #main_menu {
        @apply hidden;
    }
}

.flash {
    @apply py-2 px-3 bg-green-500 text-black font-medium rounded-lg absolute top-[13px] z-50 text-center;

    min-width: 400px;
}

.switch-field {
    @apply flex my-2 overflow-hidden;
}

.switch-field input {
    @apply absolute;

    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
}

.switch-field label {
    @apply text-black w-full text-center py-4 text-opacity-50;

    background-color: #e4e4e4;
    font-size: 14px;
    line-height: 1;
    margin-right: -1px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease-in-out;
}

.switch-field label:hover {
    cursor: pointer;
}

.switch-field input:checked + label {
    @apply text-white text-opacity-100;

    background-color: #000;
    box-shadow: none;
}

.switch-field label:first-of-type {
    @apply rounded-l-lg;
}

.switch-field label:last-of-type {
    @apply rounded-r-lg;
}
.belt-picker__belt-option {
    @apply
        border
        border-gray-500
        border-solid
        cursor-pointer
        grid
        grid-cols-[1fr,92px,40px]
        items-center
        justify-items-start
        last:mb-0
        mb-2
        relative
        text-white
        text-xs
        uppercase;

    border-radius: 5px;
    height: 50px;
}

.belt-picker__options-container {
    @apply p-2 ml-3 md:ml-4;
}

.belt-picker__options-container {
    .belt-picker__belt-option {
        @apply
            border-gray-400
            opacity-80;
    }
}

.belt-picker__belt-option.--white {
    @apply bg-white text-black;
}

.belt-picker__belt-option.--blue {
    @apply bg-blue-600;
}

.belt-picker__belt-option.--purple {
    @apply bg-purple-900;
}

.belt-picker__belt-option.--brown {
    background: saddlebrown;
}

.belt-picker__belt-option.--black {
    @apply bg-black;

    .belt-picker__belt-bar {
        @apply bg-red-600;
        /*width: 132px;*/
    }
}

.belt-picker__belt-bar {
    @apply right-[40px] bg-black border border-gray-800 border-solid;
    height: 100%;
    width: 92px;
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
}

.belt-picker__stripe {
    background: white;
    font-size: 10px;
    height: 100%;
    margin-right: 4px;
    width: 10px;
}

.belt-picker__radio-button {
    @apply absolute;
    left: -9999px;
}

/* Compact belt variant for profile display */
.belt-picker__belt-option--compact {
    @apply
        h-6
        cursor-default
        grid
        gap-0
        text-xs
        inline-grid;
    
    height: 24px;
    border-radius: 4px;
    width: 120px;
    grid-template-columns: 1fr 1fr 10px;
    transform: scale(0.85);
    transform-origin: left;
}

.belt-picker__belt-main {
    @apply flex items-center justify-center;
    height: 100%;
}

.belt-picker__belt-bar--compact {
    @apply 
        border-l
        border-gray-800
        flex
        items-center
        justify-end;
    
    height: 100%;
    padding: 0 3px;
    gap: 1px;
    width: 100%;
}

.belt-picker__belt-option--compact .belt-picker__stripe {
    width: 5px;
    height: 100%;
    background: white;
    margin-right: 2px;
}

.new_promotion, .edit_promotion {
    @apply grid gap-2 items-center;
    grid-template-columns: 2.5fr 2fr 1fr 0.5fr;

    select {
        @apply rounded;

        font-size: 14px;
    }

    .submit {
        @apply p-1 h-full;

        font-size: 12px;
    }
}
/* app/assets/stylesheets/count_in_modal.css */

.modal-overlay {
    @apply fixed top-0 left-0 w-screen h-screen bg-black flex z-[1000] transition-colors duration-300;
}

.modal-overlay.transparent {
    @apply bg-transparent;
}

.modal-overlay.modal-visible {
    @apply opacity-100 visible;
}

/* OUT - hands ease away after clapping */
.modal-half {
    @apply flex-1 flex items-center justify-center relative z-50;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* IN - hands accelerate toward each other and stop abruptly */
.modal-half.slide-in {
    transform: translateX(0) !important;
    transition: transform 0.2s cubic-bezier(0.55, 0.06, 0.9, 0.3);
}

.modal-half.slide-out-left {
    transform: translateX(-100%) !important;
}

.modal-half.slide-out-right {
    transform: translateX(100%) !important;
}

.modal-left {
    @apply bg-white;
    transform: translateX(-100%);
}

.modal-right {
    @apply bg-white;
    transform: translateX(100%);
}

.modal-content {
    @apply text-center text-white max-w-2xl p-8 transition-opacity duration-300 w-11/12;
}

.modal-content-center {
    @apply fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-40;
}

.modal-content.hidden {
    @apply opacity-0 pointer-events-none;
}

.modal-text h2 {
    @apply text-4xl mb-4 font-bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-text p {
    @apply text-2xl mb-8 opacity-90;
}

.lets-go-btn {
    @apply bg-purple-900 text-white border-0 px-8 py-4 text-xl font-semibold rounded-lg cursor-pointer transition-all duration-300 tracking-wider;
}

.lets-go-btn:hover {
    @apply -translate-y-0.5;
}

.lets-go-btn:active {
    @apply translate-y-0;
}

.countdown-display {
    @apply absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-300;
}

.countdown-display-center {
    @apply fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-40;
}

.countdown-display.hidden {
    @apply opacity-0 pointer-events-none;
}

.countdown-number {
    @apply block text-white font-black scale-50;
    font-size: 20rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.countdown-number.number-animate {
    @apply scale-100;
}

/* Split animations */
.slide-left {
    @apply -translate-x-full;
}

.slide-right {
    @apply translate-x-full;
}

/* Trigger button styling */
.open-modal-btn {
    @apply bg-green-500 text-white border-0 px-8 py-4 text-lg font-semibold rounded-lg cursor-pointer transition-all duration-300;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.open-modal-btn:hover {
    @apply bg-green-600 -translate-y-0.5;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-text h2 {
        @apply text-3xl;
    }

    .modal-text p {
        @apply text-lg;
    }

    .countdown-number {
        font-size: 12rem;
    }

    .lets-go-btn {
        @apply px-6 py-3 text-lg;
    }
}
.school-search__selection {
    @apply px-3 py-2 rounded-md grid items-center;
    grid-template-columns: 1fr auto;
}

.school-search__selection.hidden {
    display: none;
}

.school-search__selection {
    @apply bg-white text-gray-800;
}

.school-suggestion {
    @apply hover:bg-gray-200;
}

.school-results {
    @apply overflow-scroll bg-gray-100 text-gray-800 relative z-50;
}

.school-search {
    @apply transition-all;
}

/* Onboarding uses a dark theme where as the main app uses a light theme.*/
/* These are the custom styles for the school picker in the onboarding flow. */
body.onboarding {
    .school-search {
        @apply bg-black;
    }

    .school-search__feedback {
        @apply text-white;
    }

    .school-results {
        @apply bg-black text-white;
    }

    .school-suggestion {
        @apply hover:bg-gray-900;
    }
}

.school-search--active {
    @apply absolute inset-x-0 top-0 bg-white p-2 h-screen;
    @apply md:static md:p-0;

    .searcher-inner {
        @apply p-2;
    }

    .searcher--close {
        @apply block;
        @apply md:hidden m-0;

        margin: -8px -8px 8px;
    }

    .school-search__feedback {
        @apply text-gray-700;
    }
}

.searcher--close {
    @apply text-[10px] leading-normal text-center hidden uppercase py-1 bg-purple-900 text-white font-semibold tracking-widest mb-2 mt-[-4px] ml-[-4px] mr-[-4px] p-0;
    @apply md:hidden m-0;
}

.school-search__feedback {
    @apply m-2 text-xs text-white;
}

input[type="search"].school-search__input {
    @apply text-black w-full rounded-md p-3 border-solid;
}
.home__hero {
    @apply py-14 md:py-32 px-6;

    background: rgb(0,0,0);
    /*background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,20,1) 62%);*/
    background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,20,1) 62%);
}




.devices-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    left: -6%;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 40px 20px;
}

/* Desktop Frame */
.desktop-frame {
    position: relative;
    width: 900px;
    height: 550px;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px 20px 60px 20px;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.desktop-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    /*padding: 8px;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Browser Window */
.browser-window {
    width: 100%;
    height: 100%;
    background: #f6f6f6;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* Browser Chrome */
.browser-chrome {
    background: #e8e8e8;
    border-bottom: 1px solid #d0d0d0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Window Controls */
.window-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.window-control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.window-control.close {
    background: #ff5f57;
}

.window-control.minimize {
    background: #ffbd2e;
}

.window-control.maximize {
    background: #28ca42;
}

/* Add hover effects for window controls */
.window-control.close:hover::after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6px;
    color: #8b0000;
    font-weight: bold;
}

.window-control.minimize:hover::after {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6px;
    color: #8b6914;
    font-weight: bold;
}

.window-control.maximize:hover::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6px;
    color: #0f5132;
    font-weight: bold;
}

/* Address Bar */
.address-bar {
    flex: 1;
    display: flex;
    align-items: center;
}

.address-input {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 4px 8px;
    width: 100%;
    max-width: 300px;
    font-size: 10px;
    color: #333;
}

.url-text {
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Browser Content */
.browser-content {
    flex: 1;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.desktop-frame::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
}


/* iPhone Frame */
.iphone-frame {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 620px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px 12px;
    box-shadow:
            0 30px 100px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.15),
            inset 0 0 0 2px #333;
    z-index: 10;
}


.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* Dynamic Island */
.iphone-frame::before {
    content: '';
    display: block;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 20;
}

/* Home Indicator */
.iphone-frame::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #555;
    border-radius: 2px;
}

/* Screenshot Images */
.screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top left;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.screenshot.active {
    opacity: 1;
}

/* App Screenshots */
.desktop-screenshot-1 { background-image: url(/images/desktop-screenshot-01.png); }
.desktop-screenshot-2 { background-image: url(/images/desktop-screenshot-02.png); }
.desktop-screenshot-3 { background-image: url(/images/desktop-screenshot-03.png); }
.desktop-screenshot-4 { background-image: url(/images/desktop-screenshot-04.png); }

.mobile-screenshot-1 { background-image: url(/images/mobile-screenshot-01.png); }
.mobile-screenshot-2 { background-image: url(/images/mobile-screenshot-02.png); }
.mobile-screenshot-3 { background-image: url(/images/mobile-screenshot-03.png); }
.mobile-screenshot-4 { background-image: url(/images/mobile-screenshot-04.png); }

/* Content overlays for demo */
.screenshot-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 20px;
}

.screenshot-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.screenshot-content p {
    opacity: 0.8;
    line-height: 1.4;
}

/* Navigation Dots */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 60px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .desktop-frame {
        width: 750px;
        height: 470px;
    }
    
    .address-input {
        max-width: 250px;
    }

    .window-control {
        width: 9px;
        height: 9px;
    }

    .iphone-frame {
        width: 260px;
        height: 540px;
        right: -40px;
    }
}

@media (max-width: 1024px) {
    .desktop-frame {
        width: 650px;
        height: 400px;
    }
    
    .address-input {
        max-width: 200px;
        font-size: 9px;
    }

    .window-control {
        width: 8px;
        height: 8px;
    }

    .browser-chrome {
        padding: 6px 10px;
        gap: 10px;
    }

    .iphone-frame {
        width: 240px;
        height: 500px;
        right: -30px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .devices-container {
        left: auto;
        margin: 0 auto;
        padding: 20px;
    }

    .desktop-frame {
        display: none;
    }

    .iphone-frame {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 320px;
        height: 650px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .iphone-frame {
        width: 280px;
        height: 580px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.devices-container {
    animation-delay: 0.3s;
}

.carousel-nav {
    animation-delay: 0.6s;
}
.pages.terms_and_conditions #terms {
    @apply mx-auto mb-20;

    max-width: 1000px;

    h1 {
        @apply text-2xl font-bold my-4;
    }

    h2 {
        @apply text-lg font-bold my-4;
    }

    p {
        @apply my-2 leading-relaxed;
    }

    ul {
        @apply list-disc pl-6;
    }
}
.search-result {
    @apply grid bg-white p-3 rounded-xl content-start;
}

.search-result__info {
    @apply pt-2 relative;
}

.search-result__video-title {
    @apply text-base md:text-lg font-medium md:pr-5;
}

.search-result__thumbnail {
    aspect-ratio: 16 / 9; /* Set your desired aspect ratio (e.g., 16:9) */
    overflow: hidden; /* Ensures the image doesn't overflow the container */
    position: relative;
    width: 100%; /* Adjusts to the width of the parent container */
    border-radius: 10px;
}

.search-result__thumbnail-image {
    height: 100%;
    left: 50%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
    object-position: center; /* Centers the image in the container */
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%); /* Centers the image absolutely */
    width: 100%;
}

.search-result__bookmark {
    @apply justify-self-end;
}

.search-result__bookmark-button {
    @apply rounded-full p-2 cursor-pointer;
    border: solid 1px transparent;
}

.search-result__bookmark-button:hover {
    border: solid 1px rgba(0,0,0,0.1);
}
.video-details {
    @apply md:px-0 px-4 pt-4 pb-2 text-sm md:text-base;
}

.video-metadata {
    @apply grid grid-cols-[1fr,auto,auto] gap-6 text-sm md:text-base font-extralight md:font-light items-center;
}

.video-metadata--channel {
    @apply text-base md:text-lg;
}


body.watch.anonymous {
    background-color: rgb(25, 25, 25);

    .video-details {
        color: rgb(207, 207, 207);
    }
}

.basic-link {
    @apply underline text-blue-600;
}

/* Modal animation states */
.modal-overlay.--open {
    @apply flex opacity-100;
}

.modal-overlay.--open .modal-content {
    @apply scale-100;
}
/**
 * tom-select.css (v2.0.0)
 * Copyright (c) contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
 * file except in compliance with the License. You may obtain a copy of the License at:
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
 * ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 *
 */
.ts-wrapper.plugin-drag_drop.multi > .ts-control > div.ui-sortable-placeholder {
  visibility: visible !important;
  background: #f2f2f2 !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border: 0 none !important;
  box-shadow: inset 0 0 12px 4px #fff;
}
.ts-wrapper.plugin-drag_drop .ui-sortable-placeholder::after {
  content: "!";
  visibility: hidden;
}
.ts-wrapper.plugin-drag_drop .ui-sortable-helper {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.plugin-checkbox_options .option input {
  margin-right: 0.5rem;
}

.plugin-clear_button .ts-control {
  padding-right: calc(1em + (3 * 6px)) !important;
}
.plugin-clear_button .clear-button {
  opacity: 0;
  position: absolute;
  top: 8px;
  right: calc(8px - 6px);
  margin-right: 0 !important;
  background: transparent !important;
  transition: opacity 0.5s;
  cursor: pointer;
}
.plugin-clear_button.single .clear-button {
  right: calc(8px - 6px + 2rem);
}
.plugin-clear_button.focus.has-items .clear-button, .plugin-clear_button:hover.has-items .clear-button {
  opacity: 1;
}

.ts-wrapper .dropdown-header {
  position: relative;
  padding: 10px 8px;
  border-bottom: 1px solid #d0d0d0;
  background: #f8f8f8;
  border-radius: 3px 3px 0 0;
}
.ts-wrapper .dropdown-header-close {
  position: absolute;
  right: 8px;
  top: 50%;
  color: #303030;
  opacity: 0.4;
  margin-top: -12px;
  line-height: 20px;
  font-size: 20px !important;
}
.ts-wrapper .dropdown-header-close:hover {
  color: black;
}

.plugin-dropdown_input.focus.dropdown-active .ts-control {
  box-shadow: none;
  border: 1px solid #d0d0d0;
}
.plugin-dropdown_input .dropdown-input {
  border: 1px solid #d0d0d0;
  border-width: 0 0 1px 0;
  display: block;
  padding: 8px 8px;
  box-shadow: none;
  width: 100%;
  background: transparent;
}
.ts-wrapper.plugin-input_autogrow.has-items .ts-control > input {
  min-width: 0;
}
.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input {
  flex: none;
  min-width: 4px;
}
.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::-webkit-input-placeholder {
  color: transparent;
}
.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::-ms-input-placeholder {
  color: transparent;
}
.ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::placeholder {
  color: transparent;
}

.ts-dropdown.plugin-optgroup_columns .ts-dropdown-content {
  display: flex;
}
.ts-dropdown.plugin-optgroup_columns .optgroup {
  border-right: 1px solid #f2f2f2;
  border-top: 0 none;
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
}
.ts-dropdown.plugin-optgroup_columns .optgroup:last-child {
  border-right: 0 none;
}
.ts-dropdown.plugin-optgroup_columns .optgroup:before {
  display: none;
}
.ts-dropdown.plugin-optgroup_columns .optgroup-header {
  border-top: 0 none;
}

.ts-wrapper.plugin-remove_button .item {
  display: inline-flex;
  align-items: center;
  padding-right: 0 !important;
}
.ts-wrapper.plugin-remove_button .item .remove {
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
  display: inline-block;
  padding: 0 6px;
  border-left: 1px solid #d0d0d0;
  border-radius: 0 2px 2px 0;
  box-sizing: border-box;
  margin-left: 6px;
}
.ts-wrapper.plugin-remove_button .item .remove:hover {
  background: rgba(0, 0, 0, 0.05);
}
.ts-wrapper.plugin-remove_button .item.active .remove {
  border-left-color: #cacaca;
}
.ts-wrapper.plugin-remove_button.disabled .item .remove:hover {
  background: none;
}
.ts-wrapper.plugin-remove_button.disabled .item .remove {
  border-left-color: white;
}
.ts-wrapper.plugin-remove_button .remove-single {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 23px;
}

.ts-wrapper {
  position: relative;
}

.ts-dropdown,
.ts-control,
.ts-control input {
  color: #303030;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
  font-smoothing: inherit;
}

.ts-control,
.ts-wrapper.single.input-active .ts-control {
  background: #fff;
  cursor: text;
}

.ts-control {
  border: 1px solid #d0d0d0;
  padding: 8px 8px;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  box-shadow: none;
  border-radius: 3px;
  display: flex;
  flex-wrap: wrap;
}
.ts-wrapper.multi.has-items .ts-control {
  padding: calc( 8px - 2px - 0) 8px calc( 8px - 2px - 3px - 0);
}
.full .ts-control {
  background-color: #fff;
}
.disabled .ts-control, .disabled .ts-control * {
  cursor: default !important;
}
.focus .ts-control {
  box-shadow: none;
}
.ts-control > * {
  vertical-align: baseline;
  display: inline-block;
}
.ts-wrapper.multi .ts-control > div {
  cursor: pointer;
  margin: 0 3px 3px 0;
  padding: 2px 6px;
  background: #f2f2f2;
  color: #303030;
  border: 0 solid #d0d0d0;
}
.ts-wrapper.multi .ts-control > div.active {
  background: #e8e8e8;
  color: #303030;
  border: 0 solid #cacaca;
}
.ts-wrapper.multi.disabled .ts-control > div, .ts-wrapper.multi.disabled .ts-control > div.active {
  color: #7d7d7d;
  background: white;
  border: 0 solid white;
}
.ts-control > input {
  flex: 1 1 auto;
  min-width: 7rem;
  display: inline-block !important;
  padding: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-indent: 0 !important;
  border: 0 none !important;
  background: none !important;
  line-height: inherit !important;
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
  box-shadow: none !important;
}
.ts-control > input::-ms-clear {
  display: none;
}
.ts-control > input:focus {
  outline: none !important;
}
.has-items .ts-control > input {
  margin: 0 4px !important;
}
.ts-control.rtl {
  text-align: right;
}
.ts-control.rtl.single .ts-control:after {
  left: 15px;
  right: auto;
}
.ts-control.rtl .ts-control > input {
  margin: 0 4px 0 -2px !important;
}
.disabled .ts-control {
  opacity: 0.5;
  background-color: #fafafa;
}
.input-hidden .ts-control > input {
  opacity: 0;
  position: absolute;
  left: -10000px;
}

.ts-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 10;
  border: 1px solid #d0d0d0;
  background: #fff;
  margin: 0.25rem 0 0 0;
  border-top: 0 none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 3px 3px;
}
.ts-dropdown [data-selectable] {
  cursor: pointer;
  overflow: hidden;
}
.ts-dropdown [data-selectable] .highlight {
  background: rgba(125, 168, 208, 0.2);
  border-radius: 1px;
}
.ts-dropdown .option,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results,
.ts-dropdown .create {
  padding: 5px 8px;
}
.ts-dropdown .option, .ts-dropdown [data-disabled], .ts-dropdown [data-disabled] [data-selectable].option {
  cursor: inherit;
  opacity: 0.5;
}
.ts-dropdown [data-selectable].option {
  opacity: 1;
  cursor: pointer;
}
.ts-dropdown .optgroup:first-child .optgroup-header {
  border-top: 0 none;
}
.ts-dropdown .optgroup-header {
  color: #303030;
  background: #fff;
  cursor: default;
}
.ts-dropdown .create:hover,
.ts-dropdown .option:hover,
.ts-dropdown .active {
  background-color: #f5fafd;
  color: #495c68;
}
.ts-dropdown .create:hover.create,
.ts-dropdown .option:hover.create,
.ts-dropdown .active.create {
  color: #495c68;
}
.ts-dropdown .create {
  color: rgba(48, 48, 48, 0.5);
}
.ts-dropdown .spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 5px 8px;
}
.ts-dropdown .spinner:after {
  content: " ";
  display: block;
  width: 24px;
  height: 24px;
  margin: 3px;
  border-radius: 50%;
  border: 5px solid #d0d0d0;
  border-color: #d0d0d0 transparent #d0d0d0 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ts-dropdown-content {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 200px;
  overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.ts-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
