:root{--bg: #f5f6f8;--card: #fff;--text: #1c2430;--muted: #6b7684;--border: #dde1e6;--blue: #1d4ed8;--blue-soft: #e8eefc;--red: #b91c1c;--green: #15803d;--amber: #b45309;font-family:Segoe UI,system-ui,-apple-system,sans-serif;font-size:14px;color:var(--text)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}h1{font-size:22px;margin:2px 0}h2{font-size:16px;margin:0 0 12px}h3{font-size:13px;margin:16px 0 8px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.muted{color:var(--muted)}.small{font-size:12px}.center{min-height:80vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px}.card{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:16px 18px;margin-bottom:14px}.narrow{width:100%;max-width:380px}button{font:inherit;padding:7px 14px;border:1px solid var(--border);border-radius:6px;background:#fff;cursor:pointer;color:var(--text)}button:hover:not(:disabled){border-color:#aab2bd}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:600}button.link{border:0;background:none;color:var(--blue);padding:0}input,select,textarea{font:inherit;padding:7px 9px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--text);width:100%;min-width:0}input:focus,select:focus{outline:2px solid #bfd0fb;border-color:var(--blue)}label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}label.check{flex-direction:row;align-items:center;gap:8px;color:var(--text);padding-top:18px}label.check input{width:auto}.req,.error{color:var(--red)}.error.banner{background:#fef2f2;border:1px solid #fecaca;padding:10px 12px;border-radius:6px}.login{display:flex;flex-direction:column;gap:12px}.login h1{font-size:28px}.app{min-height:100vh}.topbar{display:flex;align-items:center;gap:24px;padding:10px 20px;background:#0f1b33;color:#fff;flex-wrap:wrap}.brand{font-weight:700;font-size:17px}.brand span{font-weight:400;opacity:.7;font-size:13px;margin-left:6px}.topbar nav{display:flex;gap:4px;flex:1}.topbar nav a{color:#cfd6e4;padding:6px 10px;border-radius:6px}.topbar nav a.active{background:#ffffff1f;color:#fff;text-decoration:none}.me{display:flex;align-items:center;gap:10px;font-size:13px}.me .link{color:#cfd6e4}.badge{background:#ffffff26;padding:2px 8px;border-radius:999px;font-size:12px}main{padding:18px 20px;max-width:1300px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px;flex-wrap:wrap}.actions{display:flex;gap:8px}.actions.bottom{justify-content:flex-end;margin-bottom:40px}.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.chips span{background:var(--blue-soft);color:#1e3a8a;padding:2px 9px;border-radius:999px;font-size:12px}.filters{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:8px;margin-bottom:12px}@media (max-width: 900px){.filters{grid-template-columns:1fr 1fr}.filters .search{grid-column:1 / -1}}.table-wrap{overflow-x:auto;background:var(--card);border:1px solid var(--border);border-radius:8px}table.list{width:100%;border-collapse:collapse}table.list th{text-align:left;font-size:12px;color:var(--muted);font-weight:600;padding:9px 10px;border-bottom:1px solid var(--border);background:#fafbfc;position:sticky;top:0}table.list td{padding:8px 10px;border-bottom:1px solid #eef0f3;vertical-align:top}table.list tbody tr{cursor:pointer}table.list tbody tr:hover{background:#f8faff}.status{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;text-transform:capitalize;background:#eef0f3;color:var(--muted)}.status.active{background:#dcfce7;color:var(--green)}.status.resigned,.status.retired,.status.inactive{background:#fef3c7;color:var(--amber)}.status.terminated{background:#fee2e2;color:var(--red)}.tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);margin-bottom:12px}.tabs button{border:0;border-radius:6px 6px 0 0;background:none;color:var(--muted);padding:8px 14px;border-bottom:2px solid transparent}.tabs button.active{color:var(--text);border-bottom-color:var(--blue);font-weight:600}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px 16px}.field{display:flex;flex-direction:column;gap:2px}.field span{font-size:12px;color:var(--muted)}.field b{font-weight:500;overflow-wrap:anywhere}.history{list-style:none;margin:0;padding:0}.history li{padding:8px 0;border-bottom:1px solid #eef0f3}.grid+.grid{margin-top:12px}.notice{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;padding:10px 12px;border-radius:6px}table.list.static tbody tr{cursor:default}.row-actions{display:flex;gap:6px;justify-content:flex-end;white-space:nowrap}.row-actions button{padding:4px 10px;font-size:13px}.nowrap{white-space:nowrap}.me-link{color:#fff!important;padding:0!important}.filters.att{grid-template-columns:repeat(6,1fr);align-items:end}@media (max-width: 900px){.filters.att{grid-template-columns:1fr 1fr}}.chips.summary{margin:0 0 12px}.chips.summary button{border:1px solid transparent;cursor:pointer}.chips.summary button.on{border-color:currentColor;font-weight:600}.status.present{background:#dcfce7;color:var(--green)}.status.missing-punch{background:#fef3c7;color:var(--amber)}.status.no-punches{background:#fee2e2;color:var(--red)}.status.not-linked{background:#eef0f3;color:var(--muted)}.att-head{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:12px}.att-head label{width:180px}.small-btn{padding:4px 10px;font-size:13px}th.right{text-align:right}tr.editing td{background:#f8faff}tr.editing input,tr.editing select{padding:5px 7px}.inactive-row{opacity:.55}.kind-pick{max-width:280px;margin-bottom:12px}.org-tree,.org-tree ul{list-style:none;margin:0;padding:0}.org-tree ul{margin-left:22px;border-left:1px solid var(--border);padding-left:12px}.org-row{display:flex;align-items:center;gap:10px;padding:6px 4px;border-bottom:1px solid #f0f2f5;flex-wrap:wrap}.org-row .row-actions{margin-left:auto}.org-level{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);width:82px}.org-row.level-1 b{font-size:15px}.org-edit{display:flex;gap:6px;margin:6px 0 8px 92px;max-width:640px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media (max-width: 900px){.two-col{grid-template-columns:1fr}}a.button{display:inline-block;padding:7px 14px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--text)}a.button:hover{text-decoration:none;border-color:#aab2bd}.pair{display:flex;gap:6px}.pattern-grid select{min-width:72px;padding:5px 6px}.assign-bar{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:12px 16px}.assign-bar label{min-width:200px}tr.picked td{background:#eef3ff}.status.day-off{background:#eef0f3;color:#475569}
