/* The frame around Greg's ThingsBoard cards: just enough of ThingsBoard's page. */
:root { color-scheme: dark; }
html, body { margin: 0; background: #0b1220; color: #e6edf5; font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; }
/* ThingsBoard's dashboard with the toolbar folded away (as Greg's live portal): only the
   round "more" button in the top right corner; the menu holds the name and Logout */
#tb-more { position: fixed; top: 6px; right: 6px; z-index: 1200; }
#tb-more-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(100, 116, 139, .55); color: #e6edf5; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
#tb-more-btn:hover { background: rgba(100, 116, 139, .8); }
#tb-more-btn .material-icons { font-size: 20px; }
#tb-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: #1a2640; color: #e6edf5; border: 1px solid #283855;
  border-radius: 10px; padding: 6px 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.tb-menu-who { display: flex; align-items: center; gap: 10px; padding: 8px 14px 6px; }
.tb-menu-who .material-icons { font-size: 34px; color: #94a3b8; }
.tb-menu-who span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.tb-menu-who small { color: #94a3b8; font-size: 12px; }
.tb-menu-note { margin: 2px 14px 6px; padding: 4px 8px; border-radius: 6px; background: rgba(251, 191, 36, .12); color: #fbbf24; font-size: 11.5px; }
#tb-menu button, #tb-menu a { display: flex; align-items: center; gap: 14px; width: 100%; height: 42px; padding: 0 14px; box-sizing: border-box;
  background: transparent; border: 0; color: inherit; font: inherit; font-size: 14px; cursor: pointer; text-align: left; text-decoration: none; }
#tb-menu button:hover, #tb-menu a:hover { background: rgba(255, 255, 255, .06); }
#tb-menu .material-icons { color: #94a3b8; font-size: 20px; }
#tb-root { position: relative; }
.tb-msg { padding: 24px; color: #94a3b8; }
.tb-grid { position: relative; }
.tb-w { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; }
.tb-w-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px; min-height: 28px; }
.tb-w-title { flex: 1; font-weight: 500; font-size: 14px; }
.tb-w-btn { background: transparent; border: 0; color: inherit; cursor: pointer; border-radius: 50%; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; opacity: .85; }
.tb-w-btn:hover { background: rgba(255, 255, 255, .08); opacity: 1; }
.tb-w-btn .material-icons { font-size: 20px; }
.tb-w-body { position: relative; flex: 1; min-height: 0; overflow: auto; }
.tb-w-body > .tb-card { height: 100%; }
.tb-w-body iframe { border: 0; width: 100%; height: 100%; display: block; }
.tb-off { display: flex; align-items: center; justify-content: center; height: 100%; padding: 16px; text-align: center; color: #94a3b8; font-size: 13px; border: 1px dashed #334155; border-radius: 8px; box-sizing: border-box; }
.tb-dlg-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.tb-dlg { position: relative; background: #0b1220; border-radius: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); overflow: auto; }
.tb-dlg-x { position: absolute; top: 4px; right: 4px; z-index: 5; }
#tb-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.tb-toast { background: #1e293b; color: #e6edf5; border-left: 4px solid #60a5fa; padding: 10px 14px; border-radius: 4px; max-width: 360px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); font-size: 13px; }
.tb-toast.error { border-color: #f87171; }
.tb-toast.success { border-color: #4ade80; }
.tb-toast.warn { border-color: #fbbf24; }
@media (max-width: 960px) {
  .tb-grid.tb-stack { height: auto !important; }
  .tb-stack .tb-w { position: relative; left: 0 !important; top: 0 !important; width: auto !important; margin: 8px; }
}
.tb-w-body > .tb-custom { height: 100%; }
body.tb-dlg-open #tb-more { display: none; }
