app.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. :root {
  2. --c-bg: #fafafa;
  3. --c-fg: #222;
  4. --c-muted: #777;
  5. --c-accent: rgba(49, 13, 84, 0.08);
  6. --c-accent-strong: #310d54;
  7. --c-warn: #ffc107;
  8. --c-ok: #4caf50;
  9. --c-info: #2196f3;
  10. --c-danger: #e53935;
  11. --c-edit: #fff8c4;
  12. }
  13. * { box-sizing: border-box; }
  14. body {
  15. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  16. background: var(--c-bg);
  17. color: var(--c-fg);
  18. margin: 0;
  19. padding: 1rem 2rem;
  20. }
  21. h1, h2 { margin: 0.25rem 0; }
  22. .topbar {
  23. display: flex;
  24. justify-content: space-between;
  25. align-items: baseline;
  26. border-bottom: 2px solid var(--c-accent-strong);
  27. padding-bottom: 0.5rem;
  28. margin-bottom: 1rem;
  29. }
  30. .topbar .who { color: var(--c-muted); font-size: 0.9rem; }
  31. .sync-time { color: var(--c-muted); font-size: 0.85rem; }
  32. /* ----- jobs table ----- */
  33. .jobs-wrap { overflow-x: auto; margin-bottom: 2rem; }
  34. table.jobs {
  35. width: 100%;
  36. border-collapse: collapse;
  37. font-size: 1.3rem;
  38. }
  39. table.jobs th, table.jobs td {
  40. padding: 0.5rem 0.75rem;
  41. border-bottom: 1px solid #eee;
  42. text-align: left;
  43. }
  44. table.jobs th {
  45. background: var(--c-accent-strong);
  46. color: #fff;
  47. font-weight: 600;
  48. font-size: 1rem;
  49. text-transform: uppercase;
  50. letter-spacing: 0.05em;
  51. }
  52. table.jobs tbody tr:hover { background: var(--c-accent); }
  53. .center { text-align: center; }
  54. .right { text-align: right; }
  55. .smaller { font-size: 0.9rem; }
  56. .empty { text-align: center; color: var(--c-muted); padding: 2rem !important; }
  57. tr.status-finished { background: rgba(76, 175, 80, 0.08); }
  58. tr.status-shipped { background: rgba(33, 150, 243, 0.08); }
  59. tr.status-received { background: rgba(0, 0, 0, 0.04); color: var(--c-muted); }
  60. .status-date {
  61. font-size: 0.75rem;
  62. color: var(--c-muted);
  63. margin-top: 0.1rem;
  64. }
  65. .ack-new {
  66. background: var(--c-warn);
  67. color: #000;
  68. font-weight: 700;
  69. border-radius: 4px;
  70. }
  71. .ack-changed {
  72. background: #ff9800;
  73. color: #000;
  74. font-weight: 700;
  75. border-radius: 4px;
  76. }
  77. .editable {
  78. display: inline-block;
  79. min-width: 2rem;
  80. padding: 0.1rem 0.35rem;
  81. border-radius: 3px;
  82. cursor: pointer;
  83. }
  84. .editable:hover { background: var(--c-edit); }
  85. .editable:focus { outline: 2px solid var(--c-info); background: var(--c-edit); }
  86. .editable.saving { background: orange; }
  87. .editable.error { background: var(--c-danger); color: #fff; }
  88. input.inline-edit {
  89. font-size: inherit;
  90. padding: 0.15rem 0.35rem;
  91. border: 1px solid var(--c-info);
  92. border-radius: 3px;
  93. width: 100%;
  94. min-width: 4rem;
  95. }
  96. .actions { white-space: nowrap; }
  97. .btn {
  98. font-size: 0.9rem;
  99. padding: 0.35rem 0.7rem;
  100. border: 0;
  101. border-radius: 4px;
  102. cursor: pointer;
  103. color: #fff;
  104. font-weight: 600;
  105. margin: 0 0.15rem;
  106. }
  107. .btn-ack { background: var(--c-warn); color: #000; }
  108. .btn-finish { background: var(--c-ok); }
  109. .btn-ship { background: var(--c-info); }
  110. .btn-partial{ background: #ff9800; }
  111. .btn-undo { background: #757575; padding: 0.25rem 0.55rem; font-size: 0.8rem; }
  112. .btn-delete { background: transparent; color: var(--c-danger); border: 1px solid transparent; padding: 0.1rem 0.45rem; font-size: 1.1rem; line-height: 1; }
  113. .btn-delete:hover { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }
  114. .btn-receive{ background: var(--c-accent-strong); }
  115. .btn-add { background: var(--c-accent-strong); padding: 0.5rem 1.25rem; font-size: 1rem; }
  116. .btn-post { background: var(--c-accent-strong); padding: 0.5rem 1rem; font-size: 1rem; }
  117. .btn:hover { opacity: 0.9; }
  118. .received { color: var(--c-muted); font-style: italic; }
  119. /* ----- messages ----- */
  120. .threads-container {
  121. display: flex;
  122. flex-wrap: wrap;
  123. gap: 1rem;
  124. align-items: flex-start;
  125. }
  126. .thread {
  127. border: 1px solid #ddd;
  128. border-radius: 6px;
  129. margin-bottom: 1.5rem;
  130. background: #fff;
  131. width: 100%;
  132. max-width: 720px;
  133. }
  134. /* Inside the flex row on PDQ.php, gap handles spacing. */
  135. .threads-container > .thread { margin-bottom: 0; }
  136. .thread h2 {
  137. margin: 0;
  138. padding: 0.5rem 0.75rem;
  139. background: var(--c-accent);
  140. border-bottom: 1px solid #ddd;
  141. font-size: 1rem;
  142. }
  143. .thread-list {
  144. max-height: 280px;
  145. overflow-y: auto;
  146. padding: 0.5rem 0.75rem;
  147. display: flex;
  148. flex-direction: column;
  149. gap: 0.5rem;
  150. }
  151. .msg {
  152. padding: 0.4rem 0.6rem;
  153. border-radius: 5px;
  154. max-width: 75%;
  155. background: #f1f1f1;
  156. align-self: flex-start;
  157. }
  158. .msg-icg {
  159. background: var(--c-accent);
  160. align-self: flex-end;
  161. }
  162. .msg-author {
  163. font-weight: 700;
  164. margin-right: 0.5rem;
  165. }
  166. .msg-time {
  167. color: var(--c-muted);
  168. font-size: 0.75rem;
  169. }
  170. .msg-body {
  171. margin-top: 0.15rem;
  172. white-space: pre-wrap;
  173. word-wrap: break-word;
  174. }
  175. .msg-empty {
  176. color: var(--c-muted);
  177. font-style: italic;
  178. padding: 0.5rem;
  179. }
  180. .thread-compose {
  181. display: flex;
  182. gap: 0.5rem;
  183. padding: 0.5rem 0.75rem;
  184. border-top: 1px solid #ddd;
  185. background: #fafafa;
  186. }
  187. .thread-compose input[type="text"] {
  188. flex: 1;
  189. font-size: 1rem;
  190. padding: 0.5rem 0.75rem;
  191. border: 1px solid #ccc;
  192. border-radius: 4px;
  193. }
  194. .thread-compose input[type="text"]:focus {
  195. outline: 2px solid var(--c-info);
  196. }
  197. .add-row {
  198. margin: 0.5rem 0 1rem;
  199. display: flex;
  200. gap: 0.5rem;
  201. align-items: center;
  202. }
  203. /* ---------- print layout (vendor schedule on Letter) ---------- */
  204. @media print {
  205. @page { size: letter portrait; margin: 0.5in; }
  206. body { padding: 0; margin: 0; background: #fff; color: #000; }
  207. /* Drop chat, action controls, sync chrome. Keep the H1 so the printed
  208. sheet says "Bill's Schedule" or similar at the top. */
  209. .threads-container,
  210. .thread,
  211. .add-row,
  212. .topbar .who,
  213. #sync-time {
  214. display: none !important;
  215. }
  216. .topbar {
  217. border-bottom: 1pt solid #000;
  218. padding-bottom: 0.2rem;
  219. margin-bottom: 0.4rem;
  220. }
  221. .topbar h1 { font-size: 14pt; }
  222. /* Hide jobs that are out the door — print is for what still needs doing. */
  223. tr.status-finished,
  224. tr.status-shipped,
  225. tr.status-received {
  226. display: none !important;
  227. }
  228. /* Trim to the working columns. Ack/Status/Action are always the last 3
  229. columns on both ICG and vendor views, so :nth-last-child covers both. */
  230. table.jobs th:nth-last-child(-n+3),
  231. table.jobs td:nth-last-child(-n+3) {
  232. display: none !important;
  233. }
  234. /* Print-friendly table: monochrome, compact, no row stripes. */
  235. .jobs-wrap { overflow: visible; }
  236. table.jobs { font-size: 11pt; width: 100%; }
  237. table.jobs th, table.jobs td {
  238. padding: 0.2em 0.5em;
  239. border-bottom: 0.5pt solid #000;
  240. }
  241. table.jobs th {
  242. background: #fff;
  243. color: #000;
  244. font-size: 10pt;
  245. border-bottom: 1pt solid #000;
  246. }
  247. tr { page-break-inside: avoid; }
  248. thead { display: table-header-group; } /* repeat header on each page */
  249. }