/* Module: application.attendance.static.style  Version: v0.1.2  Date: 2026-11-05
   Changes: v0.1.2 footer centred.
            v0.1.1 inline correction form laid out horizontally.
            v0.1.0 Initial implementation - one small stylesheet, no framework. */
:root { --ink: #1f2933; --muted: #6b7280; --line: #e5e7eb; --bg: #f7f8fa; --card: #fff; --accent: #1d4ed8;
        --ok: #15803d; --warn: #b45309; --bad: #b91c1c; --info: #1d4ed8; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); }
header.top { display: flex; align-items: center; gap: 24px; padding: 8px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 16px; }
.brand img { height: 28px; }
nav a { margin-right: 14px; color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
nav a.on, nav a:hover { color: var(--ink); border-color: var(--accent); }
.me { margin-left: auto; color: var(--muted); } .me a { margin-left: 12px; color: var(--accent); text-decoration: none; }
main { padding: 16px 20px 40px; max-width: 1400px; }
footer { color: var(--muted); font-size: 12px; padding: 12px 20px; text-align: center; }
h1 { font-size: 20px; margin: 4px 0 12px; } h1 small, h2 small { color: var(--muted); font-weight: 400; font-size: 14px; }
h2 { font-size: 16px; margin: 20px 0 8px; } h3 { font-size: 14px; margin: 16px 0 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; }
.card.narrow { max-width: 360px; margin: 60px auto; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 10px; }
.filters label, .grid label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 16px; align-items: end; }
label.check { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; }
input, select, button { font: inherit; padding: 5px 8px; border: 1px solid #cbd2d9; border-radius: 4px; background: #fff; }
button, .btn { background: var(--accent); color: #fff; border-color: var(--accent); cursor: pointer; text-decoration: none; padding: 6px 12px; border-radius: 4px; display: inline-block; }
form.inline { display: inline; } form.inline input { width: auto; } form.inline button { padding: 3px 8px; }
.card.narrow form { display: flex; flex-direction: column; gap: 10px; }
.card.narrow label { display: flex; flex-direction: column; gap: 3px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
th, td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f1f3f5; font-weight: 600; font-size: 12px; color: var(--muted); }
tr.warn td { background: #fff8e6; } tr.ot td { background: #fdecec; } tr.bad td { background: #fdecec; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; } .small { font-size: 12px; } .muted { color: var(--muted); }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 10px; background: #e0e7ff; color: var(--info); }
.tag.fix { background: #fef3c7; color: var(--warn); } .tag.online { background: #dcfce7; color: var(--ok); }
.tag.offline { background: #fee2e2; color: var(--bad); } .tag.unknown { background: #e5e7eb; color: var(--muted); }
.tag.enforced { background: #fee2e2; color: var(--bad); } .tag.pending { background: #fef3c7; color: var(--warn); }
.tag.releasing { background: #e0e7ff; color: var(--info); } .tag.released { background: #e5e7eb; color: var(--muted); }
.tag.blocked { background: #fee2e2; color: var(--bad); }
td form.inline input[name="reason"] { width: 120px; }
.pair { display: inline-block; padding: 0 5px; border-radius: 3px; margin: 1px 0; font-family: ui-monospace, monospace; font-size: 11px; }
.pair.ok { background: #dcfce7; } .pair.missing_out { background: #ffedd5; } .pair.missing_in { background: #fee2e2; } .pair.open { background: #dbeafe; }
.flash { padding: 8px 12px; border-radius: 4px; margin-bottom: 10px; }
.flash.ok { background: #dcfce7; color: var(--ok); } .flash.error { background: #fee2e2; color: var(--bad); }
.note { color: var(--warn); }
@media (max-width: 800px) { header.top { flex-wrap: wrap; } .me { margin-left: 0; } main { padding: 12px; } }
td form.inline { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
td form.inline input[name="hours"] { width: 56px; } td form.inline input[name="note"] { width: 120px; }
