/* NexoAC Hub — Tema oficial NexoAC (v0.1.0) */
:root {
  --nexoac-blue: #0B3B60;
  --nexoac-orange: #F37A1F;
  --bg: #F4F6F8;
  --card: #FFFFFF;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nexoac-blue);
  color: #fff;
  padding: 10px 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-monogram {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--nexoac-orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #fff;
}

.brand-title { font-weight: 700; font-size: 1.05rem; }
.brand-sub { font-size: 0.72rem; opacity: 0.8; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.sync-badge, .user-chip {
  background: rgba(255,255,255,0.12);
  padding: 4px 10px; border-radius: 999px; font-size: 0.78rem;
}

.shell { display: flex; min-height: calc(100vh - 54px); }

.modules-nav {
  width: 220px;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 14px 10px;
}

.nav-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 8px;
}

.modules-nav ul { list-style: none; }

.modules-nav li {
  padding: 9px 12px; border-radius: 8px; margin-bottom: 4px;
  font-size: 0.9rem; cursor: pointer;
}

.modules-nav li:hover { background: #EAF1F7; }
.modules-nav li.active { background: var(--nexoac-blue); color: #fff; }

.workspace { flex: 1; padding: 24px; }

.welcome h1 { color: var(--nexoac-blue); margin-bottom: 8px; }
.welcome p { margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 0.85rem; }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  width: min(420px, 92vw);
  display: flex; flex-direction: column; gap: 10px;
}

.modal-card h2 { color: var(--nexoac-blue); font-size: 1.1rem; }

input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--nexoac-orange);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary:hover { filter: brightness(1.05); }

/* ===== Fase I-2: componentes de UI ===== */
.btn-secondary {
  background: #EAF1F7;
  color: var(--nexoac-blue);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.view-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.view-head h1 { color: var(--nexoac-blue); font-size: 1.25rem; }

.os-list { display: flex; flex-direction: column; gap: 10px; }

.os-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 120px; padding: 8px 10px; }

.kpi-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }

.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--nexoac-orange);
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--nexoac-blue);
}

.jornada, .insights-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.jornada h2, .insights-list h2 { color: var(--nexoac-blue); font-size: 1rem; margin-bottom: 10px; }

.insight {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.check-item {
  background: #FAFBFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.check-item .inline-form { margin-top: 6px; }

/* ===== Painel Inteligência ao vivo (v0.7.2) ===== */
.intel-live {
  width: 300px;
  background: #0B3B60;
  color: #E2E8F0;
  border-left: 1px solid #1E4A73;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 54px);
  position: sticky;
  top: 54px;
}

.intel-live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #082E4A;
  font-size: 0.85rem;
}

.intel-live-header .btn-secondary {
  background: transparent;
  color: #E2E8F0;
  border-color: #1E4A73;
  padding: 2px 8px;
}

.intel-live-stats {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.72rem;
  border-bottom: 1px solid #1E4A73;
  flex-wrap: wrap;
}

.intel-live-stats span {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.intel-live-feed {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-item {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid #F37A1F;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.feed-item.insight-ia {
  border-left-color: #FDE047;
  background: rgba(253, 224, 71, 0.12);
}

.feed-item .feed-time {
  display: block;
  color: #7C9CBB;
  font-size: 0.62rem;
  margin-bottom: 2px;
}

.intel-live.collapsed { width: 36px; }
.intel-live.collapsed .intel-live-feed,
.intel-live.collapsed .intel-live-stats { display: none; }
.intel-live.collapsed .intel-live-header strong { display: none; }

.inline-form select, .inline-form label {
  padding: 6px 8px;
  font-size: 0.85rem;
}

.nav-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 10px 0 4px;
}

/* v0.8.18 — Miniatura da foto do chamado (clicável, abre em tela cheia) */
.os-foto-thumb {
  max-width: 160px;
  max-height: 140px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  cursor: zoom-in;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(11,59,96,0.15);
}
