Files
dashboards/apps/business/src/components/CategoryTreeSelect.module.css
T
Alireza HassaniandCursor e9400c2281 Add business dashboard dark mode from Super Admin theme setting.
Login and in-app surfaces follow tenant themeMode, matching customer dark tokens, with themed switches and tighter card/table chrome.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 13:40:40 +03:30

206 lines
3.5 KiB
CSS

.wrapper {
position: relative;
display: flex;
flex-direction: column;
min-height: 0;
}
.inputWrap {
display: flex;
align-items: center;
gap: 6px;
min-height: var(--field-height);
padding: 0 var(--field-padding-x);
background: var(--surface);
border: 1px solid rgba(148, 163, 184, 0.35);
border-radius: var(--radius-sm);
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
}
.inputWrapOpen,
.inputWrap:focus-within {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
}
.searchIcon {
flex-shrink: 0;
color: var(--text-muted);
}
.input {
flex: 1;
min-width: 0;
padding: var(--field-padding-y) 0;
font-size: var(--field-font-size);
font-family: var(--font-ui);
line-height: 1.4;
color: var(--text-primary);
background: transparent;
border: none;
outline: none;
}
.input::placeholder {
font-family: var(--font-ui);
color: var(--text-muted);
opacity: 1;
}
.clearBtn {
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 50%;
color: var(--text-muted);
transition: background 0.2s, color 0.2s;
}
.clearBtn:hover {
background: rgba(148, 163, 184, 0.2);
color: var(--text-secondary);
}
.fieldChevron {
flex-shrink: 0;
color: var(--text-muted);
transition: transform 0.2s ease;
}
.fieldChevronOpen {
transform: rotate(180deg);
}
.panel {
position: absolute;
top: calc(100% + 6px);
left: 0;
right: 0;
z-index: 120;
max-height: min(320px, 50vh);
overflow-y: auto;
margin-top: 0;
padding: 4px;
background: var(--elevated-surface);
border: 1px solid var(--glass-border);
border-radius: var(--radius-sm);
box-shadow: 0 10px 28px rgba(31, 38, 135, 0.14);
}
.panelInFlow {
position: static;
margin-top: 6px;
max-height: min(42vh, 320px);
z-index: auto;
}
.row {
display: flex;
align-items: center;
gap: 4px;
width: 100%;
padding: 6px 8px;
border-radius: 8px;
text-align: start;
color: var(--text-primary);
transition: background 0.15s;
}
.row:hover {
background: rgba(var(--primary-rgb) / 0.08);
}
.rowSelected {
background: rgba(var(--primary-rgb) / 0.12);
color: var(--primary);
}
.rowSelected:hover {
background: rgba(var(--primary-rgb) / 0.16);
}
.toggleBtn {
flex-shrink: 0;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
color: var(--text-muted);
background: transparent;
cursor: pointer;
outline: none;
transition: background 0.15s, color 0.15s, transform 0.2s;
}
.toggleBtn:hover {
background: rgba(var(--primary-rgb) / 0.1);
color: var(--primary);
}
.toggleSpacer {
flex-shrink: 0;
width: 24px;
height: 24px;
}
.chevron {
display: inline-flex;
transition: transform 0.2s ease;
}
:global([dir='rtl']) .chevron {
transform: scaleX(-1);
}
.chevronOpen {
transform: rotate(90deg);
}
:global([dir='rtl']) .chevronOpen {
transform: scaleX(-1) rotate(90deg);
}
.selectBtn {
flex: 1;
min-width: 0;
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 6px;
padding: 2px 0;
text-align: start;
color: inherit;
font-size: var(--field-font-size);
font-family: var(--font-ui);
background: transparent;
cursor: pointer;
outline: none;
}
.name {
font-weight: 500;
}
.nameSecondary {
font-size: 12px;
font-weight: 400;
color: var(--text-muted);
}
.rowSelected .nameSecondary {
color: inherit;
opacity: 0.75;
}
.noResults {
padding: 16px 12px;
font-size: 13px;
color: var(--text-muted);
text-align: center;
}