didaban-fleet-stats { display: block; pointer-events: auto; flex: 0 0 auto; }
didaban-fleet-stats[hidden] { display: none; }
.dd-stats { background: #fff; color: #142538; padding: 12px 14px 10px; border-block: 1px solid #e7ecf1; font: 12px/1.6 Tahoma, Arial, sans-serif; }
.dd-stats-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.dd-stats-heading > strong { font-size: 13px; }
.dd-stats-connection { font-size: 10px; color: #8a6528; }
.dd-stats-connection::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-inline-end: 5px; }
.dd-stats-connection[data-connected="yes"] { color: #177456; }
.dd-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.dd-stat { display: flex; flex-direction: column; align-items: stretch; text-align: start; font: inherit; cursor: pointer; color: inherit; border: 1px solid #e4eaf0; border-radius: 10px; padding: 6px 10px; background: #f7f9fc; min-width: 0; }
.dd-stat:hover { border-color: #b88a3b; }
.dd-stat[aria-pressed="true"] { outline: 2px solid #b88a3b; outline-offset: 1px; }
.dd-stat:focus-visible, .dd-stats-reset:focus-visible { outline: 3px solid #2869b5; outline-offset: 2px; }
.dd-stat:disabled { cursor: wait; opacity: .6; }
.dd-stats-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 8px; font-size: 10px; color: #536579; }
.dd-stats-reset { cursor: pointer; border: 0; border-radius: 4px; background: #f8f1e4; color: #825e23; font: inherit; padding: 3px 5px; }
.dd-stats-reset[hidden] { display: none; }
.dd-stat-label { color: #536579; font-size: 12px; white-space: nowrap; }
.dd-stat-value { font-size: 24px; line-height: 1.35; font-weight: 700; font-variant-numeric: tabular-nums; }
.dd-stat-total { background: #162b40; border-color: #162b40; color: #fff; }
.dd-stat-total .dd-stat-label { color: #d8e3ef; }
.dd-stat-online .dd-stat-value { color: #13835e; }
.dd-stat-offline .dd-stat-value { color: #b5484c; }
.dd-stat-moving .dd-stat-value { color: #2b68ad; }
.dd-stat-stopped .dd-stat-value { color: #9a712b; }
.dd-stat-unknown .dd-stat-value { color: #64748b; }
.dd-stats-note { margin: 8px 0 0; color: #6b7d8e; font-size: 10px; }
@media (max-height: 650px) {
  .dd-stats { padding-block: 7px; }
  .dd-stat { padding-block: 3px; }
  .dd-stat-value { font-size: 19px; }
  .dd-stats-note { margin-top: 4px; }
}
@media print { didaban-fleet-stats { display: none; } }
