﻿.big-card.card, .small-card.card {
    box-shadow: 1px 2px 6px 0px rgba(32, 32, 32, .25);
}

.big-card > .card-header {
    background-color: #fff;
    padding: 15px 30px;
    min-height: 65px;
    display: flex;
    align-items: center;
}

.big-card > .card-body {
    padding:30px;
}


.small-card > .card-header {
    background-color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
}

.small-card > .card-body {
    padding: 20px;
}

#client-request-page .token-info {
    background-color: #EDF2F7;
    border-radius: 6px;
    padding:20px;
    display:flex;
    flex-direction:column;
}

.small-card > .card-footer {
    background:#fff;
    padding:20px;
}



/* --- Plain CSS for the Custom Select Component --- */

/* The main container for the dropdown portal */
.x-select-dropdown-portal {
    position: fixed;
    background-color: white;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
    z-index:10000;
    transform-origin: top;
    width: var(--trigger-width); /* Base width, can be overridden by inline min/max-width */
    /*overflow: hidden;*/ /* Prevent content from spilling outside the rounded corners */
}

/* The trigger button inside the x-select directive */
.x-select-trigger-button {
    width: 100%;
    height: 2.5rem; /* h-10 */
    background-color: white;
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

    .x-select-trigger-button .truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .x-select-trigger-button .x-select-badges-wrapper{
        display:flex;
        flex-wrap:wrap;
        gap:10px;
    }

    .x-select-trigger-button svg {
        max-height:15px;
        max-width:15px;
        min-height:15px;
        min-width:15px;
        color: #6b7280; 
        transition: transform 0.2s;
    }

        .x-select-trigger-button svg.is-open {
            transform: rotate(180deg);
        }

/* A wrapper for the left side (search + options) */
.x-select-item-pane {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0; /* Prevents flexbox overflow issues */
}

/* The search input area */
.x-select-search-container {
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
    flex-shrink: 0; /* Prevent the search bar from shrinking */
}

.x-select-search-input {
    width: 100%;
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
    padding: 0.5rem 0.75rem;
}

/* The container for the list of options is now a flex item */
.x-select-options-container {
    max-height: 15rem; /* max-h-60 */
    overflow-y: auto;
    flex-grow: 1; /* Allows this container to take up remaining space and scroll */
}

/* A single option in the dropdown */
.x-select-option {
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6; /* light separator */
}

    .x-select-option:last-child {
        border-bottom: none;
    }

    .x-select-option:hover {
        background-color: #dbeafe; /* hover:bg-blue-100 */
    }

    .x-select-option.is-selected {
        background-color: #eff6ff; /* bg-blue-50 */
        color: #1e40af; /* text-blue-800 */
        font-weight: 600; /* font-semibold */
    }

        .x-select-option.is-selected svg {
            height: 1.25rem;
            width: 1.25rem;
            color: #2563eb; /* text-blue-600 */
        }

/* Container for the main text and badges */
.x-select-option-main {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Container for the badges */
.x-select-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Styling for a single badge */
.x-select-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    background-color: #e0e7ff; /* Indigo-100 */
    color: #3730a3; /* Indigo-800 */
    border-radius: 9999px; /* rounded-full */
}

    .x-select-badge.clickable:hover {
        cursor: pointer;
        border: 1px dotted #d1d5db;
    }

/* The info panel that appears on the right */
.x-select-info-panel {
    position: absolute;
    border: 1px solid #d1d5db;
    top: var(--trigger-option-top, 0);
    left: 100%;
    transform: translateY(0);
    min-width: 150px;
    padding: 10px;
    background-color: #fff;
    border-bottom-right-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    border-left: 1px solid #e5e7eb; /* gray-200 */
}

.x-select-footer {
    border-top: 1px solid #e5e7eb;
    width:100%;
    padding: 0.75rem;
}

.x-select-info-placeholder,
.x-select-info-item {
    font-size: 0.875rem;
}

.x-select-info-placeholder {
    color: #6b7280; /* gray-500 */
}

.x-select-info-item {
    display: flex;
    justify-content: space-between;
    gap:10px;
    margin-bottom: 0.5rem;
}

.x-select-info-key {
    font-weight: 600;
    color: #374151; /* gray-700 */
}

.x-select-info-value {
    color: #1f2937; /* gray-800 */
    text-align: right;
}

/* Message for "No results found" */
.x-select-no-results {
    padding: 0.5rem 0.75rem;
    text-align: center;
    color: #9ca3af; /* text-gray-400 */
}

.x-select-option:focus {
    outline: 2px solid #3b82f6; /* Example: a blue ring */
    outline-offset: -2px;
    background-color: #eff6ff; /* Example: a light blue background */
}
.x-select-option.is-ready-to-close {
    /* Example: Add a subtle border or slightly change the background */
    box-shadow: inset 0 0 0 2px #ef4444; /* A subtle red inner border */
    background-color: #fef2f2; /* A very light red background */
}


.x-select-option.is-hovered {
    background-color: #dbeafe;
}

.x-select-popover h3 {
    text-transform: initial !important;
}

.tabulator-cell [x-select] {
    /*    position:absolute;
    top:0;
    left:0;*/
    height: 100%;
    /*width:100%;*/
}
.tabulator-cell:has([x-select]){
    padding:0px;
}


.tabulator-cell .x-select-trigger{
    height:100%;
}
.tabulator-cell .x-select-trigger-button {
    border-radius: 0px;
    height: 100%;
    background-color: initial;
}
