/* Kullanım (usage), redesigned 2026-11-01 (views/usage.js): five numbers in one strip (buttons: a click picks the number the
   chart and the customers' order follow; on a customer's page, the kind its list shows), one daily chart, the customers as
   one-line rows; a customer's page: its operations and its uploaded files as one-line rows. Prefix us-. Colours only via
   the theme variables, no badge: the picked number is the accent's underline, the chart the accent's other place.
   Loaded before full-view.css and calm.css: a rule that must beat calm.css carries one class more. */

/* ---- the strip: one card, five cells divided by hairlines; three a row under 1180 px (the last two share the second
   row), two under 700 px (the fifth spans the row) */
.us-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0;overflow:hidden}
.us-strip > .us-k{appearance:none;-webkit-appearance:none;margin:0;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;
  font:inherit;color:inherit;text-align:left;cursor:pointer;padding:16px 20px 15px;gap:2px;position:relative;transition:background .15s}
.us-strip > .us-k:last-child{border-right:0}
.us-strip > .us-k .l{display:block;font-size:13px;color:var(--muted)}
.us-strip > .us-k .v{display:block;font-size:28px;font-weight:600;line-height:1.2;margin:2px 0;font-variant-numeric:tabular-nums;color:var(--text)}
.us-strip > .us-k .d{display:block;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.us-strip > .us-k::after{content:"";position:absolute;left:20px;right:20px;bottom:0;height:2px;border-radius:2px;background:transparent;transition:background .15s}
.us-strip > .us-k.on::after{background:var(--accent)}
.us-strip > .us-k.on .l{color:var(--text)}
@media (hover:hover){.us-strip > .us-k:hover{background:var(--panel2)}}
.us-strip > .us-k:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
@media (max-width:1180px){
  .us-strip{grid-template-columns:repeat(6,minmax(0,1fr))}
  .us-strip > .us-k{grid-column:span 2}
  .us-strip > .us-k:nth-child(n+4){grid-column:span 3}
  .us-strip > .us-k:nth-child(3){border-right:0}
  .us-strip > .us-k:nth-child(-n+3){border-bottom:1px solid var(--line)}
}
@media (max-width:700px){
  .us-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .us-strip > .us-k,.us-strip > .us-k:nth-child(n+4){grid-column:auto;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
  .us-strip > .us-k:nth-child(even){border-right:0}
  .us-strip > .us-k:nth-child(5){grid-column:1 / -1;border-bottom:0;border-right:0}
  .us-strip > .us-k .v{font-size:24px}
}

/* ---- the grey lines: the hint under the strip, the tracking note under the page, a list's foot */
.us-hint{margin:-6px 2px 0;font-size:12.5px;color:var(--faint)}
.us-note{margin:0 2px;font-size:12.5px;color:var(--faint)}
.us-foot{margin:0;font-size:12px;color:var(--faint)}
.us-page .page-head .us-cust-link{display:inline-flex;align-items:center;gap:4px;margin-top:6px;font-size:13px;color:var(--muted)}
.us-page .page-head .us-cust-link span:where(.ic){width:13px;height:13px}
@media (hover:hover){.us-page .page-head .us-cust-link:hover{color:var(--text)}}

/* ---- the daily chart */
.us-daily .chart{overflow:visible}

/* ---- the customers: the search in the card's head, one line a row (at most 44 px), the name a bold link (whole in its
   title and on the customer's page), the picked number's column in the text colour, every other number muted */
.us-cust .card-h{flex-wrap:wrap;row-gap:8px}
.us-cust .card-h .tools{gap:12px}
.us-q{width:220px;max-width:100%;height:32px}
.us-tbl .tbl td{padding:6px 16px;white-space:nowrap;color:var(--muted)}
.us-tbl .tbl td:first-child{max-width:0;min-width:180px;width:34%;color:var(--text)}
.us-tbl .tbl td a.n,.us-tbl .tbl td .n{display:block;font-weight:600;color:inherit;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.us-tbl .tbl td .us-none{font-weight:400;color:var(--muted);font-style:italic}
.us-tbl .tbl td .us-on{color:var(--text);font-weight:600}
@media (hover:hover){.us-tbl .tbl td a.n:hover{text-decoration:underline;text-underline-offset:3px}}
@media (max-width:700px){.us-q{width:100%}.us-cust .card-h .tools{width:100%}}
html.full-view .us-tbl .tbl td a.n{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}

/* ---- a customer's page: its operations (20 a page) and its uploaded files (10 a page) as two tables of one-line rows (at
   most 44 px); the file or the search and the details end in "…" (whole in their titles); an owner's wrap */
.us-tb2 .tbl td{padding:6px 16px;white-space:nowrap;color:var(--muted)}
.us-tb2 .tbl td .us-wn{display:block;max-width:440px;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.us-tb2 .tbl td .us-more{display:block;max-width:380px;overflow:hidden;text-overflow:ellipsis}
.us-evt .tbl td .us-at{font-variant-numeric:tabular-nums}
.us-evt .tbl td .us-kind{color:var(--text)}
.us-ft .tbl td:last-child{width:1%;text-align:right}
.us-ev .us-foot{padding:10px 16px}
@media (max-width:700px){.us-tb2 .tbl td .us-wn{max-width:170px}}
html.full-view .us-tb2 .tbl td .us-wn,html.full-view .us-tb2 .tbl td .us-more{max-width:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
