/* Provider analytics: one stat card and trend per reported metric. */
#analytics .analytics-results { min-width: 0; }
#analytics .analytics-results:empty { display: none; }
#analytics .analytics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; padding: 18px; }
#analytics .analytics-metric { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid #a8815038; border-radius: 12px; background: #1c181d; }
#analytics .analytics-metric h3 { margin: 0; color: #d9c8b8; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
#analytics .analytics-metric > b { margin-top: 8px; color: #fff3e8; font-size: 30px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
#analytics .analytics-basis { margin-top: 2px; color: #b4a498; font-size: 12px; }
#analytics .analytics-chart { position: relative; height: 84px; margin-top: auto; padding-top: 12px; touch-action: pan-y; cursor: crosshair; }
#analytics .analytics-chart svg { display: block; width: 100%; height: 72px; overflow: visible; }
#analytics .analytics-line { fill: none; stroke: #ea9a4b; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#analytics .analytics-area { fill: #ea9a4b1f; stroke: none; }
#analytics .analytics-cursor { stroke: #f3e3d366; stroke-width: 1; vector-effect: non-scaling-stroke; }
#analytics .analytics-cursor[hidden] { display: none; }
#analytics .analytics-dot { position: absolute; width: 9px; height: 9px; margin: -6.5px 0 0 -6.5px; border: 2px solid #1c181d; border-radius: 50%; background: #ffbd73; pointer-events: none; }
#analytics .analytics-tip { position: absolute; top: -6px; transform: translateX(-50%); padding: 4px 8px; border: 1px solid #c9905b66; border-radius: 6px; background: #2b232a; color: #fff3e8; font-size: 11px; white-space: nowrap; pointer-events: none; }
#analytics .analytics-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; color: #a89a8f; font-size: 11px; }
#analytics .analytics-table { margin: 0 18px 18px; }
#analytics .analytics-table > summary { min-height: 40px; padding: 10px 0; color: #e5c5a0; font-size: 13px; font-weight: 600; cursor: pointer; }
#analytics .analytics-table .table-wrap { max-height: 360px; overflow: auto; border: 1px solid #a8815030; border-radius: 10px; }
#analytics .analytics-table table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
#analytics .analytics-table :is(th, td) { padding: 8px 12px; border-bottom: 1px solid #ffffff0d; text-align: right; white-space: nowrap; }
#analytics .analytics-table th:first-child { text-align: left; }
#analytics .analytics-table thead th { position: sticky; top: 0; background: #241d23; color: #d9c8b8; font-weight: 600; }
@media (max-width: 600px) {
  #analytics .analytics-grid { padding: 12px; }
  #analytics .analytics-table { margin: 0 12px 12px; }
}
