/* Privatka CRM — the site's own drop-down list instead of the browser's <select> (public/js/v2-select.js, #2748).
   The colours are the v2 tokens of ui-v2.css (light and dark); the list is drawn like the v2 menu (.v2-menu). */
.v2-select-native { display: none; }
.v2-select { position: relative; display: inline-flex; min-width: 0; max-width: 100%; vertical-align: middle; }
.v2-select[hidden] { display: none; }
.v2-select-btn {
    display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; height: 34px; min-width: 0; max-width: 100%; margin: 0; padding: 0 9px 0 12px;
    border: 1px solid var(--v2-line-2, rgba(0, 20, 60, .13)); border-radius: 10px; background: var(--v2-surface, #fff); color: var(--v2-text, #1d1d1f);
    font: 500 13px/1.2 var(--v2-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: border-color .12s, box-shadow .12s;
}
.v2-select-btn:hover { border-color: var(--v2-focus-border, rgba(0, 20, 60, .26)); }
.v2-select.is-open .v2-select-btn, .v2-select-btn:focus-visible { border-color: var(--v2-accent, #007aff); box-shadow: 0 0 0 3px var(--v2-focus, rgba(0, 122, 255, .35)); outline: none; }
.v2-select-btn:disabled { opacity: .5; cursor: default; }
/* the button is as wide as its longest option (as a <select> is): the options lie in it with no height, so choosing
   another one moves nothing around it; in a narrow place the chosen text ends in «…» */
.v2-select-val { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.v2-select-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-select-sizer { display: flex; flex-direction: column; height: 0; overflow: hidden; visibility: hidden; white-space: nowrap; }
.v2-select-chev { flex-shrink: 0; color: var(--v2-text-3, #8e8e93); transition: transform .14s; }
.v2-select.is-open .v2-select-chev { transform: rotate(180deg); }

.v2-select-pop {
    position: fixed; z-index: 10060; box-sizing: border-box; max-width: calc(100vw - 16px); padding: 5px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--v2-surface, #fff); border: 1px solid var(--v2-line, rgba(0, 20, 60, .08)); border-radius: 12px;
    box-shadow: var(--v2-shadow-pop, 0 12px 32px rgba(0, 20, 60, .12), 0 1px 3px rgba(0, 20, 60, .06));
    font: 400 13.5px/1.2 var(--v2-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); color: var(--v2-text, #1d1d1f);
    opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left; transition: opacity .12s, transform .12s;
}
.v2-select-pop[hidden] { display: none; }
.v2-select-pop.is-up { transform: translateY(4px) scale(.98); transform-origin: bottom left; }
.v2-select-pop.is-open { opacity: 1; transform: none; }
body.dark-theme .v2-select-pop { background: #2c2c2e; }
.v2-select-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; cursor: pointer; }
.v2-select-opt-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.v2-select-opt.is-active { background: var(--v2-fill-2, rgba(0, 20, 60, .06)); }
.v2-select-opt.is-selected { font-weight: 600; }
.v2-select-opt[aria-disabled="true"] { opacity: .45; cursor: default; }
.v2-select-check { flex-shrink: 0; color: var(--v2-accent, #007aff); }
@media (pointer: coarse) {
    .v2-select-btn { height: 38px; }
    .v2-select-opt { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) { .v2-select-pop, .v2-select-chev, .v2-select-btn { transition: none; } }
