/* AtomiQ – App Shell (topbar + sidebar + content) */
/* Ruta: /public-app/assets/css/app-shell.css */

.qhi-shell { display: flex; flex-direction: column; min-height: 100vh; }

.qhi-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.qhi-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 56px);
}

.qhi-sidebar {
  border-right: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 10px;
  overflow: auto;
}

.qhi-sidebar .qhi-nav-group { margin-bottom: 14px; }

.qhi-sidebar .qhi-nav-title {
  font-size: .8rem;
  font-weight: 600;
  color: #334155;
  margin: 8px 6px;
  text-transform: uppercase;
}

.qhi-sidebar .qhi-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qhi-sidebar .qhi-nav-btn {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  /* 🔒 Forzamos tipografía/visibilidad para que el texto nunca se oculte */
  color: #111827 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.qhi-sidebar .qhi-nav-btn img{
  width: 18px;
  height: 18px;
  display: inline-block;
  object-fit: cover;
}

.qhi-sidebar .qhi-nav-btn.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,.15) inset;
}

.qhi-content { padding: 16px; overflow: auto; }

.qhi-topbar .qhi-title { font-weight: 600; }

/* Botón “↩ Salir / ← Atrás” (texto siempre visible) */
.qhi-topbar .qhi-ghost {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #111827 !important;
  font-size: 14px !important;
}

.qhi-topbar .qhi-meta { font-size: .85rem; color: #475569; }

/* Modo compacto solo en ≤800px (en desktop nunca ocultamos textos) */
@media (max-width: 800px) {
  .qhi-body { grid-template-columns: 64px 1fr; }
  .qhi-sidebar .qhi-nav-title { display: none; }
  .qhi-sidebar .qhi-nav-btn span { display: none; }
}

/* ✅ Hotfix global: garantizar que los textos no se oculten por otros CSS */
.qhi-sidebar .qhi-nav-btn span {
  display: inline !important;
  visibility: visible !important;
  color: inherit !important;
  font-size: inherit !important;
}
.qhi-topbar .qhi-ghost span {
  display: inline !important;
  visibility: visible !important;
}
