/* 2026-12-02  Argus dashboard v3.9 (update icons, tile Terminal link) · v2.2 -- small additions on top of Bootstrap 5.3 */
:root { --argus-ok: var(--bs-success); --argus-warn: var(--bs-warning); --argus-bad: var(--bs-danger); }
body { font-size: .925rem; }
.tiny { font-size: .7rem; }
.k { font-family: var(--bs-font-monospace); font-size: .72rem; color: var(--bs-secondary-color); font-weight: 400; }
.t { color: var(--bs-secondary-color); font-size: .78rem; }

/* tiles */
.tile { transition: transform .12s ease, box-shadow .12s ease; overflow: hidden; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--bs-box-shadow) !important; }
.tile-bar { height: 5px; }
.stat .fs-3 { line-height: 1.1; }

/* panels */
.panel .chev { display: inline-block; transition: transform .15s ease; color: var(--bs-secondary-color); }
.panel.closed .panel-toggle .chev { transform: rotate(-90deg); }
.panel .card-header { background: var(--bs-tertiary-bg); }

/* check tables */
table.checks td { vertical-align: top; }
table.checks td.i { width: 1.8rem; }
table.checks td.n { width: 26%; font-weight: 600; }
table.checks td.d { width: 32%; color: var(--bs-secondary-color); font-size: .8rem; }
tr.chk.st-bad > td { background: rgba(var(--bs-danger-rgb), .08); }
tr.chk.st-warn > td { background: rgba(var(--bs-warning-rgb), .12); }
tr.chk.st-info > td.m { color: var(--bs-secondary-color); }
tr.has-det { cursor: pointer; }
tr.has-det:hover > td { background: rgba(var(--bs-primary-rgb), .06); }
tr.has-det:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.det-hint { font-size: .75rem; color: var(--bs-primary); margin-top: .1rem; }
.det-hint .chev { display: inline-block; transition: transform .15s ease; }
tr.has-det.open .det-hint .chev { transform: rotate(90deg); }
tr.det { display: none; }
tr.det.show { display: table-row; }
tr.det > td { border-top: 0; background: var(--bs-tertiary-bg); }
tr.det pre { white-space: pre-wrap; word-break: break-word; font-size: .78rem; max-height: 22rem; overflow: auto; }
tr.flash > td { animation: argusflash 2.5s ease-out 2; }
@keyframes argusflash { 0% { background: rgba(var(--bs-info-rgb), .45); } 100% { background: transparent; } }

/* graphs */
.chart .cv { position: relative; height: 180px; }
.charts canvas { cursor: grab; touch-action: pan-y; }
body.dragging, body.dragging .charts canvas { cursor: grabbing; user-select: none; }
a.jump { text-decoration: none; color: inherit; border-bottom: 1px dotted var(--bs-secondary-color); }
a.jump:hover { color: var(--bs-primary); }
.chart[hidden] { display: none !important; }
.pick-list { min-width: 18rem; max-height: 60vh; overflow: auto; }

/* live indicator */
.live-dot .dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bs-success); vertical-align: middle; opacity: .6; }
.live-dot.beat .dot { opacity: 1; box-shadow: 0 0 0 .25rem rgba(var(--bs-success-rgb), .3); }

.print-only { display: none; }
@media print {
  body { font-size: 10pt; background: #fff !important; }
  .no-print, .tooltip, .toast-container, .modal { display: none !important; }
  .print-only { display: block; }
  .container-xl { max-width: none; padding: 0; }
  .card { break-inside: avoid; box-shadow: none !important; }
  .panel > .collapse { display: block !important; }
  tr.det { display: none !important; }
  tr.det.show { display: table-row !important; }
  .chart .cv { height: 150px; }
  a { color: #000 !important; text-decoration: none; }
  .tile:hover { transform: none; }
}

/* v2.9: footer always visible at the bottom (names the server on server pages) */
footer.argus-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; padding: .35rem .75rem; background: var(--bs-body-bg); border-top: 1px solid var(--bs-border-color); }
body { padding-bottom: 2.6rem; }
.toast-container { bottom: 2.2rem !important; }

/* v2.9.2: Copy button on details blocks */
tr.det td .det-copy { float: right; margin: 0 0 .25rem .5rem; font-size: .75rem; }

/* v3.9: update icons + small Terminal link on the server tiles (sits outside the tile's link) */
.upd-ico { cursor: help; }
.upd-ico.upd-auto { opacity: .45; }
.tile-term { position: absolute; right: .75rem; bottom: .55rem; z-index: 2; font-size: .75rem; padding: .05rem .4rem; border: 1px solid var(--bs-border-color); border-radius: .375rem; background: var(--bs-body-bg); color: var(--bs-secondary-color); text-decoration: none; }
.tile.has-term .card-body { padding-bottom: 2rem; }
.tile-term:hover { color: var(--bs-body-color); border-color: var(--bs-secondary); }
