/* mail.mediapaas.tv panel - additions on top of the MediaPaaS "Elegant" theme (style.css) */
.side-tag{margin:-8px 20px 8px;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:1px;font-weight:600}

/* live indicator */
.live{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);font-weight:600;cursor:pointer;user-select:none}
.live i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(4,170,109,.25);animation:pulse 2s ease-in-out infinite}
.live.paused i{background:#8795a1;box-shadow:none;animation:none}
.live.err i{background:var(--red);box-shadow:0 0 0 3px rgba(244,67,54,.25);animation:none}

/* section blocks */
.block{margin-bottom:30px}
.card h3{margin-bottom:12px}
.card-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}.card-head h3{margin:0}
.card-head .grow + *{margin-left:auto}
.sub{color:var(--muted);font-size:13px;font-weight:400}
.cols-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(460px,100%),1fr));gap:16px}
.cols-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px}
.stats.six{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.stat .note-line{color:var(--muted);font-size:13px;margin-top:2px}
.stat .v small{font-size:15px;font-weight:600;color:var(--muted);margin-left:3px}
.stat.mini{padding:14px 16px}.stat.mini .v{font-size:23px}
.stat .ico{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex:none;background:rgba(4,170,109,.15);color:var(--green)}
.stat .ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.stat .ico.p{background:rgba(151,99,246,.18);color:#c9b1ff}.stat .ico.y{background:rgba(255,244,163,.13);color:var(--yellow)}
.stat .ico.r{background:rgba(244,67,54,.17);color:#ff9a92}.stat .ico.b{background:rgba(33,150,243,.17);color:#8cc8ff}
.stat a.stretch{position:absolute;inset:0;z-index:2}
.stat.link{cursor:pointer;transition:border-color .15s,transform .15s}.stat.link:hover{border-color:var(--green);transform:translateY(-2px)}

/* charts */
.chart{position:relative;width:100%}
.chart svg{display:block;width:100%;overflow:visible}
.chart .grid-l{stroke:var(--line);stroke-width:1;shape-rendering:crispEdges}
.chart .axis{fill:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.chart .area{opacity:.18}
.chart .ln{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.chart .hover-l{stroke:var(--muted);stroke-dasharray:3 3}
.chart .bar-r{shape-rendering:crispEdges}
.chart-tip{position:absolute;pointer-events:none;background:var(--nav);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:12.5px;box-shadow:0 10px 26px rgba(0,0,0,.45);white-space:nowrap;z-index:4;min-width:120px}
.chart-tip b{display:block;margin-bottom:4px;font-size:12px;color:var(--muted);font-weight:600}
.chart-tip div{display:flex;align-items:center;gap:7px;justify-content:space-between}.chart-tip span.v{font-weight:700;font-variant-numeric:tabular-nums;margin-left:14px}
.chart-tip[hidden]{display:none}
.legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted);margin-top:10px}
.legend span{display:inline-flex;align-items:center;gap:7px}
.legend i,.chart-tip i{width:10px;height:10px;border-radius:3px;display:inline-block;flex:none}
.legend button{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.legend button.off{opacity:.4}.legend button:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:4px}

/* series colours (Elegant palette) */
.c-green{color:var(--green);stroke:var(--green);fill:var(--green);background:var(--green)}
.c-purple{color:var(--purple);stroke:var(--purple);fill:var(--purple);background:var(--purple)}
.c-blue{color:var(--blue);stroke:var(--blue);fill:var(--blue);background:var(--blue)}
.c-yellow{color:#e8d873;stroke:#e8d873;fill:#e8d873;background:#e8d873}
.c-red{color:var(--red);stroke:var(--red);fill:var(--red);background:var(--red)}
.c-mint{color:#7fd8b4;stroke:#7fd8b4;fill:#7fd8b4;background:#7fd8b4}
.c-pink{color:var(--pink);stroke:var(--pink);fill:var(--pink);background:var(--pink)}
.c-orange{color:#ff9f5a;stroke:#ff9f5a;fill:#ff9f5a;background:#ff9f5a}

/* segmented control */
.seg{display:inline-flex;background:var(--bg2);border:1px solid var(--line);border-radius:25px;padding:3px;gap:2px}
.seg button{font:inherit;font-size:13px;font-weight:600;border:0;background:none;color:var(--muted);padding:5px 14px;border-radius:20px;cursor:pointer}
.seg button:hover{color:#fff}.seg button.on{background:var(--green);color:#fff}

/* meters */
.meter{margin:10px 0 0}
.meter .mt{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;margin-bottom:5px}
.meter .mt b{font-weight:600}.meter .mt span{color:var(--muted);font-variant-numeric:tabular-nums}
.meter .bar{height:8px}.bar i{transition:width .5s ease}.bar i.warm{background:#e8d873}.bar i.p{background:var(--purple)}.bar i.b{background:var(--blue)}
.cores{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;margin-top:14px}
.core{background:var(--bg2);border-radius:8px;padding:8px;text-align:center;font-size:12px;color:var(--muted)}
.core b{display:block;font-size:15px;color:#fff;font-variant-numeric:tabular-nums}
.core .bar{height:4px;margin-top:6px}

/* tables */
.tbl td,.tbl th{padding:8px 10px;font-size:14px;vertical-align:middle}
.tbl td.num,.tbl th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tbl td.nowrap{white-space:nowrap}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr:hover td{background:rgba(255,255,255,.025)}
.tbl .addr{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tbl .det{max-width:360px;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tbl td .sub{display:block;font-size:12.5px}
.svc-name{display:flex;flex-direction:column;line-height:1.3}.svc-name b{font-weight:600}.svc-name code{font-size:12px;color:var(--muted)}
.dir{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;font-size:13px;font-weight:700}
.dir.in{background:rgba(4,170,109,.16);color:#5fe3b0}.dir.out{background:rgba(151,99,246,.2);color:#c9b1ff}

/* ranked lists */
.rank{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.rank li{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;font-size:14px}
.rank .k{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank .n{font-weight:700;font-variant-numeric:tabular-nums}
.rank .bar{grid-column:1/-1;height:4px}
.rank-empty{color:var(--muted);font-size:14px;padding:6px 0}

/* key/value grid */
.kv2{display:grid;grid-template-columns:auto 1fr;gap:7px 16px;font-size:14px;margin:0}.kv2 dt{color:var(--muted)}.kv2 dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

/* filter input in card heads */
.search{width:auto!important;min-width:180px;padding:6px 12px!important;border-radius:20px!important;font-size:13.5px!important}

/* skeleton while loading */
.loading{display:grid;place-items:center;padding:80px 0;color:var(--muted)}
.loading i{width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--green);animation:spin .9s linear infinite;margin-bottom:12px}
@keyframes spin{to{transform:rotate(360deg)}}

.hero .hello small{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-top:4px}
.dot-ok,.dot-bad,.dot-warn,.dot-off{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px;vertical-align:1px}
.dot-ok{background:var(--green);box-shadow:0 0 0 3px rgba(4,170,109,.22)}.dot-bad{background:var(--red);box-shadow:0 0 0 3px rgba(244,67,54,.22)}
.dot-warn{background:var(--yellow)}.dot-off{background:#8795a1}
.mt0{margin-top:0}.mb0{margin-bottom:0}.right{text-align:right}

@media(max-width:820px){.search{min-width:0;width:100%!important}.tbl .addr{max-width:170px}.tbl .det{max-width:200px}.top-right .pill{display:none}}
