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>
538 lines
9.9 KiB
CSS
538 lines
9.9 KiB
CSS
.overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: var(--modal-overlay-bg);
|
|
backdrop-filter: blur(var(--modal-overlay-blur, 16px));
|
|
-webkit-backdrop-filter: blur(var(--modal-overlay-blur, 16px));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 20px;
|
|
}
|
|
|
|
.overlayIn {
|
|
animation: overlayFadeIn 0.2s ease forwards;
|
|
}
|
|
|
|
.overlayOut {
|
|
animation: overlayFadeOut 0.18s ease forwards;
|
|
}
|
|
|
|
.overlayNested {
|
|
z-index: 1010;
|
|
}
|
|
|
|
.modal {
|
|
width: 100%;
|
|
max-width: 480px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
background: var(--elevated-surface);
|
|
backdrop-filter: blur(24px);
|
|
-webkit-backdrop-filter: blur(24px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 20px 60px rgba(31, 38, 135, 0.15);
|
|
}
|
|
|
|
.modalListWide {
|
|
max-width: 720px;
|
|
}
|
|
|
|
.modalFormWide {
|
|
max-width: 560px;
|
|
}
|
|
|
|
.modalIn { animation: modalFadeIn 0.25s ease forwards; }
|
|
.modalOut { animation: modalFadeOut 0.22s ease forwards; }
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 24px 24px 0;
|
|
}
|
|
|
|
.title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
margin-top: 4px;
|
|
text-align: start;
|
|
}
|
|
|
|
.modalHint {
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
color: var(--text-muted);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.headerWithHint {
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.15);
|
|
}
|
|
|
|
.bodyCompactTop {
|
|
padding-top: 16px;
|
|
}
|
|
|
|
.closeBtn {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
border-radius: 50%;
|
|
color: var(--text-secondary);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.closeBtn:hover {
|
|
background: rgba(var(--primary-rgb) / 0.1);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.body {
|
|
padding: 20px 24px 24px;
|
|
}
|
|
|
|
.list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.listItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 14px;
|
|
background: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.25);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.listItemInfo {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.listItemName {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
text-align: start;
|
|
}
|
|
|
|
.listItemName:global(.faText),
|
|
.listItemValues:global(.faText),
|
|
.subtitle:global(.faText) {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.listItemValues {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-top: 2px;
|
|
line-height: 1.45;
|
|
text-align: start;
|
|
}
|
|
|
|
.listItemEnd {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
margin-inline-start: auto;
|
|
}
|
|
|
|
.listItemType {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--primary);
|
|
background: rgba(var(--primary-rgb) / 0.1);
|
|
padding: 3px 8px;
|
|
border-radius: 50px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.addBtn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 11px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
background: rgba(var(--primary-rgb) / 0.08);
|
|
border: 1px dashed rgba(var(--primary-rgb) / 0.35);
|
|
border-radius: var(--radius-sm);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.addBtn:hover {
|
|
background: rgba(var(--primary-rgb) / 0.14);
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.field label {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.field input {
|
|
width: 100%;
|
|
padding: var(--field-padding-y) var(--field-padding-x);
|
|
font-size: var(--field-font-size);
|
|
line-height: 1.4;
|
|
font-family: inherit;
|
|
color: var(--text-primary);
|
|
background: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: var(--radius-sm);
|
|
outline: none;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
box-sizing: border-box;
|
|
min-height: var(--field-height);
|
|
}
|
|
|
|
.field select {
|
|
padding-right: var(--select-padding-end);
|
|
}
|
|
|
|
.field select:focus,
|
|
.field input:focus,
|
|
.field textarea:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
|
|
}
|
|
|
|
.field textarea {
|
|
width: 100%;
|
|
min-height: 88px;
|
|
padding: var(--field-padding-y) var(--field-padding-x);
|
|
font-size: var(--field-font-size);
|
|
line-height: 1.5;
|
|
font-family: inherit;
|
|
color: var(--text-primary);
|
|
background: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: var(--radius-sm);
|
|
outline: none;
|
|
resize: vertical;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.chipGrid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
max-height: min(42vh, 360px);
|
|
overflow-y: auto;
|
|
padding: 2px;
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 7px 14px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
background: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: 50px;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.chip:hover {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.chipSelected {
|
|
background: rgba(var(--primary-rgb) / 0.12);
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.colorSearchWrap {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.colorSearchIcon {
|
|
position: absolute;
|
|
inset-inline-start: 12px;
|
|
color: var(--text-muted);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.colorSearchInput {
|
|
width: 100%;
|
|
min-height: var(--field-height);
|
|
padding: var(--field-padding-y) 36px;
|
|
font-size: var(--field-font-size);
|
|
font-family: var(--font-ui);
|
|
color: var(--text-primary);
|
|
background-color: var(--surface);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: var(--radius-sm);
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.colorSearchInput::placeholder {
|
|
font-family: var(--font-ui);
|
|
opacity: 1;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.colorSearchInput:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
|
|
}
|
|
|
|
.colorSearchClear {
|
|
position: absolute;
|
|
inset-inline-end: 8px;
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.colorSearchClear:hover {
|
|
background: rgba(148, 163, 184, 0.15);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.selectedColors {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.colorSwatch {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
border: 1px solid rgba(15, 23, 42, 0.12);
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
|
|
}
|
|
|
|
.colorEmpty {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.customValues {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.customRow {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.customRow input {
|
|
flex: 1;
|
|
}
|
|
|
|
.removeValueBtn {
|
|
width: var(--field-height);
|
|
height: var(--field-height);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-muted);
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.removeValueBtn:hover {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: #ef4444;
|
|
border-color: rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.addValueBtn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
align-self: flex-start;
|
|
padding: 8px 14px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--primary);
|
|
border-radius: var(--radius-sm);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.addValueBtn:hover {
|
|
background: rgba(var(--primary-rgb) / 0.1);
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
padding-top: 16px;
|
|
margin-top: 8px;
|
|
border-top: 1px solid rgba(148, 163, 184, 0.2);
|
|
}
|
|
|
|
.cancelBtn {
|
|
padding: 10px 18px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
border-radius: var(--radius-sm);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.cancelBtn:hover {
|
|
background: rgba(148, 163, 184, 0.15);
|
|
}
|
|
|
|
.submitBtn {
|
|
padding: 10px 20px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: white;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: 0 4px 12px rgba(var(--primary-rgb) / 0.3);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.submitBtn:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.submitBtn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.attrHint {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.attrPill {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
background: rgba(148, 163, 184, 0.12);
|
|
padding: 4px 10px;
|
|
border-radius: 50px;
|
|
}
|
|
|
|
.variationFields {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.emptyText {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: 20px 12px;
|
|
}
|
|
|
|
.removeRowBtn {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
border-radius: 8px;
|
|
color: var(--text-muted);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.removeRowBtn:hover {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.preview {
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
padding: 10px 12px;
|
|
background: rgba(var(--primary-rgb) / 0.06);
|
|
border-radius: var(--radius-sm);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.previewLabel {
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.errorText {
|
|
font-size: 12px;
|
|
color: #ef4444;
|
|
margin-bottom: 12px;
|
|
}
|
|
@keyframes overlayFadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes overlayFadeOut {
|
|
from { opacity: 1; }
|
|
to { opacity: 0; }
|
|
}
|
|
|
|
@keyframes modalFadeIn {
|
|
from { opacity: 0; transform: translateY(12px) scale(0.98); }
|
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
}
|
|
@keyframes modalFadeOut {
|
|
from { opacity: 1; transform: translateY(0) scale(1); }
|
|
to { opacity: 0; transform: translateY(8px) scale(0.98); }
|
|
}
|