:root { --bg: #f5f6f8; --fg: #1d2330; --muted: #6b7280; --line: #e3e6eb; --accent: #3b5bdb; --ok: #2f9e44; --warn: #e67700; --bad: #c92a2a; --break: #f59f00; --idle: #adb5bd; --brand: #121826; --brand-hover: #1f2937; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--fg); }
.hidden { display: none !important; }
.login { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.login .card { width: 320px; display: flex; flex-direction: column; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 28px; height: 28px; }
.login .brand { color: var(--brand); justify-content: center; margin-bottom: 6px; }
.login .brand img { width: 36px; height: 36px; }
.app { display: flex; min-height: 100vh; }
nav { width: 210px; background: var(--brand); color: #d1d5db; display: flex; flex-direction: column; padding: 12px 0; flex-shrink: 0; }
nav .brand { font-size: 18px; color: #fff; padding: 4px 18px 14px; }
nav a { display: block; padding: 7px 18px; color: inherit; text-decoration: none; }
nav a.active, nav a:hover { background: var(--brand-hover); color: #fff; }
nav .section { padding: 12px 18px 4px; font-size: 11px; text-transform: uppercase; color: #6b7280; }
nav .me { margin-top: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 4px; }
main { flex: 1; padding: 20px 28px; overflow-x: auto; }
h1 { font-size: 20px; margin: 0 0 14px; }
h2 { font-size: 15px; margin: 0 0 10px; }
label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--fg); }
button { font: inherit; padding: 6px 12px; border: 0; border-radius: 5px; background: var(--accent); color: #fff; cursor: pointer; }
button.secondary { background: #e9ecef; color: var(--fg); }
button.danger { background: var(--bad); }
button.link { background: none; color: #9ca3af; padding: 0; text-align: left; }
.toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fafbfc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #e9ecef; }
.pill.work, .pill.present, .pill.approved, .pill.productive { background: #d3f9d8; color: #2b8a3e; }
.pill.break, .pill.late, .pill.pending, .pill.neutral { background: #fff3bf; color: #a35f00; }
.pill.idle, .pill.offline, .pill.off, .pill.unrated, .pill.unscheduled, .pill.open { background: #f1f3f5; color: #495057; }
.pill.absent, .pill.rejected, .pill.unproductive { background: #ffe3e3; color: #c92a2a; }
.error { color: var(--bad); min-height: 1em; margin: 0; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.shot img { width: 100%; display: block; cursor: zoom-in; }
.shot div { padding: 5px 8px; font-size: 12px; display: flex; justify-content: space-between; }
.bar { position: relative; height: 26px; background: #f1f3f5; border-radius: 4px; overflow: hidden; margin: 6px 0 2px; }
.bar span { position: absolute; top: 0; bottom: 0; }
.bar .work, .bar .manual { background: var(--ok); }
.bar .idle_kept { background: #8ce99a; }
.bar .break { background: var(--break); }
.hours { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.meter { height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; min-width: 60px; }
.meter i { display: block; height: 100%; background: var(--accent); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 95vw; max-height: 95vh; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } nav { width: 170px; } }
