/* ─── SupportHub Portal — Modern Linear/Intercom SaaS Design System ─── */


:root {
  --sh-primary: #2563eb;
  --sh-primary-dark: #1d4ed8;
  --sh-primary-light: #eff6ff;
  --sh-slate-50: #f8fafc;
  --sh-slate-100: #f1f5f9;
  --sh-slate-200: #e2e8f0;
  --sh-slate-300: #cbd5e1;
  --sh-slate-400: #94a3b8;
  --sh-slate-500: #64748b;
  --sh-slate-600: #475569;
  --sh-slate-700: #334155;
  --sh-slate-800: #1e293b;
  --sh-slate-900: #0f172a;
  --sh-radius: 18px;
  --sh-radius-card: 18px;
  --sh-radius-sm: 12px;
  --sh-radius-btn: 12px;
  --sh-radius-input: 12px;
  --sh-radius-modal: 20px;
  --sh-radius-xs: 8px;
  --shadow-2xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

*,*::before,*::after { 
  box-sizing: border-box; 
}
body { 
  margin: 0; 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
  background: #f8fafc; 
  color: #0f172a; 
}

/* ─── Outer Shell ─── */
.sh-portal-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

/* ─── Top Header Bar matching Admin ─── */
.sh-top-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sh-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sh-mobile-menu-trigger {
  display: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px;
  border-radius: 10px;
  color: #475569;
  cursor: pointer;
}

.sh-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sh-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.sh-brand-img {
  max-height: 32px;
  width: auto;
  border-radius: 8px;
}

.sh-brand-text {
  display: flex;
  flex-direction: column;
}

.sh-brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh-brand-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sh-brand-version {
  font-size: 9.5px;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sh-brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.2;
}

/* Middle Search Trigger Bar */
.sh-header-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px !important;
  padding: 6px 14px;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  width: 320px;
  transition: all 0.15s ease;
}
.sh-header-search-bar:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.sh-header-search-placeholder {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.sh-header-kbd {
  font-size: 10px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px !important;
  padding: 1px 5px;
  color: #64748b;
  font-family: inherit;
  margin-left: auto;
  box-shadow: none;
}

.sh-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sh-header-new-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 8px 18px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.sh-header-new-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38) !important;
}

.sh-header-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid #e2e8f0;
}

.sh-header-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.sh-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
}

.sh-header-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.sh-header-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sh-header-user-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-header-user-role {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sh-header-logout {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.15s;
  text-decoration: none;
}
.sh-header-logout:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* ─── Portal Body (Sidebar + Main) ─── */
.sh-portal-body {
  flex: 1;
  display: flex;
  min-height: calc(100vh - 68px);
}

/* ─── Left Vertical Sidebar Menu matching Admin ─── */
.sh-vertical-sidebar {
  width: 250px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  flex-shrink: 0;
  user-select: none;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}

.sh-sidebar-nav-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sh-nav-group-title {
  padding: 6px 12px 4px;
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sh-nav-group-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sh-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sh-sidebar-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.sh-sidebar-item.sh-sidebar-active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.sh-sidebar-item.sh-sidebar-active .sh-sidebar-icon {
  color: #ffffff;
}

.sh-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.15s;
}

.sh-sidebar-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-sidebar-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #eff6ff;
  color: #2563eb;
}
.sh-sidebar-item.sh-sidebar-active .sh-sidebar-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.sh-sidebar-live-dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: pulse 2s infinite;
}

.sh-sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}

.sh-sidebar-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sh-sidebar-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.sh-sidebar-status-text {
  font-weight: 600;
  color: #64748b;
}

.sh-sidebar-version {
  font-family: monospace;
  font-size: 10px;
}

/* ─── Main Content Area ─── */
.sh-main-content {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sh-content-container {
  width: 100%;
  max-width: 1180px;
  margin: 0;
}

.sh-portal-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .sh-header-search-bar { display: none; }
}

@media (max-width: 768px) {
  .sh-mobile-menu-trigger { display: block; }
  .sh-vertical-sidebar {
    position: fixed;
    top: 68px;
    left: -280px;
    height: calc(100vh - 68px);
    z-index: 40;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sh-vertical-sidebar.sh-sidebar-open {
    left: 0;
  }
  .sh-main-content {
    padding: 20px 16px;
  }
  .sh-header-user-info { display: none; }
}

/* ─── Upgraded Dashboard Welcome Hero Card ─── */
.sh-dash-wrap {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}

.sh-welcome-hero,
.sh-stat-row,
.sh-quick-grid,
.sh-card,
.sh-table-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.sh-welcome-hero {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 32px;
  color: #0f172a;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.sh-welcome-hero::before,
.sh-welcome-hero::after {
  display: none !important;
}

.sh-welcome-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.sh-welcome-id {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sh-welcome-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.sh-welcome-avatar-img, .sh-welcome-hero .sh-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.sh-online-ring {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}

.sh-welcome-text { flex: 1; min-width: 280px; }

.sh-welcome-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.sh-position-badge {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sh-status-indicator {
  font-size: 11px;
  color: #15803d;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.sh-welcome-text h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sh-welcome-text p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  font-weight: 400;
}

.sh-welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.sh-welcome-actions .sh-btn {
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 9px 18px !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

.sh-welcome-actions .sh-btn-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 1px 2px 0 rgba(37, 99, 235, 0.2) !important;
}
.sh-welcome-actions .sh-btn-primary:hover {
  background: #1d4ed8 !important;
}

.sh-welcome-actions .sh-btn-secondary,
.sh-welcome-actions .sh-btn-outline {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) !important;
}
.sh-welcome-actions .sh-btn-secondary:hover,
.sh-welcome-actions .sh-btn-outline:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* ─── Minimalist Stat Cards Row ─── */
.sh-stat-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}
@media (max-width: 900px) {
  .sh-stat-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 500px) {
  .sh-stat-row {
    grid-template-columns: 1fr !important;
  }
}

.sh-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.sh-stat-card:hover {
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
  border-color: #cbd5e1;
}
.sh-stat-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sh-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sh-stat-blue .sh-stat-icon,
.sh-stat-green .sh-stat-icon,
.sh-stat-amber .sh-stat-icon,
.sh-stat-violet .sh-stat-icon {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.sh-stat-lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.sh-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.sh-stat-blue .sh-stat-num { color: #2563eb; }
.sh-stat-green .sh-stat-num { color: #059669; }
.sh-stat-amber .sh-stat-num { color: #d97706; }
.sh-stat-violet .sh-stat-num { color: #7c3aed; }
.sh-stat-sub {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Quick Actions Grid */
.sh-quick-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}
@media (max-width: 900px) {
  .sh-quick-grid {
    grid-template-columns: 1fr !important;
  }
}
.sh-quick-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px -2px rgba(0,0,0,0.03);
}
.sh-quick-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 10px 24px -4px rgba(59, 130, 246, 0.12);
}
.sh-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sh-quick-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.sh-quick-card p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

/* ─── Table Card & Actions ─── */
.sh-card, .sh-table-card {
  padding: 32px !important;
  border-radius: 24px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05) !important;
}
.sh-card-header-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding-top: 4px !important;
  padding-bottom: 20px !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  flex-wrap: wrap !important;
}
.sh-card-header-title, h3.sh-card-header-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}
.sh-card-header-btn {
  margin-left: auto !important;
}
.sh-card-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sh-view-toggle {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 12px;
}
.sh-toggle-btn {
  padding: 5px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: all 0.15s;
}
.sh-toggle-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.sh-ticket-row {
  transition: background-color 0.15s;
}
.sh-ticket-row:hover td {
  background-color: #f8fafc;
}
.sh-table-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  text-decoration: none;
  transition: all 0.15s;
}
.sh-table-action-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ─── Table ─── */
.sh-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.sh-table th { text-align: left; padding: 12px 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--sh-400); letter-spacing: .06em; border-bottom: 1px solid var(--sh-200); }
.sh-table td { padding: 14px; border-bottom: 1px solid var(--sh-100); color: var(--sh-700); }
.sh-table tr:last-child td { border-bottom: none; }
.sh-table tr:hover td { background: var(--sh-50); }
.sh-id { font-weight: 600; color: var(--sh-primary); font-variant-numeric: tabular-nums; }
.sh-subj { font-weight: 500; }
.sh-time { font-size: 13px; color: var(--sh-400); white-space: nowrap; }

/* ─── Priority ─── */
.sh-prio { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; white-space: nowrap; letter-spacing: 0.04em; background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.sh-prio-low { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.sh-prio-medium { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.sh-prio-high { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.sh-prio-urgent { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ─── Badges ─── */
.sh-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; white-space: nowrap; letter-spacing: 0.04em; background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.sh-badge-new { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.sh-badge-open { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.sh-badge-in-progress, .sh-badge-in_progress { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.sh-badge-pending, .sh-badge-waiting { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.sh-badge-solved { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.sh-badge-closed { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.sh-badge-customer { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }

/* ─── Buttons ─── */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 12px !important; font-size: 12px; font-weight: 600; text-decoration: none; transition: all .15s; cursor: pointer; border: none; line-height: 1; }
.sh-btn-primary { background: #2563eb; color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,0.2); }
.sh-btn-primary:hover { background: #1d4ed8; }
.sh-btn-secondary { background: #fff; color: #334155; border: 1px solid #e2e8f0; }
.sh-btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }
.sh-btn-danger { background: #ef4444; color: #fff; }
.sh-btn-sm { padding: 6px 12px; font-size: 11px; border-radius: 8px !important; }
.sh-btn-lg { padding: 12px 24px; font-size: 14px; border-radius: 14px !important; }
.sh-btn-block { width: 100%; }

/* ─── Empty ─── */
.sh-empty { text-align: center; padding: 60px 20px; }
.sh-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .25; }
.sh-empty h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #0f172a; }
.sh-empty p { margin: 0 0 20px; color: #64748b; font-size: 13px; }

/* ─── Profile ─── */
.sh-profile-wrap { display: flex; flex-direction: column; gap: 24px; }
.sh-profile-hero {
  text-align: center;
  padding: 36px 32px 30px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}
.sh-profile-hero::before { display: none !important; }
.sh-profile-hero h1 {
  margin: 14px 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.sh-profile-email {
  color: #64748b;
  font-size: 13.5px;
  margin: 0 0 12px;
}
.sh-avatar-xl { width: 72px; height: 72px; border-radius: 16px; background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.sh-avatar-img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; border: 1px solid #e2e8f0; display: inline-block; }

.sh-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.sh-w100 { grid-column: 1 / -1; }
.sh-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: #64748b; letter-spacing: .05em; margin-bottom: 4px; }
.sh-val { font-size: 14px; font-weight: 500; color: #0f172a; }

/* ─── KB Redesign ─── */
.sh-kb-wrap { display: flex; flex-direction: column; gap: 24px; }

/* Hero Card Header (Modern & Minimal) */
.sh-kb-hero {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  color: #0f172a;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.sh-kb-hero::before { display: none !important; }
.sh-kb-hero-content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.sh-kb-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sh-kb-hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.sh-kb-hero p {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

/* Search Box */
.sh-kb-search-box,
.sh-kb-hero-search-wrap {
  width: 100% !important;
  max-width: 580px !important;
  margin: 0 auto 16px !important;
  display: block !important;
}
.sh-kb-search-inner,
.sh-kb-hero-search-inner {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 4px 5px 4px 14px !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}
.sh-kb-search-inner:focus-within,
.sh-kb-hero-search-inner:focus-within {
  border-color: #2563eb !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
.sh-kb-search-inner svg,
.sh-kb-hero-search-inner svg {
  flex-shrink: 0 !important;
  margin-right: 10px !important;
}
.sh-portal-app .sh-kb-search-inner input,
.sh-portal-app .sh-kb-hero-search-inner input,
.sh-kb-search-inner input,
.sh-kb-hero-search-inner input,
input.sh-kb-hero-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  font-family: inherit !important;
  padding: 0 8px !important;
  height: 36px !important;
  min-height: 36px !important;
  box-shadow: none !important;
}
.sh-portal-app .sh-kb-search-inner input:focus,
.sh-portal-app .sh-kb-hero-search-inner input:focus,
.sh-kb-search-inner input:focus,
.sh-kb-hero-search-inner input:focus {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.sh-kb-search-inner input::placeholder,
.sh-kb-hero-search-inner input::placeholder {
  color: #94a3b8 !important;
}
.sh-kb-search-inner .sh-btn,
.sh-kb-hero-search-inner .sh-btn {
  border-radius: 8px !important;
  padding: 0 20px !important;
  height: 36px !important;
  min-height: 36px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Public KB Page Specifics */
.sh-public-kb-portal {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-left: none !important;
  border-right: none !important;
}

/* Theme Container Breakout & Full-Width Enforcer */
body.supporthub-dedicated-page #page,
body.supporthub-dedicated-page #content,
body.supporthub-dedicated-page .site-content,
body.supporthub-dedicated-page .container,
body.supporthub-dedicated-page .container-fluid,
body.supporthub-dedicated-page .row,
body.supporthub-dedicated-page .content-area,
body.supporthub-dedicated-page #primary,
body.supporthub-dedicated-page main.site-main,
body.supporthub-dedicated-page .entry-content,
body.supporthub-dedicated-page .post-content,
body.supporthub-dedicated-page article,
body.supporthub-dedicated-page .col-sm-8,
body.supporthub-dedicated-page .col-md-8,
body.supporthub-dedicated-page .col-lg-8,
body.supporthub-dedicated-page .col-xl-8,
body.supporthub-dedicated-page .col-sm-12,
body.supporthub-dedicated-page .col-md-12,
body.supporthub-dedicated-page .col-lg-12,
body.supporthub-dedicated-page .col-xl-12 {
  max-width: 100% !important;
  width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

body.supporthub-dedicated-page #sidebar,
body.supporthub-dedicated-page aside#sidebar,
body.supporthub-dedicated-page .sidebar,
body.supporthub-dedicated-page .col-sm-4,
body.supporthub-dedicated-page .col-md-4,
body.supporthub-dedicated-page .col-lg-4,
body.supporthub-dedicated-page .col-xl-4,
body.supporthub-dedicated-page .entry-header,
body.supporthub-dedicated-page header.entry-header,
body.supporthub-dedicated-page .entry-title,
body.supporthub-dedicated-page .post-title,
body.supporthub-dedicated-page .wp-block-post-title,
body.supporthub-dedicated-page .single-post-title {
  display: none !important;
}

@media (max-width: 768px) {
  .sh-public-kb-hero {
    padding: 32px 20px !important;
  }
  .sh-public-kb-hero h1 {
    font-size: 24px !important;
  }
  .sh-public-header {
    padding: 12px 16px !important;
  }
}

/* Popular Searches Tags */
.sh-kb-popular-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #94a3b8;
}
.sh-kb-popular-tags span { font-weight: 600; color: #cbd5e1; }
.sh-kb-popular-tags a {
  color: #93c5fd;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  transition: all 0.15s;
}
.sh-kb-popular-tags a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Category Filter Bar */
.sh-kb-filter-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sh-kb-filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.sh-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  box-shadow: var(--shadow-sm);
}
.sh-chip:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.sh-chip.active {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
}
.sh-chip-count {
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 12px;
}
.sh-chip.active .sh-chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Article Cards Grid */
.sh-kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.sh-kb-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}
.sh-kb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.25s;
}
.sh-kb-card:hover {
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
  transform: translateY(-4px);
}
.sh-kb-card:hover::before { opacity: 1; }

.sh-kb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sh-kb-cat-badge {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sh-kb-read-time {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.sh-kb-card h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.sh-kb-card:hover h4 { color: #2563eb; }

.sh-kb-card p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
}

.sh-kb-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
}
.sh-kb-date { color: #94a3b8; font-weight: 500; }
.sh-kb-arrow {
  color: #2563eb;
  font-weight: 700;
  transition: transform 0.2s;
}
.sh-kb-card:hover .sh-kb-arrow {
  transform: translateX(4px);
}

/* Hide Theme Default Page Header for Single KB Articles (Block & Classic Themes) */
body.single-supporthub_kb .wp-block-post-title,
body.single-supporthub_kb .wp-block-post-author,
body.single-supporthub_kb .wp-block-post-author-name,
body.single-supporthub_kb .wp-block-post-date,
body.single-supporthub_kb .wp-block-post-terms,
body.single-supporthub_kb header.wp-block-template-part,
body.single-supporthub_kb .entry-header,
body.single-supporthub_kb .post-header,
body.single-supporthub_kb .single-post-title,
body.single-supporthub_kb header.entry-header,
body.single-supporthub_kb h1.entry-title,
body.single-supporthub_kb h1.post-title,
body.single-supporthub_kb .entry-title-wrap,
body.single-supporthub_kb .post-author,
body.single-supporthub_kb .byline,
body.single-supporthub_kb .author-byline,
body.single-supporthub_kb .entry-meta,
body.single-supporthub_kb article > header,
body.single-supporthub_kb .post-header-title,
body.single-supporthub_kb .post-author-byline,
body.single-supporthub_kb .author-bio,
body.single-supporthub_kb .entry-author {
  display: none !important;
}

/* ─── SINGLE KB ARTICLE PAGE STYLES ─── */
.sh-single-kb-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sh-single-kb-heading-title {
  font-size: 32px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.025em !important;
  margin-top: 12px !important;
  margin-bottom: 20px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.sh-kb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sh-kb-breadcrumb a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.sh-kb-breadcrumb a:hover {
  text-decoration: underline;
}
.sh-kb-breadcrumb .sh-sep {
  color: #cbd5e1;
}
.sh-kb-breadcrumb .sh-current {
  color: #475569;
  font-weight: 600;
}
.sh-single-kb-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  .sh-single-kb-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}
.sh-single-kb-main {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}
.sh-kb-meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 12px;
}
.sh-kb-badge-cat {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sh-kb-badge-read, .sh-kb-badge-date {
  color: #64748b;
  font-weight: 600;
}
.sh-single-kb-title {
  font-size: 32px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.025em !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}
.sh-single-kb-body {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
  margin-bottom: 40px;
}
.sh-single-kb-body h2, .sh-single-kb-body h3 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.sh-single-kb-body p {
  margin-bottom: 20px;
}
.sh-kb-feedback-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .sh-kb-feedback-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}
.sh-kb-feedback-content h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}
.sh-kb-feedback-content p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.sh-kb-feedback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sh-kb-vote-btn {
  padding: 8px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sh-kb-vote-btn:hover:not(:disabled) {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}
.sh-kb-vote-btn.voted-yes {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}
.sh-kb-vote-btn.voted-no {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}
.sh-kb-vote-msg {
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.sh-kb-vote-msg.error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.sh-kb-related-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 32px;
}
.sh-kb-related-section h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
}
.sh-kb-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .sh-kb-workspace-grid {
    grid-template-columns: 1fr !important;
  }
}
.sh-kb-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sh-kb-related-card:hover {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}
.sh-kb-related-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px;
  line-height: 1.3;
}
.sh-kb-rel-meta {
  font-size: 11px;
  color: #94a3b8;
}
.sh-single-kb-sidebar {
  width: 100%;
}
@media (min-width: 1024px) {
  .sh-single-kb-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
  }
}
.sh-kb-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}
.sh-kb-sidebar-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.sh-kb-sidebar-card p {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}
.sh-kb-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Forms ─── */
.sh-form-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 32px; max-width: 680px; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03); }
.sh-form-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.sh-form-card .sh-sub { margin: 0 0 24px; color: #64748b; font-size: 13.5px; }
.sh-field { margin-bottom: 18px; }
.sh-field label { display: block; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 6px; letter-spacing: .01em; }
.sh-field input, .sh-field select, .sh-field textarea { width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 13px; font-family: inherit; color: #0f172a; background: #f8fafc; transition: border-color .15s, box-shadow .15s; outline: none; }
.sh-field input:focus, .sh-field select:focus, .sh-field textarea:focus { border-color: #2563eb; background: #ffffff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.sh-field textarea { resize: vertical; min-height: 110px; }
.sh-req { color: #ef4444; font-weight: 600; }
.sh-row { display: flex; gap: 16px; flex-wrap: wrap; }
.sh-w50 { flex: 1; min-width: 200px; }

/* ─── Login ─── */
.sh-login-box { text-align: center; padding: 60px 20px; max-width: 420px; margin: 30px auto; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.sh-login-icon { font-size: 44px; margin-bottom: 14px; }
.sh-login-box h2 { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 6px; letter-spacing: -.02em; }
.sh-login-box p { color: #64748b; font-size: 13px; margin: 0 0 24px; }

/* ─── Alert ─── */
.sh-alert { padding: 12px 16px; border-radius: 12px; font-size: 12.5px; margin-bottom: 18px; font-weight: 500; line-height: 1.5; }
.sh-alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.sh-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.sh-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }

/* ─── Ticket Detail ─── */
.sh-ticket-wrap { display: flex; flex-direction: column; gap: 20px; }
.sh-ticket-head { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03); }
.sh-back-link { font-size: 12.5px; font-weight: 600; color: #2563eb; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sh-back-link:hover { text-decoration: underline; }
.sh-ticket-head-main h1 { margin: 12px 0 0; font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.sh-ticket-head-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.sh-meta { font-size: 12.5px; color: #64748b; }

/* ─── Conversation ─── */
.sh-conv { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border-radius: var(--sh-radius); box-shadow: var(--shadow-sm); }
.sh-msg { display: flex; gap: 12px; max-width: 85%; }
.sh-msg-other { align-self: flex-start; }
.sh-msg-self { align-self: flex-end; flex-direction: row-reverse; }
.sh-msg-av { width: 36px; height: 36px; border-radius: 50%; background: var(--sh-200); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--sh-600); flex-shrink: 0; overflow: hidden; }
.sh-msg-self .sh-msg-av { background: var(--sh-primary); color: #fff; }
.sh-msg-av-img { width: 100%; height: 100%; object-fit: cover; }
.sh-msg-bd { background: var(--sh-50); border-radius: 14px; padding: 14px 18px; }
.sh-msg-self .sh-msg-bd { background: var(--sh-primary); color: #fff; }
.sh-msg-hd { display: flex; flex-direction: column; margin-bottom: 6px; gap: 2px; }
.sh-msg-n { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sh-msg-pos { font-size: 10px; font-weight: 500; color: var(--sh-400); text-transform: uppercase; letter-spacing: .03em; }
.sh-msg-self .sh-msg-pos { color: rgba(255,255,255,.6); }
.sh-msg-t { font-size: 11px; color: var(--sh-400); }
.sh-msg-self .sh-msg-t { color: rgba(255,255,255,.65); }
.sh-msg-txt { font-size: 14px; line-height: 1.55; }
.sh-msg-self .sh-msg-txt { color: #fff; }

/* Profile avatar edit */
.sh-avatar-edit { position: relative; display: inline-block; cursor: pointer; }
.sh-avatar-edit:hover .sh-avatar-img { filter: brightness(0.7); }
.sh-avatar-overlay { position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.sh-avatar-edit:hover .sh-avatar-overlay { opacity: 1; }
.sh-avatar-overlay span { color: #fff; font-size: 11px; font-weight: 600; }

/* Profile form improvements */
.sh-field-group { display: flex; flex-direction: column; gap: 16px; }
.sh-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .sh-field-row { grid-template-columns: 1fr; } }
.sh-form-subtitle { font-size: 14px; font-weight: 700; color: var(--sh-900); margin: 0 0 14px; }
.sh-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.sh-badge-position { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; padding: 4px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; display: inline-block; }

/* ─── Reply Box ─── */
.sh-reply-box { background: #fff; border-radius: var(--sh-radius); padding: 24px; box-shadow: var(--shadow-sm); }
.sh-reply-box h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--sh-900); }

/* Rich text editor */
.sh-editor-toolbar { display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: #f8fafc; border: 1px solid #cbd5e1; border-bottom: none; border-radius: 12px 12px 0 0; flex-wrap: wrap; }
.sh-editor-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent; cursor: pointer; font-size: 14px; color: #475569; transition: all .15s; }
.sh-editor-btn:hover { background: #e2e8f0; color: #0f172a; }
.sh-editor-sep { width: 1px; height: 20px; background: #cbd5e1; margin: 0 4px; }
.sh-editor { width: 100%; min-height: 140px; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 0 0 12px 12px; font-size: 14px; font-family: inherit; color: #0f172a; background: #fff; outline: none; transition: all .2s ease; }
.sh-editor:focus { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.sh-editor:empty:before { content: attr(data-placeholder); color: #94a3b8; pointer-events: none; }
.sh-reply-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 10px; }
.sh-file-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 13px; font-weight: 600; color: #334155; background: #ffffff; cursor: pointer; transition: all .2s ease; height: 44px; }
.sh-file-btn:hover { background: #f8fafc; border-color: #2563eb; color: #2563eb; }
.sh-file-btn input[type="file"] { position: absolute; opacity: 0; width: 0.1px; height: 0.1px; }

/* ─── Footer ─── */
.sh-footer { text-align: center; padding: 28px 24px; font-size: 13px; color: var(--sh-400); border-top: 1px solid var(--sh-200); margin-top: 60px; }

/* ─── Community Forum ─── */
.sh-forum { display: flex; flex-direction: column; gap: 20px; }
.sh-forum-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sh-forum-list { display: flex; flex-direction: column; gap: 10px; }
.sh-forum-topic-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--sh-200); border-radius: var(--sh-radius); padding: 18px 20px; text-decoration: none; transition: all .2s; box-shadow: var(--shadow-sm); }
.sh-forum-topic-row:hover { border-color: var(--sh-primary); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.sh-forum-row-votes { display: flex; flex-direction: column; align-items: center; min-width: 56px; gap: 2px; }
.sh-vote-count-lg { font-size: 18px; font-weight: 700; color: var(--sh-900); }
.sh-vote-lbl { font-size: 10px; text-transform: uppercase; color: var(--sh-400); letter-spacing: .05em; }
.sh-forum-row-main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sh-forum-row-title { font-size: 15px; font-weight: 600; color: var(--sh-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-forum-row-meta { font-size: 12px; color: var(--sh-400); }
.sh-forum-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sh-forum-reply-count { font-size: 12px; color: var(--sh-400); }

/* Topic detail */
.sh-forum-head { background: #fff; border-radius: var(--sh-radius); padding: 24px; box-shadow: var(--shadow-sm); }
.sh-forum-head h1 { margin: 12px 0 0; font-size: 20px; font-weight: 700; color: var(--sh-900); letter-spacing: -.02em; }
.sh-forum-meta { display: flex; gap: 12px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.sh-forum-topic { display: flex; gap: 16px; background: #fff; border-radius: var(--sh-radius); padding: 24px; box-shadow: var(--shadow-sm); }
.sh-forum-vote-col { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; }
.sh-vote-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--sh-200); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--sh-500); text-decoration: none; transition: all .15s; }
.sh-vote-btn:hover { background: var(--sh-primary-light); border-color: var(--sh-primary); color: var(--sh-primary); }
.sh-vote-count { font-size: 16px; font-weight: 700; color: var(--sh-900); }
.sh-forum-topic-body { flex: 1; min-width: 0; }
.sh-forum-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sh-forum-author-info { display: flex; flex-direction: column; gap: 2px; }
.sh-forum-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--sh-primary), var(--sh-violet)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; object-fit: cover; flex-shrink: 0; }
.sh-forum-author-name { font-size: 13px; font-weight: 600; color: var(--sh-900); }
.sh-forum-author-pos { font-size: 10px; font-weight: 500; color: var(--sh-primary); text-transform: uppercase; letter-spacing: .04em; }
.sh-forum-content { font-size: 14px; line-height: 1.65; color: var(--sh-700); }
.sh-forum-content p { margin: 0 0 10px; }
.sh-forum-content p:last-child { margin: 0; }
.sh-forum-replies { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: var(--sh-radius); padding: 24px; box-shadow: var(--shadow-sm); }
.sh-forum-replies h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--sh-900); }
.sh-forum-reply { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--sh-100); }
.sh-forum-reply:first-of-type { border-top: none; }
.sh-forum-reply-body { flex: 1; min-width: 0; }
.sh-forum-reply .sh-forum-author { margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }

/* ─── Modal ─── */
.sh-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); z-index: 9999; align-items: center; justify-content: center; }
.sh-modal-overlay.open { display: flex; }
.sh-modal { background: #fff; border-radius: var(--sh-radius); padding: 32px; max-width: 540px; width: 90%; box-shadow: var(--shadow-xl); }
.sh-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.sh-modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--sh-900); }
.sh-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--sh-400); padding: 4px; line-height: 1; border-radius: var(--sh-radius-xs); }
.sh-modal-close:hover { background: var(--sh-100); color: var(--sh-600); }

/* ─── KB Deflection ─── */
.sh-kb-suggest { margin-top: 10px; background: var(--sh-50); border: 1px solid var(--sh-200); border-radius: var(--sh-radius-sm); padding: 14px 16px; }
.sh-kb-suggest strong { display: block; font-size: 11px; color: var(--sh-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.sh-kb-suggest ul { margin: 0; padding-left: 18px; font-size: 13px; }
.sh-kb-suggest li { margin-bottom: 4px; }
.sh-kb-suggest a { color: var(--sh-primary); font-weight: 500; text-decoration: underline; }

/* ─── SLA Status Badges ─── */
.sh-sla-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.sh-sla-ontrack { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.sh-sla-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.sh-sla-breached { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.sh-sla-closed { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* ─── CSAT Card ─── */
.sh-csat-card { background: linear-gradient(135deg, #fff, #f8fafc); border: 1px solid #e2e8f0; margin-bottom: 20px; }
.sh-csat-card h3 { color: #1e293b; margin-bottom: 6px; }
.sh-csat-card p { font-size: 13px; color: #64748b; margin-bottom: 16px; }
.sh-csat-options { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-csat-star-btn { padding: 8px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; font-weight: 700; color: #d97706; cursor: pointer; transition: all .15s; }
.sh-csat-star-btn:hover { background: #fef3c7; border-color: #f59e0b; transform: scale(1.05); }

/* ─── Table Filter Bar ─── */
.sh-ticket-filter-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.sh-search-box { display: flex; align-items: center; gap: 6px; }
.sh-search-box input { padding: 6px 12px; border-radius: 12px; border: 1px solid var(--sh-200); font-size: 13px; outline: none; }
.sh-search-box input:focus { border-color: var(--sh-primary); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .sh-nav-links { display: none; }
  .sh-nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--sh-200); padding: 8px 12px; gap: 2px; box-shadow: var(--shadow-lg); }
  .sh-nav-mobile-toggle { display: block; }
  .sh-welcome { flex-direction: column; text-align: center; }
  .sh-welcome .sh-btn-lg { margin-left: 0; }
  .sh-stat-row { grid-template-columns: 1fr 1fr; }
  .sh-kb-grid { grid-template-columns: 1fr; }
  .sh-container { padding: 0 16px; }
  .sh-main { padding: 24px; }
  .sh-msg { max-width: 95%; }
}

/* ─── KB Share Bar Styles ─── */
.sh-kb-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 28px;
  font-size: 12px;
  gap: 12px;
}
.sh-kb-share-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.sh-kb-share-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
  white-space: nowrap;
}
.sh-kb-share-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sh-kb-share-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* ─── Premium Uniform Form Design System ─── */
.sh-form-card {
  border-radius: 24px !important;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05) !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}

/* 2-Column Responsive Row Grid */
.sh-form-grid-2 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

.sh-form-grid-2 > .sh-field {
  flex: 1 1 calc(50% - 10px) !important;
  min-width: 240px !important;
  margin-bottom: 0 !important;
}

.sh-form-grid-2 > .sh-field.sh-cf-width-100 {
  flex: 1 1 100% !important;
  width: 100% !important;
}

.sh-form-grid-2 > .sh-field.sh-cf-width-50 {
  flex: 1 1 calc(50% - 10px) !important;
  width: calc(50% - 10px) !important;
  min-width: 240px !important;
}

.sh-form-grid-2 > .sh-field.sh-cf-width-33 {
  flex: 1 1 calc(33.333% - 14px) !important;
  width: calc(33.333% - 14px) !important;
  min-width: 180px !important;
}

.sh-form-grid-2 > .sh-field.sh-cf-width-25 {
  flex: 1 1 calc(25% - 15px) !important;
  width: calc(25% - 15px) !important;
  min-width: 140px !important;
}

.sh-input,
.sh-select,
.sh-textarea,
#sh-ticket-form input[type="text"],
#sh-ticket-form input[type="email"],
#sh-ticket-form select,
#sh-ticket-form textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  line-height: 1.5 !important;
  transition: all 0.2s ease !important;
}

.sh-input,
.sh-select,
#sh-ticket-form input[type="text"],
#sh-ticket-form input[type="email"],
#sh-ticket-form select {
  height: 48px !important;
}

#sh-ticket-form select,
.sh-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%252364748b' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 16px 16px !important;
  padding-right: 44px !important;
  cursor: pointer !important;
}

.sh-input:focus,
.sh-select:focus,
.sh-textarea:focus,
#sh-ticket-form input:focus,
#sh-ticket-form select:focus,
#sh-ticket-form textarea:focus {
  border-color: #2563eb !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

/* Agent Privilege Hub Card */
.sh-agent-hub-card {
  padding: 24px 28px !important;
  margin-bottom: 28px !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #3b82f6 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.sh-agent-hub-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  flex-wrap: wrap !important;
}

.sh-agent-hub-title-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.sh-agent-hub-icon {
  width: 38px !important;
  height: 38px !important;
  background: #eff6ff !important;
  border: 1px solid #dbeafe !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #2563eb !important;
  flex-shrink: 0 !important;
}

.sh-agent-hub-title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.sh-agent-hub-sub {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.sh-agent-hub-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.sh-agent-hub-label {
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.sh-agent-hub-help {
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 6px !important;
  display: block !important;
  line-height: 1.4 !important;
}

.sh-agent-hub-card input,
.sh-agent-hub-card select {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  height: 48px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease-in-out !important;
}

.sh-agent-hub-card input:focus,
.sh-agent-hub-card select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

/* Primary Form Action Button */
.sh-btn-submit-hero {
  width: 100% !important;
  height: 52px !important;
  padding: 0 24px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.sh-btn-submit-hero:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 30px -5px rgba(37, 99, 235, 0.5) !important;
}

.sh-btn-submit-hero:active {
  transform: translateY(0) !important;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD (Executive Overview) — distinct from the workspace
   ═══════════════════════════════════════════════════════════════ */
.sh-dashboard-page {
  --sh-dash-gap: 20px;
}

/* Welcome hero id group */
.sh-welcome-id {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* KPI summary cards — analytics feel */
.sh-dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--sh-dash-gap);
}
.sh-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.sh-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px rgba(15, 23, 42, 0.08);
}
.sh-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sh-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.sh-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sh-kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.sh-kpi-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}
.sh-kpi-blue .sh-kpi-icon { background: #eff6ff; color: #2563eb; }
.sh-kpi-green .sh-kpi-icon { background: #ecfdf5; color: #059669; }
.sh-kpi-amber .sh-kpi-icon { background: #fffbeb; color: #d97706; }
.sh-kpi-violet .sh-kpi-icon { background: #f5f3ff; color: #7c3aed; }
.sh-kpi-slate .sh-kpi-icon { background: #f1f5f9; color: #475569; }
.sh-kpi-dark .sh-kpi-icon { background: #0f172a; color: #ffffff; }
.sh-kpi-dark .sh-kpi-value { color: #0f172a; }

/* Support performance strip */
.sh-dash-performance {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.sh-perf-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sh-perf-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sh-perf-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sh-perf-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.sh-perf-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
}
.sh-perf-green { color: #10b981; }
.sh-perf-red { color: #ef4444; }

/* Two-column overview grid */
.sh-dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sh-dash-gap);
}
.sh-dash-col-main,
.sh-dash-col-side {
  display: flex;
  flex-direction: column;
  gap: var(--sh-dash-gap);
  min-width: 0;
}

/* Dashboard cards */
.sh-dash-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.sh-dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.sh-dash-card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.sh-dash-card-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}
.sh-dash-empty {
  padding: 20px;
  text-align: center;
  color: #64748b;
}
.sh-dash-empty p {
  margin: 0 0 12px;
  font-size: 13px;
}

/* Activity feed */
.sh-activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sh-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sh-activity-item:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}
.sh-activity-id {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.sh-activity-body {
  flex: 1;
  min-width: 0;
}
.sh-activity-body h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-activity-time {
  font-size: 11px;
  color: #94a3b8;
}
.sh-activity-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Helpful articles */
.sh-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.sh-article-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sh-article-card:hover {
  border-color: #2563eb;
  background: #ffffff;
}
.sh-article-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sh-article-card h4 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.sh-article-card span {
  font-size: 11px;
  color: #2563eb;
  font-weight: 600;
}

/* Notifications */
.sh-notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sh-notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sh-notif-item:hover {
  border-color: #cbd5e1;
}
.sh-notif-item.sh-notif-unread {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.sh-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-top: 6px;
  flex-shrink: 0;
}
.sh-notif-unread .sh-notif-dot {
  background: #2563eb;
}
.sh-notif-body {
  flex: 1;
  min-width: 0;
}
.sh-notif-body h4 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.sh-notif-body p {
  margin: 0 0 4px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Announcements */
.sh-announce-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sh-announce-item {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.sh-announce-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sh-announce-green .sh-announce-tag { color: #10b981; }
.sh-announce-blue .sh-announce-tag { color: #2563eb; }
.sh-announce-item h4 {
  margin: 4px 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.sh-announce-item p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

/* Quick links */
.sh-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sh-quick-links a {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.15s ease;
}
.sh-quick-links a:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

/* Support tips */
.sh-tip-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.45;
}

/* Account status */
.sh-account-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
}
.sh-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sh-account-row span { color: #64748b; }
.sh-account-row strong { color: #0f172a; }

/* Agent analytics hub */
.sh-agent-analytics-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.sh-agent-analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.sh-agent-analytics-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sh-agent-analytics-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sh-agent-analytics-title-group h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.sh-agent-analytics-title-group p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.sh-agent-analytics-badge {
  font-size: 10px;
  font-weight: 700;
  background: #0f172a;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sh-agent-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.sh-agent-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}
.sh-agent-metric-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.sh-agent-metric-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}
.sh-agent-metric-star { font-size: 16px; color: #f59e0b; }
.sh-agent-metric-sub {
  font-size: 11px;
  color: #94a3b8;
}
.sh-agent-metric-green { color: #10b981; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   MY TICKETS WORKSPACE — dense, data-focused ticket management
   ═══════════════════════════════════════════════════════════════ */
.sh-workspace-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sh-workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sh-workspace-header h1 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.sh-workspace-header p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}
.sh-workspace-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Workspace stats strip */
.sh-workspace-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.sh-ws-stat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sh-ws-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.sh-ws-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
@media (max-width: 768px) {
  .sh-workspace-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .sh-workspace-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Workspace card + toolbar */
.sh-workspace-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  padding: 20px 22px;
}
.sh-workspace-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.sh-ws-search {
  position: relative;
  max-width: 460px;
}
.sh-ws-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.sh-ws-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  background: #f8fafc;
  transition: all 0.15s;
}
.sh-ws-search input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.sh-ws-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sh-ws-filters select,
.sh-ws-filters input[type="date"] {
  padding: 8px 30px 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
  max-width: 200px;
}
.sh-ws-filters input[type="date"] {
  padding-right: 10px;
  max-width: 150px;
  cursor: text;
}

/* Bulk action bar */
.sh-workspace-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sh-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sh-bulk-actions select {
  padding: 8px 30px 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  font-family: inherit;
}
.sh-bulk-hint {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Workspace table */
.sh-workspace-table { font-size: 13px; }
.sh-workspace-table thead th {
  white-space: nowrap;
}
.sh-workspace-table thead th a {
  color: #94a3b8;
  text-decoration: none;
}
.sh-workspace-table thead th a:hover {
  color: #2563eb;
}
.sh-workspace-table .sh-col-check { width: 36px; }
.sh-workspace-table .sh-col-actions { width: 130px; }
.sh-row-unread td {
  background: #eff6ff;
}
.sh-row-unread:hover td {
  background: #dbeafe;
}
.sh-ws-subject {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}
.sh-ws-subject:hover { color: #2563eb; }
.sh-ws-id {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 1px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}
.sh-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  display: inline-block;
}
.sh-ws-agent { white-space: nowrap; }
.sh-agent-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}
.sh-ws-dept {
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}
.sh-ws-muted { color: #94a3b8; font-size: 12px; }
.sh-ws-replies { text-align: center; }
.sh-reply-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}
.sh-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.sh-row-action {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  transition: all 0.15s;
}
.sh-row-action:hover {
  background: #eff6ff;
  color: #2563eb;
}

/* Workspace footer + pagination */
.sh-workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.sh-workspace-count {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}
.sh-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.sh-page-link {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.15s;
}
.sh-page-link:hover {
  border-color: #2563eb;
  color: #2563eb;
}
.sh-page-link.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.sh-page-ellipsis {
  padding: 6px 4px;
  color: #94a3b8;
  font-weight: 700;
}

/* Responsive: dashboard grid + workspace table */
@media (max-width: 1024px) {
  .sh-dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sh-welcome-id { flex-wrap: wrap; }
  .sh-workspace-table { font-size: 12.5px; }
  .sh-ws-filters select,
  .sh-ws-filters input[type="date"] { max-width: 100%; flex: 1 1 calc(50% - 8px); }
}
@media (max-width: 600px) {
  .sh-ws-filters select,
  .sh-ws-filters input[type="date"] { flex: 1 1 100%; }
  .sh-workspace-table thead { display: none; }
  .sh-workspace-table, .sh-workspace-table tbody, .sh-workspace-table tr, .sh-workspace-table td { display: block; width: 100%; }
  .sh-workspace-table tr { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 10px; padding: 10px 12px; }
  .sh-workspace-table td { border: none; padding: 6px 8px; text-align: left; }
  .sh-workspace-table .sh-col-check { position: absolute; left: -9999px; }
  .sh-workspace-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 2px;
  }
  .sh-workspace-table td:first-child { padding-top: 4px; }
}

/* ─── Admin Dashboard 100% Matching Layout & Colors ─── */
.sh-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sh-page-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sh-page-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sh-page-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}
.sh-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sh-page-subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
  line-height: 1.4;
}
.sh-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 9px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

/* Unified Filter Toolbar */
.sh-filter-toolbar {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sh-segmented-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  height: 36px;
  box-sizing: border-box;
}
.sh-segmented-item {
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.sh-segmented-item:hover {
  color: #0f172a;
}
.sh-segmented-item.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.sh-segmented-item .sh-chip-count {
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 6px;
  border-radius: 9999px;
}
.sh-segmented-item.active .sh-chip-count {
  background: #f1f5f9;
  color: #0f172a;
}
.sh-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sh-search-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}
.sh-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}
.sh-search-input {
  height: 36px;
  width: 100%;
  padding: 0 12px 0 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.sh-search-input:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.sh-select-control {
  height: 36px;
  padding: 0 28px 0 12px;
  background: #f8fafc url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right 8px center/14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.sh-select-control:focus {
  background-color: #ffffff;
  border-color: #3b82f6;
}
.sh-btn-icon {
  height: 36px;
  width: 36px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  cursor: pointer;
  flex-shrink: 0;
}
.sh-btn-icon:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}
.sh-btn-reset {
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.sh-btn-reset:hover {
  background: #fee2e2;
}

/* Status Badges Matching Admin */
.sh-badge-open {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}
.sh-badge-solved {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}
.sh-badge-urgent {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}
.sh-badge-high {
  background: #fffbeb !important;
  color: #d97706 !important;
  border: 1px solid #fde68a !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}
.sh-badge-medium {
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}
.sh-badge-low {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}
.sh-badge-in_progress, .sh-badge-in-progress {
  background: #f5f3ff !important;
  color: #7c3aed !important;
  border: 1px solid #ddd6fe !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

/* Sidebar Item refinement matching Admin */
.sh-sidebar-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}
.sh-sidebar-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
.sh-sidebar-item.sh-sidebar-active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}
.sh-sidebar-item.sh-sidebar-active .sh-sidebar-icon {
  color: #ffffff !important;
}
.sh-sidebar-badge {
  margin-left: auto !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 9999px !important;
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}
.sh-sidebar-item.sh-sidebar-active .sh-sidebar-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD 100% VISUAL & COLOR PARITY SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */

body, .sh-portal-app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* Page Header */
.sh-page-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important;
}
.sh-page-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.sh-page-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.sh-page-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 2px !important;
  flex-wrap: wrap !important;
}
.sh-page-title {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  font-family: 'Inter', sans-serif !important;
}
.sh-page-subtitle {
  margin: 0 !important;
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}
.sh-count-badge {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  padding: 1.5px 8px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  letter-spacing: 0.02em !important;
}

/* Filter Toolbar matching Admin KB / TicketList */
.sh-filter-toolbar {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 16px !important;
  padding: 10px 12px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 20px !important;
}
@media (max-width: 640px) {
  .sh-filter-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

.sh-segmented-control {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f1f5f9 !important;
  padding: 4px !important;
  border-radius: 12px !important;
  height: 36px !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  flex: 1 !important;
  min-width: 0 !important;
}
.sh-segmented-control::-webkit-scrollbar {
  display: none !important;
}

.sh-segmented-item {
  height: 28px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  border: none !important;
  background: transparent !important;
}
.sh-segmented-item:hover {
  color: #0f172a !important;
}
.sh-segmented-item.active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
.sh-segmented-item .sh-chip-count {
  font-size: 10px !important;
  font-weight: 700 !important;
  background: rgba(226, 232, 240, 0.8) !important;
  color: #64748b !important;
  padding: 1px 6px !important;
  border-radius: 9999px !important;
}
.sh-segmented-item.active .sh-chip-count {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

.sh-toolbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.sh-search-wrap {
  position: relative !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.sh-toolbar-right .sh-search-wrap,
.sh-filter-toolbar .sh-search-wrap {
  width: 220px !important;
  flex-shrink: 0 !important;
}
.sh-search-icon {
  position: absolute !important;
  left: 11px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.sh-search-input {
  height: 36px !important;
  width: 100% !important;
  padding: 0 12px 0 32px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  outline: none !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  font-family: 'Inter', sans-serif !important;
}
.sh-search-input:focus {
  background: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.sh-select-control {
  height: 36px !important;
  padding: 0 28px 0 12px !important;
  background: #f8fafc url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right 8px center/14px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  outline: none !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  font-family: 'Inter', sans-serif !important;
}
.sh-select-control:focus {
  background-color: #ffffff !important;
  border-color: #3b82f6 !important;
}

.sh-btn-icon {
  height: 36px !important;
  width: 36px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}
.sh-btn-icon:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Primary Button matching Admin */
.sh-btn-primary {
  height: 36px !important;
  padding: 0 16px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 1px 2px 0 rgba(37, 99, 235, 0.2) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-family: 'Inter', sans-serif !important;
}
.sh-btn-primary:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 4px 12px 0 rgba(37, 99, 235, 0.3) !important;
}

/* Cards matching Admin */
.sh-card, .sh-table-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
}

/* Knowledge Base Cards Grid */
.sh-kb-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 20px !important;
}
.sh-kb-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 16px !important;
  padding: 22px !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.sh-kb-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05) !important;
  transform: translateY(-2px) !important;
}
.sh-kb-cat-badge {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}
.sh-kb-card h4 {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  margin: 0 0 8px !important;
  font-family: 'Inter', sans-serif !important;
}
.sh-kb-card p {
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 0 16px !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD 100% IDENTICAL BORDER-RADIUS & COLOR SCALE
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Large Cards & Major Workspace Containers: 16px (matches rounded-2xl) */
.sh-card,
.sh-table-card,
.sh-form-card,
.sh-kb-card,
.sh-stat-card,
.sh-filter-toolbar,
.sh-ticket-head,
.sh-reply-box,
.sh-conv,
.sh-forum-head,
.sh-forum-topic,
.sh-forum-replies,
.sh-forum-topic-row,
.sh-modal,
.sh-login-box,
.sh-welcome-hero,
.sh-single-kb-main,
.sh-kb-sidebar-card,
.sh-kb-feedback-card,
.sh-dash-card,
.sh-chat-workspace-card {
  border-radius: 16px !important;
}

/* 2. Controls, Buttons, Inputs, and Segmented Bars: 12px (matches rounded-xl) */
.sh-btn,
.sh-btn-primary,
.sh-btn-secondary,
.sh-btn-outline,
.sh-header-new-btn,
.sh-btn-icon,
.sh-btn-reset,
.sh-search-input,
.sh-select-control,
.sh-search-wrap,
.sh-field input,
.sh-field select,
.sh-field textarea,
.sh-editor,
.sh-header-search-bar,
.sh-segmented-control,
.sh-kb-vote-btn,
.sh-brand-icon,
.sh-page-icon,
.sh-stat-icon,
.sh-sidebar-item {
  border-radius: 12px !important;
}

/* 3. Inner Segmented Tab Items & Action Buttons: 8px (matches rounded-lg) */
.sh-segmented-item,
.sh-tab-btn,
.sh-chat-filter-tab,
.sh-activity-item {
  border-radius: 8px !important;
}

/* 4. Badges, Priority Indicators, and Small Tags: 6px (matches rounded-md) */
.sh-badge-open,
.sh-badge-solved,
.sh-badge-urgent,
.sh-badge-high,
.sh-badge-medium,
.sh-badge-low,
.sh-badge-in_progress,
.sh-badge-in-progress,
.sh-badge,
.sh-prio,
.sh-kb-cat-badge,
.sh-activity-id {
  border-radius: 6px !important;
}

/* 5. Count Pills and Capsule Indicators: 9999px (matches rounded-full) */
.sh-brand-version,
.sh-count-badge,
.sh-sidebar-badge,
.sh-chip-count,
.sh-position-badge,
.sh-status-indicator,
.sh-header-kbd {
  border-radius: 9999px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIX WORDPRESS ADMIN BAR & STRICT FORM ELEMENT BORDER RADII
   ═══════════════════════════════════════════════════════════════════════════ */

/* WordPress Admin Bar Sticky Header Offset */
body.admin-bar .sh-top-header {
  top: 32px !important;
}
body.admin-bar .sh-vertical-sidebar {
  top: 100px !important;
  height: calc(100vh - 100px) !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .sh-top-header {
    top: 46px !important;
  }
  body.admin-bar .sh-vertical-sidebar {
    top: 114px !important;
    height: calc(100vh - 114px) !important;
  }
}

/* Strict Form Controls Border Radius & Sizing */
.sh-portal-app input[type="text"],
.sh-portal-app input[type="password"],
.sh-portal-app input[type="email"],
.sh-portal-app input[type="number"],
.sh-portal-app input[type="search"],
.sh-portal-app select {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}

/* Dedicated search input padding (prevents search icon text collision) */
.sh-portal-app input.sh-search-input,
.sh-portal-app .sh-search-wrap input,
.sh-search-wrap input,
.sh-search-input,
#sh-frontend-chat-search,
input#sh-frontend-chat-search,
.sh-portal-app input[placeholder*="Search"],
.sh-portal-app input[placeholder*="search"],
.sh-portal-app input[name="sh_search"],
.sh-portal-app input[name="s"],
input[placeholder*="Search"],
input[placeholder*="search"],
input[name="sh_search"],
input[name="s"] {
  padding-left: 36px !important;
  padding-right: 12px !important;
}

.sh-portal-app input[type="text"]:focus,
.sh-portal-app input[type="password"]:focus,
.sh-portal-app input[type="email"]:focus,
.sh-portal-app input[type="number"]:focus,
.sh-portal-app input[type="search"]:focus,
.sh-portal-app select:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
}

.sh-portal-app textarea {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

.sh-portal-app textarea:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
}

.sh-portal-app input[type="checkbox"],
.sh-portal-app input[type="radio"] {
  border-radius: 4px !important;
  width: 16px !important;
  height: 16px !important;
  accent-color: #2563eb !important;
  cursor: pointer !important;
}

.sh-portal-app .sh-btn,
.sh-portal-app .sh-btn-primary,
.sh-portal-app .sh-btn-secondary,
.sh-portal-app .sh-btn-outline,
.sh-portal-app button.sh-btn {
  border-radius: 12px !important;
  height: 38px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UNIFIED DESIGN SYSTEM TOKENS (16px Cards / 12px Controls / 6px Badges)
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. All Cards, Sections, Modals & Containers: 16px (matches Tailwind rounded-2xl in Admin Dashboard) */
.sh-card,
.sh-table-card,
.sh-form-card,
.sh-kb-card,
.sh-stat-card,
.sh-filter-toolbar,
.sh-ticket-head,
.sh-reply-box,
.sh-conv,
.sh-forum-head,
.sh-forum-topic,
.sh-forum-replies,
.sh-forum-topic-row,
.sh-modal,
.sh-login-box,
.sh-login-card,
.sh-welcome-hero,
.sh-single-kb-main,
.sh-kb-sidebar-card,
.sh-kb-feedback-card,
.sh-dash-card,
.sh-chat-workspace-card,
.sh-public-kb-hero,
.sh-search-modal-card {
  border-radius: 16px !important;
}

/* 2. All Inputs, Dropdowns, Buttons, and Outer Tab Bars: 12px */
.sh-btn,
.sh-btn-primary,
.sh-btn-secondary,
.sh-btn-outline,
.sh-header-new-btn,
.sh-btn-icon,
.sh-btn-reset,
.sh-search-input,
.sh-select-control,
.sh-search-wrap,
.sh-field input,
.sh-field select,
.sh-field textarea,
.sh-editor,
.sh-header-search-bar,
.sh-segmented-control,
.sh-kb-vote-btn,
.sh-brand-icon,
.sh-page-icon,
.sh-stat-icon,
.sh-sidebar-item {
  border-radius: 12px !important;
}

/* 3. Inner Segmented Tab Items & Row Items: 8px / 12px */
.sh-segmented-item,
.sh-tab-btn,
.sh-chat-filter-tab {
  border-radius: 8px !important;
}

.sh-activity-item {
  border-radius: 12px !important;
}

/* 4. Badges, Priority Indicators & Compact Pills: 6px */
.sh-badge-open,
.sh-badge-solved,
.sh-badge-urgent,
.sh-badge-high,
.sh-badge-medium,
.sh-badge-low,
.sh-badge-in_progress,
.sh-badge-in-progress,
.sh-badge,
.sh-prio,
.sh-kb-cat-badge,
.sh-position-badge,
.sh-status-indicator,
.sh-brand-version,
.sh-count-badge,
.sh-header-kbd {
  border-radius: 6px !important;
}

/* 5. Topic Chip Counter Badge in Segmented Bars */
.sh-segmented-item .sh-chip-count,
.sh-chip-count {
  font-size: 11px !important;
  font-weight: 700 !important;
  background: rgba(148, 163, 184, 0.15) !important;
  color: #64748b !important;
  padding: 1px 7px !important;
  border-radius: 9999px !important;
  line-height: 1.4 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 5px !important;
  box-shadow: none !important;
  border: none !important;
}
.sh-segmented-item.active .sh-chip-count {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

/* 6. Sidebar Nav Badge Pill */
.sh-sidebar-badge {
  margin-left: auto !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  height: 20px !important;
  min-width: 20px !important;
  padding: 0 6px !important;
  border-radius: 9999px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  border: none !important;
}
.sh-sidebar-item.sh-sidebar-active .sh-sidebar-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STRICT BUTTON & CARD FORMATTING (NO WRAP, CLEAN HEIGHT & RADII)
   ═══════════════════════════════════════════════════════════════════════════ */

.sh-portal-app .sh-btn,
.sh-portal-app .sh-btn-primary,
.sh-portal-app .sh-btn-secondary,
.sh-portal-app .sh-btn-outline,
.sh-portal-app button.sh-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.sh-portal-app .sh-btn-sm {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}

.sh-portal-app .sh-card,
.sh-portal-app .sh-table-card,
.sh-portal-app .sh-dash-card {
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

/* ─── Global Search & Jump (Cmd+K) Modal ─── */
.sh-search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  padding-left: 16px;
  padding-right: 16px;
  animation: shFadeIn 0.15s ease-out;
}

.sh-search-modal-card {
  width: 100%;
  max-width: 580px;
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: shZoomIn 0.15s ease-out;
}

.sh-search-modal-header {
  display: flex !important;
  align-items: center !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  gap: 12px !important;
  background: #ffffff !important;
}

.sh-search-modal-header svg {
  flex-shrink: 0 !important;
}

.sh-portal-app .sh-search-modal-header input,
.sh-portal-app input.sh-search-modal-input,
.sh-search-modal-input,
#sh-search-modal-input {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: inherit !important;
}

.sh-portal-app .sh-search-modal-header input:focus,
.sh-portal-app input.sh-search-modal-input:focus,
.sh-search-modal-input:focus,
#sh-search-modal-input:focus {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sh-search-modal-input::placeholder {
  color: #94a3b8 !important;
}

.sh-search-modal-esc {
  font-size: 10px !important;
  font-weight: 700 !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 4px !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  cursor: pointer !important;
  user-select: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.sh-search-modal-body {
  max-height: 380px !important;
  overflow-y: auto !important;
  padding: 8px 10px !important;
}

.sh-search-modal-group-title {
  padding: 8px 10px 4px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #94a3b8 !important;
}

.sh-search-modal-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  color: #334155 !important;
  transition: all 0.12s ease !important;
  cursor: pointer !important;
  margin-bottom: 2px !important;
}

.sh-search-modal-item:hover,
.sh-search-modal-item.active {
  background: #2563eb !important;
  color: #ffffff !important;
}

.sh-search-modal-item:hover .sh-search-item-icon,
.sh-search-modal-item.active .sh-search-item-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.sh-search-modal-item:hover .sh-search-item-title,
.sh-search-modal-item.active .sh-search-item-title {
  color: #ffffff !important;
}

.sh-search-modal-item:hover .sh-search-item-sub,
.sh-search-modal-item.active .sh-search-item-sub {
  color: rgba(255, 255, 255, 0.82) !important;
}

.sh-search-modal-item:hover .sh-search-item-badge,
.sh-search-modal-item.active .sh-search-item-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.sh-search-item-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  color: #2563eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.12s ease !important;
}

.sh-search-item-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.sh-search-item-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sh-search-item-sub {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sh-search-item-badge {
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  flex-shrink: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
}

.sh-search-modal-empty {
  padding: 32px 20px !important;
  text-align: center !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.sh-search-modal-footer {
  padding: 9px 16px !important;
  border-top: 1px solid #f1f5f9 !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 11px !important;
  color: #64748b !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.sh-search-modal-keys {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.sh-search-modal-key-hint {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1 !important;
}

.sh-search-modal-key-hint kbd {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  font-size: 10px !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: none !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

@keyframes shFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shZoomIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── Frontend Login Page ─── */
.sh-login-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
}

.sh-login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px !important;
  padding: 36px 32px;
  box-shadow: none !important;
  box-sizing: border-box;
  animation: shZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
  .sh-login-card {
    padding: 28px 20px;
    border-radius: 12px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STRICT CLEAN FLAT DESIGN: ZERO DROP SHADOWS ACROSS FRONTEND PORTAL
   ═══════════════════════════════════════════════════════════════════════════ */
.sh-portal-app,
.sh-portal-app *,
.sh-dash-wrap,
.sh-dash-wrap *,
.sh-card,
.sh-table-card,
.sh-form-card,
.sh-kb-card,
.sh-stat-card,
.sh-filter-toolbar,
.sh-ticket-head,
.sh-reply-box,
.sh-conv,
.sh-msg-card,
.sh-forum-head,
.sh-forum-topic,
.sh-forum-replies,
.sh-forum-topic-row,
.sh-modal,
.sh-login-box,
.sh-login-card,
.sh-welcome-hero,
.sh-single-kb-main,
.sh-kb-sidebar-card,
.sh-kb-feedback-card,
.sh-dash-card,
.sh-chat-workspace-card,
.sh-search-modal-card,
.sh-search-modal-box,
.sh-btn,
.sh-btn-primary,
.sh-btn-secondary,
.sh-btn-outline,
.sh-header-new-btn,
.sh-top-header,
.sh-vertical-sidebar,
.sh-header-search-bar,
.sh-csat-card,
.sh-chat-msg-bubble,
.sh-header-user-profile {
  box-shadow: none !important;
  text-shadow: none !important;
}

.sh-portal-app .sh-btn:hover,
.sh-portal-app .sh-btn-primary:hover,
.sh-portal-app .sh-btn-secondary:hover,
.sh-portal-app .sh-btn-outline:hover,
.sh-portal-app .sh-header-new-btn:hover,
.sh-portal-app .sh-card:hover,
.sh-portal-app .sh-stat-card:hover,
.sh-portal-app .sh-forum-topic-row:hover {
  box-shadow: none !important;
}

