﻿body { font-family: "Microsoft JhengHei", Arial, sans-serif; margin: 0; background: #f5f7fb; color: #222; }
a { color: #1464c8; text-decoration: none; }
a:hover { text-decoration: underline; }
.header { background: #06c755; color: #fff; padding: 16px 24px; }
.header h1 { margin: 0; font-size: 24px; }
.nav { background: #fff; border-bottom: 1px solid #ddd; padding: 10px 24px; }
.nav a { margin-right: 18px; font-weight: bold; }
.container { max-width: 1180px; margin: 22px auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.06); padding: 24px; }
.login-box { max-width: 420px; margin: 60px auto; }
input[type=text], input[type=password], input[type=number], input[type=date], select { box-sizing: border-box; width: 100%; max-width: 360px; padding: 9px 10px; border: 1px solid #cfd8dc; border-radius: 8px; margin: 4px 0 12px; }
button, input[type=submit], .btn { background: #06c755; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; display: inline-block; }
button.secondary, .btn.secondary { background: #607d8b; }
button.danger, .btn.danger { background: #c62828; }
.table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.table th, .table td { border-bottom: 1px solid #eee; padding: 10px 8px; text-align: left; vertical-align: top; }
.table th { background: #f1f8f5; font-weight: bold; }
.kpi-wrap { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 22px; }
.kpi { flex: 1 1 180px; border: 1px solid #e7ecef; border-radius: 10px; padding: 16px; background: #fbfdfc; }
.kpi .num { font-size: 28px; font-weight: bold; color: #06a045; }
.notice { padding: 12px 14px; background: #fff8e1; border: 1px solid #ffe0a3; border-radius: 8px; margin-bottom: 16px; }
.error { padding: 12px 14px; background: #ffebee; border: 1px solid #ffcdd2; border-radius: 8px; margin-bottom: 16px; }
.ok { padding: 12px 14px; background: #e8f5e9; border: 1px solid #c8e6c9; border-radius: 8px; margin-bottom: 16px; }
.form-row { margin-bottom: 8px; }
.small { color: #666; font-size: 13px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 99px; font-size: 12px; background: #eef5ff; color: #215e9e; }
.status-Completed { background: #e8f5e9; color: #2e7d32; }
.status-Active, .status-WaitingStartPhoto, .status-WaitingEndPhoto { background: #fff8e1; color: #8a5a00; }
.status-Cancelled { background: #eee; color: #555; }
.photo-thumb { max-width: 90px; max-height: 90px; border-radius: 6px; border: 1px solid #ddd; }
.filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 12px; }
.filter > div { min-width: 160px; }
pre { background: #0f172a; color: #e2e8f0; padding: 14px; overflow: auto; border-radius: 8px; }

.table.sortable th[data-sortable] { cursor: pointer; user-select: none; }
.table.sortable th[data-sort-dir="asc"]::after { content: " ▲"; color: #06a045; }
.table.sortable th[data-sort-dir="desc"]::after { content: " ▼"; color: #06a045; }
