/* Casca do app A. — estrutura que o código das telas espera (barra lateral + área principal) */
:root{--aa-bg:#F2F1EE;--aa-side:#36251E;--aa-escuro:#2A1D16;--aa-linha:#4a3830;--aa-txt-claro:#D8D4CD;--aa-ouro:#E8C25A;--aa-cafe:#4a332a}
*{box-sizing:border-box}
html,body{margin:0;line-height:1.5;height:100%;background:var(--aa-bg);font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#2A1D16;-webkit-font-smoothing:antialiased}
#root{height:100%}
.app-body{display:flex;height:100%;min-height:100vh;background:var(--aa-bg)}
.nav-bar{width:256px;flex:0 0 256px;background:var(--aa-side);color:var(--aa-txt-claro);display:flex;flex-direction:column;align-items:flex-start;height:100vh;position:sticky;top:0;font-size:12px;line-height:calc(1/.75);z-index:20;border-right:1px solid #3d2e26}
.nav-bar.aa-recolhida{width:80px;flex-basis:80px}
.nav-bar .aa-sh-top{display:flex;align-items:center;width:100%;padding:16px 12px;height:72px;flex:none}
.nav-bar .aa-sh-top img{display:block;height:40px;max-height:40px;width:auto;max-width:100%;cursor:pointer;-webkit-user-select:none;user-select:none}
.nav-bar.aa-recolhida .aa-sh-top{padding:16px 20px}
.nav-bar .aa-sh-rec{position:absolute;right:0;top:24px;z-index:50;width:16px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;border:0;cursor:pointer;background:#fff;color:#79716b;border-radius:14px 0 0 14px;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}
.nav-bar .aa-sh-rec:hover{color:#292524}
.nav-bar .aa-sh-rec svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nav-bar.aa-recolhida .aa-sh-rec{right:-16px;border-radius:0 14px 14px 0}
.nav-bar.aa-recolhida .aa-sh-rec svg{transform:rotate(180deg)}
.nav-items-wrapper{display:none}
.nav-bar #aa-nav{align-self:flex-start;max-width:100%}
.nav-bar .aa-sh-foot{width:100%;flex:none;margin-top:auto;padding:12px;display:flex;align-items:center;gap:0}
.nav-bar .aa-sh-user{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;cursor:pointer;height:48px}
.nav-bar .aa-sh-av{width:48px;height:48px;flex:0 0 48px;border-radius:12px;background:#9A938A;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:500;font-size:16px;line-height:24px}
.nav-bar .aa-sh-nm{min-width:0;overflow:hidden;flex:1 1 auto}
.nav-bar .aa-sh-nm div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-bar .aa-sh-nm div:first-child{color:var(--aa-txt-claro);font-size:14px;line-height:20px}
.nav-bar .aa-sh-nm div:last-child{color:var(--aa-txt-claro);opacity:.7;font-size:12px;line-height:16px}
.nav-bar .aa-sh-bell{position:relative;width:16px;height:16px;flex:0 0 16px;cursor:pointer;color:var(--aa-txt-claro);display:flex}
.nav-bar .aa-sh-bell svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nav-bar .aa-sh-bell i{position:absolute;top:-8px;right:-8px;width:9px;height:9px;border-radius:50%;background:var(--aa-ouro);border:1px solid var(--aa-escuro);display:none}
.nav-bar .aa-sh-bell.nova i{display:block}
.nav-bar.aa-recolhida .aa-sh-foot{flex-direction:column-reverse;align-items:flex-start;gap:10px;padding:12px}
.nav-bar.aa-recolhida .aa-sh-bell{margin-left:20px}
.nav-bar.aa-recolhida .aa-sh-user{flex:none}
.nav-bar.aa-recolhida .aa-sh-nm{display:none}
.aa-sh-main{flex:1 1 auto;min-width:0;height:100vh;overflow-y:auto;scrollbar-gutter:stable;position:relative}
#inner-project-canvas{min-height:100%;position:relative}
.aa-sh-vazio{max-width:560px;margin:12vh auto;padding:0 24px;text-align:center;color:#7d736a}
.aa-sh-vazio h1{font-family:"Cormorant Garamond",Georgia,serif;font-weight:400;font-size:38px;color:var(--aa-cafe);margin:0 0 10px}
.aa-sh-vazio a{color:var(--aa-cafe)}
.aa-sh-carregando{display:flex;align-items:center;justify-content:center;height:100vh;color:#9A8F85;font-size:13px;letter-spacing:.2em;text-transform:uppercase}

/* menus e notificações (mesma estrutura do app antigo: o tema do aa-app estiliza) */
.aa-sh-pop{position:fixed;z-index:2147483000;background:#FBFAF8;border:1px solid #E4E1DB;border-radius:16px;box-shadow:0 18px 40px rgba(42,29,22,.16);font-family:Inter,system-ui,sans-serif;color:#2A1D16;overflow:hidden}
.aa-sh-p2{position:fixed;z-index:2147483000;font-family:Inter,system-ui,sans-serif}
.aa-sh-menu{left:12px;bottom:64px;width:262px}
.aa-sh-menu button svg{flex:none}
.aa-sh-notif{left:268px;bottom:16px}
.aa-sh-vc{left:268px;bottom:16px;min-width:300px;padding:6px}
.aa-sh-vc button{display:flex;width:100%;align-items:center;gap:10px;background:transparent;border:0;text-align:left;padding:11px 12px;border-radius:10px;font:inherit;font-size:14px;color:#2A1D16;cursor:pointer}
.aa-sh-vc button:hover{background:#F2F1EE}
.aa-sh-fundo{position:fixed;inset:0;z-index:2147482999}
.aa-sh-faixa{position:fixed;left:50%;transform:translateX(-50%);top:10px;z-index:2147483001;background:#2A1D16;color:#fff;border-radius:999px;padding:8px 16px;font:500 12.5px Inter,Arial,sans-serif;box-shadow:0 6px 20px rgba(0,0,0,.2);white-space:nowrap}
.aa-sh-faixa span{text-decoration:underline;cursor:pointer;margin-left:10px}
.aa-sh-lista{max-height:50vh;overflow-y:auto}
.aa-sh-lista input{width:100%;border:1px solid #E4E1DB;border-radius:10px;padding:10px 12px;font:inherit;margin:4px 0 6px}

/* mensagens da tela de entrada */
.login .aa-lmsg{font-family:Inter,sans-serif;font-size:12.5px;line-height:1.5;color:#7a2e1f;margin:14px 0 0;text-align:left}
.login .aa-lmsg.ok{color:#2f5a3a}
.login a.aa-esq{display:block;text-align:center;margin-top:14px;font-size:13px;text-decoration:underline;font-family:Inter,sans-serif}
.login .aa-lsep{display:none}
.login .aa-lmsg{text-align:center}

@media (max-width:700px){
  .nav-bar{position:fixed;left:0;right:0;top:0;width:auto;height:calc(56px + env(safe-area-inset-top));flex-direction:row;align-items:center;padding-top:env(safe-area-inset-top)}
  .nav-bar .aa-sh-foot,.nav-bar #aa-nav,.nav-bar .aa-sh-rec{display:none}
  .nav-bar.aberta{height:100vh;flex-direction:column;align-items:stretch;overflow-y:auto}
  .nav-bar.aberta #aa-nav,.nav-bar.aberta .aa-sh-foot{display:flex}
  .aa-sh-main{height:auto;min-height:100vh;padding-top:calc(56px + env(safe-area-inset-top))}
  body.aa-bb .aa-sh-main{padding-top:calc(10px + env(safe-area-inset-top))}
  .aa-sh-menu,.aa-sh-vc{left:8px;right:8px;width:auto;min-width:0;bottom:calc(76px + env(safe-area-inset-bottom))}
  .aa-sh-notif{left:8px!important;right:8px;bottom:calc(76px + env(safe-area-inset-bottom))}
}

/* ajustes de 29/10 (pedidos dela) */
.nav-bar .aa-sh-top img.aa-logo-a:not(.aa-logo-mini){max-height:none}
.nav-bar .aa-sh-top:has(img.aa-logo-a:not(.aa-logo-mini)){height:auto;flex-direction:column;justify-content:center;padding:18px 12px 10px}
#inner-project-canvas #aa-tela .kb .col h4{min-height:32px;align-items:flex-start}
#inner-project-canvas #aa-tela .svlis .svc.vazio{min-height:0;padding:16px 22px}
#inner-project-canvas #aa-tela .sv-busca{margin:2px 0 14px}
#inner-project-canvas #aa-tela .sv-busca .busca{flex:1 1 100%;max-width:none;padding:10px 16px;font-size:13px;margin:0}
#inner-project-canvas #aa-tela .aa-vf .vbar{grid-template-columns:minmax(170px,260px) 1fr 120px}
#inner-project-canvas #aa-tela .vbar .vb-n{display:block}
#inner-project-canvas #aa-tela .vbar .vb-inc{list-style:none;margin:5px 0 2px;padding:0 0 0 10px;border-left:1px solid var(--aa-taupe-claro,#D8D4CD);color:var(--aa-taupe,#9A938A);font-size:11.5px;line-height:1.5}
#inner-project-canvas #aa-tela .vbar.vb2{align-items:start}
#inner-project-canvas #aa-tela .vbar.vb2 .tr{margin-top:5px}
#inner-project-canvas #aa-tela .aa-relp{color:#B4503C;font-size:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:6px}
#inner-project-canvas #aa-tela .aa-relp .btn{color:var(--aa-cafe,#4A332A)}

/* barra superior no computador (29/10) */
#aa-tb{display:none}
@media (min-width:701px){
body.aa-topo .app-body{flex-direction:column!important}
body.aa-topo .nav-bar{width:100%!important;max-width:none!important;flex:0 0 68px!important;height:68px!important;flex-direction:row!important;align-items:center!important;border-right:0!important;border-bottom:1px solid #3d2e26;position:relative!important;z-index:40;overflow:visible!important}
body.aa-topo .nav-bar .aa-sh-top{width:auto!important;height:68px!important;flex-direction:row!important;padding:12px 6px 12px 26px!important;flex:none}
body.aa-topo .nav-bar .aa-sh-top img,body.aa-topo .nav-bar .aa-sh-top img.aa-logo-a{width:40px!important;height:40px!important;max-height:40px!important;margin:0!important}
body.aa-topo .nav-bar .aa-logo-cap,body.aa-topo .nav-bar .aa-sh-rec,body.aa-topo .nav-bar #aa-nav{display:none!important}
body.aa-topo .aa-sh-main{height:calc(100vh - 68px)!important}
body.aa-topo #aa-tb{display:flex;flex:1 1 auto;align-items:center;height:68px;min-width:0;gap:18px;padding:0 8px}
#aa-tb .tb-menu{flex:1 1 auto;display:flex;align-items:center;justify-content:space-evenly;min-width:0}
#aa-tb .tb-it{position:relative;padding:9px 14px;border-radius:9px;color:#D7D1C9;font:400 13.5px Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center}
#aa-tb .tb-it:hover{background:rgba(255,255,255,.05);color:#F2F1EE}
#aa-tb .tb-it.on{background:#3a2a22;color:#F2F1EE}
#aa-tb .tb-gr span{display:inline-flex;align-items:center;gap:6px}
#aa-tb .tb-dd{display:none;position:absolute;top:calc(100% + 10px);left:0;min-width:240px;background:#FBFAF8;border:1px solid #E4E1DB;border-radius:14px;box-shadow:0 18px 40px rgba(42,29,22,.18);padding:6px;z-index:60}
#aa-tb .ab > .tb-dd{display:block}
#aa-tb .tb-dd a,#aa-tb .tb-dd div{display:block;padding:10px 12px;border-radius:9px;font:400 13px Inter,system-ui,sans-serif;color:#2A1D16;cursor:pointer;text-decoration:none;white-space:nowrap}
#aa-tb .tb-dd a:hover,#aa-tb .tb-dd div:hover,#aa-tb .tb-dd .on{background:#F2F1EE}
#aa-tb .tb-ev{position:relative;flex:none;padding:4px 10px;border-radius:10px;max-width:360px}
#aa-tb .tb-ev.troca{cursor:pointer}
#aa-tb .tb-ev.troca:hover{background:rgba(255,255,255,.05)}
#aa-tb .tb-ev-t{font:500 9.5px Inter,system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#9A938A;line-height:1.4}
#aa-tb .tb-ev-n{display:flex;align-items:center;gap:8px;font-family:"Cormorant Garamond",Georgia,serif;font-size:19px;color:#F2F1EE;white-space:nowrap;line-height:1.25}
#aa-tb .tb-ev-n span{overflow:hidden;text-overflow:ellipsis}
#aa-tb .tb-ev-n svg{color:#D7D1C9;flex:none}
#aa-tb .tb-ev-n em{font:400 11.5px Inter,system-ui,sans-serif;font-style:normal;color:#9A938A;margin-left:6px}
#aa-tb .tb-ev .tb-dd{max-height:60vh;overflow:auto}
body.aa-topo .nav-bar .aa-sh-foot{width:auto!important;margin:0 26px 0 0!important;padding:0!important;flex-direction:row-reverse!important;gap:22px!important;align-items:center!important}
body.aa-topo .nav-bar .aa-sh-av{width:38px!important;height:38px!important;flex-basis:38px!important;font-size:13px!important;border-radius:10px!important}
body.aa-topo .nav-bar .aa-sh-user{height:38px!important;flex:none!important}
body.aa-topo .nav-bar .aa-sh-nm{display:none!important}
body.aa-topo .nav-bar .aa-sh-bell{width:22px!important;height:22px!important;flex:0 0 22px!important;margin:0!important}
body.aa-topo .nav-bar .aa-sh-bell svg{width:22px!important;height:22px!important;stroke-width:1.7}
body.aa-topo .nav-bar .aa-sh-bell i{top:-5px;right:-5px}
body.aa-topo .aa-sh-menu,body.aa-topo .aa-sh-vc{top:76px!important;bottom:auto!important;left:auto!important;right:16px!important}
body.aa-topo .aa-sh-notif{left:calc(100vw + 12px)!important;top:76px!important;bottom:auto!important;translate:calc(-100% - 28px) 0}
}
