/* LiveliGoods C2C — left sidebar user menu overlay (Figma Menu 2046:4720) */
/* Fit inside AdminLTE sidebar (~230–240px): no horizontal bleed */
.main-sidebar .user-panel,
.main-sidebar .user-panel.lg-c2c-user-panel{
  display:block !important;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding:10px 12px !important;
  overflow:visible;
}
.main-sidebar .user-panel > .pull-left,
.main-sidebar .user-panel > .image,
.main-sidebar .user-panel > .info{
  position:static !important;
  left:auto !important;
  float:none !important;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding-left:0 !important;
  padding-right:0 !important;
}
/* Avatar + display name on one row (HTML_USER_TOP_PANEL_OVER_MENU_LIVELIGOODS .lg-c2c-um-head) */
.main-sidebar .user-panel .lg-c2c-um-head{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:0 0 10px;
}
.main-sidebar .user-panel .lg-c2c-um-head > .pull-left,
.main-sidebar .user-panel .lg-c2c-um-head > .image,
.main-sidebar .user-panel .lg-c2c-um-head > .info{
  width:auto;
  max-width:none;
  margin:0;
}
.main-sidebar .user-panel .lg-c2c-um-head .lg-c2c-um-avatar-wrap,
.main-sidebar .user-panel .lg-c2c-um-head > .image{
  flex:0 0 auto;
  flex-shrink:0;
}
.main-sidebar .user-panel .lg-c2c-um-head .top-menu-user-panel-names,
.main-sidebar .user-panel .lg-c2c-um-head > .info{
  flex:1 1 auto;
  min-width:0;
  align-self:center;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
}
.main-sidebar .user-panel .lg-c2c-um-head .lg-c2c-um-avatar-link{
  margin-bottom:0;
  vertical-align:middle;
}
.main-sidebar .user-panel .top-menu-user-panel-names,
.main-sidebar .user-panel .top-menu-user-panel-locaton,
.main-sidebar .user-panel > .info{
  white-space:normal;
  overflow-wrap:break-word;
  word-break:break-word;
  overflow:visible;
  text-overflow:unset;
  max-width:100% !important;
  text-align:left;
  line-height:1.35;
}
/* Location card in C2C panel replaces legacy location line */
.main-sidebar .user-panel:has(.lg-c2c-um-panel) .top-menu-user-panel-locaton{
  display:none !important;
}
.lg-c2c-um-panel{
  font-family:'Poppins',sans-serif;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding:12px 0 16px;
  margin-top:8px;
  border-top:1px solid #e4dfd5;
}
.lg-c2c-um-avatar-link{display:inline-block;border-radius:50%;overflow:hidden;border:2px solid #6ab05a;line-height:0;margin-bottom:8px;}
.lg-c2c-um-avatar-img{width:48px;height:48px;object-fit:cover;display:block;}
.lg-c2c-um-avatar-fallback{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#426d08;color:#f9f4e7;font-weight:700;font-size:18px;}
.lg-c2c-um-loc{
  display:flex;
  align-items:flex-start;
  gap:8px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  min-width:0;
  padding:10px 8px;
  margin-bottom:10px;
  background:#f8f5ef;
  border:1px solid #e4dfd5;
  border-radius:10px;
}
.lg-c2c-um-loc > div{min-width:0;flex:1;white-space: pre-line;}
.lg-c2c-um-loc svg{width:14px;height:14px;flex-shrink:0;color:#8f877f;margin-top:2px;}
.lg-c2c-um-loc p{margin:0;font-size:12px;font-weight:600;color:#2C2C2A;line-height:1.3;overflow-wrap:break-word;word-break:break-word;}
.lg-c2c-um-loc span{font-size:10px;color:#8f877f;display:block;}
.lg-c2c-um-role-badge{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#f9f4e7;background:#DE8700;padding:4px 10px;border-radius:999px;margin-bottom:10px;}
.lg-c2c-um-switch-form{
  margin-bottom:12px;
  padding:10px 10px;
  background:#f8f5ef;
  border:1px solid #e4dfd5;
  border-radius:10px;
}
.main-sidebar .lg-c2c-um-switch-form{
  display:block;
  width:100%;
  box-sizing:border-box;
}
.lg-c2c-um-switch{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  margin:0;
  width:100%;
  position:relative;
}
.lg-c2c-um-switch input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  margin:0;
  pointer-events:none;
}
.lg-c2c-um-switch-ui{
  display:inline-block;
  width:44px;
  min-width:44px;
  height:24px;
  border-radius:12px;
  background:#c8c0b0;
  border:1px solid #9a9688;
  position:relative;
  flex-shrink:0;
  vertical-align:middle;
  transition:background .2s,border-color .2s;
  box-sizing:border-box;
}
.lg-c2c-um-switch-ui::after{
  content:'';
  position:absolute;
  top:2px;
  left:2px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(44,44,42,.28);
  transition:transform .2s;
}
.lg-c2c-um-switch input:checked + .lg-c2c-um-switch-ui{
  background:#de8700;
  border-color:#c97518;
}
.lg-c2c-um-switch input:checked + .lg-c2c-um-switch-ui::after{
  transform:translateX(20px);
}
.lg-c2c-um-switch-label{
  display:inline-block;
  font-size:13px;
  color:#2c2c2a;
  font-weight:600;
  min-width:0;
  overflow-wrap:break-word;
  line-height:1.3;
}
.lg-c2c-um-switch input:focus-visible + .lg-c2c-um-switch-ui{
  outline:2px solid #426d08;
  outline-offset:2px;
}
.lg-c2c-um-section-label{font-size:16px;letter-spacing:1px;text-transform:capitalize;color:#2C2C2A;font-weight:700;padding:8px 4px 4px;margin-top:4px;}
.lg-c2c-um-cats{display:flex;flex-direction:column;gap:4px;margin-bottom:8px;max-height:220px;overflow-y:auto;}
.lg-c2c-um-cat{display:block;padding:7px 10px;border-radius:8px;font-size:12px;color:#2C2C2A;text-decoration:none;background:transparent;}
.lg-c2c-um-cat:hover{background:#f4f0ea;color:#426d08;}
.lg-c2c-um-links{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;}
.lg-c2c-um-links a{display:block;padding:7px 10px;border-radius:8px;font-size:12px;color:#2C2C2A;text-decoration:none;}
.lg-c2c-um-links a:hover{background:#f4f0ea;color:#426d08;}
.lg-c2c-um-create{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:10px 14px;margin-bottom:8px;border-radius:34px;background:#DE8700;color:#fff;font-size:16px;font-weight:600;text-decoration:none;border:none;}
.lg-c2c-um-create:hover{background:#3a7232;color:#fff;}
.lg-c2c-um-create svg{width:14px;height:14px;}
.lg-c2c-um-profile{display:block;text-align:center;font-size:11px;color:#2C2C2A;text-decoration:underline;margin-top:4px;}
.lg-c2c-um-profile:hover{color:#2C2C2A;}
