:root{font-family:Arial,Helvetica,sans-serif;color:#10213c;background:#f4f7f8;--green:#087c38;--line:#d6e3dd;--muted:#60728a;--amber:#fff6df}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{border:0;border-radius:10px;padding:13px 18px;background:var(--green);color:white;font-weight:700;cursor:pointer;min-height:46px;text-align:center;text-decoration:none;display:inline-block}button:hover,.button:hover{filter:brightness(.95)}button:disabled{opacity:.55;cursor:wait}button.secondary,.button.secondary{color:var(--green);background:#eaf5ee;border:1px solid #bddbc9}button.danger{color:#8b3900;background:#fff0d2}input,select,textarea{width:100%;border:1px solid #c6d4df;border-radius:9px;padding:12px;min-height:46px;background:white;color:inherit}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--green);margin:0}label{display:block;font-size:14px;font-weight:700;margin:14px 0 7px}label.check{display:flex;align-items:flex-start;gap:10px;line-height:1.5;font-weight:400}.test-ribbon{text-align:center;background:#fff0c8;color:#704900;font-weight:800;font-size:12px;padding:11px 16px;letter-spacing:.04em;position:sticky;top:0;z-index:3}header{max-width:1180px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 24px}.brand{display:flex;align-items:center;gap:12px;color:var(--green);font-weight:800;font-size:23px;text-decoration:none}.brand small{display:block;font-weight:400;font-size:13px;margin-top:4px;color:var(--muted)}.brand-icon{display:grid;place-items:center;background:var(--green);color:white;border-radius:12px;width:50px;height:50px;font-size:19px}main{max-width:1180px;margin:auto;padding:0 24px 30px}.intro h1{font-size:28px;margin:15px 0 10px}p{line-height:1.6;color:var(--muted)}h2{font-size:22px;margin:0 0 14px}h3{font-size:17px;margin:20px 0 12px}.card{background:white;border:1px solid var(--line);border-radius:16px;padding:22px;margin:16px 0;box-shadow:0 4px 16px #183c2a06}.card.compact{padding:16px;margin:10px 0}.split{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.full{grid-column:1/-1}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.nav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.nav button{background:white;color:var(--green);border:1px solid var(--line)}.nav button.active{background:var(--green);color:white}.meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted)}.badge{display:inline-block;background:#e7f5ec;color:var(--green);border-radius:20px;padding:5px 10px;font-size:12px;font-weight:700}.warning{background:var(--amber);border:1px solid #efca73;padding:15px;border-radius:10px;line-height:1.6;color:#694800;margin:14px 0}.success{background:#edf9f1;border:1px solid #a8dfbc;padding:14px;border-radius:10px;color:#145e31;line-height:1.6}.error{background:#fff1f1;color:#9e2020;border:1px solid #f4baba;padding:14px;border-radius:10px;line-height:1.5}.muted,.small{color:var(--muted);font-size:13px;line-height:1.5}.summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:13px 18px;align-items:start}.summary strong{text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.summary span{color:var(--muted)}.large{font-size:25px;color:var(--green)}.empty{border:1px dashed #c6d4df;padding:25px;border-radius:12px;text-align:center;color:var(--muted)}.row-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.row-title strong{overflow-wrap:anywhere}.row-title time{font-size:12px;color:var(--muted);white-space:nowrap}.list-button{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;color:#10213c;background:#f8fcf9;border:1px solid var(--line);margin:10px 0}.list-button small{display:block;color:var(--muted);font-weight:400;margin-top:7px}.qr-grid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:28px;align-items:start}.qr{background:white;padding:15px;border-radius:15px;border:1px solid var(--line);text-align:center}.qr svg{display:block;width:100%;height:auto;max-width:290px;margin:auto}.qr a{display:block;overflow-wrap:anywhere;font-size:12px;color:var(--muted);margin:12px 0}.install-guide{border:2px solid var(--green)}li{line-height:1.7;margin:10px 0}footer{display:flex;justify-content:space-between;gap:14px;margin-top:30px;flex-wrap:wrap;color:var(--muted);font-size:12px}footer a{color:var(--green)}dialog{border:1px solid var(--line);border-radius:16px;padding:24px;max-width:650px;width:calc(100% - 30px);max-height:90vh;overflow:auto}dialog::backdrop{background:#10213c77}dialog h2{color:var(--green)}details{border:1px solid var(--line);border-radius:10px;padding:14px;margin:12px 0}summary{cursor:pointer;font-weight:700}.statusline{padding:12px;background:#edf9f1;border-radius:10px;color:var(--green);font-size:13px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:12px 10px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--green);white-space:nowrap}td.numeric{text-align:right;font-variant-numeric:tabular-nums}.login{max-width:450px;margin:25px auto}.preview{margin-top:18px}.balance{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:15px 0}.balance div{background:#f5faf7;padding:14px;border-radius:12px}.balance small{display:block;color:var(--muted);margin-bottom:8px}.balance strong{font-size:22px;color:var(--green)}[hidden]{display:none!important}@media(max-width:800px){header{padding:18px 16px}.brand{font-size:19px}.brand-icon{width:42px;height:42px}.brand small{font-size:11px}header button{font-size:12px;padding:10px}main{padding:0 16px 25px}.intro h1{font-size:25px}.split,.qr-grid{grid-template-columns:1fr;gap:0}.card{padding:18px}.grid{grid-template-columns:1fr}.nav{display:grid;grid-template-columns:repeat(2,1fr)}.nav button{padding:12px 8px;font-size:13px}.row-title{flex-direction:column;gap:6px}.actions{display:grid;grid-template-columns:1fr}.actions>*{width:100%}.balance{grid-template-columns:1fr}.qr{max-width:330px;margin:auto}.summary{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px}.test-ribbon{font-size:10px}}@media print{header,.nav,.actions,footer,.intro,#globalMessage,#installApp,dialog>button{display:none!important}.test-ribbon{position:static}dialog{position:static;max-width:none;width:100%;border:0;max-height:none}body{background:white}dialog::backdrop{display:none}}

.same-app-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 16px;background:#fff8e5;border-bottom:1px solid #efd18a;font-size:12px}.same-app-tools>div{display:flex;gap:6px}.same-app-tools button{min-height:36px;padding:8px 12px;font-size:12px}.same-app-open .intro,.same-app-open footer,.same-app-open header .brand{display:none}.same-app-open main{max-width:none;padding:0}.same-app-open header{max-width:none;padding:6px 16px;justify-content:flex-end}.same-app-open .test-ribbon{padding:6px}.same-app-open #globalMessage:empty{display:none}.same-app-open #app{margin:0}#productionTestFrame{display:block;width:100%;height:calc(100dvh - 144px);min-height:650px;border:0;background:#f4f7fb}.same-app-open #installGuide{margin:15px}.same-app-open #installApp{min-height:34px;padding:7px 12px;font-size:12px}@media(max-width:600px){.same-app-tools{gap:6px;padding:8px 10px}.same-app-tools>span{width:100%;font-size:10px}.same-app-tools small{font-size:10px}.same-app-tools button{padding:7px 10px;font-size:11px}#productionTestFrame{height:calc(100dvh - 178px);min-height:600px}}

/* v542: installed client shell; administrative tools have a separate entry. */
body:not(.admin-view) .admin-only{display:none!important}header{padding:12px 16px}.brand-icon img{width:100%;height:100%;object-fit:contain;border-radius:12px}.test-ribbon{font-size:10px;padding:6px 10px}.same-app-open header .brand{display:flex}.same-app-open header{justify-content:space-between;padding:8px 12px;height:62px;border-bottom:1px solid var(--line);background:white}.same-app-open header .brand{font-size:17px}.same-app-open header .brand-icon{width:38px;height:38px}.same-app-open header .brand small{font-size:10px}.same-app-open #productionTestFrame{height:calc(100dvh - 86px);min-height:0}.same-app-open.admin-view #productionTestFrame{height:calc(100dvh - 158px)}.same-app-open #globalMessage:not(:empty){position:fixed;top:88px;left:12px;right:12px;z-index:10}.same-app-open #installGuide{position:fixed;inset:90px 0 auto;z-index:20;max-height:calc(100dvh - 110px);overflow:auto}.intro h1{font-size:26px}.login{margin:16px auto}body:not(.admin-view) footer a{display:none}@media(display-mode:standalone){header #installApp{display:none!important}}

/* Shared v544 native client interface inside the existing isolated app. */
.same-app-open:not(.admin-view)>header{display:none!important}.same-app-open:not(.admin-view) #productionTestFrame{height:calc(100dvh - 24px)!important;min-height:0!important}.same-app-open:not(.admin-view) .test-ribbon{height:24px;padding:6px 8px;font-size:9px;letter-spacing:.02em}.same-app-open #globalMessage:empty{display:none}

.same-app-open:not(.admin-view){overflow:hidden}

:root{--green:#40584e}header .brand{color:#40584e}
