details.css 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /* Shared navigation; all detail styles are scoped to the detail main element. */
  2. :root {
  3. --gc-header-height: 64px;
  4. --gc-context-height: 130px;
  5. --gc-brand-header: #c3ccd4;
  6. --gc-brand-section: #cdd4da;
  7. --gc-brand-border: #b1bcc7;
  8. --gc-brand-action: #72889b;
  9. --gc-brand-ink: #182630;
  10. --gc-brand-mark: #b30808;
  11. }
  12. .gc-app-header.header {
  13. position: sticky;
  14. top: 0;
  15. z-index: 1030;
  16. padding: 0;
  17. margin: 0;
  18. background: var(--gc-brand-header);
  19. border-bottom: 1px solid var(--gc-brand-border);
  20. box-shadow: 0 2px 8px #1826300a;
  21. }
  22. .gc-app-header .gc-header-inner {
  23. display: flex;
  24. flex-wrap: wrap;
  25. align-items: center;
  26. gap: .4rem 1rem;
  27. min-height: 64px;
  28. padding: .65rem 1.25rem;
  29. }
  30. .gc-header-brand { flex: 0 1 180px; min-width: 0; }
  31. .gc-header-brand img { display: block; width: 100%; max-width: 180px; height: auto; }
  32. .gc-app-header .header-nav { flex-wrap: wrap; gap: .25rem; }
  33. .gc-app-header .nav-link { color: var(--gc-brand-ink); border-radius: 6px; }
  34. .gc-app-header .nav-link:hover { background: #ffffff70; }
  35. .gc-header-account { flex-wrap: wrap; min-width: 0; }
  36. .gc-header-account span { overflow-wrap: anywhere; }
  37. .gc-page.gc-detail-page {
  38. --primary: #526b7e;
  39. --primary-light: #72889b;
  40. --text-light: #52616f;
  41. --border: #dce2e7;
  42. --cui-primary: #72889b;
  43. width: 100%;
  44. padding: 0 0 2rem;
  45. gap: 1.25rem;
  46. overflow: visible;
  47. color: var(--gc-brand-ink);
  48. }
  49. body:has(.gc-detail-page) { max-width: 1840px; }
  50. .gc-detail-page *, .gc-app-header * { min-width: 0; }
  51. .gc-case-context {
  52. position: sticky;
  53. top: var(--gc-header-height);
  54. z-index: 1020;
  55. display: flex;
  56. flex-wrap: wrap;
  57. align-items: center;
  58. justify-content: space-between;
  59. gap: .75rem 1.5rem;
  60. padding: 1rem 1.25rem;
  61. background: #f4f6f8;
  62. border-bottom: 1px solid var(--gc-brand-border);
  63. }
  64. .gc-context-heading { flex: 1 1 24rem; }
  65. .gc-context-heading h1 { margin: .25rem 0; font-size: clamp(1.05rem, 1.5vw, 1.5rem); line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
  66. .gc-context-heading p { margin: 0; font-size: .875rem; }
  67. .gc-context-heading p span { color: #52616f; }
  68. .gc-detail-page .gc-back-link { padding: 0; font-size: .8rem; color: #3c5263; text-decoration: none; }
  69. .gc-context-metrics { display: flex; gap: .65rem; flex-wrap: wrap; }
  70. .gc-metric { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .85rem; border-radius: 8px; }
  71. .gc-metric span { font-size: .75rem; }
  72. .gc-metric strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
  73. .gc-metric-balance { background: #c7dee7; }
  74. .gc-metric-level { background: #ffe97e; }
  75. .gc-metric-clear { background: #b6cb9b; }
  76. .gc-case-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 1.25rem; align-items: start; padding: 0 1.25rem; }
  77. .gc-case-data, .gc-case-conversation, .gc-case-actions { display: flex; flex-direction: column; gap: 1rem; }
  78. .gc-detail-card, .gc-detail-page .chat-container { background: #fff; border: 1px solid #dce2e7; border-radius: 10px; box-shadow: 0 2px 6px #18263004; }
  79. .gc-section-title { margin: 0; padding: .8rem 1rem; background: var(--gc-brand-section); border-radius: 9px 9px 0 0; font-size: .9rem; font-weight: 700; line-height: 1.5; }
  80. .gc-data-fields { margin: 0; padding: .4rem 1rem; }
  81. .gc-data-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .65rem; padding: .5rem 0; border-bottom: 1px solid #edf0f2; font-size: .825rem; line-height: 1.5; }
  82. .gc-data-field:last-child { border-bottom: 0; }
  83. .gc-data-field dt { color: #52616f; font-weight: 500; overflow-wrap: anywhere; }
  84. .gc-data-field dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
  85. .gc-data-field a { color: #354f63; }
  86. .gc-data-field.gc-field-money dd { font-variant-numeric: tabular-nums; }
  87. .gc-field-total dd, .gc-field-age dd { justify-self: start; padding: 0 .3rem; border-radius: 3px; }
  88. .gc-field-total dd { background: #d3d3d3; }
  89. .gc-field-age dd { background: #e98751; }
  90. .gc-data-more { border-top: 1px solid #edf0f2; }
  91. .gc-data-more summary { cursor: pointer; padding: .65rem 1rem; font-size: .8rem; font-weight: 600; color: #354f63; }
  92. .gc-data-more[open] summary { background: #f4f6f8; }
  93. .gc-detail-page :is(a, button, input, select, summary, [tabindex]):focus-visible,
  94. .gc-app-header :is(a, button):focus-visible { outline: 3px solid #354f63; outline-offset: 3px; }
  95. .gc-detail-page .btn { white-space: normal !important; border-radius: 6px; font-size: .825rem; padding: .5rem .75rem; }
  96. /* Dark text on the exact corporate action color meets text contrast requirements. */
  97. .gc-detail-page .btn-primary { --cui-btn-bg: #72889b; --cui-btn-border-color: #72889b; --cui-btn-color: #101b24; --cui-btn-hover-bg: #c3ccd4; --cui-btn-hover-color: #101b24; --cui-btn-hover-border-color: #72889b; --cui-btn-active-bg: #b1bcc7; --cui-btn-active-color: #101b24; }
  98. .gc-detail-page .btn-outline-secondary { --cui-btn-color: #354f63; --cui-btn-border-color: #b1bcc7; --cui-btn-hover-bg: #cdd4da; --cui-btn-hover-color: #182630; --cui-btn-hover-border-color: #72889b; }
  99. .gc-detail-page .btn-link { color: #354f63; }
  100. .gc-detail-page .gc-workflow-form { margin: 0; padding: 1rem; --cui-gutter-x: 0; --cui-gutter-y: .75rem; }
  101. .gc-workflow-form > .col-12 { padding: 0; }
  102. .gc-workflow-form .form-check { padding: .65rem .75rem .65rem 2.25rem; border-radius: 6px; background: #f4f6f8; }
  103. .gc-workflow-form .form-check-input:checked { background-color: #526b7e; border-color: #526b7e; }
  104. .gc-workflow-form .form-check-label { font-size: .875rem; }
  105. .gc-workflow-form .card-body { padding: .85rem; background: #fafbfc; border-color: #dce2e7; box-shadow: none; }
  106. .gc-workflow-form .card-body .row, .gc-workflow-form .gc-follow-up .row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .85rem; }
  107. .gc-workflow-form .row > .col-form-label { flex: 0 0 100%; padding: 0; font-size: .8rem; color: #52616f; }
  108. .gc-workflow-form .row > div { flex: 1 1 7rem; padding: 0; }
  109. .gc-workflow-form .card-body > .col-3 { width: auto; }
  110. .gc-workflow-form :is(.form-control, .form-select) { width: 100%; font-size: .825rem; min-height: 38px; border-color: #b1bcc7; }
  111. .gc-detail-page input[type="date"]::-webkit-datetime-edit-year-field,
  112. .gc-detail-page input[type="date"]::-webkit-datetime-edit-month-field,
  113. .gc-detail-page input[type="date"]::-webkit-datetime-edit-day-field,
  114. .gc-detail-page input[type="date"]::-webkit-datetime-edit-text { color: var(--gc-brand-ink); }
  115. .gc-workflow-form .form-control:focus, .gc-workflow-form .form-select:focus { border-color: #526b7e; box-shadow: 0 0 0 3px #72889b33; }
  116. .gc-workflow-form .gc-form-actions { display: flex; flex-wrap: wrap; gap: .5rem; border-top: 1px solid #dce2e7; padding-top: 1rem; }
  117. .gc-workflow-form .gc-follow-up { border-top: 1px solid #dce2e7; padding-top: 1rem; }
  118. .gc-detail-page .chat-container { height: clamp(32rem, calc(100dvh - var(--gc-header-height) - var(--gc-context-height) - 2rem), 58rem); }
  119. .gc-detail-page .chat-container .header { padding: .9rem 1rem; border-radius: 9px 9px 0 0; background: var(--gc-brand-section); box-shadow: none; flex: 0 0 auto; }
  120. .gc-detail-page .chat-container .header-left { align-items: flex-start; }
  121. .gc-detail-page .chat-container .header-left > .avatar { background: #72889b; color: #101b24; }
  122. .gc-detail-page .chat-container .course-title { font-size: .875rem; overflow-wrap: anywhere; }
  123. .gc-detail-page .chat-container .course-participants { color: #52616f; }
  124. .gc-detail-page .chat-content { padding: 1rem; min-height: 0; gap: 1rem; }
  125. .gc-detail-page .chat-container .message { max-width: 92%; flex-shrink: 0; }
  126. .gc-detail-page .chat-container .message-header { flex-wrap: wrap; gap: .3rem .5rem; }
  127. .gc-detail-page .chat-container .message-bubble { padding: .65rem .85rem; border-radius: 10px; overflow-wrap: anywhere; }
  128. .gc-detail-page .chat-container .input-area { padding: .85rem 1rem; flex: 0 0 auto; }
  129. .gc-detail-page .chat-container .toolbar { margin: 0; }
  130. .gc-detail-page #comment-form { display: flex; align-items: center; gap: .5rem; }
  131. .gc-detail-page .chat-container .message-input { min-width: 0; width: 100%; height: 42px; padding: .6rem .75rem; }
  132. .gc-detail-page .chat-container .message-input:focus { border-color: #526b7e; box-shadow: 0 0 0 3px #72889b33; }
  133. .gc-detail-page .history-tabs { padding: .25rem .5rem 0; gap: 0; }
  134. .gc-detail-page .history-tab { font-size: .75rem; padding: .65rem .5rem; white-space: normal; }
  135. .gc-detail-page .history-tab.active { color: #354f63; border-color: #526b7e; background: #edf2f5; }
  136. .gc-detail-page .gc-table-scroll { overflow-x: auto; max-width: 100%; }
  137. .gc-detail-page .table { margin: 0; font-size: .825rem; }
  138. .gc-detail-page .table :is(th, td) { padding: .6rem .8rem; vertical-align: top; }
  139. .gc-detail-page .table th { background: #eef1f4; font-size: .75rem; }
  140. .gc-detail-page .table thead { position: static; }
  141. .gc-detail-page .table td { overflow-wrap: anywhere; }
  142. .gc-detail-page .table .text-end { white-space: nowrap; font-variant-numeric: tabular-nums; }
  143. .gc-case-bookings { margin: 0 1.25rem; }
  144. .gc-section-description { padding: .75rem 1rem 0; margin: 0; font-size: .85rem; color: #52616f; }
  145. .gc-detail-page #bookings-history > p { margin: .75rem 1rem; }
  146. .gc-detail-page [role="status"] { color: #52616f; }
  147. .gc-detail-page .beleg-M3 td { color: var(--gc-brand-mark); }
  148. @media (max-width: 1199.98px) {
  149. .gc-case-grid { grid-template-columns: minmax(0, 1fr); }
  150. .gc-detail-page .chat-container { height: 38rem; }
  151. }
  152. @media (max-width: 575.98px) {
  153. .gc-app-header .gc-header-inner { padding: .5rem .75rem; gap: .25rem .65rem; }
  154. .gc-header-brand { flex-basis: 140px; }
  155. .gc-app-header .gc-header-tools { width: 100%; margin-left: 0 !important; }
  156. .gc-header-account { flex: 1; justify-content: flex-end; font-size: .75rem; }
  157. .gc-case-context { padding: .65rem .75rem; gap: .5rem; }
  158. .gc-context-heading { flex-basis: 100%; }
  159. .gc-context-heading h1 { font-size: 1rem; }
  160. .gc-context-metrics { width: 100%; }
  161. .gc-metric { flex-direction: row; align-items: center; gap: .5rem; padding: .35rem .6rem; }
  162. .gc-metric strong { font-size: .95rem; }
  163. .gc-case-grid { padding: 0 .5rem; gap: 1rem; }
  164. .gc-case-bookings { margin: 0 .5rem; }
  165. }