/* =========================================================
   WHITELABELING & ADMIN HIDING
   (Renaming, hiding upgrade prompts, billing, logos)
   ========================================================= */

/* --- Helpers --- */
.qc-visually-hidden { 
    position:absolute !important; 
    width:1px;height:1px; 
    margin:-1px;padding:0;border:0; 
    white-space:nowrap; 
    clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;
}
  
/* Replaces text content visually */
.qc-replace { visibility:hidden; position:relative; }
.qc-replace::after {
    visibility:visible; position:absolute; left:0; top:0;
    font: inherit; color: inherit; line-height: inherit;
    content: attr(data-qc-text);
}
  
/* --- Super Admin (left sidebar header) --- */
[role="navigation"] .flex.mx-4.mb-4.border-b.py-6 .flex-col.ml-3 .text-sm:first-child {
    visibility:hidden; position:relative;
}
[role="navigation"] .flex.mx-4.mb-4.border-b.py-6 .flex-col.ml-3 .text-sm:first-child::after {
    content:"Quikcue"; 
    visibility:visible; position:absolute; left:0; top:0;
    font-size:0.875rem; line-height:1.25rem; color:#000000;
}
@media (prefers-color-scheme: dark) {
    [role="navigation"] .flex.mx-4.mb-4.border-b.py-6 .flex-col.ml-3 .text-sm:first-child::after { color:#000000; }
}

/* --- Footer & Branding --- */
footer .text-xs { visibility:hidden; position:relative; }
footer .text-xs::after {
    content:"Quikcue Desk"; 
    visibility:visible; position:absolute; left:0; top:0;
}
  
/* Hide Community Badge */
.badge[data-testid="community-badge"] { display:none !important; }
  
/* Replace Header Text */
header .brand-name { visibility:hidden; position:relative; }
header .brand-name::after { content:"Quikcue"; visibility:visible; position:absolute; left:0; top:0; }
  
/* --- Icon/Image Swaps --- */
img[alt="Chatwoot"] { content: url("/brand-assets/logo.svg"); }
@media (prefers-color-scheme: dark) {
    img[alt="Chatwoot"] { content: url("/brand-assets/logo_dark.svg"); }
}
  
/* ===== Hide "Current plan" / Billing / Refresh ===== */
.flex.p-4.outline.rounded-lg:has(a[href*="/super_admin/settings/refresh"]) { display: none !important; }
.flex.p-4.outline.rounded-lg:has(a[href*="hub.2.chatwoot.com/billing"])    { display: none !important; }
  
/* ===== Hide "Need help? -> Discord" ===== */
.flex.p-4.outline.rounded-lg.mt-4:has(a[href="https://discord.gg/cJXdrwS"]) { display: none !important; }
  
/* ===== Hide EE/Locked features & Upgrade buttons ===== */
span:has(svg use[xlink\:href="#icon-lock-line"]) { display: none !important; }
.group .absolute.top-5 a[href*="billing?installation_identifier"] { display: none !important; }
.group.outline:has(svg use[xlink\:href="#icon-lock-line"]) { display: none !important; }
.group.outline:has(span[class*="rounded"][class*="text-xxs"]) { display: none !important; }
span[class*="rounded"][class*="text-xxs"] { display: none !important; }
  
.grid > div:has(svg[xlink\\:href="#icon-lock-line"]) {
      display: none !important;
}

/* NOTE: The Sidebar Hiding logic has been moved to custom-ui.css */
