:root { color-scheme: light; --text: #202725; --muted: #626b68; --accent: #187668; --line: #dfe5e2; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 "Segoe UI", Arial, sans-serif; color: var(--text); background: #f5f7f6; letter-spacing: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #76bcb0; outline-offset: 3px; }
.app { width: min(700px, 100%); margin: 0 auto; padding: 20px; background: #fff; min-height: 100vh; }
.app-header, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
h1 { margin: 0; font-size: 23px; line-height: 1.3; overflow-wrap: anywhere; }
h2 { margin: 0 0 12px; font-size: 17px; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
section { padding: 22px 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
.icon-button { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--accent); background: #fff; }
.icon-button svg { width: 20px; height: 20px; }
.employee { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.employee:last-child { border-bottom: 0; }
.employee-name { font-size: 18px; font-weight: 600; }
.check-in { min-height: 44px; min-width: 124px; max-width: 55%; padding: 8px 12px; border: 0; border-radius: 6px; color: #fff; background: var(--accent); }
.check-in.done { background: #edf2ef; color: #46564d; opacity: 1; }
.section-head { margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
input[type=month] { min-height: 40px; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: #fff; color: var(--text); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
th, td { padding: 11px 5px; text-align: right; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
th:first-child, td:first-child { text-align: left; width: 34%; }
th:nth-child(2) { width: 18%; }
td small { display: block; color: var(--muted); font-size: 11px; }
.cash-table th:first-child, .cash-table td:first-child { width: 28%; }
.cash-table th:nth-child(2) { width: 44%; }
.cash-table th:last-child { width: 28%; }
.sync-status { margin-bottom: 12px; }
.sync-error { color: #8c2530; }
.payroll-details { text-align: left; font-size: 13px; padding-bottom: 3px; }
.payroll-details summary { cursor: pointer; color: var(--accent); padding: 6px 0; }
.payroll-details dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; margin: 12px 0; }
.payroll-details dt { color: var(--muted); overflow-wrap: anywhere; }
.payroll-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.history-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history-row > :last-child { text-align: right; }
.history-row p { overflow-wrap: anywhere; }
#status { margin-top: 16px; padding: 10px 12px; border-left: 3px solid var(--accent); background: #edf7f2; }
#status.error { border-color: #b83240; background: #fff0f1; color: #8c2530; }
#cameraDialog { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #fff; overflow-y: auto; }
#cameraDialog::backdrop { background: rgb(0 0 0 / .65); }
.camera-head, .camera-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.camera-head h2 { margin: 0; }
#cameraEmployee { margin: 8px 0 12px; }
#cameraVideo { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 35dvh; object-fit: contain; background: #161a18; border-radius: 4px; }
#cameraDialog label { display: block; margin: 12px 0 6px; font-size: 14px; }
#cameraComment { width: 100%; min-height: 76px; resize: vertical; padding: 8px; font-size: 16px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); }
#cameraError { min-height: 20px; margin: 8px 0 12px; }
.camera-actions .check-in { max-width: none; }
@media (max-width: 380px) { .app { padding: 14px; } h1 { font-size: 21px; } .check-in { min-width: 108px; padding: 8px; font-size: 13px; } }
