/* Account-only, read-only operations dashboard. */
.main.monitor-wide{max-width:1160px}
.admin-tabs{margin:22px 0 0}
.monitor-panel{background:white;border-color:var(--border);padding:clamp(14px,3vw,25px)}
.monitor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;flex-wrap:wrap}
.monitor-head h2{margin:0}
.monitor-head .hint{margin:2px 0 0}
.monitor-tools{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap}
.monitor-tools label{font-size:12px;font-weight:600;color:var(--muted)}
.monitor-tools select{display:block;margin-top:3px;border:1px solid var(--border);border-radius:9px;padding:9px 12px;background:white;font:inherit;color:var(--ink)}
.monitor-tools .secondary{margin:0}
.monitor-message{font-size:12px;color:var(--muted);margin:13px 0;min-height:20px}
.monitor-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 25px}
.monitor-metric{min-width:0;background:#f4f7f5;border:1px solid #e6ede9;border-radius:12px;padding:12px}
.monitor-metric .monitor-muted{display:block;color:var(--muted);font-size:12px;line-height:1.3}
.monitor-metric strong{display:block;margin-top:6px;font-size:23px;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.monitor-panel h3{font-size:16px;margin:22px 0 10px}
.monitor-source{border:1px solid var(--border);border-radius:11px;margin:8px 0;background:white;overflow:hidden}
.monitor-source summary{display:flex;cursor:pointer;align-items:center;justify-content:space-between;gap:10px;padding:14px 17px;list-style:none}
.monitor-source summary::-webkit-details-marker{display:none}
.monitor-source summary:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
.monitor-source summary::after{content:'⌄';color:#6c8579;font-size:21px;margin-left:2px}
.monitor-source[open] summary::after{transform:rotate(180deg)}
.monitor-source-name{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:180px}
.monitor-source-name strong{font-size:14px}
.monitor-source-stats{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted);margin-left:auto;white-space:nowrap}
.monitor-state{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:650;padding:4px 8px;border-radius:99px;white-space:nowrap}
.monitor-state::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor}
.monitor-working{background:#e9f6ed;color:#187348}
.monitor-waiting{background:#edf1f4;color:#59717c}
.monitor-warning{background:#fff2dc;color:#a66e15}
.monitor-error{background:#fdece9;color:#ac443c}
.monitor-disabled{background:#eef0f2;color:#676d72}
.monitor-source-body{border-top:1px solid var(--border);padding:8px 16px 13px}
.monitor-line{display:flex;justify-content:space-between;gap:16px;font-size:12px;padding:6px 0;border-bottom:1px solid #eef2f0}
.monitor-line:last-child{border-bottom:none}
.monitor-line span{color:var(--muted)}
.monitor-line strong{font-weight:600;text-align:right;overflow-wrap:anywhere;min-width:0}
.monitor-enrichment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.monitor-service{min-width:0;background:white;border:1px solid var(--border);border-radius:12px;padding:16px}
.monitor-service-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}
.monitor-service h4{margin:0;font-size:15px}
.monitor-service-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.monitor-service-metrics .monitor-metric{padding:10px}
.monitor-service-metrics .monitor-metric strong{font-size:19px}
.monitor-chart{background:white;border:1px solid var(--border);border-radius:12px;padding:16px 16px 10px}
.monitor-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--muted)}
.monitor-legend span::before{content:'';display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px;background:var(--key-color)}
.monitor-legend-gis_torgi{--key-color:#3372ad;background-color:var(--key-color)}
.monitor-legend span.monitor-legend-gis_torgi,.monitor-legend span.monitor-legend-torggroup,.monitor-legend span.monitor-legend-cdt,.monitor-legend span.monitor-legend-mets,.monitor-legend span.monitor-legend-nistp,.monitor-legend span.monitor-legend-fabrikant,.monitor-legend span.monitor-legend-alfalot,.monitor-legend span.monitor-legend-rad,.monitor-legend span.monitor-legend-utender,.monitor-legend span.monitor-legend-ausib{background:transparent}
.monitor-legend-torggroup{--key-color:#51a88a;background-color:var(--key-color)}
.monitor-legend-cdt{--key-color:#c6a15c;background-color:var(--key-color)}
.monitor-legend-mets{--key-color:#8b86bb;background-color:var(--key-color)}
.monitor-legend-nistp{--key-color:#c96f5c;background-color:var(--key-color)}
.monitor-bars{height:168px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:12px;margin-top:8px}
.monitor-day{display:flex;align-items:center;flex-direction:column;min-width:0}
.monitor-day-total{font-size:12px}
.monitor-bar-wrap{height:128px;width:100%;display:flex;align-items:end;justify-content:center}
.monitor-bar{max-width:58px;width:100%;display:flex;flex-direction:column;border-radius:5px 5px 0 0;overflow:hidden;background:#ecf0ed}
.monitor-segment{min-height:1px}
.monitor-day small{font-size:10px;color:var(--muted);margin-top:4px}
@media(max-width:740px){.monitor-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.monitor-enrichment{grid-template-columns:1fr}.monitor-source summary{flex-wrap:wrap}.monitor-source-stats{width:100%;justify-content:flex-start}.monitor-source summary::after{margin-left:auto;order:1}.monitor-bars{gap:5px}.monitor-line{gap:9px}}

.monitor-legend-fabrikant{--key-color:#4b879a;background-color:var(--key-color)}

.monitor-legend-alfalot{--key-color:#91714f;background-color:var(--key-color)}
.monitor-legend-rad{--key-color:#326d89;background-color:var(--key-color)}

.monitor-legend-utender{--key-color:#367d79;background-color:var(--key-color)}
.monitor-legend-centerr{--key-color:#a45f8b;background-color:var(--key-color)}
.monitor-legend span.monitor-legend-centerr{background:transparent}
.monitor-legend-ausib{--key-color:#d17c35;background-color:var(--key-color)}


.monitor-legend-tenderone{--key-color:#78609b;background-color:var(--key-color)}
