dashboard.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Authorized Forderungen overview; isolated from list and detail layouts. */
  2. body:has(.gc-dashboard-page) { max-width: 1840px; }
  3. .gc-dashboard-page { font-size: 1.0625rem; }
  4. .gc-dashboard-page h1 { margin: 0; font-size: 1.75rem; }
  5. .gc-dashboard-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; scroll-margin-top: calc(var(--gc-header-height) + 1rem); }
  6. .gc-dashboard-heading p { margin: 0; color: #52616f; }
  7. .gc-dashboard-scope label { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
  8. .gc-dashboard-scope input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: #72889b; }
  9. .gc-dashboard-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  10. .gc-dashboard-kpi { padding: 1.25rem; display: flex; flex-direction: column; gap: .3rem; border-top: 4px solid #72889b; }
  11. .gc-dashboard-kpi strong { font-size: clamp(1.5rem, 2vw, 2rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  12. .gc-dashboard-kpi span { color: #52616f; }
  13. .gc-dashboard-tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem; border-bottom: 1px solid #dce2e7; }
  14. .gc-dashboard-tabs a, .gc-dashboard-metrics button { padding: .5rem .75rem; border: 1px solid #b1bcc7; border-radius: 6px; color: #354f63; background: #fff; text-decoration: none; }
  15. .gc-dashboard-tabs a[aria-current], .gc-dashboard-metrics button[aria-pressed=true] { color: #101b24; background: #c3ccd4; border-color: #72889b; font-weight: 600; }
  16. .gc-dashboard-controls { padding: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
  17. .gc-dashboard-control-label { display: block; margin-bottom: .3rem; }
  18. .gc-dashboard-metric-options { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
  19. .gc-dashboard-controls .gc-dashboard-scope label { display: inline-flex; margin: 0; }
  20. .gc-dashboard-controls label { display: block; margin-bottom: .3rem; }
  21. .gc-dashboard-controls :is(input, select) { font-size: inherit; width: min(100%, 22rem); }
  22. .gc-dashboard-metrics { display: flex; flex-wrap: wrap; gap: .5rem; }
  23. .gc-dashboard-description, .gc-dashboard-status { padding: 0 1rem; margin: .5rem 0; color: #52616f; }
  24. .gc-dashboard-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: .5rem 0 1rem; padding: 0 1rem; }
  25. .gc-dashboard-legend li { display: inline-flex; align-items: center; gap: .4rem; overflow-wrap: anywhere; }
  26. .gc-dashboard-swatch { width: 1rem; height: 1rem; flex-shrink: 0; border: 1px solid #72889b; border-radius: 3px; }
  27. .gc-dashboard-chart { position: relative; margin: 0 1rem; min-width: 0; }
  28. .gc-dashboard-chart canvas { max-width: 100%; }
  29. .gc-dashboard-chart-error, .gc-dashboard-error { padding: 1rem; }
  30. .gc-dashboard-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; padding: 1rem; }
  31. .gc-dashboard-page .btn { font-size: inherit; }
  32. .gc-dashboard-table { border-top: 1px solid #dce2e7; }
  33. .gc-dashboard-table summary { padding: 1rem; cursor: pointer; font-weight: 600; }
  34. .gc-dashboard-table-scroll { overflow-x: auto; }
  35. .gc-dashboard-table .table { margin: 0; min-width: 620px; }
  36. .gc-dashboard-table :is(th, td) { padding: .7rem 1rem; vertical-align: top; }
  37. .gc-dashboard-table thead th { background: #edf2f5; color: #182630; }
  38. .gc-dashboard-table thead { position: static; }
  39. .gc-dashboard-table th { font-size: inherit; }
  40. .gc-dashboard-table :is(th, td):nth-child(2), .gc-dashboard-table :is(th, td):nth-child(3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  41. .gc-dashboard-table .gc-dashboard-group-row th { background: #f4f6f8; font-weight: 700; }
  42. .gc-dashboard-table td:first-child { padding-left: 2rem; }
  43. .gc-dashboard-page a { color: #354f63; }
  44. .gc-dashboard-popover { position: fixed; z-index: 1040; width: min(26rem, calc(100vw - 2rem)); padding: 1rem; background: #fff; border: 1px solid #72889b; border-radius: 9px; box-shadow: 0 4px 20px #18263033; max-height: calc(100dvh - 2rem); overflow-y: auto; }
  45. .gc-dashboard-popover h3 { font-size: 1.125rem; padding-right: 2rem; overflow-wrap: anywhere; }
  46. .gc-dashboard-popover p { margin: .5rem 0; }
  47. .gc-dashboard-popover a { display: inline-block; margin-top: .5rem; padding: .5rem .75rem; border-radius: 6px; border: 1px solid #72889b; background: #edf2f5; color: #354f63; }
  48. .gc-dashboard-popover button { position: absolute; top: .5rem; right: .5rem; background: #fff; border: 0; font-size: 1.5rem; }
  49. .gc-dashboard-page :is(button, a, input, summary, [tabindex]):focus-visible { outline: 3px solid #354f63; outline-offset: 3px; }
  50. @media (max-width: 575.98px) {
  51. .gc-dashboard-kpis { grid-template-columns: 1fr; }
  52. .gc-dashboard-controls > div { width: 100%; }
  53. .gc-dashboard-chart { margin: 0 .25rem; }
  54. }