/**
 * src/css/dobo2-usage.css
 * D4 — cost usage widget. Own #dobo2usage-* / .dobo2usage-* namespace, same
 * design system as dobo2-dock.css/dobo2-memory.css (navy #022448, amber
 * #fea619, surface #F8FAFC, Inter). New, separate file (not appended to
 * dobo2-dock.css, which the D3 agent's frontend work is actively touching).
 */

#dobo2usage-root {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.dobo2usage-bell {
  position: fixed;
  /* No-navbar fallback: top-docked like a nav item, never a bottom corner FAB */
  top: 10px;
  right: 104px;
  bottom: auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #ffffff;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 36, 72, 0.18);
  z-index: 9996;
}

.dobo2usage-panel {
  position: fixed;
  right: 16px;
  top: 56px;
  bottom: auto;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(2, 36, 72, 0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9996;
  border: 1px solid #E2E8F0;
}
.dobo2usage-panel.open { display: flex; }

.dobo2usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #022448;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
}
.dobo2usage-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.dobo2usage-body {
  padding: 12px 14px;
  overflow-y: auto;
  flex: 1;
}

.dobo2usage-empty {
  color: #94a3b8;
  font-size: 12px;
  font-style: italic;
  text-align: center;
  padding: 22px 8px;
}

.dobo2usage-metric-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 12px;
}
.dobo2usage-metric-label { color: #64748b; }
.dobo2usage-metric-value { font-weight: 600; color: #022448; }

.dobo2usage-note {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 10px;
  line-height: 1.4;
}

.dobo2usage-admin-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 11.5px;
  border-bottom: 1px solid #F1F5F9;
}
.dobo2usage-admin-email { color: #1e293b; }
.dobo2usage-admin-tokens { color: #022448; font-weight: 600; }

@media (max-width: 460px) {
  .dobo2usage-bell { right: 100px; }
  .dobo2usage-panel {
    right: 6px;
    left: 6px;
    width: auto;
  }
}

/* Nav-bar mounted: drop the old fixed corner positioning. */
.dobo2-navgroup .dobo2usage-bell { position: static; right: auto; bottom: auto; }
.dobo2usage-panel { top: 68px; right: 16px; bottom: auto; max-height: 70vh; }
@media (max-width: 640px) { .dobo2usage-panel { top: 60px; right: 8px; left: 8px; width: auto; } }

/* In the nav group: match the flat .dobo2-navbtn look exactly (no white pill). */
.dobo2-navgroup .dobo2usage-bell {
  position: static; right: auto; top: auto; bottom: auto; left: auto;
  width: 36px; height: 36px; border-radius: 9px;
  border: none; background: transparent; color: #475569;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: none; transition: background .15s ease, color .15s ease;
}
.dobo2-navgroup .dobo2usage-bell:hover { background: rgba(2,36,72,0.08); color: #022448; }
