/* Device cockpit table — 2026-11-03. Loaded after device-grid.css. */
.dg-grid .tabulator {
  width: 100%;
  border: 0;
  background: transparent;
}
.dg-grid .tabulator-header .tabulator-col {
  background: #f6f8fa;
  border-bottom: 1px solid rgba(24, 36, 51, .10);
}
.dg-grid .tabulator-col .tabulator-col-title {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #64748b;
  text-transform: uppercase;
}
.dg-grid .tabulator-row {
  min-height: 62px;
  border-bottom: 1px solid rgba(24, 36, 51, .065);
  background: #fff;
}
.dg-grid .tabulator-row.dg-row-parent {
  min-height: 66px;
  background: #f8fafc;
}
.dg-grid .tabulator-row.dg-row-child {
  background: #fff;
}
.dg-grid .tabulator-row.dg-row-child:hover,
.dg-grid .tabulator-row.dg-row-parent:hover {
  background: #f3f8fb;
}
.dg-grid .tabulator-row .tabulator-cell {
  padding: 9px 14px;
  vertical-align: middle;
}
.dg-grid .dg-name-text {
  font-size: .94rem;
  font-weight: 650;
  letter-spacing: -.01em;
}
.dg-grid .dg-sub {
  margin-top: 2px;
  font-size: .72rem;
  color: #77869a;
  line-height: 1.35;
}
.dg-grid .dg-metric {
  display: inline-block;
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.015em;
  color: #1d2939;
}
.dg-grid .dg-cell-hashrate .dg-metric,
.dg-grid .dg-cell-shares .dg-metric {
  font-size: 1.06rem;
}
.dg-grid .dg-cell-coin .dg-badge,
.dg-grid .dg-coins .dg-badge {
  margin-right: 4px;
}
.dg-grid .dg-cell-today .dg-today {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef6f1;
  color: #1f6b4a;
  font-size: .82rem;
  font-weight: 650;
  white-space: nowrap;
}
.dg-grid .dg-cell-state .dg-badge {
  font-size: .74rem;
}
.dg-grid .dg-cell-schedule .dg-schedule {
  font-size: .82rem;
  line-height: 1.4;
}
.dg-grid .dg-cell-cost {
  font-variant-numeric: tabular-nums;
}
.dg-grid .dg-ops {
  gap: 6px;
}
@media (max-width: 1180px) {
  .dg-grid .tabulator-row .tabulator-cell {
    padding-left: 10px;
    padding-right: 10px;
  }
  .dg-grid .dg-metric {
    font-size: .96rem;
  }
}

/* 2026-11-04: one compact action cluster per row; no duplicate tree button. */
.dg-grid .dg-ops {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.dg-grid .dg-ops-cell {
  overflow: visible;
}
.dg-grid .dg-more {
  position: relative;
  display: inline-block;
}
.dg-grid .dg-more > summary {
  list-style: none;
  cursor: pointer;
  min-width: 34px;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}
.dg-grid .dg-more > summary::-webkit-details-marker { display: none; }
.dg-grid .dg-more > summary::marker { content: ""; }
.dg-grid .dg-more[open] > summary {
  background: #eef4f7;
  border-color: rgba(24, 36, 51, .14);
}
.dg-grid .dg-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 188px;
  padding: 5px;
  border: 1px solid rgba(24, 36, 51, .12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 36, 51, .14);
  text-align: left;
}
.dg-grid .dg-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #26384a;
  font-size: .84rem;
  text-align: left;
  white-space: nowrap;
}
.dg-grid .dg-menu button:hover,
.dg-grid .dg-menu button:focus-visible { background: #f1f6f8; }
.dg-grid .dg-menu button.dg-menu-danger { color: #b42318; }
.dg-grid .dg-menu button:disabled { opacity: .45; cursor: not-allowed; }
.dg-grid .dg-row-inactive .dg-name-text { color: #7a8795; }
.dg-grid .dg-row-inactive .dg-metric { color: #7a8795; }

/* 0.9.3: more breathing room for wide screens; ops menu stays anchored. */
.dg-grid .tabulator-row{min-height:70px}
.dg-grid .tabulator-row.dg-row-parent{min-height:74px}
.dg-grid .tabulator-row .tabulator-cell{padding:11px 18px}
.dg-grid .dg-ops{gap:8px}
.dg-grid .dg-name-text{font-size:1rem}
.dg-grid .dg-menu{min-width:200px;padding:6px}
.dg-grid .dg-menu button{padding:9px 11px}

/* 0.9.4: schedule column is one vertical block on parent and child rows.
   Each window is a nowrap chip, so the column never breaks a time range across
   lines or shows a different summary on the parent row. */
.dg-grid .dg-cell-schedule .dg-schedule{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  min-width:0;
  padding-right:16px;
  white-space:normal;
}
.dg-grid .dg-schedule .dg-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.dg-grid .dg-schedule-times{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:3px;min-width:0}
.dg-grid .dg-schedule-time{
  display:inline-block;
  padding:1px 3px;
  border:1px solid rgba(24,36,51,.10);
  border-radius:5px;
  background:#f7f9fb;
  color:#405267;
  font-size:.72rem;
  line-height:1.5;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.dg-grid .dg-cell-schedule .dg-plan-edit{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
}
@media (max-width:1180px){
  .dg-grid .dg-cell-schedule .dg-schedule{padding-right:20px}
  .dg-grid .dg-schedule-time{font-size:.72rem;padding:1px 4px}
}
