﻿
:root{--sidebar-width:180px;--side:#123d67;--side2:#0d2f52;--accent:#2c88c7;--paper:#f3f6fa;--muted:#c6d7e7}
*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:var(--paper);color:#17243a}.app{min-height:100vh;display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,var(--side),var(--side2));color:#fff;padding:14px 8px;overflow:auto}.brand{padding:4px 10px 14px;border-bottom:1px solid #ffffff25;margin-bottom:8px}.brand h1{font-size:20px;margin:0}.brand small{font-size:12px;color:var(--muted)}.nav-title{font-size:10px;text-transform:uppercase;color:#9fbed8;padding:12px 10px 5px}.nav a{display:flex;align-items:center;gap:7px;color:#eaf3fb;text-decoration:none;padding:9px 10px;border-radius:8px;margin:2px 0;font-size:13px;white-space:nowrap}.nav a b{width:12px;text-align:center}.nav a:hover,.nav a.active{background:#ffffff18}.nav a.active{box-shadow:inset 3px 0 var(--accent)}.content{min-width:0}.topbar{background:#fff;padding:13px 18px;border-bottom:1px solid #dce5ed;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:5}.topbar h2{margin:0;font-size:19px}.db-badge{background:#178253;color:#fff;padding:7px 11px;border-radius:18px;font-size:12px}.page{padding:16px;max-width:none;margin:0}.card{background:#fff;border-radius:12px;padding:18px;box-shadow:0 2px 12px #173e6610;margin-bottom:14px}.primary{border:0;background:#1a73ad;color:#fff;border-radius:8px;padding:10px 14px;font-weight:600;cursor:pointer}.link-button{text-decoration:none}.hidden{display:none!important}.after-import{display:flex;justify-content:flex-end;margin-top:14px}@media(max-width:800px){:root{--sidebar-width:72px}.brand h1,.brand small,.nav span,.nav-title{display:none}.nav a{justify-content:center;font-size:18px}.nav a b{width:auto}}
/* V1.7 - ações globais no canto superior direito */
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.import-pill{display:inline-flex;align-items:center;justify-content:center;background:#1a73ad;color:#fff;text-decoration:none;padding:7px 14px;border-radius:18px;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap;transition:background-color .18s ease,transform .18s ease}
.import-pill:hover{background:#145f91;transform:translateY(-1px)}
.import-pill:focus-visible{outline:3px solid #92c9ed;outline-offset:2px}
.import-pill.active{background:#155f91}
@media(max-width:800px){.top-actions{gap:6px}.import-pill,.db-badge{padding:6px 9px;font-size:11px}}


/* V2 - Navegação Glintt Life */
:root{--sidebar-width:190px;--life-orange:#f26a21;--life-orange-dark:#c94f12;--life-ink:#1d2433}
.sidebar{background:linear-gradient(180deg,#242832 0%,#171a21 100%);padding:16px 10px;border-right:1px solid #323742}
.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 16px}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(145deg,#ff8d4c,var(--life-orange));color:#fff;font-weight:900;font-size:20px;box-shadow:0 8px 18px rgba(242,106,33,.28)}.brand h1{font-size:18px}.brand small{color:#b7bbc4}
.nav-title{color:#8f95a3;letter-spacing:.10em}.nav a{padding:10px;border-radius:10px;color:#e9ebef;transition:background .16s ease,transform .16s ease}.nav a:hover{background:#ffffff0f;transform:translateX(2px)}.nav a.active{background:linear-gradient(90deg,rgba(242,106,33,.23),rgba(242,106,33,.06));box-shadow:inset 3px 0 var(--life-orange);color:#fff}
.topbar{background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid #e8e8eb;padding:14px 24px}.topbar h2{font-size:18px;color:var(--life-ink)}
.import-pill{background:var(--life-orange);border-radius:10px;padding:8px 14px}.import-pill:hover{background:var(--life-orange-dark)}.import-pill:focus-visible{outline-color:#ffc7a8}.db-badge{background:#eaf7f1;color:#13704c;border:1px solid #c7ebdc;font-weight:700}
@media(max-width:800px){.brand{justify-content:center}.brand-mark{width:34px;height:34px}.brand>div:last-child{display:none}}
/* MENU GLINTT LIFE COMPACTO - INICIO */
:root{
  --sidebar-width:176px;
  --life-orange:#f26a21;
  --life-orange-dark:#c94f12;
  --life-ink:#1d2433;
}
.sidebar{
  background:linear-gradient(180deg,#242832 0%,#171a21 100%);
  padding:12px 8px;
  border-right:1px solid #323742;
}
.brand{
  display:flex;
  align-items:center;
  gap:8px;
  padding:3px 7px 12px;
  margin-bottom:5px;
}
.brand-mark{
  width:32px;
  height:32px;
  border-radius:10px;
  background:linear-gradient(145deg,#ff8d4c,var(--life-orange));
  color:#fff;
  font-size:17px;
  box-shadow:0 7px 16px rgba(242,106,33,.28);
}
.brand h1{font-size:16px;line-height:1.15}
.brand small{font-size:10px;line-height:1.25;color:#b7bbc4}
.nav-title{
  padding:9px 8px 3px;
  color:#989dab;
  font-size:8px;
  letter-spacing:.11em;
}
.nav a{
  min-height:30px;
  gap:6px;
  margin:1px 0;
  padding:6px 8px;
  border-radius:9px;
  color:#f1f2f4;
  font-size:11px;
  line-height:1.2;
}
.nav a b{width:11px;font-size:11px;flex:0 0 11px}
.nav a:hover{background:rgba(255,255,255,.07);transform:translateX(1px)}
.nav a.active,
.nav a[aria-current="page"]{
  background:linear-gradient(90deg,rgba(242,106,33,.25),rgba(242,106,33,.07));
  box-shadow:inset 3px 0 var(--life-orange);
  color:#fff;
}
@media(max-width:800px){
  :root{--sidebar-width:64px}
  .sidebar{padding:10px 6px}
  .nav a{padding:7px 5px}
}
/* MENU GLINTT LIFE COMPACTO - FIM */
/* SIDEBAR UNIFICADA FINAL - INICIO */
:root{--sidebar-width:176px;--sidebar-collapsed-width:58px;--life-orange:#f26a21;--life-orange-dark:#c94f12}
.app{display:grid!important;grid-template-columns:var(--sidebar-width) minmax(0,1fr)!important;min-height:100vh;transition:grid-template-columns .18s ease}
.sidebar{position:fixed!important;inset:0 auto 0 0!important;z-index:50!important;width:var(--sidebar-width)!important;height:100vh!important;padding:12px 8px!important;overflow-y:auto!important;overflow-x:hidden!important;background:linear-gradient(180deg,#242832 0%,#171a21 100%)!important;color:#fff!important;border-right:1px solid #323742!important;box-shadow:5px 0 18px rgba(5,8,14,.12);transition:width .18s ease}
.content,.admin-content{grid-column:2!important;min-width:0!important;width:auto!important}
.brand{display:flex!important;align-items:center!important;gap:8px!important;padding:3px 7px 12px!important;margin-bottom:5px!important;border-bottom:1px solid rgba(255,255,255,.16)!important}
.brand-mark{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;flex:0 0 32px!important;border-radius:10px!important;background:linear-gradient(145deg,#ff8d4c,var(--life-orange))!important;color:#fff!important;font-size:17px!important;font-weight:900!important;box-shadow:0 7px 16px rgba(242,106,33,.28)!important}
.brand h1{margin:0!important;color:#fff!important;font-size:16px!important;line-height:1.15!important}.brand small{display:block!important;margin-top:3px!important;color:#b7bbc4!important;font-size:9px!important;line-height:1.3!important}
.nav-title{padding:9px 8px 3px!important;color:#989dab!important;font-size:8px!important;letter-spacing:.11em!important;text-transform:uppercase!important}
.nav a{display:flex!important;align-items:center!important;min-height:30px!important;gap:6px!important;margin:1px 0!important;padding:6px 8px!important;border-radius:9px!important;color:#f1f2f4!important;font-size:11px!important;line-height:1.2!important;text-decoration:none!important;white-space:nowrap!important;transition:background .15s ease,transform .15s ease!important}
.nav a b{width:11px!important;flex:0 0 11px!important;color:#fff!important;font-size:11px!important;text-align:center!important}.nav a:hover{background:rgba(255,255,255,.07)!important;transform:translateX(1px)!important}
.nav a.active,.nav a[aria-current="page"]{background:linear-gradient(90deg,rgba(242,106,33,.27),rgba(242,106,33,.07))!important;box-shadow:inset 3px 0 var(--life-orange)!important;color:#fff!important}
.sidebar-toggle{position:fixed!important;top:50%!important;left:calc(var(--sidebar-width) - 12px)!important;transform:translateY(-50%)!important;z-index:60!important;width:24px!important;height:50px!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:12px!important;background:var(--life-orange)!important;color:#fff!important;font-size:22px!important;cursor:pointer!important;box-shadow:0 4px 12px rgba(0,0,0,.24)!important;transition:left .18s ease!important}.sidebar-toggle:hover{background:var(--life-orange-dark)!important}
body.sidebar-collapsed .app{grid-template-columns:var(--sidebar-collapsed-width) minmax(0,1fr)!important}body.sidebar-collapsed .sidebar{width:var(--sidebar-collapsed-width)!important}body.sidebar-collapsed .sidebar-toggle{left:calc(var(--sidebar-collapsed-width) - 12px)!important}body.sidebar-collapsed .brand-copy,body.sidebar-collapsed .nav span,body.sidebar-collapsed .nav-title{display:none!important}body.sidebar-collapsed .brand{justify-content:center!important;padding-left:3px!important;padding-right:3px!important}body.sidebar-collapsed .nav a{justify-content:center!important;padding:8px 4px!important}body.sidebar-collapsed .nav a b{width:auto!important;flex:none!important;font-size:14px!important}
@media(max-width:800px){.app{display:block!important}.sidebar{position:relative!important;width:100%!important;height:auto!important;inset:auto!important}.content,.admin-content{width:100%!important}.sidebar-toggle{display:none!important}body.sidebar-collapsed .sidebar{width:100%!important}body.sidebar-collapsed .brand-copy,body.sidebar-collapsed .nav span,body.sidebar-collapsed .nav-title{display:block!important}.nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.nav-title{grid-column:1/-1!important}}
@media(max-width:520px){.nav{grid-template-columns:1fr!important}}
/* SIDEBAR UNIFICADA FINAL - FIM */


/* PATCH V2.9.0 - MENU DE EQUIPAS EM ARVORE - INICIO */
.teams-title{padding-bottom:6px!important}
.team-group{margin:3px 0 5px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.025);overflow:hidden}
.team-header{display:flex;align-items:center;width:100%;min-height:34px;padding:8px 9px;border:0;background:transparent;color:#fff;font-family:inherit;font-size:11px;font-weight:800;letter-spacing:.055em;text-align:left;cursor:pointer;transition:background .15s ease,color .15s ease}
.team-header:hover{background:rgba(255,255,255,.08)}
.team-header:focus-visible{outline:2px solid var(--life-orange);outline-offset:-2px}
.team-chevron{width:16px;flex:0 0 16px;color:var(--life-orange);font-size:9px;text-align:center}
.team-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-group.open{border-color:rgba(242,106,33,.42);background:linear-gradient(180deg,rgba(242,106,33,.12),rgba(255,255,255,.025))}
.team-group.open .team-header{color:#fff}
.team-content{display:block;padding:0 5px 5px;animation:teamMenuOpen .16s ease-out}
.team-content[hidden]{display:none!important}
.team-content .nav a,.team-content a{padding-left:14px!important;background:rgba(0,0,0,.08)}
.team-content .nav a:hover,.team-content a:hover{background:rgba(255,255,255,.08)!important}
@keyframes teamMenuOpen{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
body.sidebar-collapsed .team-group{border-color:transparent;background:transparent}
body.sidebar-collapsed .team-header{justify-content:center;padding:8px 4px}
body.sidebar-collapsed .team-name{display:none}
body.sidebar-collapsed .team-chevron{width:auto;flex:none;font-size:13px}
body.sidebar-collapsed .team-content{display:none!important}
@media(max-width:800px){.team-group{grid-column:1/-1}.team-header{min-height:38px}.team-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.team-content[hidden]{display:none!important}.team-content a{justify-content:flex-start!important}}
@media(max-width:520px){.team-content{grid-template-columns:1fr}}
/* PATCH V2.9.0 - MENU DE EQUIPAS EM ARVORE - FIM */

/* PATCH V2.9.1 - SUBMENU VERTICAL POR BAIXO DA EQUIPA - INICIO */
.nav .team-group{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:4px 0 7px!important;
}
.nav .team-header{
  position:relative!important;
  order:1!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
  min-height:36px!important;
  margin:0!important;
  padding:8px 10px!important;
  box-sizing:border-box!important;
}
.nav .team-header .team-name{
  display:block!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  font-size:12px!important;
  font-weight:800!important;
  text-align:left!important;
}
.nav .team-header .team-chevron{
  display:inline-block!important;
  flex:0 0 16px!important;
  width:16px!important;
  margin-right:5px!important;
}
.nav .team-content{
  position:static!important;
  order:2!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:4px 6px 7px!important;
  gap:3px!important;
  box-sizing:border-box!important;
  float:none!important;
  clear:both!important;
}
.nav .team-content[hidden]{
  display:none!important;
}
.nav .team-content > a{
  position:static!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:30px!important;
  margin:0!important;
  padding:7px 10px 7px 24px!important;
  box-sizing:border-box!important;
  float:none!important;
  clear:both!important;
}
.nav .team-content > a > span{
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.sidebar-collapsed .nav .team-content{
  display:none!important;
}
@media(max-width:800px){
  .nav .team-group{grid-column:1/-1!important}
  .nav .team-content{display:flex!important;grid-template-columns:none!important}
  .nav .team-content[hidden]{display:none!important}
}
/* PATCH V2.9.1 - SUBMENU VERTICAL POR BAIXO DA EQUIPA - FIM */
