:root { color-scheme: light; font-family: system-ui, sans-serif; color: #17263b; background: #f1f5f9; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: #155ab3; }
.topbar { background: #14365d; color: white; padding: 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a, .link-button { color: white; }
.brand { font-weight: bold; font-size: 1.25rem; }
.topbar nav { display: flex; gap: 1rem; flex-wrap: wrap; flex: 1; }
.topbar form { margin: 0; }
.link-button { border: 0; background: transparent; padding: .5rem; text-decoration: underline; }
.container { max-width: 1200px; margin: auto; padding: 1rem; }
.panel { background: white; border: 1px solid #d5e0eb; border-radius: .6rem; padding: 1rem; margin: 1rem 0; box-shadow: 0 2px 6px #0001; }
.narrow { max-width: 32rem; margin: 2rem auto; }
h1, h2, h3, h4 { line-height: 1.3; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.page-heading h1 { margin: 0; }
.unfinished-count { margin-left: .3rem; padding: .2rem .55rem; border-radius: 999px; background: #fff1d6; color: #704300; font-size: .65em; vertical-align: middle; white-space: nowrap; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1rem; border: 1px solid #135295; border-radius: .4rem; background: #155ab3; color: white; font-weight: 600; text-decoration: none; }
.report-separator { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: #526579; font-size: .9rem; font-weight: 700; }
.report-separator::before, .report-separator::after { content: ""; flex: 1; border-top: 1px solid #aebdcb; }
.report-separator[hidden] { display: none; }
form label:not(.inline):not(.file-button) { display: block; margin: .8rem 0; }
input:not([type=checkbox]):not([type=hidden]):not([type=file]), select, textarea { display: block; width: 100%; max-width: 40rem; padding: .7rem; border: 1px solid #8192a5; border-radius: .35rem; font: inherit; background: white; color: inherit; }
input[type=checkbox] { width: 1.2rem; height: 1.2rem; vertical-align: middle; }
textarea { min-height: 6rem; resize: vertical; }
button, .file-button { display: inline-block; border: 1px solid #135295; border-radius: .4rem; padding: .75rem 1rem; min-height: 48px; background: #155ab3; color: white; font: inherit; font-weight: 600; cursor: pointer; }
button.master-save-button { display: block; min-height: 40px; margin-left: auto; padding: .45rem .8rem; }
button:disabled, input:disabled { opacity: .5; cursor: not-allowed; }
.secondary, .file-button { background: white; color: #154e89; }
.actions, .tabs, .photo-inputs { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .7rem 0; }
#pdf-form .pdf-format-control { display: flex; align-items: center; gap: .5rem; }
.pdf-format-control select { width: auto; }
.tabs a { padding: .5rem; }
.tabs a[aria-current="page"] { border-radius: .35rem; background: #dce9f7; color: #14365d; font-weight: 700; }
.status-filter { margin-top: .5rem; }
.primary-actions button, .secondary-actions button { min-width: 10rem; }
.secondary-actions { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed #93a6b8; }
.work-card h2 { font-size: 1.4rem; }
.engine-start-control { border-left: .35rem solid #16743b; }
.vehicle-history-panel table { min-width: 40rem; }
.work-actions { margin: 1rem 0; }
.photo-group { border-top: 1px solid #ddd; padding-top: .5rem; }
.photo-list { display: flex; flex-wrap: wrap; gap: .75rem; }
.photo-item { width: 130px; }
.photo-inputs[hidden], .photo-item .delete-photo[hidden] { display: none; }
.remark-history { margin-top: .75rem; border-top: 1px solid #d5e0eb; padding-top: .5rem; }
.remark-history li { margin: .75rem 0; }
.remark-history dl { margin: .4rem 0; }
.remark-history dt { font-weight: 700; }
.remark-history dd { margin: 0 0 .4rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.photo-item img { width: 130px; height: 100px; object-fit: cover; border-radius: .3rem; }
.photo-item button { width: 100%; padding: .4rem; min-height: 40px; }
.file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.file-button:focus-within { outline: 3px solid #f59e0b; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .65rem; border-bottom: 1px solid #d5e0eb; text-align: left; }
.site-choice { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.site-choice .order { width: 7rem !important; }
.photo-flag-enabled { color: #16743b; font-weight: 700; }
.photo-flag-disabled { color: #a32626; font-weight: 700; }
.photo-indicator { display: inline-flex; color: #155ab3; vertical-align: middle; }
.photo-indicator svg { width: 1.25rem; height: 1.25rem; }
.photo-absent { color: #8a97a6; }
.completion-indicator { display: inline-flex; margin-left: .35rem; vertical-align: middle; }
.completion-indicator svg { width: 1.25rem; height: 1.25rem; }
.completion-indicator.all-completed { color: #16743b; }
.completion-indicator.has-unfinished { color: #a46b00; }
.notice { background: #d7f5df; padding: 1rem; }
.error { color: #a00000; }
dialog { max-width: min(90vw, 32rem); border: 0; border-radius: .6rem; padding: 1.5rem; }
dialog::backdrop { background: #0009; }
.qr-action-form { display: inline-block; margin: .25rem; }
.qr-action-form button { min-height: 40px; padding: .45rem .7rem; }
#qr-login-dialog { text-align: center; }
#qr-login-dialog h2 { margin-top: 0; }
#qr-login-image { display: block; width: min(70vw, 20rem); height: auto; margin: 1rem auto; }
#pdf-preview-dialog { width: min(96vw, 75rem); max-width: 96vw; height: 90vh; max-height: 96vh; }
#pdf-preview-dialog h2 { margin-top: 0; }
#pdf-preview-frame { display: block; width: 100%; height: calc(100% - 8rem); border: 1px solid #d5e0eb; }
#confirm-message { white-space: pre-line; }
#confirm-dialog [hidden] { display: none; }
#toast { position: fixed; bottom: 1rem; right: 1rem; left: 1rem; max-width: 40rem; margin: auto; padding: 1rem; border-radius: .4rem; background: #14365d; color: white; display: none; z-index: 20; }
#toast.show { display: block; }
@media (min-width: 768px) { .filter-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; align-items: end; } }
@media (max-width: 600px) { .container { padding: .6rem; } .topbar nav { width: 100%; order: 2; } .work-actions button { width: 100%; } .photo-item, .photo-item img { width: 100px; } }
