* { box-sizing: border-box; }
body { margin: 16px; background: #ece9d8; color: #000; font: 13px Arial, Helvetica, sans-serif; }
h1 { margin: 0 0 14px; font-size: 22px; }
button, input, select { font: 13px Arial, Helvetica, sans-serif; }
button { background: #e7e7e7; color: #000; border: 2px outset #eee; border-radius: 0; padding: 5px 12px; cursor: pointer; }
button:active { border-style: inset; }
button:hover { filter: brightness(.95); }
button:disabled { cursor: default; color: #777; }
button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #06f; outline-offset: 2px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar span { margin-left: 8px; font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; background: #fff; width: 100%; table-layout: fixed; }
th, td { border: 1px solid #808080; }
th { padding: 7px 8px; background: #d4d0c8; text-align: left; }
th.worker-heading { padding: 0; background: #000080; color: #fff; text-align: center; }
.worker-heading button { width: 100%; border: 0; background: transparent; color: #fff; font-size: 15px; font-weight: bold; padding: 10px; overflow-wrap: anywhere; }
.worker-heading button:focus-visible { outline-offset: -3px; outline-color: #fff; }
.registration-heading { font-size: 12px; }
.part-heading { font-size: 12px; }
td { height: 40px; padding: 7px 8px; overflow-wrap: anywhere; vertical-align: middle; }
td.registration-cell { font-weight: bold; letter-spacing: .3px; }
td[data-job-id] { cursor: pointer; }
td[data-job-id]:hover { box-shadow: inset 0 0 0 2px #444; }
.red { background: #c40000; color: #fff; }
.green { background: #008000; color: #fff; }
.black { background: #000; color: #fff; }
.yellow { background: #ff0; color: #000; }
.worker-start { border-left: 3px solid #555; }
th.worker-heading { border-left: 3px solid #555; }
tfoot td { background: #d4d0c8; text-align: center; padding: 6px; }
tfoot button { min-width: 100px; }
.save-note { font-size: 12px; color: #555; margin: 12px 0 6px; }
#message { min-height: 24px; font-size: 12px; }
#message button { margin-left: 10px; padding: 2px 8px; }
dialog { width: 360px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 16px; border: 3px outset #ddd; border-radius: 0; background: #ece9d8; color: #000; }
dialog::backdrop { background: #0005; }
dialog h2 { margin: -16px -16px 16px; padding: 7px 10px; background: #000080; color: #fff; font-size: 14px; }
dialog label { display: block; margin: 10px 0 4px; }
dialog input, dialog select { width: 100%; padding: 6px; border: 2px inset #ddd; background: #fff; color: #000; border-radius: 0; }
#registration { text-transform: uppercase; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.color-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; }
.color-buttons button { padding: 10px 5px; }
.color-buttons button[aria-pressed="true"] { outline: 2px solid #555; outline-offset: 2px; }
#job-details { overflow-wrap: anywhere; line-height: 1.5; }
.error { color: #a00000; font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 600px) { body { margin: 8px; } h1 { font-size: 19px; } .toolbar span { width: 100%; margin: 3px 0; } }
