ThreadCount Community edition

Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from f976bd5 on 2026-09-15. Licensed under the Functional Source License (FSL-1.1-ALv2).
This commit is contained in:
ThreadCount
2026-09-15 23:18:05 +10:00
commit c89010a4f1
424 changed files with 53588 additions and 0 deletions
+94
View File
@@ -0,0 +1,94 @@
/* Counter (/app/counter). Layout only; the shared parts (Panel, Seg, Meter, QtyStepper, Tag) keep their own styles. */
.stack { display: flex; flex-direction: column; gap: 18px; }
/* Person panel */
.person { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 16px 20px; border: 2px solid var(--color-text); background: var(--color-bg); }
.line1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.name { font-family: var(--font-heading); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; line-height: 1.15; }
.meta { font-size: 12px; color: #57534f; }
.details { margin-top: 4px; font-size: 13px; color: #57534f; }
.route { margin-top: 6px; font-size: 12px; color: #57534f; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.inlineGhost { min-height: 0 !important; padding: 0 !important; font-size: 12px; }
.meters { display: flex; flex-direction: column; gap: 8px; }
.personActions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
/* Mode row and grid */
.modeRow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modeSeg { max-width: 100%; overflow-x: auto; }
.kbdHint { font-size: 12px; color: #57534f; white-space: nowrap; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid > * { min-width: 0; }
/* Person search */
.search { padding: 14px 16px; border-bottom: 1px solid #cfcccb; }
.searchInput { width: 100%; }
.pickRow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 16px; border: none; border-top: 1px solid #cfcccb; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pickRow:first-child { border-top: 0; }
.pickRow:hover { background: var(--color-neutral-200); }
.pickRow:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -3px; }
.pickMain { flex: 1; min-width: 0; }
.pickMeters { flex: none; display: flex; flex-direction: column; gap: 4px; }
/* Add garments */
.scanWrap { position: relative; padding: 14px 16px; border-bottom: 1px solid #cfcccb; }
.scanBox { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px 0 10px; background: #fff; border: 2px solid var(--color-text); color: #57534f; }
.scanBox:focus-within { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.scanInput { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 6px 0; font-family: var(--font-body); font-size: 14px; color: var(--color-text); }
.scanInput::placeholder { color: #928d8a; }
.camBtn { min-height: 28px !important; padding: 0 8px !important; }
.pop { position: absolute; left: 16px; right: 16px; top: calc(100% - 12px); z-index: 30; max-height: 440px; overflow: auto; background: var(--color-bg); border: 2px solid var(--color-text); }
.opt { padding: 10px 14px; border-top: 1px solid #cfcccb; }
.opt:first-child { border-top: 0; }
.optHead { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; font-weight: 700; }
.optDivider { padding: 8px 14px 4px; border-top: 2px solid var(--color-text); }
.popEmpty { padding: 12px 14px; font-size: 13px; color: #57534f; }
.scanErr { padding: 0 16px 12px; }
.usualLbl { padding: 12px 16px 4px; }
.chips { padding: 6px 16px 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { gap: 10px !important; }
.holdLbl { padding: 10px 16px; border-top: 2px solid var(--color-text); }
.holdFoot { padding: 8px 16px 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tableWrap { overflow-x: auto; }
.rowGhost { min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
/* This pickup */
.cartLine { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-top: 1px solid #cfcccb; }
.cartLine:first-child { border-top: 0; }
.lineMain { flex: 1; min-width: 0; }
.lineTitle { font-weight: 700; }
.lineSeg { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hint { font-size: 12px; font-weight: 600; color: var(--color-accent-700); }
.cost { width: 70px; flex: none; text-align: right; }
.empty { padding: 14px 16px; font-size: 13px; color: #57534f; }
.after { padding: 12px 16px; border-top: 1px solid #cfcccb; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.afterRow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reason { font-size: 13px; font-weight: 600; color: var(--color-accent-700); padding-left: 26px; }
.tick { display: flex; align-items: center; gap: 10px; padding-left: 26px; font-weight: 600; cursor: pointer; }
.tick input { width: 16px; height: 16px; accent-color: var(--color-accent); }
.charge { padding: 14px 16px; border-top: 2px solid var(--color-text); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.total { font-size: 24px; font-weight: 600; line-height: 1.2; }
.chargeBtns { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.msg { font-size: 13px; font-weight: 600; border-top: 2px solid var(--color-text); padding-top: 8px; }
/* Return / Hand in / Swap */
.panelPad { padding: 14px 16px; }
.listRow { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid #cfcccb; flex-wrap: wrap; }
.listRow:first-child { border-top: 0; }
.listMain { flex: 1; min-width: 0; }
.subLbl { padding: 10px 16px; border-top: 2px solid var(--color-text); }
.swapSelect { min-height: 32px; max-width: 220px; }
@media screen and (max-width: 780px) {
.person { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
.personActions { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
.modeSeg :global(.tc-seg) { flex-wrap: nowrap; }
.kbdHint { display: none; }
.grid { grid-template-columns: minmax(0, 1fr); }
.cartFirst > .pickup { order: -1; }
.cartLine { flex-wrap: wrap; }
.chargeBtns { margin-left: 0; width: 100%; flex-direction: column; align-items: stretch; }
.chargeBtns > :global(.btn) { width: 100%; justify-content: center; }
.scanInput { font-size: 16px; }
.route :global(.btn), .personActions :global(.btn), .rowGhost, .camBtn { min-height: 44px !important; }
.swapSelect { max-width: 100%; }
}