/* ============ One Page Operating Portal layout (mục 03, 10) ============ */
.one-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.operating-page { min-height: 100vh; }

/* Context header (mục 03, 12) */
.context-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 10px 18px; position: sticky; top: 0; z-index: 10;
}
.ch-brand { display: flex; align-items: center; gap: 10px; }
.ch-logo {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 12px;
}
.ch-name { font-weight: 700; font-size: 14px; }
.ch-sub { font-size: 11px; color: var(--ink-soft); }
.ch-identity { display: flex; align-items: center; gap: 10px; }
.ch-user { display: flex; align-items: center; gap: 8px; }
.user-avatar-sm {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.ch-user-name { font-size: 13px; font-weight: 650; }
.ch-user-role { font-size: 11px; color: var(--ink-soft); }
.ch-tenant { font-size: 11px; color: var(--ink-soft); font-family: ui-monospace, monospace; }
.ch-actions { display: flex; align-items: center; gap: 10px; }
.ch-icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 15px; cursor: pointer; display: grid; place-items: center;
}
.btn-setup { background: var(--brand); color: #fff; border-color: var(--brand); font-size: 12px; }

/* Two zones (mục 10): Data ~60% | Communication ~40% */
.one-page-body {
  display: grid; grid-template-columns: 3fr 2fr; gap: 0;
  flex: 1; min-height: 0;
}
.data-col { padding: 18px; min-width: 0; overflow-y: auto; max-height: calc(100vh - 62px); }
.comm-col {
  border-left: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; min-height: 0;
}
.zone-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.zone-head h2 { margin: 0; font-size: 15px; letter-spacing: .04em; }
.zone-sub { font-size: 12px; color: var(--ink-soft); }
.data-zone { display: flex; flex-direction: column; gap: 14px; }
.data-section { margin-bottom: 4px; }
.section-title { margin: 10px 0 8px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.card-grid-item { min-width: 0; }
.card-grid-item.ctx-active .card { outline: 3px solid var(--brand); outline-offset: 1px; box-shadow: 0 0 0 4px var(--brand-soft); }

/* Stats / owner business */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat-label { font-size: 11px; color: var(--ink-soft); }
.stat-value { font-size: 17px; font-weight: 750; margin: 2px 0; }
.stat-trend { font-size: 11px; color: var(--ok); }
.owner-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.risk-li { color: var(--danger); }

/* Setup workspace */
.setup-workspace { padding: 18px; max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.setup-backbar { display: flex; align-items: center; gap: 10px; }
.setup-progress { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.setup-progress-head { display: flex; justify-content: space-between; align-items: center; }
.progress-pct { font-weight: 750; font-size: 16px; color: var(--brand); }
.progress-bar { height: 8px; background: #ececec; border-radius: 999px; margin: 8px 0 12px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 999px; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.setup-step { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; background: #fafafa; }
.setup-step.current { border-color: var(--brand); background: var(--brand-soft); }
.step-no { font-weight: 750; color: var(--brand); }
.step-label { flex: 1; }
.setup-step-page { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
