/* NHouse terminál – Chainway C66 (5,2" 720×1440, Android 13). Velké cíle pro palec, vysoký kontrast i na slunci, bez hover. */
:root { --bg: #f4f1ea; --panel: #fffdf8; --ink: #17211b; --muted: #5f685b; --line: #ddd7c9; --accent: #007138; --ok: #1f7a43; --bad: #c0352b; --warn: #b7791f; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 17px/1.35 'Outfit', system-ui, sans-serif; overscroll-behavior: none; }
#scanSink { position: fixed; left: -100px; top: 0; width: 10px; height: 10px; opacity: 0; }
#bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 10px 12px; min-height: 54px; }
#bar .tlogo { height: 34px; width: 34px; display: block; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
#bar #title { flex: 1; font-weight: 600; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bar #who { font-size: 13px; opacity: .85; text-align: right; }
#backBtn { background: rgba(255, 255, 255, .18); border: 0; color: #fff; font-size: 30px; line-height: 1; width: 44px; height: 40px; border-radius: 10px; }
main { padding: 12px; padding-bottom: 90px; }
h2 { margin: 6px 0 10px; font-size: 20px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .mono { font-family: 'IBM Plex Mono', monospace; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 16px 12px; min-height: 108px; display: flex; flex-direction: column; justify-content: space-between;
  font: 600 18px/1.25 'Outfit', system-ui, sans-serif; text-align: left; color: var(--ink); }
.login-logo { display: block; width: 70%; max-width: 280px; margin: 10px auto 4px; }
.tile:active { background: #e2f1e7; border-color: var(--accent); }
.tile .ico { font-size: 30px; }
.tile .sub { font-size: 13px; font-weight: 400; color: var(--muted); }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 16px; font: 600 18px 'Outfit', sans-serif; background: var(--panel); color: var(--ink); border: 2px solid var(--line); margin: 8px 0; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.bad { color: var(--bad); border-color: #e9b9b3; }
.btn:disabled { opacity: .45; }
.row { display: flex; gap: 8px; } .row > * { flex: 1; }
input, select { font: 18px 'Outfit', sans-serif; width: 100%; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
.card { background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 12px; margin: 8px 0; }
.state { border-radius: 14px; padding: 14px; font-size: 19px; font-weight: 600; text-align: center; margin: 8px 0; }
.state.info { background: #e1ecf5; color: #2b5f8a; } .state.ok { background: #d9f0e0; color: var(--ok); } .state.bad { background: #f8dcd8; color: var(--bad); } .state.warn { background: #fbf0dc; color: var(--warn); }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 10px; margin: 6px 0; }
.item.done { background: #dff1e5; border-color: #9fd1af; }
.item.part { background: #fbf0dc; border-color: #ecd19d; }
.item.next { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.item .loc { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 20px; text-align: center; background: #ece8dd; border-radius: 8px; padding: 6px 2px; }
.item .name { font-weight: 600; font-size: 16px; }
.item .qty { font: 600 26px 'IBM Plex Mono', monospace; white-space: nowrap; }
.item.child { margin-left: 14px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; background: #ece8dd; }
.tag.cod { background: #fff1c9; color: #7a5a00; } .tag.bad { background: #f8dcd8; color: var(--bad); }
.note { background: #e1ecf5; color: #2b5f8a; border-radius: 12px; padding: 10px; margin: 8px 0; }
.progress { height: 12px; background: #e4dfd2; border-radius: 6px; overflow: hidden; margin: 8px 0; }
.progress div { height: 100%; background: var(--accent); }
.pin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pin button { font: 600 26px 'Outfit', sans-serif; padding: 16px 0; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); color: var(--ink); }
.pin button:active { background: #e8f0e9; }
.dots { text-align: center; font-size: 34px; letter-spacing: 10px; min-height: 46px; }
.bottom { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 25%); z-index: 4; }
.bottom .btn { margin: 0; }
#toast { position: fixed; left: 12px; right: 12px; bottom: 90px; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 12px; z-index: 20; font-size: 16px; }
#flash { position: fixed; inset: 0; pointer-events: none; z-index: 30; opacity: 0; }
#flash.ok { background: #2fa35a; animation: flash .35s; } #flash.bad { background: #d33b2f; animation: flash .7s; }
@keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }
table { width: 100%; border-collapse: collapse; } td { padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
