/* The shared searchable picker's list (static/js/pickers.js): a dark box under (or above) the field with a search
   box and a list that scrolls inside itself. Its height is set by the script: never more than min(50% of the visible
   screen, 320px), never past the screen's edges. Loaded once for every page by base.html. */
.gt-picker-pop {
    position: fixed;
    z-index: 2147483000;        /* above everything in its dialog: some pages put SweetAlert2's popup at 999999 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: #1f2023;
    color: #e8eaed;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.3;
    text-align: left;
}
/* opening upward: the search box stays next to the field (the list above it); the order for screen readers stays */
.gt-picker-pop.gt-picker-up {
    flex-direction: column-reverse;
}
.gt-picker-pop .gt-picker-search {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    margin: 0 0 6px;
    padding: 8px 10px;
    background: #121316;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;            /* 16px: iOS does not zoom the page when the box gets the focus */
    line-height: 1.25;
    outline: none;
    box-shadow: none;
}
.gt-picker-pop.gt-picker-up .gt-picker-search {
    margin: 6px 0 0;
}
.gt-picker-pop .gt-picker-search:focus {
    border-color: #4da3ff;
    box-shadow: 0 0 0 2px rgba(77, 163, 255, 0.35);
}
.gt-picker-pop .gt-picker-search::placeholder {
    color: #8b93a1;
}
.gt-picker-pop .gt-picker-list {
    position: relative;
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.gt-picker-pop .gt-picker-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 7px 10px 4px;
    background: #1f2023;
    color: #9aa4b2;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.gt-picker-pop .gt-picker-opt {
    padding: 9px 10px;
    border-radius: 5px;
    cursor: pointer;
    overflow-wrap: anywhere;
    -webkit-tap-highlight-color: transparent;
}
.gt-picker-pop .gt-picker-head + .gt-picker-opt,
.gt-picker-pop [role="group"] .gt-picker-opt {
    padding-left: 18px;
}
.gt-picker-pop .gt-picker-opt[aria-selected="true"] {
    font-weight: 700;
    color: #fff;
    box-shadow: inset 3px 0 0 #4da3ff;
}
.gt-picker-pop .gt-picker-ph {
    color: #9aa4b2;
    font-style: italic;
}
.gt-picker-pop .gt-picker-opt[aria-disabled="true"] {
    opacity: 0.45;
    cursor: default;
}
@media (hover: hover) {
    .gt-picker-pop .gt-picker-opt:hover:not([aria-disabled="true"]) {
        background: rgba(255, 255, 255, 0.08);
    }
}
.gt-picker-pop .gt-picker-opt.gt-picker-active {
    background: #0d6efd;
    color: #fff;
}
.gt-picker-pop .gt-picker-empty {
    padding: 10px;
    color: #9aa4b2;
}
.gt-picker-pop .gt-picker-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
