/* WizzAI Admin. Everything else comes from WizzAI's own /styles.css (same tokens,
   shell, cards, tiles, pills and charts); this file only adds what the site has no
   piece for: the "Admin" tag, tables, meters, the uptime strip and chart tooltips. */

.admin-tag {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: middle;
}
.brand-lg .admin-tag {
  font-size: 13px;
}
.admin-updated {
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
}
.side-account {
  cursor: default;
}
.side-account:hover {
  background: none;
}
#me-icon .icon {
  width: 20px;
  height: 20px;
  color: var(--text-2);
}

/* Sections inside a page */
.admin-stack {
  display: grid;
  gap: 24px;
}
.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 900px) {
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}
.admin-note {
  font-size: 13px;
  color: var(--text-3);
}

/* Tables: the same look as the site's plan table. */
.table-scroll {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th,
.data-table td {
  padding: 11px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}
.data-table thead th {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover td {
  background: var(--hover);
}
.data-table .r {
  text-align: right;
}
.data-table th.sort {
  cursor: pointer;
  user-select: none;
}
.data-table th.sort:hover {
  color: var(--text);
}
.data-table .err {
  min-width: 240px;
  white-space: normal;
  color: var(--bad);
  font-size: 13px;
}
.data-table .empty {
  padding: 40px 18px;
  text-align: center;
  color: var(--text-3);
}
.who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.who small {
  font-size: 12.5px;
  color: var(--text-3);
}
.dim {
  color: var(--text-3);
}
.plogos {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
}
.plogos img {
  width: 20px;
  height: 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
}

/* Meters: CPU, memory, disk */
.meters {
  display: grid;
  gap: 16px;
}
.meter-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--text-2);
}
.meter-row b {
  font-weight: 600;
  color: var(--text);
}
.meter {
  height: 8px;
  border-radius: var(--r);
  background: var(--hover);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: var(--r);
  background: var(--accent);
}
.meter i.warn {
  background: var(--warn);
}
.meter i.bad {
  background: var(--bad);
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}
.kv dt {
  color: var(--text-2);
}
.kv dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Uptime: 96 slots of 15 minutes */
.strip {
  display: grid;
  grid-template-columns: repeat(96, minmax(0, 1fr));
  gap: 2px;
  height: 32px;
}
.strip span {
  border-radius: 2px;
  background: var(--ok);
}
.strip span.part {
  background: var(--warn);
}
.strip span.down {
  background: var(--bad);
}
.strip span.none {
  background: var(--hover);
}
.strip-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.svc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 24px;
}

.chart .hit {
  fill: transparent;
}
.chart g:hover .chart-bar,
.chart g:hover .chart-bar-2 {
  opacity: 0.8;
}

.admin-tip {
  position: fixed;
  z-index: 50;
  max-width: 260px;
  padding: 7px 10px;
  border-radius: var(--r);
  background: var(--text);
  color: var(--bg);
  font-size: 12.5px;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: var(--shadow-pop);
}

@media (max-width: 720px) {
  .admin-updated {
    display: none;
  }
}
