/* ==========================================================================
   BIZWAVE ERP — LAYOUT CSS (Modern QuickBooks Online Exact Match)
   ========================================================================== */

#erp-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  background-color: var(--c-bg);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   TOP GREEN PROMO BANNER (Matching Screenshot 2)
   -------------------------------------------------------------------------- */
.erp-top-promo-banner {
  height: 30px;
  background: linear-gradient(90deg, #108000 0%, #2CA01C 60%, #00B074 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  font-size: 12.5px;
  font-weight: var(--fw-medium);
  padding: 0 var(--sp-4);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-topbar) + 10);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.erp-top-promo-text {
  letter-spacing: 0.1px;
}

.erp-top-promo-btn {
  background: #FFFFFF;
  color: #108000;
  border: none;
  border-radius: var(--r-pill);
  padding: 2px 14px;
  font-size: 11.5px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.erp-top-promo-btn:hover {
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   TOPBAR (Matching QuickBooks Screenshot 1 & 2)
   -------------------------------------------------------------------------- */
.erp-topbar {
  height: 54px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--c-nav-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-4);
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  z-index: var(--z-topbar);
}

.erp-topbar__left {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* QuickBooks Logo mark */
.erp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--c-text);
}
.erp-topbar-brand:hover {
  text-decoration: none;
  color: var(--c-text);
}

.erp-topbar-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 5px rgba(184, 134, 11, 0.28));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.erp-topbar-brand:hover .erp-brand-logo-img {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 3px 8px rgba(184, 134, 11, 0.45));
}

.erp-topbar-brand-title {
  display: flex;
  flex-direction: column;
}

.erp-topbar-brand-sub {
  font-size: 9px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #6B6C72;
  line-height: 1;
}

.erp-topbar-brand-name {
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: #393A3D;
  line-height: 1.1;
  letter-spacing: -0.2px;
}

/* Company Switcher Pill directly next to logo (Matching Screenshot 1 & 2) */
.erp-company-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 12px;
  border: 1px solid #D4D7DC;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: #393A3D;
  background-color: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.erp-company-pill:hover {
  border-color: #8D9096;
  background-color: #F8F9FA;
}

/* Center Pill Search (Exact QuickBooks Search Styling) */
.erp-topbar__center {
  flex: 1;
  max-width: 580px;
  margin: 0 var(--sp-4);
}

.erp-qb-search-wrapper {
  position: relative;
  width: 100%;
}

.erp-qb-search-input {
  width: 100%;
  height: 36px;
  padding: 0 var(--sp-4) 0 38px;
  background-color: #FFFFFF;
  border: 1px solid #D4D7DC;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: #393A3D;
  transition: all var(--transition-fast);
}

.erp-qb-search-input:focus {
  border-color: var(--c-link);
  box-shadow: 0 0 0 2px rgba(0, 119, 197, 0.15);
  outline: none;
}

.erp-qb-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6B6C72;
  pointer-events: none;
  display: flex;
}

/* Topbar Right Action Icons */
.erp-topbar__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.erp-contact-experts-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: var(--fw-medium);
  color: #393A3D;
  transition: background var(--transition-fast);
}
.erp-contact-experts-btn:hover {
  background-color: #F4F5F8;
}

.erp-expert-avatar {
  font-size: 16px;
  line-height: 1;
}

.erp-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background-color: #F4F5F8;
  color: #393A3D;
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  transition: background var(--transition-fast);
}
.erp-role-badge:hover {
  background-color: #EAECEF;
}

.erp-topbar-icon-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #393A3D;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast);
}
.erp-topbar-icon-btn:hover {
  background-color: #F4F5F8;
}

.erp-topbar-icon-btn svg {
  width: 19px;
  height: 19px;
  color: #393A3D;
}

.erp-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--c-danger);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
}

.erp-avatar-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1A5490;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: 13px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   SLIM WHITE LEFT NAVIGATION (78px EXACT MATCH TO QUICKBOOKS SCREENSHOT 1 & 2)
   -------------------------------------------------------------------------- */
.erp-sidebar {
  width: 78px;
  background-color: #FFFFFF;
  color: var(--c-nav-text);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 84px;
  bottom: 0;
  left: 0;
  z-index: var(--z-sidebar);
  border-right: 1px solid var(--c-nav-border);
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--sp-2) 0 var(--sp-2) 0;
}

.erp-sidebar::-webkit-scrollbar {
  width: 4px;
}
.erp-sidebar::-webkit-scrollbar-thumb {
  background: #D4D7DC;
  border-radius: var(--r-pill);
}

/* (+) Create Button (Matching Screenshot 1) */
.erp-sidebar__create-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: var(--sp-3);
  padding: 2px;
  color: var(--c-text);
  transition: transform var(--transition-fast);
}

.erp-sidebar__create-btn:hover {
  transform: scale(1.05);
}

.erp-sidebar__create-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #C4C8D0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  color: #393A3D;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all var(--transition-fast);
}

.erp-sidebar__create-btn:hover .erp-sidebar__create-icon {
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: 0 2px 6px rgba(44, 160, 28, 0.2);
}

.erp-sidebar__create-label {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: #393A3D;
  text-align: center;
}

/* Nav Menu Stack */
.erp-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.erp-nav__item {
  width: 100%;
  position: relative;
}

.erp-nav__btn {
  width: 100%;
  min-height: 50px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: #55575C;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.erp-nav__btn svg {
  width: 20px;
  height: 20px;
  color: #55575C;
  transition: color var(--transition-fast);
}

.erp-nav__btn span {
  font-size: 10.5px;
  font-weight: var(--fw-medium);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #55575C;
}

.erp-nav__btn:hover {
  background-color: #F4F5F8;
  color: var(--c-primary);
  text-decoration: none;
}

.erp-nav__btn:hover svg,
.erp-nav__btn:hover span {
  color: var(--c-primary);
}

.erp-nav__btn.is-active {
  background-color: #E9F6E7;
  color: var(--c-primary);
  font-weight: var(--fw-bold);
}

.erp-nav__btn.is-active svg,
.erp-nav__btn.is-active span {
  color: var(--c-primary);
}

.erp-nav__btn.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background-color: var(--c-primary);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
}

/* Nav Pinned Section Header */
.erp-nav__pinned-header {
  font-size: 9.5px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8D9096;
  padding: var(--sp-2) 0 4px 0;
  text-align: center;
  width: 100%;
}

/* Sidebar Bottom Customize Widget (Screenshot 2) */
.erp-sidebar__bottom {
  margin-top: auto;
  width: 100%;
  padding-top: var(--sp-2);
  border-top: 1px solid #EBECEF;
}

/* Flyout Submenu Panel (pops out to the right when hovering or clicking module) */
.erp-nav__flyout {
  position: fixed;
  left: 78px;
  top: 84px;
  bottom: 0;
  width: 270px;
  background-color: #FFFFFF;
  border-right: 1px solid var(--c-nav-border);
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
  z-index: calc(var(--z-sidebar) - 1);
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: var(--sp-4) 0;
}

.erp-nav__item.is-flyout-open .erp-nav__flyout {
  display: flex;
}

.erp-nav__flyout-header {
  padding: 0 var(--sp-4) var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--c-border-light);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

.erp-nav__flyout-subheading {
  padding: var(--sp-2) var(--sp-4) var(--sp-1) var(--sp-4);
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-text-2);
}

.erp-nav__flyout-link {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-text);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.erp-nav__flyout-link:hover {
  background-color: #F4F5F8;
  color: var(--c-primary);
  text-decoration: none;
  padding-left: calc(var(--sp-4) + 4px);
}

.erp-nav__flyout-link.is-active {
  background-color: #E9F6E7;
  color: var(--c-primary);
  font-weight: var(--fw-semibold);
}

/* --------------------------------------------------------------------------
   MEGA MENU ("(+) CREATE" POPUP — EXACT MATCH TO SCREENSHOT 1)
   -------------------------------------------------------------------------- */
.erp-create-mega-overlay {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: var(--z-dropdown);
  display: none;
}

.erp-create-mega-overlay.is-open {
  display: block;
}

.erp-create-mega-menu {
  position: absolute;
  top: 8px;
  left: 88px;
  width: 840px;
  max-width: calc(100vw - 110px);
  background-color: #FFFFFF;
  border: 1px solid #D4D7DC;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  padding: var(--sp-5) var(--sp-6) var(--sp-4) var(--sp-6);
  display: flex;
  flex-direction: column;
}

.erp-create-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.erp-create-col-title {
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6B6C72;
  margin-bottom: var(--sp-3);
}

.erp-create-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.erp-create-link {
  font-size: 13.5px;
  color: #393A3D;
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: 1.25;
}

.erp-create-link:hover {
  color: var(--c-primary);
  text-decoration: underline;
}

.erp-create-footer {
  border-top: 1px solid #EBECEF;
  padding-top: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-create-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-link);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.erp-create-video-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   GEAR SETTINGS MEGA MENU (EXACT MATCH TO SCREENSHOT 2)
   -------------------------------------------------------------------------- */
.erp-gear-mega-menu {
  position: absolute;
  top: 90px;
  right: var(--sp-4);
  width: 820px;
  max-width: calc(100vw - 40px);
  background-color: #FFFFFF;
  border: 1px solid #D4D7DC;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  padding: var(--sp-5) var(--sp-6);
  display: none;
  z-index: var(--z-dropdown);
}

.erp-gear-mega-menu.is-open {
  display: block;
}

.erp-gear-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.erp-gear-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-2);
}

.erp-gear-view-switch {
  font-size: 12px;
  color: #0077C5;
  text-decoration: none;
  font-weight: var(--fw-medium);
}
.erp-gear-view-switch:hover {
  text-decoration: underline;
}

.erp-gear-banner-card {
  border: 1px solid #D4D7DC;
  border-radius: var(--r-card);
  padding: var(--sp-4);
  background-color: #FAFBFD;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.erp-gear-banner-text h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-1);
}
.erp-gear-banner-text p {
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  margin: 0;
  line-height: 1.35;
}

.erp-gear-switch-btn {
  background: #FFFFFF;
  border: 1px solid #2CA01C;
  color: #108000;
  border-radius: 4px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.erp-gear-switch-btn:hover {
  background: #E9F6E7;
}

/* --------------------------------------------------------------------------
   MAIN CONTAINER & PAGE CONTENT
   -------------------------------------------------------------------------- */
.erp-main-wrapper {
  flex: 1;
  margin-left: 78px;
  margin-top: 84px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 84px);
  background-color: var(--c-bg);
  width: calc(100vw - 78px);
  max-width: calc(100vw - 78px);
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

#erp-content {
  flex: 1;
  padding: var(--sp-4) var(--sp-5) var(--sp-6) var(--sp-5);
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Page Header & Breadcrumbs */
.erp-header {
  padding: var(--sp-3) var(--sp-6) var(--sp-2) var(--sp-6);
}

.erp-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  margin-bottom: var(--sp-2);
}

.erp-breadcrumb a {
  color: var(--c-text-2);
  text-decoration: none;
}
.erp-breadcrumb a:hover {
  color: var(--c-link);
  text-decoration: underline;
}

.erp-breadcrumb__sep {
  color: #B0B3BA;
}

.erp-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.erp-header__title-area {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.erp-header__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: #393A3D;
  margin: 0;
}

.erp-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Master Responsive Rules */
@import url("responsive.css");

