Switches from side-by-side panels to stacked layout so the filter builder has full width and input fields are no longer cramped. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
599 lines
16 KiB
CSS
599 lines
16 KiB
CSS
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
font-size: 13px;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
background: #f0f2f5;
|
|
color: #333;
|
|
}
|
|
|
|
/* ============================================================
|
|
LAYOUT
|
|
============================================================ */
|
|
#app { display: flex; height: 100vh; }
|
|
#content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
|
|
|
|
/* ============================================================
|
|
SIDEBAR
|
|
============================================================ */
|
|
#sidebar {
|
|
width: 200px;
|
|
flex-shrink: 0;
|
|
background: #2c3e50;
|
|
color: #ecf0f1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.sidebar-brand {
|
|
padding: 16px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
border-bottom: 1px solid #3d5166;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.nav-links { list-style: none; padding: 6px 0; }
|
|
.nav-links li {
|
|
padding: 10px 16px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
color: #bdc3c7;
|
|
transition: background 0.1s;
|
|
}
|
|
.nav-links li:hover { background: #3d5166; color: #ecf0f1; }
|
|
.nav-links li.active { background: #1a252f; color: #ecf0f1; border-left: 3px solid #3498db; padding-left: 13px; }
|
|
|
|
.sidebar-context { flex: 1; padding: 12px 16px; border-top: 1px solid #3d5166; }
|
|
.ctx-item { margin-bottom: 10px; }
|
|
.ctx-item.hidden { display: none; }
|
|
.ctx-label { display: block; font-size: 10px; color: #7f8c8d; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
|
|
.ctx-item span:not(.ctx-label) { font-size: 12px; word-break: break-word; }
|
|
.status-badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10px; margin-left: 4px; vertical-align: middle; }
|
|
.status-badge.open { background: #27ae60; }
|
|
.status-badge.closed { background: #c0392b; }
|
|
|
|
.sidebar-user { padding: 12px 16px; border-top: 1px solid #3d5166; }
|
|
.sidebar-user label { display: block; font-size: 10px; color: #7f8c8d; text-transform: uppercase; margin-bottom: 4px; }
|
|
.sidebar-user input {
|
|
width: 100%;
|
|
background: #3d5166;
|
|
border: 1px solid #4a6278;
|
|
color: #ecf0f1;
|
|
padding: 5px 8px;
|
|
border-radius: 3px;
|
|
font-size: 12px;
|
|
}
|
|
.sidebar-user input::placeholder { color: #7f8c8d; }
|
|
|
|
/* ============================================================
|
|
STATUS BAR
|
|
============================================================ */
|
|
#status-bar { padding: 7px 16px; font-size: 12px; flex-shrink: 0; }
|
|
#status-bar.hidden { display: none; }
|
|
.status-info { background: #d6eaf8; color: #1a5276; border-bottom: 1px solid #aed6f1; }
|
|
.status-success { background: #d5f5e3; color: #1e8449; border-bottom: 1px solid #a9dfbf; }
|
|
.status-error { background: #fadbd8; color: #922b21; border-bottom: 1px solid #f1948a; }
|
|
|
|
/* ============================================================
|
|
VIEWS
|
|
============================================================ */
|
|
.view { flex: 1; overflow: hidden; padding: 12px; display: none; flex-direction: column; gap: 8px; }
|
|
.view.active { display: flex; }
|
|
.view.hidden { display: none !important; }
|
|
|
|
/* ============================================================
|
|
SOURCES VIEW — two-column
|
|
============================================================ */
|
|
.two-col-layout { display: flex; gap: 10px; flex: 1; overflow: hidden; }
|
|
.panel {
|
|
flex: 1;
|
|
background: white;
|
|
border-radius: 5px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,.08);
|
|
min-width: 0;
|
|
}
|
|
.panel-header {
|
|
padding: 9px 12px;
|
|
border-bottom: 1px solid #e8ecf0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: #f8fafc;
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
.header-actions { display: flex; gap: 6px; align-items: center; }
|
|
.grid-fill { flex: 1; min-height: 0; }
|
|
|
|
/* ============================================================
|
|
VERSIONS VIEW
|
|
============================================================ */
|
|
.view-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
#versions-source-label { font-weight: 600; font-size: 13px; flex: 1; }
|
|
#versions-grid { flex: 1; min-height: 200px; }
|
|
|
|
.version-actions {
|
|
background: white;
|
|
border-radius: 5px;
|
|
padding: 10px 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,.08);
|
|
flex-wrap: wrap;
|
|
}
|
|
.version-actions.hidden { display: none; }
|
|
#version-actions-label { font-size: 12px; font-weight: 600; flex: 1; min-width: 120px; }
|
|
|
|
.inline-form {
|
|
background: white;
|
|
border-radius: 5px;
|
|
padding: 14px 16px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,.08);
|
|
flex-shrink: 0;
|
|
}
|
|
.inline-form h3 { font-size: 13px; margin-bottom: 10px; font-weight: 600; }
|
|
.inline-form.hidden { display: none; }
|
|
|
|
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
|
|
.form-row label, .inline-form label {
|
|
font-size: 11px;
|
|
color: #555;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
}
|
|
.form-row input[type=text],
|
|
.form-row input[type=date],
|
|
.form-row input[type=number],
|
|
.inline-form input[type=text],
|
|
.inline-form input[type=date],
|
|
.inline-form input[type=number] {
|
|
border: 1px solid #dce1e7;
|
|
padding: 5px 8px;
|
|
border-radius: 3px;
|
|
font-size: 12px;
|
|
min-width: 140px;
|
|
color: #333;
|
|
}
|
|
.form-actions { display: flex; gap: 8px; }
|
|
|
|
/* ============================================================
|
|
FORECAST VIEW
|
|
============================================================ */
|
|
.forecast-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
#forecast-label { font-weight: 600; font-size: 13px; flex: 1; }
|
|
|
|
.forecast-layout { display: flex; gap: 10px; flex: 1; overflow: hidden; min-height: 0; }
|
|
|
|
#pivot-panel {
|
|
flex: 1;
|
|
background: white;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,.08);
|
|
min-width: 0;
|
|
}
|
|
#pivot-grid { width: 100%; height: 100%; }
|
|
|
|
#operation-panel {
|
|
width: 270px;
|
|
flex-shrink: 0;
|
|
background: white;
|
|
border-radius: 5px;
|
|
padding: 14px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,.08);
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.op-section { display: flex; flex-direction: column; gap: 6px; }
|
|
.op-title { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #7f8c8d; letter-spacing: 0.05em; }
|
|
.op-hint { font-size: 11px; color: #aaa; }
|
|
|
|
#slice-display { display: flex; flex-wrap: wrap; gap: 4px; min-height: 24px; }
|
|
.slice-tag {
|
|
background: #eaf4fb;
|
|
color: #1a6fa8;
|
|
padding: 2px 10px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
cursor: default;
|
|
}
|
|
|
|
.op-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 10px; }
|
|
.op-tab {
|
|
background: none;
|
|
border: none;
|
|
padding: 6px 14px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
color: #666;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -2px;
|
|
}
|
|
.op-tab.active { color: #2980b9; border-bottom-color: #2980b9; font-weight: 600; }
|
|
.op-tab:hover:not(.active) { color: #333; }
|
|
|
|
.op-form { display: flex; flex-direction: column; gap: 8px; }
|
|
.op-form.hidden { display: none; }
|
|
.op-form label { font-size: 11px; color: #555; display: flex; flex-direction: column; gap: 3px; }
|
|
.op-form input[type=text],
|
|
.op-form input[type=number] {
|
|
border: 1px solid #dce1e7;
|
|
padding: 5px 8px;
|
|
border-radius: 3px;
|
|
font-size: 12px;
|
|
}
|
|
.label-inline { flex-direction: row !important; align-items: center; gap: 6px !important; font-size: 12px !important; }
|
|
#op-forms-area { display: flex; flex-direction: column; gap: 0; }
|
|
#op-forms-area.hidden { display: none; }
|
|
|
|
.recode-field, .clone-field { margin-bottom: 8px; }
|
|
.recode-field label, .clone-field label { font-size: 11px; color: #555; display: block; margin-bottom: 2px; }
|
|
.field-hint { font-size: 10px; color: #aaa; }
|
|
|
|
/* ============================================================
|
|
LOG VIEW
|
|
============================================================ */
|
|
#log-grid { flex: 1; min-height: 0; }
|
|
|
|
/* ============================================================
|
|
BUTTONS
|
|
============================================================ */
|
|
.btn {
|
|
padding: 5px 12px;
|
|
border: 1px solid #dce1e7;
|
|
background: white;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
color: #333;
|
|
}
|
|
.btn:hover { background: #f0f2f5; }
|
|
.btn:active { background: #e8ecf0; }
|
|
.btn-primary { background: #2980b9; color: white; border-color: #2574a9; }
|
|
.btn-primary:hover { background: #2574a9; }
|
|
.btn-danger { background: #e74c3c; color: white; border-color: #d44332; }
|
|
.btn-danger:hover { background: #d44332; }
|
|
.btn-sm { padding: 2px 8px; font-size: 11px; }
|
|
.btn.hidden { display: none; }
|
|
.btn-icon { background: none; border: none; font-size: 20px; cursor: pointer; color: #666; line-height: 1; padding: 0 4px; }
|
|
.btn-icon:hover { color: #333; }
|
|
|
|
/* ============================================================
|
|
MODAL
|
|
============================================================ */
|
|
.modal-overlay {
|
|
position: fixed; inset: 0;
|
|
background: rgba(0,0,0,.45);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
.modal-overlay.hidden { display: none; }
|
|
.modal {
|
|
background: white;
|
|
border-radius: 6px;
|
|
width: 720px;
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 10px 40px rgba(0,0,0,.2);
|
|
}
|
|
.modal-header {
|
|
padding: 14px 18px;
|
|
border-bottom: 1px solid #eee;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
}
|
|
#modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; font-size: 12px; }
|
|
.modal-footer { padding: 10px 18px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 8px; }
|
|
|
|
/* ============================================================
|
|
LOAD BASELINE / REFERENCE MODAL
|
|
============================================================ */
|
|
.load-data-modal { width: 480px; max-height: 80vh; }
|
|
|
|
#load-data-body {
|
|
padding: 20px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.load-form-fields {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.load-form-fields label {
|
|
font-size: 11px;
|
|
color: #555;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.load-form-fields input[type=date],
|
|
.load-form-fields input[type=text] {
|
|
border: 1px solid #dce1e7;
|
|
padding: 7px 10px;
|
|
border-radius: 3px;
|
|
font-size: 13px;
|
|
color: #333;
|
|
width: 100%;
|
|
}
|
|
|
|
.load-form-fields input[type=date]:focus,
|
|
.load-form-fields input[type=text]:focus {
|
|
outline: none;
|
|
border-color: #2980b9;
|
|
box-shadow: 0 0 0 2px rgba(41,128,185,.15);
|
|
}
|
|
|
|
.load-offset-row { display: flex; gap: 12px; }
|
|
.load-offset-row label { flex: 1; }
|
|
|
|
.load-date-preview { display: flex; flex-direction: column; gap: 8px; }
|
|
.load-date-preview.hidden { display: none; }
|
|
|
|
.load-preview-columns {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
}
|
|
.load-preview-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
|
|
.load-preview-arrow {
|
|
font-size: 20px;
|
|
color: #aaa;
|
|
padding-top: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.load-preview-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #7f8c8d;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.date-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
}
|
|
|
|
.date-chip {
|
|
background: #eaf4fb;
|
|
color: #1a6fa8;
|
|
border: 1px solid #c5dff0;
|
|
padding: 3px 9px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.date-chip-summary {
|
|
font-size: 12px;
|
|
color: #555;
|
|
font-style: italic;
|
|
}
|
|
|
|
.preview-section h4 { font-size: 12px; margin-bottom: 6px; color: #555; }
|
|
.preview-section + .preview-section { margin-top: 16px; }
|
|
.preview-table { border-collapse: collapse; width: 100%; font-size: 11px; }
|
|
.preview-table th, .preview-table td { border: 1px solid #e0e0e0; padding: 4px 8px; text-align: left; }
|
|
.preview-table th { background: #f5f7f9; font-weight: 600; }
|
|
.preview-table tr:hover td { background: #fafbfc; }
|
|
|
|
/* ============================================================
|
|
BASELINE WORKBENCH
|
|
============================================================ */
|
|
.workbench-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
#baseline-label { font-weight: 600; font-size: 13px; flex: 1; }
|
|
|
|
.baseline-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
.baseline-form-panel {
|
|
background: white;
|
|
border-radius: 5px;
|
|
padding: 14px 20px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,.08);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.baseline-segments-panel {
|
|
flex: 1;
|
|
background: white;
|
|
border-radius: 5px;
|
|
padding: 14px 20px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,.08);
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
min-height: 120px;
|
|
}
|
|
|
|
.panel-section-title {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
color: #7f8c8d;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.baseline-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
max-width: 860px;
|
|
}
|
|
|
|
.baseline-field-label {
|
|
font-size: 11px;
|
|
color: #555;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
}
|
|
|
|
.baseline-field-label input[type=text],
|
|
.baseline-field-label input[type=number] {
|
|
border: 1px solid #dce1e7;
|
|
padding: 5px 8px;
|
|
border-radius: 3px;
|
|
font-size: 12px;
|
|
color: #333;
|
|
}
|
|
|
|
.offset-row { display: flex; gap: 10px; }
|
|
.offset-row label { flex: 1; }
|
|
|
|
.filter-section { display: flex; flex-direction: column; gap: 6px; }
|
|
.filter-section-label {
|
|
font-size: 11px;
|
|
color: #555;
|
|
font-weight: 600;
|
|
}
|
|
.required-star { color: #e74c3c; }
|
|
|
|
.filter-row {
|
|
display: flex;
|
|
gap: 4px;
|
|
align-items: flex-start;
|
|
flex-wrap: wrap;
|
|
padding: 6px 8px;
|
|
background: #f8fafc;
|
|
border: 1px solid #e8ecf0;
|
|
border-radius: 3px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.filter-row select,
|
|
.filter-row input[type=text] {
|
|
border: 1px solid #dce1e7;
|
|
padding: 4px 6px;
|
|
border-radius: 3px;
|
|
font-size: 11px;
|
|
color: #333;
|
|
background: white;
|
|
}
|
|
|
|
.filter-col-select { min-width: 120px; }
|
|
.filter-op-select { min-width: 90px; }
|
|
.filter-val-single,
|
|
.filter-val-list { min-width: 120px; flex: 1; }
|
|
.filter-val-from,
|
|
.filter-val-to { min-width: 90px; flex: 1; }
|
|
.filter-between-sep { font-size: 11px; color: #aaa; padding: 5px 2px; }
|
|
.filter-value-container { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
|
|
|
|
/* Timeline preview */
|
|
.timeline-preview { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 4px; }
|
|
.timeline-preview.hidden { display: none; }
|
|
|
|
.timeline-row { display: flex; align-items: center; gap: 8px; }
|
|
.timeline-row-label {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
color: #7f8c8d;
|
|
letter-spacing: 0.04em;
|
|
width: 60px;
|
|
flex-shrink: 0;
|
|
text-align: right;
|
|
}
|
|
.timeline-bar-wrap { flex: 1; display: flex; flex-direction: column; gap: 3px; }
|
|
.timeline-bar {
|
|
height: 14px;
|
|
background: #2980b9;
|
|
border-radius: 3px;
|
|
width: 100%;
|
|
}
|
|
.timeline-bar-projected { background: #27ae60; }
|
|
.timeline-bar-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 10px;
|
|
color: #666;
|
|
}
|
|
.timeline-offset-indicator {
|
|
font-size: 11px;
|
|
color: #aaa;
|
|
padding: 2px 0 2px 68px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Segment cards */
|
|
.segment-card {
|
|
border: 1px solid #e8ecf0;
|
|
border-radius: 4px;
|
|
padding: 10px 12px;
|
|
background: #fafbfc;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
.segment-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.segment-card-note {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
flex: 1;
|
|
}
|
|
.segment-card-meta {
|
|
font-size: 11px;
|
|
color: #888;
|
|
}
|
|
.segment-card-params {
|
|
font-size: 11px;
|
|
color: #555;
|
|
font-family: monospace;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
.segments-empty { font-size: 12px; color: #aaa; font-style: italic; }
|