/* ==========================================================
 * ServiceHub — estilos próprios (em cima do Bootstrap 5)
 * Paleta: #0F172A azul escuro · #2563EB primário · #3B82F6 claro
 * ========================================================== */

:root {
  --sh-azul-escuro:   #0F172A;
  --sh-azul:          #2563EB;
  --sh-azul-claro:    #3B82F6;
  --sh-cinza:         #F1F5F9;
  --sh-sidebar-w:     240px;
  --sh-sidebar-wc:    64px;   /* colapsado */
  --sh-topbar-h:      52px;
  --sh-sidebar-bg:    #0F172A;
  --sh-sidebar-hover: rgba(255,255,255,.07);
  --sh-sidebar-active:#2563EB;
  --sh-transition:    .22s ease;
}

/* ===== RESET / BASE ===== */
body {
  background: var(--sh-cinza);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
#sh-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sh-sidebar-w);
  background: var(--sh-sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: width var(--sh-transition);
  overflow: hidden;
}

/* ----- Brand / Logo ----- */
.sh-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 84px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  position: relative;
}
.sh-brand-logo {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.sh-logo-full {
  height: 64px;
  max-width: 220px;
  object-fit: contain;
  transition: opacity var(--sh-transition), width var(--sh-transition);
  opacity: 1;
  width: 220px;
}
.sh-logo-icon {
  height: 52px;
  width: 52px;
  object-fit: contain;
  transition: opacity var(--sh-transition);
  opacity: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Botão de toggle */
#sh-sidebar-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, background .15s;
  font-size: 1.1rem;
  line-height: 1;
}
#sh-sidebar-toggle:hover { color: #fff; background: var(--sh-sidebar-hover); }

/* ----- Nav ----- */
.sh-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sh-sidebar-nav::-webkit-scrollbar { width: 4px; }
.sh-sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.sh-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  border-radius: 0;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background var(--sh-transition), color var(--sh-transition);
  white-space: nowrap;
  position: relative;
}
.sh-nav-item:hover  { background: var(--sh-sidebar-hover); color: #fff; }
.sh-nav-item.active { background: var(--sh-sidebar-active); color: #fff; }

.sh-nav-icon  { font-size: 1.05rem; flex-shrink: 0; width: 20px; text-align: center; }
.sh-nav-label { flex: 1; transition: opacity var(--sh-transition); }

.sh-nav-badge {
  background: #22c55e;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}
.sh-nav-badge--alerta {
  background: #f59e0b; /* amarelo — chamados novos */
  color: #1e293b;
}

.sh-nav-chevron {
  font-size: .75rem;
  margin-left: auto;
  transition: transform var(--sh-transition);
  flex-shrink: 0;
}
.sh-nav-group.open .sh-nav-chevron { transform: rotate(180deg); }

/* Sub-menu colapsável */
.sh-nav-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--sh-transition);
}
.sh-nav-sub-item {
  display: flex;
  align-items: center;
  padding: 7px 16px 7px 46px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .83rem;
  transition: background var(--sh-transition), color var(--sh-transition);
  white-space: nowrap;
}
.sh-nav-sub-item:hover  { background: var(--sh-sidebar-hover); color: #fff; }
.sh-nav-sub-item.active { color: var(--sh-azul-claro); font-weight: 600; }

/* ----- Footer (usuário) ----- */
.sh-sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sh-sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.sh-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sh-azul);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sh-user-info { min-width: 0; overflow: hidden; transition: opacity var(--sh-transition); }
.sh-user-name { font-size: .8rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-user-role { font-size: .7rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .04em; }
.sh-logout-btn {
  background: none; border: none;
  color: rgba(255,255,255,.45);
  padding: 6px; border-radius: 6px; cursor: pointer;
  flex-shrink: 0; font-size: 1.05rem; line-height: 1;
  transition: color .15s, background .15s;
}
.sh-logout-btn:hover { color: #EF4444; background: rgba(239,68,68,.1); }

/* ===== TOPBAR ===== */
#sh-topbar {
  position: fixed;
  top: 0;
  left: var(--sh-sidebar-w);
  right: 0;
  height: var(--sh-topbar-h);
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  display: none; /* oculto no desktop — visível apenas no mobile via media query */
  align-items: center;
  padding: 0 20px 0 16px;
  gap: 12px;
  z-index: 1030;
  transition: left var(--sh-transition);
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
#sh-topbar-toggle {
  background: none; border: none;
  color: var(--sh-azul-escuro);
  padding: 6px; border-radius: 6px; cursor: pointer;
  display: none; /* visível apenas mobile */
  line-height: 1;
}
.sh-topbar-brand { display: none; } /* oculto no desktop */

.sh-topbar-notif {
  position: relative;
  color: var(--sh-azul-escuro);
  font-size: 1.1rem;
  text-decoration: none;
}
.sh-notif-dot {
  position: absolute;
  top: -5px; right: -6px;
  background: #EF4444;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 999px;
  line-height: 1.3;
}
.sh-topbar-user { font-size: .85rem; color: #475569; font-weight: 500; }

/* Evita flash de transição no carregamento inicial */
body.sh-loading #sh-main-wrapper,
body.sh-loading #sh-topbar { transition: none !important; }

/* ===== MAIN WRAPPER ===== */
#sh-main-wrapper {
  margin-left: var(--sh-sidebar-w);
  margin-top: 0;
  min-height: 100vh;
  transition: margin-left var(--sh-transition);
}

/* ===== ESTADO COLAPSADO ===== */
body.sh-sidebar-collapsed #sh-sidebar         { width: var(--sh-sidebar-wc); }
body.sh-sidebar-collapsed #sh-topbar          { left: var(--sh-sidebar-wc); }
body.sh-sidebar-collapsed #sh-main-wrapper    { margin-left: var(--sh-sidebar-wc); }

body.sh-sidebar-collapsed .sh-logo-full       { opacity: 0; width: 0; }
body.sh-sidebar-collapsed .sh-logo-icon       { opacity: 1; }
body.sh-sidebar-collapsed .sh-nav-label       { opacity: 0; width: 0; overflow: hidden; }
body.sh-sidebar-collapsed .sh-nav-chevron     { opacity: 0; }
body.sh-sidebar-collapsed .sh-nav-badge       { opacity: 0; }
body.sh-sidebar-collapsed .sh-user-info       { opacity: 0; width: 0; overflow: hidden; }
body.sh-sidebar-collapsed .sh-sidebar-footer  { justify-content: center; }
body.sh-sidebar-collapsed .sh-sidebar-user    { flex: 0; }
body.sh-sidebar-collapsed .sh-logout-btn      { margin: 0 auto; }
body.sh-sidebar-collapsed .sh-nav-sub         { max-height: 0 !important; }
body.sh-sidebar-collapsed .sh-sidebar-brand   { justify-content: center; padding: 0 8px; }
body.sh-sidebar-collapsed #sh-sidebar-toggle  { margin: 0; }

/* Tooltip no collapsed */
body.sh-sidebar-collapsed .sh-nav-item        { justify-content: center; padding: 10px 0; width: 100%; }
body.sh-sidebar-collapsed .sh-nav-item::after {
  content: attr(title);
  position: absolute;
  left: calc(var(--sh-sidebar-wc) + 8px);
  background: #1E293B;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 9999;
}
body.sh-sidebar-collapsed .sh-nav-item:hover::after { opacity: 1; }

/* ===== OVERLAY MOBILE ===== */
#sh-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  z-index: 1039;
  backdrop-filter: blur(2px);
}
#sh-sidebar-overlay.active { display: block; }

/* ===== MOBILE ===== */
@media (max-width: 991.98px) {
  #sh-sidebar {
    left: calc(-1 * var(--sh-sidebar-w));
    width: var(--sh-sidebar-w) !important;
    transition: left var(--sh-transition);
    box-shadow: 4px 0 24px rgba(15,23,42,.25);
  }
  #sh-sidebar.sh-mobile-open { left: 0; }

  #sh-topbar {
    left: 0 !important;
    display: flex; /* restaura no mobile */
  }
  #sh-main-wrapper {
    margin-left: 0 !important;
    margin-top: var(--sh-topbar-h); /* restaura espaço do topbar no mobile */
  }
  #sh-topbar-toggle { display: block; }
  .sh-topbar-brand  { display: block; }
}

/* Cor da navbar (legado — mantido para compatibilidade) */
.bg-sh-azul-escuro { background-color: var(--sh-azul-escuro) !important; }

/* Botões/ações primárias herdam a cor padrão Bootstrap (#0d6efd ≈ azul Bootstrap),
   mas reforçamos o azul ServiceHub */
.btn-primary {
  background-color: var(--sh-azul);
  border-color: var(--sh-azul);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--sh-azul-claro);
  border-color: var(--sh-azul-claro);
}
.btn-outline-primary {
  color: var(--sh-azul);
  border-color: var(--sh-azul);
}
.btn-outline-primary:hover {
  background-color: var(--sh-azul);
  border-color: var(--sh-azul);
}

/* Badges de status (lowercase) */
.badge-status         { font-weight: 500; text-transform: capitalize; }
.badge-aberto              { background-color: #3B82F6 !important; color: #fff; }
.badge-em_atendimento      { background-color: #0EA5E9 !important; color: #fff; }
.badge-aguardando_cliente  { background-color: #64748B !important; color: #fff; }
.badge-aguardando_terceiro { background-color: #475569 !important; color: #fff; }
.badge-resolvido           { background-color: #10B981 !important; color: #fff; }
.badge-fechado             { background-color: #0F172A !important; color: #fff; }
.badge-cancelado           { background-color: #7f1d1d !important; color: #fca5a5; }

/* Badges de status — contratos */
.badge-ativo               { background-color: #10B981 !important; color: #fff; }
.badge-vencendo            { background-color: #F59E0B !important; color: #1a1a1a; }
.badge-vencido             { background-color: #EF4444 !important; color: #fff; }

/* SLA bar (color por status) */
.progress-bar.sla-ok        { background-color: #10B981; }
.progress-bar.sla-risco     { background-color: #F59E0B; }
.progress-bar.sla-estourado { background-color: #EF4444; }

/* Linha de chamado recém-chegado via polling */
@keyframes sh-flash-novo {
  0%   { background-color: #FEF3C7; box-shadow: inset 4px 0 0 #F59E0B; }
  60%  { background-color: #FEF3C7; box-shadow: inset 4px 0 0 #F59E0B; }
  100% { background-color: transparent; box-shadow: inset 0 0 0 transparent; }
}
.sh-novo-row {
  animation: sh-flash-novo 5s ease-out;
}

/* Linha que teve o status alterado em tempo real */
@keyframes sh-flash-atualizado {
  0%   { background-color: #DBEAFE; box-shadow: inset 4px 0 0 #3B82F6; }
  60%  { background-color: #DBEAFE; box-shadow: inset 4px 0 0 #3B82F6; }
  100% { background-color: transparent; box-shadow: inset 0 0 0 transparent; }
}
.sh-atualizado-row { animation: sh-flash-atualizado 3s ease-out; }
@keyframes sh-novo-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(220,53,69,.7); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(220,53,69,0); }
}
.sh-novo-badge {
  display: inline-block;
  animation: sh-novo-pulse 1.6s infinite;
  font-size: .72rem;
  letter-spacing: .03em;
}

/* Linha de chamado RESOLVIDO aguardando avaliação do solicitante */
.sh-precisa-avaliar {
  background-color: #FFF8E1 !important;
  box-shadow: inset 4px 0 0 #F59E0B;
  position: relative;
}
.sh-precisa-avaliar td { font-weight: 500; }

@keyframes sh-pulse-avaliar {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(245,158,11,.6); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}
.sh-badge-avaliar {
  display: inline-block;
  animation: sh-pulse-avaliar 1.8s infinite;
  font-size: .72rem;
  letter-spacing: .03em;
}

/* Banner forte no detalhe do chamado */
.sh-cta-avaliar {
  border-width: 2px !important;
  box-shadow: 0 4px 14px rgba(245,158,11,.25);
}
@keyframes sh-icon-piscar {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%      { transform: rotate(-15deg) scale(1.15); }
  75%      { transform: rotate(15deg) scale(1.15); }
}
.sh-icon-piscar {
  display: inline-block;
  animation: sh-icon-piscar 2s ease-in-out infinite;
}

/* KPI cards do dashboard */
.sh-kpi {
  background: linear-gradient(135deg, var(--sh-azul), var(--sh-azul-claro));
  color: #fff; border: none;
}
.sh-kpi small        { opacity: .85; text-transform: uppercase; font-size: .72rem; letter-spacing: .03em; }
.sh-kpi h3           { font-weight: 700; }

/* KPI Satisfação (3 variantes de cor) */
.sh-kpi-satisfacao { color: #fff; border: none; box-shadow: 0 2px 12px rgba(15,23,42,.12); }
.sh-kpi-satisfacao.verde     { background: linear-gradient(135deg, #059669, #10B981); }
.sh-kpi-satisfacao.amarelo   { background: linear-gradient(135deg, #D97706, #F59E0B); }
.sh-kpi-satisfacao.vermelho  { background: linear-gradient(135deg, #DC2626, #EF4444); }

/* ===== MODAL DE FLASH ===== */
.sh-flash-modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,23,42,.18);
}
.sh-flash-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
}
.sh-flash-modal-header i { font-size: 1.2rem; }

.sh-flash-success { background: linear-gradient(135deg, #059669, #10B981); }
.sh-flash-danger  { background: linear-gradient(135deg, #DC2626, #EF4444); }
.sh-flash-warning { background: linear-gradient(135deg, #D97706, #F59E0B); }
.sh-flash-info    { background: linear-gradient(135deg, #0284C7, #38BDF8); }

.sh-flash-btn-success { background: #059669; color: #fff; border: none; }
.sh-flash-btn-success:hover { background: #047857; color: #fff; }
.sh-flash-btn-danger  { background: #DC2626; color: #fff; border: none; }
.sh-flash-btn-danger:hover  { background: #B91C1C; color: #fff; }
.sh-flash-btn-warning { background: #D97706; color: #fff; border: none; }
.sh-flash-btn-info    { background: #0284C7; color: #fff; border: none; }

/* ===== TELA DE LOGIN ===== */
.sh-login-bg {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, #1D4ED8 100%);
  position: relative;
  overflow: hidden;
}
.sh-login-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.sh-login-circle-1 {
  width: 500px; height: 500px;
  top: -180px; right: -160px;
  background: radial-gradient(circle, rgba(37,99,235,.35) 0%, transparent 70%);
}
.sh-login-circle-2 {
  width: 400px; height: 400px;
  bottom: -140px; left: -100px;
  background: radial-gradient(circle, rgba(59,130,246,.25) 0%, transparent 70%);
}
.sh-login-circle-3 {
  width: 200px; height: 200px;
  top: 40%; left: 55%;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
}
.sh-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.30), 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
  z-index: 1;
}
.sh-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.sh-login-logo-img {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--sh-azul-escuro);
  padding: 4px;
  flex-shrink: 0;
}
.sh-login-brand-name { font-size: 1rem; font-weight: 700; color: var(--sh-azul-escuro); line-height: 1.2; }
.sh-login-brand-sub  { font-size: .75rem; color: #94A3B8; letter-spacing: .03em; }
.sh-login-title    { font-size: 1.35rem; font-weight: 700; color: #0F172A; margin-bottom: 4px; }
.sh-login-subtitle { font-size: .875rem; color: #64748B; margin-bottom: 24px; }
.sh-login-label    { font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: 6px; display: block; }
.sh-login-input-group {
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #E2E8F0;
  transition: border-color .2s, box-shadow .2s;
}
.sh-login-input-group:focus-within {
  border-color: var(--sh-azul);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.sh-login-input-icon {
  background: #F8FAFC;
  border: none;
  color: #94A3B8;
  padding: 0 14px;
  font-size: .95rem;
}
.sh-login-input {
  border: none;
  box-shadow: none !important;
  padding: 11px 14px;
  font-size: .9rem;
  color: #1E293B;
  background: #fff;
}
.sh-login-input::placeholder { color: #CBD5E1; }
.sh-login-input:focus { background: #fff; }
.sh-pwd-toggle {
  background: #F8FAFC;
  border: none !important;
  color: #94A3B8;
  padding: 0 14px;
  border-radius: 0;
  transition: color .15s, background .15s;
}
.sh-pwd-toggle:hover { color: var(--sh-azul); background: #F1F5F9; }
.sh-login-btn {
  background: linear-gradient(135deg, var(--sh-azul) 0%, #1D4ED8 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.sh-login-btn:hover  { opacity: .9; color: #fff; transform: translateY(-1px); }
.sh-login-btn:active { transform: translateY(0); }
.sh-login-footer-note { font-size: .78rem; color: #94A3B8; text-align: center; margin-top: 20px; margin-bottom: 0; }

/* Tabela mais leve */
.table > :not(caption) > * > * { vertical-align: middle; }

/* Cards header/body padding */
.card { border: 1px solid #E2E8F0; box-shadow: 0 1px 2px rgba(15,23,42,.04); }

/* Login — card responsivo em telas pequenas */
@media (max-width: 479.98px) {
  .sh-login-card { padding: 28px 20px; }
}

/* ===== Gráfico comparativo de Licenças (estilo "tornado") ===== */
.lic-cmp-head,
.lic-cmp-row {
  display: grid;
  grid-template-columns: 1fr 240px 1fr;
  align-items: center;
  gap: 12px;
}
.lic-cmp-head {
  padding: 8px 0 14px;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 16px;
}
.lic-cmp-row {
  margin-bottom: 12px;
}
.lic-cmp-left  { display: flex; justify-content: flex-end; }
.lic-cmp-right { display: flex; justify-content: flex-start; }

.lic-bar {
  height: 32px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  color: #fff; font-weight: 600; font-size: .9rem;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15,23,42,.10);
  transition: transform .15s ease;
  min-width: 38px;
}
.lic-bar:hover { transform: scaleX(1.02); transform-origin: center; }

.lic-bar-left {
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #1E3A8A 0%, #2563EB 60%, #3B82F6 100%);
  justify-content: flex-start;
  padding-left: 18px;
}
.lic-bar-right {
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #34D399 0%, #10B981 40%, #059669 100%);
  justify-content: flex-end;
  padding-right: 18px;
}

.lic-bar .lic-val {
  font-size: 1rem; font-weight: 700;
}
.lic-bar .lic-pct {
  opacity: .85; font-weight: 500;
}

.lic-cmp-center {
  display: flex; justify-content: center;
}
.lic-pill {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem; font-weight: 600;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 220px;
  box-shadow: 0 2px 8px rgba(15,23,42,.20);
  border: 2px solid #fff;
}

/* ===== REPORT CARDS (index de relatórios) ===== */
.sh-rel-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.sh-rel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15,23,42,.12) !important;
}

/* Mobile: empilha em vez de 3 colunas */
@media (max-width: 767.98px) {
  .lic-cmp-head { display: none; }
  .lic-cmp-row {
    grid-template-columns: 1fr;
    gap: 4px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 12px;
  }
  .lic-cmp-left, .lic-cmp-right { justify-content: stretch; }
  .lic-bar-left, .lic-bar-right { border-radius: 8px; }
  .lic-cmp-center { order: -1; }
}

/* ===== SUPER ADMIN theme ===== */
#sh-sidebar.sh-sidebar--sa {
  --sh-sidebar-bg:    #2e1065;   /* deep violet */
  --sh-sidebar-active:#7c3aed;
  --sh-sidebar-hover: rgba(255,255,255,.07);
}
#sh-sidebar.sh-sidebar--sa .sh-sidebar-brand {
  border-bottom-color: rgba(255,255,255,.1);
}
.sh-sa-badge {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .04em;
}
.sh-sa-avatar {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  display: flex; align-items: center; justify-content: center;
}
.sh-topbar--sa {
  background: #2e1065;
  border-bottom: 1px solid rgba(124,58,237,.4);
}
.sh-topbar--sa button,
.sh-topbar--sa a { color: #e9d5ff !important; }
.sh-topbar--sa .sh-topbar-user { color: #c4b5fd; }
.sh-sa-btn {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none;
  color: #fff;
}
.sh-sa-btn:hover { background: linear-gradient(135deg, #6d28d9, #4338ca); color: #fff; }
.sh-sa-icon-box {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  width: 56px; height: 56px; flex-shrink: 0;
}
