/* @feature F12 利用状況 @design DD-OPS-026 */
.usage-dashboard { min-width: 0; color: var(--text-primary, #17212f); }
.usage-dashboard p { line-height: 1.65; }
.usage-dashboard h2 { font-size: 16px; }
.usage-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
.usage-filters label, .usage-metric-select { display: grid; gap: 6px; min-width: 135px; font-size: 14px; }
.usage-filters select, .usage-metric-select select { height: 40px; max-width: 260px; border: 1px solid #9aa5b4; border-radius: 6px; color: #17212f; background: #fff; padding: 0 10px; }
.usage-auto { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.usage-auto input { width: 18px; height: 18px; }
.usage-ranges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.usage-filter-error { flex-basis: 100%; margin: 0; }
.usage-context, .usage-coverage, .usage-updated, .usage-footnote { color: #475569; font-size: 12px; overflow-wrap: anywhere; }
.usage-warning { background: #fffbeb; color: #92400e; padding: 10px 12px; border-left: 3px solid #92400e; }
.usage-chart-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.usage-chart { min-width: 0; margin: 16px 0; }
.usage-chart .ui-section-header { align-items: start; gap: 12px; flex-wrap: wrap; }
.usage-chart .ui-section-header p { margin: 4px 0 0; color: #475569; font-size: 12px; }
.usage-chart-scroll { max-width: 100%; overflow-x: auto; padding: 6px 2px; }
.usage-chart-canvas { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; padding-top: 16px; }
.usage-chart-axis { height: 220px; position: relative; text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; }
.usage-chart-axis span { position: absolute; right: 12px; transform: translateY(50%); line-height: 1; }
.usage-chart-plot { height: 220px; position: relative; border-bottom: 1px solid #9aa5b4; }
.usage-chart-grid { position: absolute; inset: 0; pointer-events: none; }
.usage-chart-grid i { position: absolute; left: 0; right: 0; border-top: 1px solid #e4e7ec; }
.usage-chart-columns { position: absolute; inset: 0; display: flex; justify-content: space-around; gap: 8px; padding: 0 8px; }
.usage-chart-column { flex: 1 0 44px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; position: relative; }
.usage-chart-target { flex: 0 0 220px; height: 220px; width: 100%; border: 0; padding: 0 9px; background: transparent; cursor: pointer; position: relative; display: flex; align-items: end; justify-content: center; border-radius: 3px; touch-action: manipulation; }
.usage-chart-target:hover { background: #eaf6f6; }
.usage-chart-target:focus-visible, .usage-dashboard summary:focus-visible, .usage-dashboard button:focus-visible, .usage-dashboard a:focus-visible, .usage-dashboard select:focus-visible, .usage-chart-scroll:focus-visible { outline: 2px solid #172b4d; outline-offset: 3px; }
.usage-chart-bar { display: block; width: 100%; max-width: 38px; height: max(2px, var(--usage-height)); background: #087f8c; border-radius: 4px 4px 0 0; }
.usage-chart-missing { font-size: 18px; color: #475569; margin-bottom: 4px; }
.usage-chart-value { position: absolute; bottom: calc(min(100%, var(--usage-height, 0%)) + 4px); color: #17212f; font-size: 12px; font-variant-numeric: tabular-nums; }
.usage-chart-label { flex: 0 0 auto; padding-top: 9px; font-size: 12px; text-align: center; overflow-wrap: anywhere; line-height: 1.35; }
.usage-chart-readout { min-height: 22px; margin: 8px 0 0; font-size: 12px; color: #475569; }
.usage-chart-table { margin: 12px 0; }
.usage-chart-table summary { cursor: pointer; min-height: 40px; display: list-item; padding: 9px 0; color: #086674; font-weight: 500; }
.usage-chart-table .ui-table-frame, .usage-rows { margin-top: 8px; }
.usage-dashboard .ui-table-frame { max-width: 100%; overflow-x: auto; }
.usage-rows table, .usage-detail-dialog table { min-width: 780px; }
.usage-chart-table table { min-width: 560px; }
.usage-dashboard .ui-table-frame th { white-space: nowrap; }
.usage-rows th[scope="row"] { min-width: 180px; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.usage-rows td { min-width: 90px; }
.usage-dashboard th, .usage-dashboard td { font-size: 14px; }
.usage-numeric, .usage-rows td { font-variant-numeric: tabular-nums; }
.usage-numeric { text-align: right; }
.usage-link { color: #086674; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 6px 0; cursor: pointer; text-align: left; font: inherit; }
.usage-state { white-space: nowrap; }
.usage-pagination { display: flex; align-items: center; justify-content: end; gap: 12px; margin: 14px 0; }
.usage-detail-dialog { width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); border: 1px solid #e4e7ec; border-radius: 8px; padding: 24px; color: #17212f; background: #fff; overscroll-behavior: contain; }
.usage-detail-dialog::backdrop { background: rgb(15 23 42 / 45%); }
.usage-detail-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.usage-detail-head h2 { margin: 0; overflow-wrap: anywhere; font-size: 20px; }
.usage-detail-dialog .ui-table-frame { overflow-x: auto; }
@media (max-width: 1100px) { .usage-chart-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
 .usage-filters { display: grid; grid-template-columns: minmax(0, 1fr); }
 .usage-filters select, .usage-metric-select select { width: 100%; max-width: none; font-size: 16px; height: 44px; }
 .usage-filters input, .usage-dashboard button { min-height: 44px; }
 .usage-chart-target { min-height: 220px; }
 .usage-chart .ui-section-header { display: block; }
 .usage-metric-select { margin-top: 12px; }
 .usage-detail-dialog { width: calc(100vw - 16px); padding: 16px; max-height: calc(100dvh - 16px); }
 .usage-detail-head h2 { font-size: 18px; }
}
