Spaces:
Runtime error
Runtime error
| .custom-select { | |
| position: relative; | |
| display: flex; | |
| min-width: 0; | |
| } | |
| .custom-select-trigger { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 0.5rem; | |
| width: 100%; | |
| padding: 0.75rem 0; | |
| border: none; | |
| background: transparent; | |
| color: var(--text-primary); | |
| font-size: 0.9375rem; | |
| font-family: inherit; | |
| cursor: pointer; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| } | |
| .custom-select-trigger:hover { | |
| color: var(--text-primary); | |
| } | |
| .custom-select-trigger:focus-visible { | |
| outline: 2px solid var(--primary); | |
| outline-offset: 2px; | |
| } | |
| .custom-select-label { | |
| flex: 1; | |
| min-width: 0; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| text-align: left; | |
| } | |
| .custom-select-chevron { | |
| flex-shrink: 0; | |
| color: var(--text-muted); | |
| transition: transform 0.2s ease; | |
| } | |
| .custom-select-chevron.open { | |
| transform: rotate(180deg); | |
| } | |
| .custom-select-dropdown { | |
| position: absolute; | |
| top: calc(100% + 4px); | |
| left: 0; | |
| right: 0; | |
| min-width: 160px; | |
| max-height: min(250px, 40vh); | |
| overflow-y: auto; | |
| background: var(--bg-white); | |
| border: 1px solid var(--border); | |
| border-radius: var(--radius); | |
| box-shadow: var(--shadow-lg); | |
| z-index: 200; | |
| padding: 0.3rem; | |
| animation: customSelectFadeIn 0.15s ease; | |
| } | |
| @keyframes customSelectFadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(-4px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .custom-select-option { | |
| display: flex; | |
| align-items: center; | |
| width: 100%; | |
| min-height: 34px; | |
| padding: 0.45rem 0.6rem; | |
| color: var(--text-secondary); | |
| background: transparent; | |
| border: 0; | |
| border-radius: calc(var(--radius) - 2px); | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| font-family: inherit; | |
| text-align: left; | |
| cursor: pointer; | |
| transition: all 0.15s; | |
| } | |
| .custom-select-option:hover, | |
| .custom-select-option.focused { | |
| background: var(--bg-light); | |
| color: var(--text-primary); | |
| } | |
| .custom-select-option.selected { | |
| background: var(--primary-soft); | |
| color: var(--primary); | |
| font-weight: 600; | |
| } | |
| /* RTL support */ | |
| [dir='rtl'] .custom-select-label { | |
| text-align: right; | |
| } | |
| [dir='rtl'] .custom-select-option { | |
| text-align: right; | |
| } | |
| /* Mobile responsive */ | |
| @media (max-width: 768px) { | |
| .custom-select-trigger { | |
| padding: 0.625rem 0; | |
| font-size: 0.875rem; | |
| } | |
| .custom-select-dropdown { | |
| max-height: min(220px, 40vh); | |
| } | |
| } | |