details.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. body {
  13. --cui-body-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  14. --cui-heading-font-family: var(--cui-body-font-family);
  15. font-family: var(--cui-body-font-family);
  16. }
  17. .gc-app-header { font-family: var(--cui-body-font-family); font-size: 1rem; }
  18. .gc-app-header.header {
  19. position: sticky;
  20. top: 0;
  21. z-index: 1030;
  22. padding: 0;
  23. margin: 0;
  24. background: var(--gc-brand-header);
  25. border-bottom: 1px solid var(--gc-brand-border);
  26. box-shadow: 0 2px 8px #1826300a;
  27. }
  28. .gc-app-header .gc-header-inner {
  29. display: flex;
  30. flex-wrap: wrap;
  31. align-items: center;
  32. gap: .4rem 1rem;
  33. min-height: 64px;
  34. padding: .65rem 1.25rem;
  35. }
  36. .gc-header-brand { flex: 0 1 180px; min-width: 0; }
  37. .gc-header-brand img { display: block; width: 100%; max-width: 180px; height: auto; }
  38. .gc-app-header .header-nav { flex-wrap: wrap; gap: .25rem; }
  39. .gc-app-header .nav-link { color: var(--gc-brand-ink); border-radius: 6px; }
  40. .gc-app-header .nav-link:hover { background: #ffffff70; }
  41. .gc-header-account { flex-wrap: wrap; min-width: 0; }
  42. .gc-header-account span { overflow-wrap: anywhere; }
  43. .gc-page.gc-detail-page {
  44. --primary: #526b7e;
  45. --primary-light: #72889b;
  46. --text-light: #52616f;
  47. --border: #dce2e7;
  48. --cui-primary: #72889b;
  49. font-size: .9375rem;
  50. width: 100%;
  51. padding: 0 0 2rem;
  52. gap: 1.25rem;
  53. overflow: visible;
  54. color: var(--gc-brand-ink);
  55. }
  56. body:has(.gc-detail-page) { max-width: 1840px; }
  57. .gc-detail-page *, .gc-app-header * { min-width: 0; }
  58. .gc-case-context {
  59. position: sticky;
  60. top: var(--gc-header-height);
  61. z-index: 1020;
  62. display: flex;
  63. flex-wrap: wrap;
  64. align-items: center;
  65. justify-content: space-between;
  66. gap: .75rem 1.5rem;
  67. padding: 1rem 1.25rem;
  68. background: #f4f6f8;
  69. border-bottom: 1px solid var(--gc-brand-border);
  70. }
  71. .gc-context-heading { flex: 1 1 24rem; }
  72. .gc-context-heading h1 { margin: .25rem 0; font-size: clamp(1.2rem, 1.5vw, 1.625rem); line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
  73. .gc-context-heading p { margin: 0; font-size: .9375rem; }
  74. .gc-context-heading p span { color: #52616f; }
  75. .gc-detail-page .gc-back-link { padding: 0; font-size: .875rem; color: #3c5263; text-decoration: none; }
  76. .gc-context-metrics { display: flex; gap: .65rem; flex-wrap: wrap; }
  77. .gc-metric { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .85rem; border-radius: 8px; }
  78. .gc-metric span { font-size: .875rem; }
  79. .gc-metric strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
  80. .gc-metric-balance { background: #c7dee7; }
  81. .gc-metric-level { background: #ffe97e; }
  82. .gc-metric-clear { background: #b6cb9b; }
  83. .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; }
  84. .gc-case-data, .gc-case-conversation, .gc-case-actions { display: flex; flex-direction: column; gap: 1rem; }
  85. .gc-detail-card, .gc-detail-page .chat-container { background: #fff; border: 1px solid #dce2e7; border-radius: 10px; box-shadow: 0 2px 6px #18263004; }
  86. .gc-section-title { margin: 0; padding: .8rem 1rem; background: var(--gc-brand-section); border-radius: 9px 9px 0 0; font-size: 1rem; font-weight: 700; line-height: 1.5; }
  87. .gc-data-fields { margin: 0; padding: .4rem 1rem; }
  88. .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: .9375rem; line-height: 1.5; }
  89. .gc-data-field:last-child { border-bottom: 0; }
  90. .gc-data-field dt { color: #52616f; font-weight: 500; overflow-wrap: anywhere; }
  91. .gc-data-field dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
  92. .gc-data-field a { color: #354f63; }
  93. .gc-data-field.gc-field-money dd { font-variant-numeric: tabular-nums; }
  94. .gc-field-total dd, .gc-field-age dd { justify-self: start; align-self: start; padding: 0 .3rem; border-radius: 3px; }
  95. .gc-field-total dd { background: #d3d3d3; }
  96. .gc-field-age dd { background: #e98751; }
  97. .gc-data-more { border-top: 1px solid #edf0f2; }
  98. .gc-data-more summary { cursor: pointer; padding: .65rem 1rem; font-size: .875rem; font-weight: 600; color: #354f63; }
  99. .gc-data-more[open] summary { background: #f4f6f8; }
  100. .gc-detail-page :is(a, button, input, select, summary, [tabindex]):focus-visible,
  101. .gc-app-header :is(a, button):focus-visible { outline: 3px solid #354f63; outline-offset: 3px; }
  102. .gc-detail-page .btn { white-space: normal !important; border-radius: 6px; font-size: .9375rem; padding: .5rem .75rem; }
  103. /* Dark text on the exact corporate action color meets text contrast requirements. */
  104. .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; }
  105. .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; }
  106. .gc-detail-page .btn-link { color: #354f63; }
  107. .gc-detail-page .gc-workflow-form { margin: 0; padding: 1rem; --cui-gutter-x: 0; --cui-gutter-y: .75rem; }
  108. .gc-workflow-form > .col-12 { padding: 0; }
  109. .gc-workflow-form .form-check { padding: .65rem .75rem .65rem 2.25rem; border-radius: 6px; background: #f4f6f8; }
  110. .gc-workflow-form .form-check-input:checked { background-color: #526b7e; border-color: #526b7e; }
  111. .gc-workflow-form .form-check-label { font-size: .9375rem; }
  112. .gc-workflow-form .card-body { padding: .85rem; background: #fafbfc; border-color: #dce2e7; box-shadow: none; }
  113. .gc-workflow-form .card-body .row, .gc-workflow-form .gc-follow-up .row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .85rem; }
  114. .gc-workflow-form .row > .col-form-label { flex: 0 0 100%; padding: 0; font-size: .875rem; color: #52616f; }
  115. .gc-workflow-form .row > div { flex: 1 1 7rem; padding: 0; }
  116. .gc-workflow-form .card-body > .col-3 { width: auto; }
  117. .gc-workflow-form :is(.form-control, .form-select) { width: 100%; font-size: .9375rem; min-height: 38px; border-color: #b1bcc7; }
  118. .gc-detail-page input[type="date"]::-webkit-datetime-edit-year-field,
  119. .gc-detail-page input[type="date"]::-webkit-datetime-edit-month-field,
  120. .gc-detail-page input[type="date"]::-webkit-datetime-edit-day-field,
  121. .gc-detail-page input[type="date"]::-webkit-datetime-edit-text { color: var(--gc-brand-ink); }
  122. .gc-workflow-form .form-control:focus, .gc-workflow-form .form-select:focus { border-color: #526b7e; box-shadow: 0 0 0 3px #72889b33; }
  123. .gc-workflow-form .gc-form-actions { display: flex; flex-wrap: wrap; gap: .5rem; border-top: 1px solid #dce2e7; padding-top: 1rem; }
  124. .gc-workflow-form .gc-follow-up { border-top: 1px solid #dce2e7; padding-top: 1rem; }
  125. .gc-detail-page .chat-container { height: clamp(32rem, calc(100dvh - var(--gc-header-height) - var(--gc-context-height) - 2rem), 58rem); }
  126. .gc-detail-page .chat-container > .gc-section-title { flex: 0 0 auto; }
  127. .gc-detail-page .chat-container > .gc-section-description { flex: 0 0 auto; padding-bottom: .75rem; overflow-wrap: anywhere; }
  128. .gc-detail-page .chat-content { padding: 1rem; min-height: 0; gap: 1rem; }
  129. .gc-detail-page .chat-container .message { max-width: 92%; flex-shrink: 0; }
  130. .gc-detail-page .chat-container .message-header { flex-wrap: wrap; gap: .3rem .5rem; }
  131. .gc-detail-page .chat-container .message-bubble {
  132. padding: .65rem .85rem;
  133. border-radius: 10px;
  134. overflow-wrap: anywhere;
  135. font-size: .9375rem;
  136. line-height: 1.55;
  137. color: #182630;
  138. background: #f3f4f6;
  139. background: color-mix(in srgb, var(--gc-role-accent, #72889b) 7%, #f3f4f6);
  140. border-inline-start: 3px solid color-mix(in srgb, var(--gc-role-accent, #72889b) 45%, #dce2e7);
  141. }
  142. .gc-detail-page .chat-container .avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 7px; }
  143. .gc-detail-page .chat-container .sender-name { font-size: .875rem; }
  144. .gc-detail-page .chat-container .timestamp, .gc-detail-page .comment-invoice { font-size: .8125rem; }
  145. .gc-detail-page .chat-container .message-input { font-size: .9375rem; }
  146. .gc-detail-page .chat-container .FIBU { --gc-role-accent: #dc3545; }
  147. .gc-detail-page .chat-container .GSL { --gc-role-accent: #6e131c; }
  148. .gc-detail-page .chat-container .GWL { --gc-role-accent: #fd7e14; }
  149. .gc-detail-page .chat-container .ZD { --gc-role-accent: #6f42c1; }
  150. .gc-detail-page .chat-container .ALV { --gc-role-accent: #0c408f; }
  151. .gc-detail-page .chat-container .NAGA { --gc-role-accent: #0d6efd; }
  152. .gc-detail-page .chat-container .Serviceleiter { --gc-role-accent: #198754; }
  153. .gc-detail-page .chat-container .SC { --gc-role-accent: #20c997; }
  154. .gc-detail-page .chat-container .TUZ { --gc-role-accent: #5b6067; }
  155. .gc-detail-page .chat-container .input-area { padding: .85rem 1rem; flex: 0 0 auto; }
  156. .gc-detail-page .chat-container .toolbar { margin: 0; }
  157. .gc-detail-page #comment-form { display: flex; align-items: center; gap: .5rem; }
  158. .gc-detail-page .chat-container .message-input { min-width: 0; width: 100%; height: 42px; padding: .6rem .75rem; }
  159. .gc-detail-page .chat-container .message-input:focus { border-color: #526b7e; box-shadow: 0 0 0 3px #72889b33; }
  160. .gc-detail-page .history-tabs { padding: .25rem .5rem 0; gap: 0; }
  161. .gc-detail-page .history-tab { font-size: .875rem; padding: .65rem .5rem; white-space: normal; }
  162. .gc-detail-page .history-tab.active { color: #354f63; border-color: #526b7e; background: #edf2f5; }
  163. .gc-detail-page .gc-table-scroll { overflow-x: auto; max-width: 100%; }
  164. .gc-detail-page .table { margin: 0; font-size: .9375rem; }
  165. .gc-detail-page .table :is(th, td) { padding: .6rem .8rem; vertical-align: top; }
  166. .gc-detail-page .table th { background: #eef1f4; font-size: .875rem; }
  167. .gc-detail-page .table thead { position: static; }
  168. .gc-detail-page .table td { overflow-wrap: anywhere; }
  169. .gc-detail-page .table .text-end { white-space: nowrap; font-variant-numeric: tabular-nums; }
  170. .gc-case-bookings { margin: 0 1.25rem; }
  171. .gc-section-description { padding: .75rem 1rem 0; margin: 0; font-size: .9375rem; color: #52616f; }
  172. .gc-detail-page #bookings-history > p { margin: .75rem 1rem; }
  173. .gc-detail-page [role="status"] { color: #52616f; }
  174. /* Keep booking text black, including reminders; only the type badge is colored. */
  175. .gc-detail-page #bookings-history { padding: .75rem 1rem 1rem; }
  176. .gc-detail-page #bookings-history .history-tabs { padding-left: 0; padding-right: 0; margin-bottom: .75rem; }
  177. .gc-detail-page #bookings-history .table { --cui-table-color: #000; --cui-table-striped-color: #000; }
  178. .gc-detail-page #bookings-history .table td { color: #000; }
  179. .gc-document-badge { display: inline-flex; justify-content: center; width: 3.25rem; padding: .15rem .5rem; border: 1px solid transparent; border-radius: 5px; font-size: .8125rem; font-weight: 700; white-space: nowrap; color: #000; }
  180. .gc-document-badge--M1 { background: #ffe97e; border-color: #c8af45; }
  181. .gc-document-badge--M2 { background: #f7d8bf; border-color: #e98751; }
  182. .gc-document-badge--M3 { background: #f5dddd; border-color: #b30808; }
  183. .gc-detail-page .gc-files-table { --cui-table-bg: #fff; }
  184. .gc-detail-page .gc-files-table :is(th, td) { background: #fff; box-shadow: none; }
  185. .gc-section-title { display: flex; align-items: center; gap: .6rem; font-family: inherit; }
  186. .gc-section-title .icon { flex-shrink: 0; width: 1.125rem; height: 1.125rem; font-size: 1.125rem; vertical-align: -.1em; }
  187. @media (max-width: 1199.98px) {
  188. .gc-case-grid { grid-template-columns: minmax(0, 1fr); }
  189. .gc-detail-page .chat-container { height: 38rem; }
  190. }
  191. @media (max-width: 575.98px) {
  192. .gc-app-header .gc-header-inner { padding: .5rem .75rem; gap: .25rem .65rem; }
  193. .gc-header-brand { flex-basis: 140px; }
  194. .gc-app-header .gc-header-tools { width: 100%; margin-left: 0 !important; }
  195. .gc-header-account { flex: 1; justify-content: flex-end; font-size: .875rem; }
  196. .gc-case-context { padding: .65rem .75rem; gap: .5rem; }
  197. .gc-context-heading { flex-basis: 100%; }
  198. .gc-context-heading h1 { font-size: 1.125rem; }
  199. .gc-context-metrics { width: 100%; }
  200. .gc-metric { flex-direction: row; align-items: center; gap: .5rem; padding: .35rem .6rem; }
  201. .gc-metric strong { font-size: .95rem; }
  202. .gc-case-grid { padding: 0 .5rem; gap: 1rem; }
  203. .gc-case-bookings { margin: 0 .5rem; }
  204. }