/*
 * App shell: top bar, left nav, content area, page header.
 * Sizes measured from 1920px-wide screenshots of the real app.
 */
.lcc-app { display: flex; flex-direction: column; height: 100vh; }

/* ---------------- Top bar ---------------- */
.lcc-topbar {
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  background: var(--topbar-bg); color: #fff;
  display: flex; align-items: center;
  position: relative; z-index: 20;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.09);
}
.lcc-topbar__launcher {
  width: 76px; height: 100%; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: #fff; padding: 0 0 4px 0;
}
.lcc-topbar__launcher svg.i { width: 24px; height: 24px; }
.lcc-topbar__title { margin-left: 21px; font-size: 20px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.lcc-topbar__spacer { flex: 1; }
.lcc-topbar__btn {
  height: 40px; min-width: 40px; margin: 0 6px; border: 0; border-radius: 3px;
  background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.lcc-topbar__btn:hover, .lcc-topbar__btn.is-open { background: rgba(255, 255, 255, 0.14); }
.lcc-topbar__btn svg.i { width: 24px; height: 24px; stroke: currentColor; stroke-width: 0.45px; }
.lcc-topbar__bell-dot {
  position: absolute; top: 7px; left: 50%; margin-left: -3px; width: 6px; height: 6px; border-radius: 50%; background: #C4314B;
}
.lcc-topbar__me {
  height: 44px; margin: 0 16px 0 10px; padding: 0 3px 0 10px; border: 0; border-radius: 3px; background: transparent; color: #fff;
  display: inline-flex; align-items: center; gap: 13px; font-size: 13px;
}
.lcc-topbar__me:hover, .lcc-topbar__me.is-open { background: rgba(255, 255, 255, 0.14); }

/* ---------------- Body ---------------- */
.lcc-body { flex: 1; display: flex; min-height: 0; }
.lcc-main { flex: 1; min-width: 0; position: relative; overflow: auto; }

/* ---------------- Sidebar ---------------- */
.lcc-sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: var(--sidebar-bg); color: #fff;
  overflow-y: auto; overflow-x: hidden; padding: 0 0 24px 0;
}
.lcc-sidebar::-webkit-scrollbar-thumb { background: #55566e; background-clip: content-box; }
.nav-item {
  display: flex; align-items: center; width: 100%; min-height: var(--nav-row-h);
  padding: 0 0 0 15px; border: 0; background: transparent; color: #fff; text-align: left;
  font-size: var(--fs-base); line-height: 20px; text-decoration: none; position: relative; cursor: pointer;
}
.nav-item:hover { background: var(--sidebar-hover); text-decoration: none; }
.nav-item__icon { width: 24px; height: 24px; margin-right: 17px; display: inline-flex; }
.nav-item__icon svg.i { width: 24px; height: 24px; stroke: currentColor; stroke-width: 0.45px; }
.nav-item__label { flex: 1; padding: 6px 0; }
.nav-item__chev { width: 12px; margin-right: 35px; display: inline-flex; opacity: 0.95; }
.nav-item__chev svg.i { width: 10px; height: 10px; }
.nav-item.is-active { background: var(--accent); }
.nav-item.is-active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #fff; }
.nav-children .nav-item { min-height: var(--nav-child-h); padding-left: 78px; }
.nav-children a.nav-item { padding-right: 33px; } /* 170px of text: same wrapping as the real nav */
.nav-children .nav-item__label { padding: 0; line-height: 23px; }
.nav-children .nav-children .nav-item { padding-left: 100px; }
/* A nested group header (e.g. Connectors) is highlighted when it contains the active page */
.nav-children .nav-item.is-ancestor { background: var(--accent); }
.nav-children .nav-item.is-ancestor::before { display: none; }

/* ---------------- Page frame ---------------- */
.page { display: flex; flex-direction: column; min-height: 100%; height: 100%; padding: 0 var(--page-pad-x) 0 var(--page-pad-x); }
.page--scroll { height: auto; min-height: 100%; padding-bottom: 24px; }
.page-header {
  flex: 0 0 var(--page-header-h); height: var(--page-header-h);
  display: flex; align-items: center; gap: 0; min-width: 0;
}
.page-header__title { font-size: var(--fs-title); font-weight: 600; white-space: nowrap; line-height: 1; padding: 6px 28px 6px 1px; }
.page-header__desc {
  font-size: var(--fs-base); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 1px solid var(--border); padding: 9px 0 9px 22px;
}
.page-header__title.has-divider-only { border-right: 1px solid var(--border); }
.page-header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; margin-right: 18px; }
.live-badge::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--live-red); }
.page-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Card containers used by most pages */
.card { background: var(--card-bg); }
.card--pad { padding: 14px 23px 20px; }

/* ---------------- Notifications dropdown (135) ---------------- */
.notif-panel { width: 440px; padding: 0 0 14px 0; }
.notif-panel__head { background: var(--topbar-bg); color: #fff; font-size: 21px; font-weight: 400; text-align: center; padding: 18px 10px 19px; }
.notif-panel__links { display: flex; justify-content: space-between; padding: 22px 21px 15px; border-bottom: 1px solid var(--row-line); margin: 0 10px; font-size: 14px; }
.notif-panel__list { max-height: 520px; overflow-y: auto; padding: 0 21px 0 10px; }
.notif-item { display: flex; gap: 12px; align-items: center; padding: 14px 0 14px 0; }
.notif-item__dot { width: 7px; height: 7px; border-radius: 50%; background: #1BC5BD; flex: 0 0 7px; margin-left: 9px; }
.notif-item__dot.is-read { background: transparent; }
.notif-item__icon { width: 26px; flex: 0 0 26px; color: #B5B5C3; display: inline-flex; justify-content: center; }
.notif-item__text { flex: 1; font-size: 14px; line-height: 22px; color: #3F4254; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.notif-item__meta { flex: 0 0 auto; text-align: right; font-size: 12.5px; line-height: 20px; color: #B5B5C3; white-space: nowrap; }
.notif-item__meta .link-btn { font-size: 12.5px; }
.notif-panel__foot { text-align: center; padding-top: 8px; font-size: 14px; }
.notif-panel__empty { padding: 30px 10px; text-align: center; color: var(--text-muted); }

/* ---------------- Profile menu (136) ---------------- */
.profile-panel { width: 440px; padding: 0; }
.profile-panel__head { display: flex; align-items: center; gap: 22px; padding: 22px 28px 14px; font-weight: 600; font-size: 15px; color: #3F4254; }
.profile-panel__item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 28px; font-size: 14.5px; color: #3F4254; }
.profile-panel__item:hover { background: #F3F6F9; color: var(--accent-text); }
.profile-panel__sep { height: 1px; background: var(--row-line); margin: 8px 0; }
.profile-panel__foot { padding: 6px 28px 22px; }
.profile-panel__foot .btn { min-width: 0; padding: 0 26px; height: 40px; }

/* ---------------- Agent Panel shell (separate window in the real app) ---------------- */
.ap-app { display: flex; flex-direction: column; height: 100vh; background: var(--page-bg); }
.ap-topbar {
  height: var(--topbar-h); flex: 0 0 var(--topbar-h); background: var(--topbar-bg); color: #fff;
  display: flex; align-items: center; padding: 0 0 0 18px; position: relative; z-index: 20;
}
.ap-topbar__title { font-size: 17px; font-weight: 600; }
.ap-body { flex: 1; position: relative; min-height: 0; }
