/* EZ DATA RFID portal: the same look as the EZ DATA platform (dark gradient sidebar, red active item, white content, rounded cards). */
:root { --red:#E54B4B; --red2:#dc2626; --dark:#121212; --ink:#1a1a1a; --mute:#6b7280; --line:#e5e7eb; --bg:#f8f9fa; --card:#fff; --ok:#16a34a; --warn:#d97706; --bad:#dc2626; --side1:#24272C; --side2:#1A1C1F; --side3:#121315; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
a { color: var(--red); text-decoration: none; } a:hover { text-decoration: underline; }
.hidden { display: none !important; }

/* sign-in */
.login-wrap { min-height: 100vh; background: var(--dark); display: flex; align-items: center; justify-content: center; padding: 16px; position: relative; overflow: hidden; }
.login-wrap::before { content: ""; position: absolute; top: -10%; left: -10%; width: 40%; height: 40%; background: rgba(229,75,75,.12); filter: blur(120px); border-radius: 50%; }
.login-card { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 32px; padding: 40px 36px; box-shadow: 0 25px 50px rgba(0,0,0,.4); }
.login-card .logo { display: block; margin: 0 auto 10px; height: 54px; width: auto; }
.login-card .tag { text-align: center; color: #9ca3af; font-size: 10px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 26px; }
.field { margin-bottom: 14px; } .field label { display: block; font-size: 10px; font-weight: 800; color: #9ca3af; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px 4px; }
.field input { width: 100%; padding: 14px 16px; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 16px; outline: none; }
.field input:focus { border-color: rgba(229,75,75,.4); box-shadow: 0 0 0 4px rgba(229,75,75,.08); }
.btn { border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; cursor: pointer; background: var(--red); color: #fff; }
.btn:hover { background: var(--red2); } .btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; padding: 15px; } .btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); } .btn.ghost:hover { border-color: var(--red); color: var(--red); background: #fff; }
.btn.small { padding: 7px 12px; font-size: 10px; border-radius: 10px; }
.err { color: var(--bad); font-weight: 700; font-size: 13px; margin: 8px 0; text-align: center; }
.langs { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.langs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 800; cursor: pointer; color: var(--mute); }
.langs button.on { background: var(--red); border-color: var(--red); color: #fff; } .langs button:disabled { opacity: .45; cursor: default; }

/* shell */
.app { display: flex; height: 100vh; overflow: hidden; }
.side { width: 250px; flex: none; background: linear-gradient(180deg, var(--side1), var(--side2) 55%, var(--side3)); color: #fff; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.08); }
.side .brand { padding: 22px 20px 14px; } .side .brand img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); }
.side .brand small { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; }
.nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin: 3px 0; border-radius: 14px; color: rgba(255,255,255,.68); font-weight: 700; text-decoration: none; transition: .15s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(3px); }
.nav a.on { background: linear-gradient(90deg, var(--red), var(--red2)); color: #fff; box-shadow: 0 6px 14px rgba(229,75,75,.25); }
.nav .ic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); color: var(--red); font-size: 13px; }
.nav a.on .ic { background: #fff; color: var(--red); }
.side .foot { padding: 14px 18px; font-size: 11px; color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.08); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top { height: 68px; flex: none; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 12px; }
.top h1 { font-size: 17px; margin: 0; }
.top .who { display: flex; align-items: center; gap: 10px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #f3f4f6; color: var(--mute); }
.chip.red { background: rgba(229,75,75,.1); color: var(--red); }
.content { flex: 1; overflow-y: auto; padding: 24px; }
.menu-btn { display: none; }

/* content */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card .n { font-size: 28px; font-weight: 800; line-height: 1.1; } .card .l { font-size: 10px; font-weight: 800; color: #9ca3af; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.card.ok .n { color: var(--ok); } .card.warn .n { color: var(--warn); } .card.bad .n { color: var(--bad); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; margin-bottom: 18px; overflow-x: auto; }
.panel h2 { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9ca3af; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; } th { text-align: left; font-size: 10px; font-weight: 800; color: #9ca3af; letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid #f3f4f6; vertical-align: top; } tr.click { cursor: pointer; } tr.click:hover td { background: #fafafa; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge.ok { background: #dcfce7; color: #15803d; } .badge.warn { background: #fef3c7; color: #b45309; } .badge.bad { background: #fee2e2; color: #b91c1c; } .badge.off { background: #f3f4f6; color: #6b7280; }
.muted { color: var(--mute); } .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; } .kv dt { color: var(--mute); font-weight: 700; } .kv dd { margin: 0; }
.form input, .form select, .form textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 180px; }
.docframe { width: 100%; height: calc(100vh - 190px); min-height: 480px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.note { background: #f9fafb; border-left: 4px solid var(--red); padding: 8px 12px; border-radius: 8px; margin: 6px 0; }
.empty { text-align: center; color: var(--mute); padding: 28px; }

@media (max-width: 860px) {
  .side { position: fixed; z-index: 30; left: -260px; top: 0; bottom: 0; transition: left .2s; } .side.open { left: 0; }
  .menu-btn { display: inline-block; } .content { padding: 14px; } .kv { grid-template-columns: 1fr; }
}

.center { text-align: center; } .mt12 { margin-top: 12px; } .small12 { font-size: 12px; } .nomargin { margin: 0; }
.localform { margin-top: 18px; border-top: 1px solid #f3f4f6; padding-top: 14px; } .notearea { width: 100%; margin-top: 10px; }
.bigcode { font-size: 20px; letter-spacing: .1em; }
