514 lines
11 KiB
CSS
514 lines
11 KiB
CSS
.page {
|
|
padding: 1.25rem;
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
}
|
|
|
|
/* Wide variant: take all available width. Used by data-heavy views (Stats,
|
|
* Browser) where columns and charts benefit from the extra real estate. */
|
|
.pageWide {
|
|
padding: 1.25rem;
|
|
max-width: 100%;
|
|
width: 100%;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
}
|
|
|
|
.heading {
|
|
font-size: 1.35rem;
|
|
font-weight: 600;
|
|
margin: 0 0 1.25rem;
|
|
color: var(--text-primary, #1a202c);
|
|
}
|
|
|
|
.subheading {
|
|
font-size: 0.95rem;
|
|
color: var(--text-secondary, #4a5568);
|
|
margin: -0.75rem 0 1.25rem;
|
|
}
|
|
|
|
.section {
|
|
margin-bottom: 1.75rem;
|
|
padding: 1rem 1.25rem;
|
|
background: var(--bg-card, #fff);
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.sectionTitle {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin: 0 0 0.85rem;
|
|
color: var(--text-primary, #1a202c);
|
|
}
|
|
|
|
.field {
|
|
margin-bottom: 0.85rem;
|
|
}
|
|
|
|
.label {
|
|
display: block;
|
|
font-size: 0.82rem;
|
|
font-weight: 500;
|
|
margin-bottom: 0.3rem;
|
|
color: var(--text-primary, #1a202c);
|
|
}
|
|
|
|
.hint {
|
|
font-size: 0.78rem;
|
|
color: var(--text-secondary, #718096);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
background: #fff;
|
|
color: var(--text-primary, #1a202c);
|
|
font-family: inherit;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color, #4A6FA5);
|
|
box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.18);
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.55rem 1.1rem;
|
|
background: var(--primary-color, #4A6FA5);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.88rem;
|
|
font-weight: 500;
|
|
font-family: inherit;
|
|
transition: filter 0.15s;
|
|
}
|
|
|
|
.btn:hover:not(:disabled) { filter: brightness(1.08); }
|
|
|
|
.btn:disabled {
|
|
background: var(--color-medium-gray, #cbd5e0);
|
|
color: var(--text-secondary, #718096);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btnSecondary {
|
|
composes: btn;
|
|
background: #fff;
|
|
color: var(--primary-color, #4A6FA5);
|
|
border: 1px solid var(--primary-color, #4A6FA5);
|
|
}
|
|
|
|
.btnSecondary:hover:not(:disabled) {
|
|
background: rgba(74, 111, 165, 0.06);
|
|
filter: none;
|
|
}
|
|
|
|
.btnDanger {
|
|
composes: btn;
|
|
background: #C53030;
|
|
}
|
|
|
|
.btnDanger:hover:not(:disabled) { filter: brightness(1.08); }
|
|
|
|
.alertOk {
|
|
padding: 0.55rem 0.85rem;
|
|
background: #e6fffa;
|
|
color: #2c7a7b;
|
|
border: 1px solid #b2f5ea;
|
|
border-radius: 6px;
|
|
margin-bottom: 0.85rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.alertErr {
|
|
padding: 0.55rem 0.85rem;
|
|
background: #fff5f5;
|
|
color: #c53030;
|
|
border: 1px solid #fed7d7;
|
|
border-radius: 6px;
|
|
margin-bottom: 0.85rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.alertInfo {
|
|
padding: 0.55rem 0.85rem;
|
|
background: #ebf8ff;
|
|
color: #2c5282;
|
|
border: 1px solid #bee3f8;
|
|
border-radius: 6px;
|
|
margin-bottom: 0.85rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.kvGrid {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: 0.4rem 1rem;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #4a5568);
|
|
}
|
|
|
|
.kvLabel {
|
|
font-weight: 500;
|
|
color: var(--text-secondary, #4a5568);
|
|
}
|
|
|
|
.kvValue {
|
|
color: var(--text-primary, #1a202c);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.loading {
|
|
padding: 2rem;
|
|
text-align: center;
|
|
color: var(--text-secondary, #718096);
|
|
}
|
|
|
|
.placeholder {
|
|
padding: 2rem;
|
|
text-align: center;
|
|
color: var(--text-secondary, #718096);
|
|
background: var(--bg-card, #fff);
|
|
border: 1px dashed var(--border-color, #e2e8f0);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* ================================================================== */
|
|
/* Browser view: tree-as-table + editor split */
|
|
/* ================================================================== */
|
|
|
|
.browserPage {
|
|
padding: 1rem 1.25rem;
|
|
font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.85rem;
|
|
height: calc(100vh - 140px);
|
|
min-height: 540px;
|
|
}
|
|
|
|
.browserHeader {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.browserFilters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.6rem 0.75rem;
|
|
align-items: flex-end;
|
|
padding: 0.75rem 1rem;
|
|
background: var(--bg-card, #fff);
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.filterGroup { display: flex; flex-direction: column; gap: 0.25rem; min-width: 180px; }
|
|
.filterGroup label { font-size: 0.76rem; font-weight: 500; color: var(--text-secondary, #4a5568); }
|
|
|
|
.browserBody {
|
|
display: grid;
|
|
grid-template-columns: minmax(620px, 1.6fr) minmax(420px, 1fr);
|
|
gap: 0.85rem;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.browserTreeContainer,
|
|
.browserEditorContainer {
|
|
background: var(--bg-card, #fff);
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
.browserToolbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.55rem 0.85rem;
|
|
border-bottom: 1px solid var(--border-color, #e2e8f0);
|
|
font-size: 0.82rem;
|
|
color: var(--text-secondary, #4a5568);
|
|
}
|
|
|
|
.browserToolbar .linkBtn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--primary-color, #4A6FA5);
|
|
font-size: 0.82rem;
|
|
cursor: pointer;
|
|
padding: 0.2rem 0.4rem;
|
|
font-family: inherit;
|
|
}
|
|
.browserToolbar .linkBtn:hover { text-decoration: underline; }
|
|
.browserToolbar .linkBtn:disabled { color: var(--text-secondary, #a0aec0); cursor: not-allowed; text-decoration: none; }
|
|
|
|
/* Tree grid */
|
|
.treeScroll {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.treeGrid {
|
|
display: grid;
|
|
grid-template-columns: minmax(360px, 1fr) 110px 90px 160px 100px 110px;
|
|
font-size: 0.84rem;
|
|
}
|
|
|
|
.treeHeader {
|
|
display: contents;
|
|
}
|
|
.treeHeader > div {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
background: #F7FAFC;
|
|
font-weight: 600;
|
|
font-size: 0.76rem;
|
|
color: var(--text-secondary, #4a5568);
|
|
padding: 0.45rem 0.6rem;
|
|
border-bottom: 1px solid var(--border-color, #e2e8f0);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.treeRow {
|
|
display: contents;
|
|
cursor: pointer;
|
|
}
|
|
.treeRow > div {
|
|
padding: 0.4rem 0.6rem;
|
|
border-bottom: 1px solid var(--border-color, #edf2f7);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-width: 0;
|
|
line-height: 1.25;
|
|
}
|
|
.treeRow.selected > div { background: rgba(74, 111, 165, 0.12); }
|
|
.treeRow:hover:not(.selected) > div { background: #F7FAFC; }
|
|
|
|
.treeRow.orphan > div { background: #FFFBEB; font-style: italic; color: var(--text-secondary, #4a5568); }
|
|
.treeRow.orphan.selected > div { background: rgba(246, 173, 85, 0.22); }
|
|
|
|
.treeCell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.indent {
|
|
flex: 0 0 18px;
|
|
height: 22px;
|
|
position: relative;
|
|
}
|
|
.indent.line::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
background: var(--border-color, #cbd5e0);
|
|
}
|
|
.indentElbow {
|
|
flex: 0 0 18px;
|
|
height: 22px;
|
|
position: relative;
|
|
}
|
|
.indentElbow::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 0;
|
|
bottom: 50%;
|
|
width: 1px;
|
|
background: var(--border-color, #cbd5e0);
|
|
}
|
|
.indentElbow.mid::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
background: var(--border-color, #cbd5e0);
|
|
}
|
|
.indentElbow::before,
|
|
.indentElbow::after {
|
|
box-sizing: border-box;
|
|
}
|
|
.indentElbow .elbowBar {
|
|
position: absolute;
|
|
left: 50%;
|
|
right: -3px;
|
|
top: 50%;
|
|
height: 1px;
|
|
background: var(--border-color, #cbd5e0);
|
|
}
|
|
|
|
.treeToggle {
|
|
flex: 0 0 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-size: 0.7rem;
|
|
color: var(--text-secondary, #4a5568);
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
.treeToggle:hover { background: #E2E8F0; }
|
|
.treeTogglePlaceholder { flex: 0 0 18px; }
|
|
|
|
.trackerPill {
|
|
font-size: 0.72rem;
|
|
padding: 2px 7px;
|
|
border-radius: 999px;
|
|
color: #fff;
|
|
flex-shrink: 0;
|
|
font-weight: 500;
|
|
}
|
|
.trackerPill.orphanPill {
|
|
color: var(--text-secondary, #4a5568);
|
|
background: transparent !important;
|
|
border: 1px dashed var(--border-color, #cbd5e0);
|
|
}
|
|
|
|
.ticketId {
|
|
color: var(--text-secondary, #718096);
|
|
font-size: 0.78rem;
|
|
font-variant-numeric: tabular-nums;
|
|
flex-shrink: 0;
|
|
}
|
|
.ticketSubject {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.statusPill {
|
|
display: inline-block;
|
|
padding: 2px 7px;
|
|
border-radius: 999px;
|
|
font-size: 0.72rem;
|
|
background: #E2E8F0;
|
|
color: var(--text-primary, #2d3748);
|
|
}
|
|
.statusPill.closed { background: #C6F6D5; color: #22543d; }
|
|
|
|
.relBadge {
|
|
font-size: 0.7rem;
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
color: var(--text-secondary, #718096);
|
|
background: #F7FAFC;
|
|
}
|
|
.relBadge.root { background: rgba(74, 111, 165, 0.1); color: var(--primary-color, #4A6FA5); border-color: rgba(74, 111, 165, 0.3); }
|
|
|
|
.muted { color: var(--text-secondary, #a0aec0); }
|
|
|
|
/* Editor pane */
|
|
.editorScroll {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding: 0.85rem 1rem;
|
|
}
|
|
|
|
.editorHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 0.85rem;
|
|
padding-bottom: 0.6rem;
|
|
border-bottom: 1px solid var(--border-color, #edf2f7);
|
|
}
|
|
.editorHeader h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--text-primary, #1a202c); flex: 1; }
|
|
|
|
.editorGrid {
|
|
display: grid;
|
|
grid-template-columns: 130px 1fr;
|
|
gap: 0.5rem 0.85rem;
|
|
align-items: start;
|
|
font-size: 0.85rem;
|
|
}
|
|
.editorGrid .fullRow {
|
|
grid-column: 1 / -1;
|
|
}
|
|
.editorGrid label { font-weight: 500; color: var(--text-secondary, #4a5568); padding-top: 0.45rem; }
|
|
|
|
.textarea {
|
|
width: 100%;
|
|
padding: 0.5rem 0.6rem;
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
font-family: inherit;
|
|
color: var(--text-primary, #1a202c);
|
|
background: #fff;
|
|
box-sizing: border-box;
|
|
min-height: 140px;
|
|
resize: vertical;
|
|
}
|
|
.textarea:focus { outline: none; border-color: var(--primary-color, #4A6FA5); box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.18); }
|
|
|
|
.select {
|
|
width: 100%;
|
|
padding: 0.45rem 0.6rem;
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
font-family: inherit;
|
|
background: #fff;
|
|
box-sizing: border-box;
|
|
}
|
|
.select:focus { outline: none; border-color: var(--primary-color, #4A6FA5); box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.18); }
|
|
|
|
.buttonRow {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 0.85rem;
|
|
padding-top: 0.85rem;
|
|
border-top: 1px solid var(--border-color, #edf2f7);
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.relationList {
|
|
margin: 0;
|
|
padding-left: 1rem;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary, #4a5568);
|
|
}
|
|
.relationList li { margin-bottom: 0.2rem; }
|