/* Shared ModernIT in-app header + app-switcher theme.
   Link with: <link rel="stylesheet" href="https://assets.modernit.com.au/css/theme.css">
   The app-switcher is fully self-contained under #app-switch and is populated by
   /js/appswitch.js — an app only needs an empty <div id="app-switch"></div> + that script. */

/* ---- Header bar ---- */
.app-header { background: #1a2744; color: #fff; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-header h1 { font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.app-header .subtitle { font-size: 12px; opacity: 0.7; margin-top: 2px; }
.app-header .hdr-right { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

/* ---- Borderless nav buttons / links ---- */
.hdr-btn { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.75); font-size: 13px; text-decoration: none; padding: 8px 12px; border-radius: 8px; background: transparent; border: none; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; -webkit-appearance: none; appearance: none; transition: background 0.15s, color 0.15s; }
.hdr-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }
.hdr-divider { width: 0.5px; height: 20px; background: rgba(255,255,255,0.15); margin: 0 4px; }

/* ---- App switcher (self-contained under #app-switch) ---- */
#app-switch { position: relative; display: inline-block; }
#app-switch .as-dots { display: inline-grid; grid-template-columns: repeat(3, 4px); grid-template-rows: repeat(3, 4px); gap: 3px; }
#app-switch .as-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.75); display: block; }
#app-switch button:hover .as-dots i { background: #fff; }
#app-switch .as-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.18); min-width: 170px; overflow: hidden; z-index: 200; }
#app-switch .as-menu.open { display: block; }
#app-switch .as-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: #1a2744; text-decoration: none; }
#app-switch .as-menu a:hover { background: #f0f4ff; }
