/* Device Lock Controller — red & black theme */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f2f2f2; color: #1a1a1a; }
.topbar { background: #111; color: #fff; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.topbar h1 { margin: 0; font-size: 20px; color: #fff; }
.topbar p { margin: 0; font-size: 12px; color: #bbb; }
.brand { display: flex; gap: 10px; align-items: center; }
.logo { font-size: 28px; }
.userbox { font-size: 13px; color: #ddd; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
footer { text-align: center; color: #777; font-size: 12px; padding: 18px; }
.card { background: #fff; border-radius: 8px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
h2 { margin-top: 0; color: #c8102e; }
h3 { color: #222; margin-bottom: 6px; }
.hidden { display: none !important; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { background: #fff; color: #222; border: 1px solid #ddd; padding: 9px 14px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.tabs button.active { background: #c8102e; color: #fff; border-color: #c8102e; }
button { background: #c8102e; color: #fff; border: none; padding: 9px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; }
button:hover { background: #9a0c24; }
.btn-small { padding: 5px 10px; font-size: 12px; }
.btn-danger { background: #111; }
.btn-danger:hover { background: #c8102e; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 160px; flex: 1; }
.filters label span { color: #555; font-weight: 600; }
input, select, textarea { padding: 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; width: 100%; }
textarea.tpl { font-family: inherit; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
th { background: #111; color: #fff; }
tr:nth-child(even) td { background: #fafafa; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.pill-green { background: #e0f2e9; color: #157347; }
.pill-amber { background: #fff3cd; color: #856404; }
.pill-red { background: #f8d7da; color: #842029; }
.pill-grey { background: #e9ecef; color: #495057; }
.pill-dark { background: #111; color: #fff; }
.pill-blue { background: #dbeafe; color: #1e40af; }
.sample-tag { background: #ffe08a; color: #5c4300; font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.statbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat { background: linear-gradient(135deg, #c8102e, #7a0a1c); color: #fff; border-radius: 8px; padding: 14px 16px; min-width: 130px; flex: 1; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; opacity: .9; }
.error { color: #c8102e; font-size: 13px; }
.hint { color: #666; font-size: 13px; }
.muted { color: #777; font-size: 12px; }
.bn-sub { color: #666; font-size: 13px; }
.consent-box { background: #fff8e1; border: 1px solid #ffe08a; padding: 10px; border-radius: 6px; font-size: 13px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; z-index: 50; overflow-y: auto; }
.modal-card { background: #fff; border-radius: 10px; padding: 20px; max-width: 860px; width: 100%; }
.modal-card h2 { margin-top: 0; }
.modal-card ul { font-size: 13px; }
