/* Swift Hub : only what app.css (the Swift ERP screens, copied as is) does not have */
#app:not(.in) #dash, #app:not(.in) #menubar { display: none }
#app:not(.in) { grid-template-columns: 1fr !important }
#dash .hd { background: #4a7a6c; color: #fff; font-weight: 700; padding: 6px 10px; font-size: 12px }
#dash .kvl { padding: 6px 10px; line-height: 1.75; font-size: 13px }
#dash .kvl div { display: flex; justify-content: space-between; cursor: pointer }
#dash .kvl div:hover { color: var(--blue) }
#statusbar .k { color: #ffd84d; font-weight: 700; margin-right: 4px }
#statusbar span { margin-right: 10px }
.hub-kv { display: grid; grid-template-columns: 150px 1fr 150px 1fr; gap: 8px 14px; padding: 14px 18px; align-items: center }
.hub-kv label { color: var(--blue) }
.hub-kv .full { grid-column: span 3 }
.hub-kv input, .hub-kv select { padding: 3px 6px; border: 1px solid #b9c7c2; border-radius: 5px; background: #fff }
.hub-kv .ck { margin-right: 14px; color: inherit; white-space: nowrap }
.hub-err { color: #b3261e; font-weight: 600; padding: 0 18px; min-height: 20px }
.hub-note { display: block; padding: 6px 12px; font-size: 13px; border-radius: 5px; margin: 0 18px }
.hub-h { padding: 6px 0 4px; color: var(--blue); font-weight: 600 }
.hub-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 14px 14px }
.hub-bars { display: flex; align-items: flex-end; gap: 2px; height: 56px }
.hub-bars div { flex: 1; background: #4a7a6c; border-radius: 2px 2px 0 0; min-height: 2px }
.hub-bars div.no { background: #d9e0dd }
.hub-login { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center }
.hub-login .box { background: #fff; border: 1px solid #6d7f7a; box-shadow: 4px 5px 14px rgba(0,0,0,.28); width: 380px }
.hub-login .box .in { padding: 16px 20px; display: grid; gap: 8px }
.hub-login input { padding: 6px 8px; border: 1px solid #b9c7c2; border-radius: 5px }
.hub-key { font: 18px Consolas, monospace; user-select: all; background: #fffbe0; padding: 6px 10px; border: 1px solid #e0c060; display: inline-block }
table.g tr.sel td .st { border-color: #fff }
.modal { position: fixed }
.modal .cd-f { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; padding: 14px 16px 4px; align-items: center }
.modal .cd-f label { color: var(--blue) }
.modal .cd-f input, .modal .cd-f select { padding: 3px 6px; border: 1px solid #b9c7c2; border-radius: 5px }
.modal .hub-err { padding: 4px 16px; min-height: 18px }
#app.in #menubar { display: flex !important }      /* the Hub has no home screen : its menu stays in sight (Swift ERP hides it on screens) */
#usr:empty { display: none }
.win .bar select { width: auto }
.modal p.hub-err { color: #b3261e; padding: 4px 16px }
