Browse Source

made schedules print well

Bernn 1 tuần trước cách đây
mục cha
commit
8abcbad21e
1 tập tin đã thay đổi với 53 bổ sung0 xóa
  1. 53 0
      assets/app.css

+ 53 - 0
assets/app.css

@@ -216,3 +216,56 @@ input.inline-edit {
     gap: 0.5rem;
     align-items: center;
 }
+
+/* ---------- print layout (vendor schedule on Letter) ---------- */
+@media print {
+    @page { size: letter portrait; margin: 0.5in; }
+
+    body { padding: 0; margin: 0; background: #fff; color: #000; }
+
+    /* Drop chat, action controls, sync chrome. Keep the H1 so the printed
+       sheet says "Bill's Schedule" or similar at the top. */
+    .threads-container,
+    .thread,
+    .add-row,
+    .topbar .who,
+    #sync-time {
+        display: none !important;
+    }
+    .topbar {
+        border-bottom: 1pt solid #000;
+        padding-bottom: 0.2rem;
+        margin-bottom: 0.4rem;
+    }
+    .topbar h1 { font-size: 14pt; }
+
+    /* Hide jobs that are out the door — print is for what still needs doing. */
+    tr.status-finished,
+    tr.status-shipped,
+    tr.status-received {
+        display: none !important;
+    }
+
+    /* Trim to the working columns. Ack/Status/Action are always the last 3
+       columns on both ICG and vendor views, so :nth-last-child covers both. */
+    table.jobs th:nth-last-child(-n+3),
+    table.jobs td:nth-last-child(-n+3) {
+        display: none !important;
+    }
+
+    /* Print-friendly table: monochrome, compact, no row stripes. */
+    .jobs-wrap { overflow: visible; }
+    table.jobs { font-size: 11pt; width: 100%; }
+    table.jobs th, table.jobs td {
+        padding: 0.2em 0.5em;
+        border-bottom: 0.5pt solid #000;
+    }
+    table.jobs th {
+        background: #fff;
+        color: #000;
+        font-size: 10pt;
+        border-bottom: 1pt solid #000;
+    }
+    tr { page-break-inside: avoid; }
+    thead { display: table-header-group; } /* repeat header on each page */
+}