/* RC4.1 — Melhor contraste diurno exclusivamente no posto operacional. */
body.theme-day #appView{--bg:#ecf4ff;--surface:#ffffff;--border:rgba(35,74,116,.18);--text:#10243f;--muted:#536a82;--cyan:#005c9e;--blue:#1265e8;--blue2:#327efe;background:#ecf4ff;color:#10243f}
body.theme-day #appView .glass{background:#fff;border-color:rgba(35,74,116,.16);box-shadow:0 9px 26px rgba(22,58,110,.08)}
body.theme-day #appView .sidebar,body.theme-day #appView .topbar{background:#e5f0ff;color:#10243f}
body.theme-day #appView input,body.theme-day #appView select{background:#fff;color:#10243f;border-color:#c6d7ee}
body.theme-day #appView .primary{color:#fff}
body.theme-day #appView .ghost,body.theme-day #appView .secondary,body.theme-day #appView .mobile-action{background:#eef5ff;color:#0d376b;border-color:#bdd0e9}
body.theme-day #appView .nav.active{color:#0751b8}
body.theme-day #appView .hero{background:linear-gradient(120deg,#dcebff,#fff 68%);border:2px solid #65a6ff}
body.theme-day #appView .metric{border-left:4px solid #2480ed}
body.theme-day #appView .metric.package-metric{border-left-color:#11a686}
body.theme-day #appView .eyebrow{color:#005a9f}
body.theme-day #appView .mobile-nav{background:#e7f0fd}
#appView #heroNew{background:linear-gradient(120deg,#1473f8,#005ecb);border:2px solid #75b9ff;padding:17px 23px;font-size:16px;min-height:58px}
#appView .mobile-action{min-height:70px}
#appView .mobile-action.primaryish{border:2px solid #2677ff}
#appView .hero{border:1px solid rgba(32,168,255,.55)}
.package-lookup{padding:13px;border:1px solid var(--border);border-radius:14px;margin:12px 0;background:rgba(34,129,247,.045)}
.package-lookup label{display:block;font-weight:700;margin-bottom:9px}
.package-lookup .search-row{flex-wrap:wrap}
.package-lookup .search-row input{min-width:160px}
.package-camera{width:min(100%,460px);max-height:260px;object-fit:cover;border-radius:12px;margin:12px auto;display:block}
.op-code-result{padding:12px;margin-top:12px;border:1px solid var(--border);border-radius:10px;display:grid;gap:4px}
.op-code-result span,.op-code-result small{color:var(--muted)}
#preCadastroModal .modal-card{max-width:600px}
@media(max-width:800px){.package-lookup .search-row button{flex:1} #appView .mobile-action{min-height:76px}}

/* RC4.2 — tela de portaria sem diagnostico tecnico e com acao simples ao final dos moradores. */
#appView .portaria-resident-action{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid var(--border);padding-top:16px;margin-top:18px}
#appView .portaria-resident-action p{max-width:550px;margin:0;font-size:13px}
#appView .portaria-resident-action button{min-height:49px;font-weight:800}
#appView .portaria-resident-action button[hidden]{display:none!important}
body.theme-day #appView .nav{color:#224566}
body.theme-day #appView .nav:hover,body.theme-day #appView .nav.active{background:#d5e7ff;color:#0752bd;border-color:#9ec4ff}
body.theme-day #appView .topbar{background:rgba(232,243,255,.95)}
body.theme-day #appView .hero .muted,body.theme-day #appView .panel .muted{color:#4b6079}
body.theme-day #appView .more-groups>div,body.theme-day #appView .more-groups button,body.theme-day #appView .package-lookup,body.theme-day #appView .search-input-block{background:#f7fbff;color:#193551}
body.theme-day #appView .resident-directory .list-item{border-color:#d3e1f3}
@media(max-width:620px){#appView .portaria-resident-action{align-items:stretch}#appView .portaria-resident-action button{width:100%}}
