1492 lines
32 KiB
CSS
1492 lines
32 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
font-family: Inter, "Segoe UI", Arial, sans-serif;
|
|
font-synthesis: none;
|
|
--ink: #17202a;
|
|
--muted: #5a6773;
|
|
--line: #ccd4dc;
|
|
--surface: #ffffff;
|
|
--canvas: #f3f5f7;
|
|
--nav: #0f172a;
|
|
--accent: #f97316;
|
|
--focus: #1677b8;
|
|
--good: #177245;
|
|
--warn: #9a5b00;
|
|
--danger: #b42318;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
min-width: 320px;
|
|
background: var(--canvas);
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
color: var(--ink);
|
|
background: var(--canvas);
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
|
|
.skip-link {
|
|
position: fixed;
|
|
left: 12px;
|
|
top: -60px;
|
|
z-index: 100;
|
|
padding: 10px 14px;
|
|
background: var(--surface);
|
|
border: 2px solid var(--focus);
|
|
}
|
|
|
|
.skip-link:focus {
|
|
top: 12px;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 3px solid var(--focus);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.app-shell {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
grid-template-columns: 224px minmax(0, 1fr);
|
|
grid-template-rows: 68px minmax(0, 1fr);
|
|
}
|
|
|
|
.topbar {
|
|
grid-column: 1 / -1;
|
|
display: grid;
|
|
grid-template-columns: 224px minmax(240px, 620px) 1fr;
|
|
align-items: center;
|
|
gap: 20px;
|
|
min-height: 68px;
|
|
padding: 10px 18px;
|
|
color: #ffffff;
|
|
background: var(--nav);
|
|
border-bottom: 3px solid var(--accent);
|
|
}
|
|
|
|
.brand-area {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.brand {
|
|
display: block;
|
|
min-width: 0;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.brand-name {
|
|
display: block;
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.brand-tagline {
|
|
display: block;
|
|
margin-top: 2px;
|
|
color: #d3dae2;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.global-search {
|
|
position: relative;
|
|
}
|
|
|
|
.global-search label {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.global-search input {
|
|
width: 100%;
|
|
min-height: 42px;
|
|
padding: 9px 14px;
|
|
border: 1px solid #647385;
|
|
border-radius: 5px;
|
|
color: var(--ink);
|
|
background: #ffffff;
|
|
}
|
|
|
|
.session-tools {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.session-copy {
|
|
min-width: 0;
|
|
text-align: right;
|
|
}
|
|
|
|
.session-user,
|
|
.session-role {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.session-user {
|
|
font-size: 13px;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.session-role {
|
|
color: #d3dae2;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.quiet-button,
|
|
.menu-button {
|
|
min-height: 40px;
|
|
border: 1px solid #8390a0;
|
|
border-radius: 5px;
|
|
padding: 8px 11px;
|
|
color: #ffffff;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.menu-button {
|
|
display: none;
|
|
}
|
|
|
|
.primary-nav {
|
|
grid-column: 1;
|
|
grid-row: 2;
|
|
padding: 20px 12px;
|
|
color: #eef2f6;
|
|
background: #17212d;
|
|
}
|
|
|
|
.primary-nav ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 5px;
|
|
}
|
|
|
|
.primary-nav a {
|
|
display: block;
|
|
min-height: 42px;
|
|
padding: 11px 12px;
|
|
border-left: 3px solid transparent;
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.primary-nav a:hover {
|
|
background: #263343;
|
|
}
|
|
|
|
.primary-nav a[aria-current="page"] {
|
|
border-color: var(--accent);
|
|
background: #2c3948;
|
|
}
|
|
|
|
.nav-note {
|
|
margin: 22px 12px 0;
|
|
color: #aeb9c5;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.main-content {
|
|
grid-column: 2;
|
|
grid-row: 2;
|
|
min-width: 0;
|
|
padding: 26px clamp(16px, 3vw, 42px) 48px;
|
|
}
|
|
|
|
.page-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
margin-bottom: 22px;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 5px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 750;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-size: 32px;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.page-summary {
|
|
max-width: 760px;
|
|
margin: 8px 0 0;
|
|
color: var(--muted);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.freshness {
|
|
margin: 4px 0 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.metrics {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(130px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.metric,
|
|
.panel,
|
|
.map-inspector {
|
|
border: 1px solid var(--line);
|
|
border-radius: 6px;
|
|
background: var(--surface);
|
|
}
|
|
|
|
.metric {
|
|
min-height: 122px;
|
|
padding: 15px;
|
|
}
|
|
|
|
.metric-label {
|
|
display: block;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.metric-value {
|
|
display: block;
|
|
margin: 14px 0 6px;
|
|
font-size: 25px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.metric-state {
|
|
display: block;
|
|
color: var(--warn);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.content-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr);
|
|
gap: 18px;
|
|
}
|
|
|
|
.panel {
|
|
padding: 18px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.panel h2 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.panel-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.panel-copy {
|
|
margin: 7px 0 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.state-message {
|
|
padding: 26px 16px;
|
|
border: 1px dashed #aeb8c2;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.state-message strong {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.state-message[data-kind="error"] {
|
|
border-color: #d4a09b;
|
|
color: var(--danger);
|
|
}
|
|
|
|
.state-message[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.table-wrap {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
border: 1px solid var(--line);
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: var(--surface);
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 11px 12px;
|
|
border-bottom: 1px solid #e3e8ed;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
th {
|
|
color: #40505f;
|
|
background: #f7f8fa;
|
|
font-size: 12px;
|
|
}
|
|
|
|
td {
|
|
font-size: 13px;
|
|
}
|
|
|
|
tbody tr:last-child td {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.object-link {
|
|
color: #075b91;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.secondary {
|
|
display: block;
|
|
margin-top: 3px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.status-text {
|
|
font-weight: 750;
|
|
}
|
|
|
|
.status-text::before {
|
|
content: "";
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
margin-right: 7px;
|
|
border-radius: 50%;
|
|
background: #758493;
|
|
}
|
|
|
|
.status-text[data-status="active"]::before,
|
|
.status-text[data-status="online"]::before {
|
|
background: var(--good);
|
|
}
|
|
|
|
.status-text[data-status="in_repair"]::before,
|
|
.status-text[data-status="repair"]::before {
|
|
background: var(--warn);
|
|
}
|
|
|
|
.status-text[data-status="critical"]::before {
|
|
background: var(--danger);
|
|
}
|
|
|
|
.filter-bar {
|
|
display: flex;
|
|
align-items: end;
|
|
gap: 10px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.field {
|
|
display: grid;
|
|
gap: 6px;
|
|
min-width: min(100%, 320px);
|
|
}
|
|
|
|
.field label {
|
|
color: #40505f;
|
|
font-size: 12px;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.field input,
|
|
.field select {
|
|
min-height: 42px;
|
|
border: 1px solid #9da9b5;
|
|
border-radius: 5px;
|
|
padding: 8px 10px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.command-button {
|
|
min-height: 42px;
|
|
border: 1px solid #1b5f89;
|
|
border-radius: 5px;
|
|
padding: 8px 15px;
|
|
color: #ffffff;
|
|
background: #176b9a;
|
|
font-weight: 750;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.command-button:disabled {
|
|
cursor: not-allowed;
|
|
opacity: .58;
|
|
}
|
|
|
|
.map-layout {
|
|
display: grid;
|
|
grid-template-columns: 210px minmax(340px, 1fr) 280px;
|
|
min-height: 520px;
|
|
border: 1px solid var(--line);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.map-controls,
|
|
.map-inspector {
|
|
padding: 16px;
|
|
}
|
|
|
|
.map-controls {
|
|
border-right: 1px solid var(--line);
|
|
}
|
|
|
|
.map-controls h2,
|
|
.map-inspector h2 {
|
|
margin: 0 0 14px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.hierarchy {
|
|
margin: 0 0 20px;
|
|
padding-left: 18px;
|
|
color: #40505f;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.control-stack {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.map-viewport {
|
|
display: grid;
|
|
place-items: center;
|
|
min-height: 420px;
|
|
padding: 28px;
|
|
background: #e8edf1;
|
|
box-shadow: inset 0 0 0 10px #dde4ea;
|
|
}
|
|
|
|
.map-empty {
|
|
max-width: 460px;
|
|
padding: 22px;
|
|
border: 1px solid #9da9b5;
|
|
background: #ffffff;
|
|
text-align: center;
|
|
}
|
|
|
|
.map-empty strong {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.map-inspector {
|
|
border: 0;
|
|
border-left: 1px solid var(--line);
|
|
border-radius: 0;
|
|
}
|
|
|
|
.definition-list {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: 10px 14px;
|
|
margin: 0;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.definition-list dt {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.definition-list dd {
|
|
margin: 0;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.notice {
|
|
padding: 12px 14px;
|
|
border-left: 4px solid var(--warn);
|
|
background: #fff8e8;
|
|
color: #694100;
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
@media (max-width: 1120px) {
|
|
.metrics {
|
|
grid-template-columns: repeat(3, minmax(140px, 1fr));
|
|
}
|
|
|
|
.map-layout {
|
|
grid-template-columns: 190px minmax(320px, 1fr);
|
|
}
|
|
|
|
.map-inspector {
|
|
grid-column: 1 / -1;
|
|
border-top: 1px solid var(--line);
|
|
border-left: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.app-shell {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: auto auto minmax(0, 1fr);
|
|
}
|
|
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 30;
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
gap: 10px;
|
|
}
|
|
|
|
.brand-tagline,
|
|
.session-copy {
|
|
display: none;
|
|
}
|
|
|
|
.menu-button {
|
|
display: inline-block;
|
|
}
|
|
|
|
.global-search {
|
|
grid-column: 1 / -1;
|
|
grid-row: 2;
|
|
}
|
|
|
|
.primary-nav {
|
|
display: none;
|
|
grid-column: 1;
|
|
grid-row: 2;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.primary-nav[data-open="true"] {
|
|
display: block;
|
|
}
|
|
|
|
.primary-nav ul {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
|
|
.primary-nav a {
|
|
min-height: 46px;
|
|
padding: 12px 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-note {
|
|
display: none;
|
|
}
|
|
|
|
.main-content {
|
|
grid-column: 1;
|
|
grid-row: 3;
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.metrics {
|
|
grid-template-columns: repeat(2, minmax(130px, 1fr));
|
|
}
|
|
|
|
.content-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.map-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.map-controls,
|
|
.map-inspector {
|
|
border: 0;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.topbar {
|
|
padding: 9px 10px;
|
|
}
|
|
|
|
.brand-name {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.quiet-button {
|
|
padding: 7px 9px;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 18px 12px 36px;
|
|
}
|
|
|
|
.page-head {
|
|
display: block;
|
|
}
|
|
|
|
.freshness {
|
|
margin-top: 10px;
|
|
white-space: normal;
|
|
}
|
|
|
|
.metrics {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.metric {
|
|
min-height: 100px;
|
|
}
|
|
|
|
.primary-nav ul {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.filter-bar {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.field {
|
|
min-width: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.command-button {
|
|
width: 100%;
|
|
}
|
|
|
|
.table-wrap {
|
|
border: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
table,
|
|
thead,
|
|
tbody,
|
|
tr,
|
|
th,
|
|
td {
|
|
display: block;
|
|
}
|
|
|
|
thead {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
tbody {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
tr {
|
|
border: 1px solid var(--line);
|
|
background: var(--surface);
|
|
}
|
|
|
|
td {
|
|
display: grid;
|
|
grid-template-columns: minmax(90px, .45fr) 1fr;
|
|
gap: 10px;
|
|
border-bottom: 1px solid #e3e8ed;
|
|
}
|
|
|
|
td::before {
|
|
content: attr(data-label);
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.map-viewport {
|
|
min-height: 340px;
|
|
padding: 14px;
|
|
}
|
|
}
|
|
|
|
/* Mine Map v1 */
|
|
.map-context {
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--line);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.map-context-head,
|
|
.map-status-band,
|
|
.inspector-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
|
|
.map-context h2,
|
|
.map-inspector-v1 h2,
|
|
.unplaced-section h2 {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.map-control-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(130px, .8fr) minmax(130px, .8fr)
|
|
minmax(150px, .9fr) minmax(190px, 1.35fr) auto;
|
|
align-items: end;
|
|
gap: 7px;
|
|
margin-top: 7px;
|
|
}
|
|
|
|
.map-context .field {
|
|
gap: 3px;
|
|
}
|
|
|
|
.map-context .field label {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.map-context select,
|
|
.map-context input[type="search"] {
|
|
min-height: 36px;
|
|
padding-top: 6px;
|
|
padding-bottom: 6px;
|
|
}
|
|
|
|
.map-problems-control {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
min-height: 36px;
|
|
padding: 6px 9px;
|
|
border: 1px solid #9aa6b1;
|
|
border-radius: 4px;
|
|
background: #f8fafb;
|
|
color: #263442;
|
|
font-size: 12px;
|
|
font-weight: 750;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.map-problems-control input {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 0;
|
|
accent-color: #176b9a;
|
|
}
|
|
|
|
.map-problems-control:has(input:checked) {
|
|
border-color: #176b9a;
|
|
background: #edf7fb;
|
|
}
|
|
|
|
.map-filters {
|
|
margin-top: 7px;
|
|
border-top: 1px solid #e3e8ed;
|
|
padding-top: 5px;
|
|
}
|
|
|
|
.map-filters summary {
|
|
min-height: 28px;
|
|
cursor: pointer;
|
|
color: #334252;
|
|
font-size: 13px;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.map-filter-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(135px, 1fr)) auto;
|
|
align-items: end;
|
|
gap: 7px;
|
|
}
|
|
|
|
.map-filter-grid .quiet-button,
|
|
.icon-button {
|
|
color: var(--ink);
|
|
border-color: #8e9ba8;
|
|
background: #fff;
|
|
}
|
|
|
|
.map-status-band {
|
|
align-items: flex-start;
|
|
margin: 7px 0;
|
|
}
|
|
|
|
.map-summary,
|
|
.map-legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.summary-fact {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
gap: 5px;
|
|
padding-right: 9px;
|
|
border-right: 1px solid var(--line);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.summary-fact strong {
|
|
color: var(--ink);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.mine-map-workspace {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 300px;
|
|
border: 1px solid var(--line);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.mine-map-workspace[hidden],
|
|
.map-inspector-v1[hidden],
|
|
.unplaced-section[hidden],
|
|
.map-notice[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.map-main-column {
|
|
min-width: 0;
|
|
}
|
|
|
|
.map-legend {
|
|
min-height: 38px;
|
|
padding: 6px 9px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: #f7f8fa;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.legend-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.legend-marker,
|
|
.status-marker {
|
|
display: inline-grid;
|
|
place-items: center;
|
|
border: 1px solid #758493;
|
|
border-radius: 3px;
|
|
color: #263442;
|
|
background: #eef1f4;
|
|
font-weight: 850;
|
|
}
|
|
|
|
.legend-marker {
|
|
min-height: 21px;
|
|
padding: 2px 5px;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.status-marker {
|
|
flex: 0 1 auto;
|
|
min-height: 17px;
|
|
max-width: 100%;
|
|
padding: 1px 4px;
|
|
font-size: 8px;
|
|
line-height: 1.2;
|
|
text-align: center;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.legend-marker[data-status="online"],
|
|
.map-position[data-status="online"] .status-marker { border-color: #658675; color: #315c45; background: #f0f6f2; }
|
|
.legend-marker[data-status="offline"],
|
|
.map-position[data-status="offline"] .status-marker { border-color: #b42318; color: #8f1d14; background: #fff; }
|
|
.legend-marker[data-status="unstable"],
|
|
.map-position[data-status="unstable"] .status-marker { border-color: #9a5b00; color: #754600; background: #fff; }
|
|
.legend-marker[data-status="repair"],
|
|
.map-position[data-status="repair"] .status-marker { border-color: #6b4ca5; color: #523884; background: #fff; }
|
|
.legend-marker[data-status="unknown"],
|
|
.map-position[data-status="unknown"] .status-marker { border-color: #596675; color: #354351; background: #fff; }
|
|
|
|
.relative-scale {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding-right: 8px;
|
|
border-right: 1px solid var(--line);
|
|
color: #40505f;
|
|
}
|
|
|
|
.relative-scale-label {
|
|
font-weight: 750;
|
|
}
|
|
|
|
.relative-scale-value {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.relative-scale-track {
|
|
width: 64px;
|
|
height: 6px;
|
|
border: 1px solid #8e9ba8;
|
|
background: linear-gradient(90deg, #dfe9ee, #176b9a);
|
|
}
|
|
|
|
.map-notice {
|
|
margin: 14px;
|
|
padding: 13px;
|
|
border-left: 4px solid var(--warn);
|
|
background: #fff8e8;
|
|
color: #694100;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.map-viewport-v1 {
|
|
display: grid;
|
|
gap: 8px;
|
|
min-height: 380px;
|
|
max-height: calc(100vh - 265px);
|
|
overflow: auto;
|
|
padding: 8px;
|
|
background: #e9edf0;
|
|
}
|
|
|
|
.map-rack {
|
|
min-width: 0;
|
|
border: 1px solid #aeb8c2;
|
|
background: #fff;
|
|
}
|
|
|
|
.rack-title {
|
|
margin: 0;
|
|
padding: 6px 9px;
|
|
color: #fff;
|
|
background: #263442;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.map-shelf {
|
|
display: grid;
|
|
grid-template-columns: 78px minmax(0, 1fr);
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.map-shelf:first-of-type {
|
|
border-top: 0;
|
|
}
|
|
|
|
.shelf-title {
|
|
margin: 0;
|
|
padding: 7px;
|
|
color: #40505f;
|
|
background: #f3f5f7;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.position-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
|
|
gap: 4px;
|
|
padding: 5px;
|
|
}
|
|
|
|
.map-position {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-rows: auto auto auto auto;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
min-height: 84px;
|
|
padding: 6px;
|
|
border: 1px solid #8e9ba8;
|
|
border-left: 3px solid #758493;
|
|
border-radius: 4px;
|
|
color: var(--ink);
|
|
background: #fff;
|
|
text-align: left;
|
|
}
|
|
|
|
button.map-position {
|
|
cursor: pointer;
|
|
}
|
|
|
|
button.map-position:hover {
|
|
border-color: #40505f;
|
|
background: #f8fafb;
|
|
}
|
|
|
|
.map-position[data-selected="true"] {
|
|
box-shadow: 0 0 0 3px var(--focus);
|
|
}
|
|
|
|
.map-position[data-filtered="true"] {
|
|
opacity: .28;
|
|
filter: grayscale(1);
|
|
}
|
|
|
|
.map-position[data-problems-muted="true"] {
|
|
opacity: .16;
|
|
filter: grayscale(.8);
|
|
}
|
|
|
|
.map-position[data-selected="true"] {
|
|
opacity: 1;
|
|
filter: none;
|
|
}
|
|
|
|
.map-position[data-problem="true"] {
|
|
border-left-width: 5px;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.map-position[data-measurement="true"]::after {
|
|
position: absolute;
|
|
right: auto;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: var(--relative-percent);
|
|
height: 4px;
|
|
background: #176b9a;
|
|
content: "";
|
|
}
|
|
|
|
.map-position[data-status="online"] { border-left-color: #658675; }
|
|
.map-position[data-status="offline"] { border-left-color: #b42318; background: #fff5f4; }
|
|
.map-position[data-status="unstable"] { border-left-color: #9a5b00; background: #fff9ed; }
|
|
.map-position[data-status="repair"] { border-left-color: #6b4ca5; background: #f7f3fc; }
|
|
.map-position[data-status="spare"] { border-left-color: #1677b8; background: #f1f8fc; }
|
|
.map-position[data-status="retired"] { border-left-color: #4d5660; background: #eef0f2; }
|
|
.map-position[data-status="empty"] { min-height: 56px; border-style: dashed; border-left-color: #aeb8c2; color: #687785; background: transparent; opacity: .62; }
|
|
.map-position[data-status="expected"] { border-left-color: #996600; background: #fff9e8; }
|
|
.map-position[data-status="conflict"] { border-left-color: #b42318; background: #fff0ee; }
|
|
.map-position[data-status="blocked"] { border-left-color: #4d5660; background: #e5e8eb; }
|
|
.map-position[data-status="switch"] { border-left-color: #28706d; background: #eff8f7; }
|
|
.map-position[data-status="restricted"] { border-left-color: #596675; background: #f3f5f7; }
|
|
|
|
.position-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 6px;
|
|
}
|
|
|
|
.position-label,
|
|
.position-miner,
|
|
.position-value,
|
|
.position-freshness {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.position-label { flex: 1 1 auto; min-width: 0; font-size: 10px; line-height: 1.2; }
|
|
.position-miner { font-size: 11px; font-weight: 750; line-height: 1.2; }
|
|
.position-value { color: #334252; font-size: 10px; font-variant-numeric: tabular-nums; }
|
|
.position-freshness { color: var(--muted); font-size: 9px; }
|
|
|
|
.map-inspector-v1 {
|
|
position: sticky;
|
|
top: 12px;
|
|
align-self: start;
|
|
min-width: 0;
|
|
max-height: calc(100vh - 90px);
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
border-left: 1px solid var(--line);
|
|
background: #fff;
|
|
}
|
|
|
|
.icon-button {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.status-callout {
|
|
padding: 10px;
|
|
border-left: 4px solid #758493;
|
|
background: #f3f5f7;
|
|
font-size: 13px;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.status-callout[data-status="online"] { border-color: var(--good); }
|
|
.status-callout[data-status="offline"] { border-color: var(--danger); }
|
|
.status-callout[data-status="repair"] { border-color: #6b4ca5; }
|
|
|
|
.inspector-details {
|
|
grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.inspector-details dd {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.command-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 42px;
|
|
padding: 8px 15px;
|
|
border: 1px solid #1b5f89;
|
|
border-radius: 5px;
|
|
color: #fff;
|
|
background: #176b9a;
|
|
text-decoration: none;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.unplaced-section {
|
|
padding: 14px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
#mapUnplaced,
|
|
.legacy-position-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.legacy-position-entry {
|
|
display: grid;
|
|
gap: 7px;
|
|
padding: 10px;
|
|
border: 1px solid var(--line);
|
|
background: #fff;
|
|
}
|
|
|
|
.legacy-position-path {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.unplaced-miner {
|
|
display: grid;
|
|
gap: 4px;
|
|
padding: 10px;
|
|
border-left: 4px solid #758493;
|
|
background: #f3f5f7;
|
|
font-size: 12px;
|
|
}
|
|
|
|
@media (max-width: 1180px) {
|
|
.map-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.map-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.mine-map-workspace { grid-template-columns: 1fr; }
|
|
.map-inspector-v1 { position: static; max-height: none; border-top: 1px solid var(--line); border-left: 0; }
|
|
}
|
|
|
|
@media (max-width: 680px) {
|
|
.map-context-head,
|
|
.map-status-band { align-items: flex-start; flex-direction: column; }
|
|
.map-control-grid,
|
|
.map-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.map-search { grid-column: 1 / -1; }
|
|
.map-problems-control { min-height: 44px; }
|
|
.map-viewport-v1 { max-height: none; padding: 9px; }
|
|
.map-shelf { grid-template-columns: 1fr; }
|
|
.shelf-title { position: sticky; left: 0; z-index: 1; }
|
|
.position-grid { grid-template-columns: repeat(2, minmax(108px, 1fr)); overflow-x: auto; }
|
|
.map-inspector-v1 { position: fixed; inset: 0; z-index: 80; max-height: none; overflow-y: auto; }
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.map-control-grid,
|
|
.map-filter-grid { grid-template-columns: 1fr; }
|
|
.map-search { grid-column: auto; }
|
|
.position-grid { grid-template-columns: repeat(2, minmax(104px, 1fr)); }
|
|
}
|
|
|
|
/* Fleet operations */
|
|
.fleet-panel { padding: 14px; }
|
|
.fleet-filters {
|
|
display: grid;
|
|
grid-template-columns: minmax(220px, 1.6fr) repeat(5, minmax(130px, 1fr));
|
|
align-items: end;
|
|
gap: 9px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.fleet-filters .field { min-width: 0; }
|
|
.fleet-filters .field input,
|
|
.fleet-filters .field select { min-height: 38px; }
|
|
.fleet-search { grid-column: span 2; }
|
|
.check-control {
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 38px;
|
|
gap: 7px;
|
|
color: #40505f;
|
|
font-size: 12px;
|
|
font-weight: 750;
|
|
}
|
|
.check-control input { width: 17px; height: 17px; }
|
|
.fleet-filter-actions { display: flex; gap: 7px; }
|
|
.fleet-filter-actions .quiet-button { color: var(--ink); }
|
|
.fleet-table { min-width: 1320px; }
|
|
.fleet-table th,
|
|
.fleet-table td { padding: 8px 9px; }
|
|
.fleet-table th { white-space: nowrap; }
|
|
.fleet-row { border-left: 4px solid transparent; }
|
|
.fleet-row[data-status="offline"] { border-left-color: #b42318; background: #fff5f4; }
|
|
.fleet-row[data-status="unstable"] { border-left-color: #9a5b00; background: #fff9ed; }
|
|
.fleet-row[data-status="repair"] { border-left-color: #6b4ca5; background: #f7f3fc; }
|
|
.fleet-row[data-status="unknown"] { border-left-color: #596675; background: #f7f8fa; }
|
|
.fleet-row[data-status="online"],
|
|
.fleet-row[data-status="spare"],
|
|
.fleet-row[data-status="retired"] { border-left-color: #c6ced5; }
|
|
.fleet-stack { display: grid; gap: 2px; }
|
|
.fleet-primary { font-weight: 700; }
|
|
.fleet-status { font-weight: 750; white-space: nowrap; }
|
|
.fleet-status::before {
|
|
content: "";
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
margin-right: 7px;
|
|
border: 2px solid currentColor;
|
|
border-radius: 50%;
|
|
}
|
|
.fleet-status[data-status="online"] { color: #315c45; }
|
|
.fleet-status[data-status="offline"] { color: #8f1d14; }
|
|
.fleet-status[data-status="unstable"] { color: #754600; }
|
|
.fleet-status[data-status="repair"] { color: #523884; }
|
|
.fleet-status[data-status="unknown"] { color: #354351; }
|
|
.fleet-status[data-status="spare"] { color: #075b91; }
|
|
.fleet-status[data-status="retired"] { color: #4d5660; }
|
|
.fleet-uuid { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
|
|
.fleet-location { min-width: 180px; max-width: 260px; }
|
|
.fleet-actions { display: grid; gap: 6px; white-space: nowrap; }
|
|
.quiet-link { color: #40505f; font-weight: 700; }
|
|
.fleet-result-summary { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
|
|
.fleet-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 9px;
|
|
margin-top: 12px;
|
|
color: #40505f;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
.fleet-pagination select { min-height: 34px; }
|
|
|
|
@media (max-width: 1180px) {
|
|
.fleet-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.fleet-search { grid-column: span 2; }
|
|
}
|
|
|
|
@media (max-width: 680px) {
|
|
.fleet-panel { padding: 12px; }
|
|
.fleet-panel .panel-head { align-items: flex-start; }
|
|
.fleet-filters { grid-template-columns: 1fr 1fr; }
|
|
.fleet-search { grid-column: 1 / -1; }
|
|
.fleet-filter-actions { grid-column: 1 / -1; }
|
|
.fleet-filter-actions > * { flex: 1; }
|
|
.fleet-table { min-width: 0; }
|
|
.fleet-table tbody { gap: 12px; }
|
|
.fleet-table tr { border-left-width: 4px; padding: 8px; }
|
|
.fleet-table td {
|
|
display: grid;
|
|
grid-template-columns: minmax(95px, .8fr) minmax(0, 1.6fr);
|
|
gap: 10px;
|
|
padding: 7px 5px;
|
|
}
|
|
.fleet-table td::before {
|
|
content: attr(data-label);
|
|
color: #40505f;
|
|
font-size: 11px;
|
|
font-weight: 750;
|
|
}
|
|
.fleet-location { min-width: 0; max-width: none; }
|
|
.fleet-actions { white-space: normal; }
|
|
.fleet-pagination { justify-content: space-between; flex-wrap: wrap; }
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.fleet-filters { grid-template-columns: 1fr; }
|
|
.fleet-search, .fleet-filter-actions { grid-column: auto; }
|
|
.fleet-table td { grid-template-columns: 88px minmax(0, 1fr); }
|
|
}
|
|
|
|
/* Repair Center */
|
|
.repair-center { padding: 14px; }
|
|
.repair-summary {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(100px, 160px));
|
|
gap: 8px;
|
|
margin: 10px 0 12px;
|
|
}
|
|
.repair-summary > div {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
border-left: 3px solid var(--accent);
|
|
padding: 7px 9px;
|
|
background: #f6f8fa;
|
|
}
|
|
.repair-summary span { color: var(--muted); font-size: 12px; }
|
|
.repair-filters {
|
|
display: grid;
|
|
grid-template-columns: minmax(230px, 1.6fr) repeat(6, minmax(125px, 1fr));
|
|
align-items: end;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.repair-filters .field { min-width: 0; }
|
|
.repair-filters input,
|
|
.repair-filters select { min-height: 38px; }
|
|
.repair-search { grid-column: span 2; }
|
|
.repair-filter-actions { display: flex; gap: 7px; }
|
|
.repair-filter-actions .quiet-button,
|
|
.repair-pagination .quiet-button,
|
|
.repair-row-actions .quiet-button { color: var(--ink); background: #fff; }
|
|
.repair-table { min-width: 1260px; }
|
|
.repair-table th,
|
|
.repair-table td { padding: 8px 9px; vertical-align: top; }
|
|
.repair-row[data-source="legacy"] { border-left: 4px solid #8390a0; }
|
|
.repair-row[data-source="modular"] { border-left: 4px solid #176b9a; }
|
|
.repair-row[data-active="false"] { opacity: .78; }
|
|
.repair-miner { display: grid; gap: 3px; min-width: 150px; }
|
|
.source-label { color: var(--muted); font-size: 11px; font-weight: 700; }
|
|
.repair-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-weight: 800;
|
|
}
|
|
.repair-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #718096; }
|
|
.repair-status[data-status="waiting_for_parts"]::before,
|
|
.repair-status[data-status="waiting_parts"]::before,
|
|
.repair-status[data-status="needs_followup"]::before { background: var(--warn); }
|
|
.repair-status[data-status="completed"]::before { background: var(--good); }
|
|
.repair-status[data-status="failed"]::before,
|
|
.repair-status[data-status="cancelled"]::before { background: var(--danger); }
|
|
.repair-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.quiet-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 40px;
|
|
border: 1px solid #8390a0;
|
|
border-radius: 5px;
|
|
padding: 8px 11px;
|
|
background: #fff;
|
|
text-decoration: none;
|
|
}
|
|
.repair-result-summary { color: var(--muted); font-size: 13px; }
|
|
.repair-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 12px; }
|
|
.repair-inspector {
|
|
position: fixed;
|
|
inset: 68px 0 0 auto;
|
|
z-index: 70;
|
|
width: min(520px, 100%);
|
|
overflow-y: auto;
|
|
border-left: 1px solid var(--line);
|
|
padding: 18px;
|
|
background: var(--surface);
|
|
box-shadow: -10px 0 26px rgb(15 23 42 / 18%);
|
|
}
|
|
.inspector-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
|
|
.repair-detail-section { padding: 14px 0; border-top: 1px solid var(--line); }
|
|
.repair-detail-section h3 { margin: 0 0 9px; font-size: 16px; }
|
|
.repair-timeline,
|
|
.repair-parts-list { display: grid; gap: 9px; margin: 0; padding-left: 22px; }
|
|
.repair-timeline li,
|
|
.repair-parts-list li { padding: 7px 0; }
|
|
.repair-timeline li > span,
|
|
.repair-parts-list li > span { display: block; }
|
|
.voided-part { text-decoration: line-through; }
|
|
.repair-action-form { display: grid; gap: 8px; margin: 10px 0; }
|
|
.repair-action-form input,
|
|
.repair-action-form select,
|
|
.repair-action-form textarea { width: 100%; min-height: 40px; }
|
|
.repair-action-form textarea { min-height: 78px; resize: vertical; }
|
|
.danger-button {
|
|
min-height: 40px;
|
|
border: 1px solid var(--danger);
|
|
border-radius: 5px;
|
|
padding: 8px 11px;
|
|
color: var(--danger);
|
|
background: #fff;
|
|
font-weight: 750;
|
|
cursor: pointer;
|
|
}
|
|
.state-inline-error { color: var(--danger); font-weight: 700; }
|
|
|
|
@media (max-width: 980px) {
|
|
.repair-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
.repair-search { grid-column: span 2; }
|
|
}
|
|
|
|
@media (max-width: 680px) {
|
|
.repair-center { padding: 12px; }
|
|
.repair-summary { grid-template-columns: repeat(3, 1fr); }
|
|
.repair-summary > div { display: grid; gap: 2px; }
|
|
.repair-filters { grid-template-columns: 1fr 1fr; }
|
|
.repair-search, .repair-filter-actions { grid-column: 1 / -1; }
|
|
.repair-filter-actions > * { flex: 1; }
|
|
.repair-table { min-width: 0; }
|
|
.repair-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
|
|
.repair-table tbody { display: grid; gap: 12px; }
|
|
.repair-table tr { display: block; border: 1px solid var(--line); padding: 8px; }
|
|
.repair-table td { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px; border: 0; }
|
|
.repair-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 800; }
|
|
.repair-pagination { justify-content: space-between; flex-wrap: wrap; }
|
|
.repair-inspector { inset: 0; width: 100%; }
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
.repair-filters { grid-template-columns: 1fr; }
|
|
.repair-search, .repair-filter-actions { grid-column: auto; }
|
|
.repair-table td { grid-template-columns: 90px minmax(0, 1fr); }
|
|
}
|