/* Identidade ORYA: preto, laranja #FB4328 e degradê da marca. Layout inspirado no ClickUp. */
@font-face { font-family:"Space Grotesk"; font-weight:400; src:url(fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-weight:500; src:url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-weight:700; src:url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
:root {
  --p:#fb4328; --bg:#0a0a0a; --side:#0f0f0f; --card:#161616; --card2:#1e1e1e; --line:#2a2a2a;
  --text:#f4f1ec; --muted:#8f8b86; --pink:#fb4328; --accent:#ffa24c;
  --grad:linear-gradient(100deg,#e00a12 0%,#f5301e 35%,#fb5a22 65%,#ff8a1f 100%);
}
* { box-sizing: border-box; }
body { margin:0; font-family: "Space Grotesk", system-ui, "Segoe UI", sans-serif; background:var(--bg); color:var(--text); font-size:14px; }
.hidden { display:none !important; }
.muted { color:var(--muted); font-size:13px; }
.error { color:#f87171; font-size:14px; min-height:18px; margin:0; }
h1 span, .logo span { color:var(--p); }

input, select, textarea { width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:8px; font:inherit; background:var(--card2); color:var(--text); }
input:focus, select:focus, textarea:focus { outline:1px solid var(--p); }
textarea { resize:vertical; }
.btn { background:var(--grad); color:#fff; border:0; padding:9px 16px; border-radius:8px; font:inherit; font-weight:600; cursor:pointer; }
.btn:hover { filter:brightness(1.15); }
.btn.small { padding:8px 12px; }
.link { background:none; border:0; color:var(--accent); cursor:pointer; font:inherit; padding:6px; }
.link.danger { color:#f87171; }

.center { min-height:100vh; display:flex; align-items:center; justify-content:center; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:28px; }
#loginForm { width:340px; display:flex; flex-direction:column; gap:12px; }
#loginForm h1 { margin:0; }

/* Estrutura */
#app { display:flex; min-height:100vh; }
aside { width:250px; background:var(--side); border-right:1px solid var(--line); padding:18px 12px; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; flex:none; }
.logo { font-size:19px; font-weight:800; margin-bottom:18px; padding:0 8px; }
.nav { list-style:none; padding:0; margin:0 0 16px; }
.nav li { padding:8px 10px; border-radius:8px; cursor:pointer; }
.nav li:hover, .nav li.active { background:var(--card2); }
.side-title { font-size:11px; letter-spacing:.08em; color:var(--muted); padding:0 8px 6px; display:flex; justify-content:space-between; align-items:center; }
.side-title button { background:var(--card2); color:#fff; border:0; border-radius:6px; width:24px; height:24px; cursor:pointer; font-size:15px; }
#projectList { list-style:none; padding:0; margin:0 0 10px; flex:1; overflow:auto; }
#projectList li { padding:7px 10px; border-radius:8px; cursor:pointer; display:flex; align-items:center; gap:9px; }
#projectList li:hover, #projectList li.active { background:var(--card2); }
.dot { width:9px; height:9px; border-radius:3px; flex:none; display:inline-block; }
.grow { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.count { font-size:12px; color:var(--muted); }
.side-bottom { border-top:1px solid var(--line); padding-top:10px; display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.side-bottom .link { padding:3px 8px; }
#me { padding:0 8px; }

main { flex:1; padding:24px 28px; min-width:0; }
#empty { margin-top:20vh; text-align:center; }
header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; gap:12px; flex-wrap:wrap; }
header h2 { margin:0; font-size:22px; }
.actions { display:flex; align-items:center; gap:8px; }

/* Abas (Lista / Quadro / Calendário) */
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:16px; }
.tabs button { background:none; border:0; color:var(--muted); padding:9px 14px; cursor:pointer; font:inherit; border-bottom:2px solid transparent; margin-bottom:-1px; }
.tabs button:hover { color:var(--text); }
.tabs button.on { color:var(--text); border-color:var(--pink); }

/* Etiquetas e pílulas */
.pill { color:#fff; font-size:11px; font-weight:700; text-transform:uppercase; padding:3px 9px; border-radius:6px; white-space:nowrap; display:inline-block; }
.pill.edit { cursor:pointer; } .pill.edit:hover { filter:brightness(1.2); }
.tag { color:#fff; font-size:11px; font-weight:600; padding:1px 8px; border-radius:6px; margin-left:6px; }
.sdot { width:12px; height:12px; border-radius:50%; flex:none; display:inline-block; }
.av { width:24px; height:24px; border-radius:50%; background:#3b3b8f; color:#fff; font-size:10px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.av.empty { background:none; border:1px dashed #55555f; color:#55555f; }

/* Linhas de tarefa (lista do cliente e painel de detalhe) */
.group { margin-bottom:18px; }
.group h3 { margin:0 0 6px; font-size:13px; display:flex; gap:8px; align-items:center; }
.trow { display:flex; align-items:center; gap:12px; padding:8px 8px; border-top:1px solid var(--line); cursor:pointer; }
.trow:hover { background:var(--card); }
.ttitle { font-weight:600; }
.cli { width:140px; display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); flex:none; }
.due { width:100px; font-size:13px; flex:none; color:var(--muted); }
.due.late { color:#ff6b6b; } .due.today { color:#f5b942; }
.trow .pill { width:104px; text-align:center; flex:none; }

/* Quadro */
#board, .board-grid { display:grid; grid-template-columns:repeat(8, minmax(200px,1fr)); gap:12px; overflow-x:auto; }
.col { background:var(--card); border-radius:12px; padding:10px; min-height:300px; }
.col h3 { font-size:12px; margin:2px 0 10px; padding-bottom:6px; border-bottom:3px solid; display:flex; justify-content:space-between; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.col.over { outline:2px dashed var(--p); }
.task { background:var(--card2); border:1px solid var(--line); border-radius:10px; padding:11px; margin-bottom:9px; cursor:grab; }
.task:hover { border-color:#4a4a55; }
.task .t { font-weight:600; margin-bottom:8px; }
.meta { display:flex; gap:6px; flex-wrap:wrap; font-size:12px; color:var(--muted); align-items:center; }
.meta .tag { margin-left:0; }
.late { color:#ff6b6b; font-weight:600; }

/* Calendário */
.cal-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.cal-head b { font-size:16px; min-width:170px; text-align:center; }
.cal-head button { background:var(--card2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:6px 12px; cursor:pointer; }
.cal { display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); border-left:1px solid var(--line); border-top:1px solid var(--line); }
.cal .dow { padding:6px; font-size:12px; color:var(--muted); text-align:center; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.cal .day { min-height:104px; padding:4px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; }
.cal .day.out { background:#0b0b0c; }
.cal .day.today { background:#241410; }
.cal .num { font-size:12px; color:var(--muted); margin-bottom:3px; } .cal .today .num { color:var(--accent); font-weight:700; }
.chip { font-size:11px; padding:2px 6px; margin-bottom:3px; border-radius:4px; background:var(--card2); border-left:3px solid; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chip:hover { background:#2a2a30; }

/* Visão geral */
#charts { display:grid; grid-template-columns:repeat(auto-fill, minmax(380px,1fr)); gap:14px; margin-bottom:18px; }
.chart, .widget { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; }
.chart h3, .widget h3 { margin:0 0 12px; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.chart-body { display:flex; align-items:center; gap:16px; }
.stat-box { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.stat-box b { font-size:46px; } .stat-box span { color:var(--muted); }
.pie { width:170px; flex:none; }
.slice { cursor:pointer; } path.slice:hover, circle.slice:hover { opacity:.8; }
.legend { list-style:none; padding:0; margin:0; font-size:13px; display:flex; flex-direction:column; gap:5px; }
.legend li { padding:2px 4px; cursor:pointer; } .legend li:hover { background:var(--card2); border-radius:4px; }
.legend i { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; }
.nopie { padding:40px; }
.lrow { display:flex; align-items:center; gap:14px; padding:9px 4px; border-top:1px solid var(--line); cursor:pointer; }
.lrow:hover { background:var(--card2); }
.lrow .name { width:220px; display:flex; align-items:center; gap:8px; font-weight:600; }
.bar { flex:1; height:6px; background:#2a2a30; border-radius:99px; overflow:hidden; } .bar i { display:block; height:100%; background:var(--grad); }
.lrow .frac { width:60px; text-align:right; color:var(--muted); font-size:13px; }

/* Painel de detalhe do gráfico */
#drillPanel { position:fixed; inset:0; background:var(--bg); z-index:20; display:flex; flex-direction:column; }
.dp-top { display:flex; justify-content:space-between; align-items:center; padding:12px 22px; border-bottom:1px solid var(--line); }
.dp-top button { font-size:18px; }
.dp-body { flex:1; display:flex; min-height:0; }
.dp-left { width:380px; flex:none; padding:22px; border-right:1px solid var(--line); overflow:auto; }
.dp-left h3 { margin:0 0 18px; font-size:15px; }
.dp-left .pie { width:240px; display:block; margin:0 auto 18px; }
.dp-right { flex:1; padding:18px 24px; overflow:auto; min-width:0; }
.dp-group { display:flex; align-items:center; gap:10px; margin-bottom:10px; }

/* Menus e janelas */
.menu { position:fixed; z-index:40; background:var(--card2); border:1px solid #3a3a42; border-radius:10px; padding:6px; min-width:180px; box-shadow:0 10px 30px rgba(0,0,0,.5); }
.menu div { padding:7px 10px; border-radius:6px; cursor:pointer; display:flex; align-items:center; gap:9px; }
.menu div:hover { background:#34343c; }
.overlay { position:fixed; inset:0; background:rgba(0,0,0,.65); display:flex; align-items:center; justify-content:center; padding:16px; z-index:50; }
.modal { width:600px; max-width:100%; max-height:92vh; overflow:auto; display:flex; flex-direction:column; gap:12px; }
.title-input { font-size:20px; font-weight:700; border:0; border-bottom:2px solid var(--line); border-radius:0; padding-left:0; background:none; }
.row { display:flex; gap:10px; align-items:end; } .row label { flex:1; font-size:13px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
.row.end { justify-content:flex-end; align-items:center; }
#comments .c { background:var(--card2); border-radius:8px; padding:8px 10px; margin-bottom:6px; }
#comments .c b { font-size:12px; color:var(--accent); }
.logo-img { display:block; height:34px; width:auto; }
.logo { padding:4px 8px 16px; }
.login-logo { display:block; height:64px; width:auto; align-self:flex-start; margin-bottom:6px; }
.tabs button.on { border-image:var(--grad) 1; border-image-slice:1; }
h4 { margin:6px 0; }

/* Círculo de status (preenche a cada etapa) e menu suspenso */
.sbtn { display:inline-flex; cursor:pointer; border-radius:50%; flex:none; }
.sbtn:hover { filter:brightness(1.3); transform:scale(1.1); }
.sicon { display:block; }
.menu { width:250px; padding:10px; }
.menu input { margin-bottom:8px; border-color:var(--p); }
.menu #smList { display:block; padding:0; cursor:default; }
.menu #smList:hover { background:none; }
.menu .sm-title:hover { background:none; }
.menu .sm-title { display:block; cursor:default; font-size:11px; letter-spacing:.06em; color:var(--muted); padding:4px 6px; text-transform:uppercase; }
.menu div[data-k] { padding:8px 8px; text-transform:uppercase; font-size:12px; font-weight:600; letter-spacing:.03em; }
.menu div[data-k] .ck { margin-left:auto; color:var(--accent); }
.menu div[data-k].cur { background:#2a2a2a; }

/* Barra de atualização (como no ClickUp) */
#topbar { display:flex; justify-content:flex-end; align-items:center; gap:12px; margin:-8px 0 10px; font-size:13px; }
#refreshBtn { background:none; border:0; color:var(--text); cursor:pointer; font:inherit; display:flex; align-items:center; gap:6px; padding:4px 6px; border-radius:8px; }
#refreshBtn:hover { background:var(--card2); }
#refreshIcon { font-size:17px; display:inline-block; }
#refreshIcon.spin { animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.uppill { border:1px solid var(--p); color:var(--accent); background:#2a1510; padding:4px 12px; border-radius:99px; }
.uppill.off { border-color:#555; color:var(--muted); background:none; }

/* Colunas da lista (Nome | Responsável | Vencimento | Prioridade | Status) */
.thead { display:flex; align-items:center; gap:12px; padding:6px 8px; font-size:12px; color:var(--muted); border-bottom:1px solid var(--line); margin-bottom:4px; }
.thead .grow { padding-left:30px; }
.c-cli { width:140px; flex:none; }
.c-who { width:96px; flex:none; display:flex; align-items:center; cursor:pointer; border-radius:8px; padding:2px; }
.c-due { width:118px; flex:none; cursor:pointer; border-radius:6px; padding:3px 4px; }
.c-pri { width:92px; flex:none; display:flex; align-items:center; cursor:pointer; border-radius:6px; padding:3px 4px; }
.c-status { width:128px; flex:none; }
.thead .c-who, .thead .c-due, .thead .c-pri { cursor:default; }
.c-who:hover, .c-due:hover, .c-pri:hover { background:var(--card2); }
.thead .c-who:hover, .thead .c-due:hover, .thead .c-pri:hover { background:none; }
.c-due .due { width:auto; }
.due.done { color:#3fbf91; }
.trow.urg { box-shadow:inset 3px 0 0 #f04438; }
.flag { display:block; }
.badge { background:#f04438; color:#fff; font-size:11px; font-weight:700; border-radius:99px; padding:1px 7px; margin-left:6px; }
.udot { width:8px; height:8px; border-radius:50%; background:#f04438; flex:none; }

/* Tag clicável e prévia da descrição */
.tag { cursor:pointer; } .tag:hover { filter:brightness(1.2); }
.tag.add { background:none; border:1px dashed #555; color:var(--muted); opacity:0; }
.trow:hover .tag.add { opacity:.8; }
.dprev { display:inline-flex; vertical-align:middle; margin-left:6px; color:var(--muted); cursor:pointer; padding:1px 3px; border-radius:4px; }
.dprev:hover { color:var(--text); background:var(--card2); }
.desc-tip { position:fixed; z-index:60; max-width:300px; max-height:180px; overflow:auto; background:var(--card2); border:1px solid #3a3a3a; border-radius:8px; padding:8px 10px; font-size:12px; line-height:1.4; white-space:pre-wrap; box-shadow:0 8px 24px rgba(0,0,0,.5); }

/* Popovers (data, responsável, prioridade, tag) */
.pop { width:auto; min-width:220px; max-width:520px; padding:8px; }
.pop .pi { padding:7px 8px; border-radius:6px; cursor:pointer; display:flex; align-items:center; gap:9px; }
.pop .pi:hover { background:#34343c; }
.pop .pi.sel { background:#2a1510; }
.pop .pi .r { margin-left:auto; color:var(--muted); font-size:12px; }
.pop .sec { font-size:11px; letter-spacing:.05em; color:var(--muted); text-transform:uppercase; padding:6px 8px 2px; }
.pop input { margin-bottom:6px; }
.datepop { display:flex; gap:10px; width:470px; }
.datepop .quick { width:200px; flex:none; }
.datepop .cal-mini { flex:1; }
.cm-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; font-weight:600; text-transform:capitalize; }
.cm-head button { background:none; border:0; color:var(--text); cursor:pointer; font-size:16px; padding:2px 8px; border-radius:6px; }
.cm-head button:hover { background:#34343c; }
.cm-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; text-align:center; font-size:12px; }
.cm-grid .w { color:var(--muted); padding:3px 0; }
.cm-grid .d { padding:6px 0; border-radius:50%; cursor:pointer; }
.cm-grid .d:hover { background:#34343c; }
.cm-grid .d.out { color:#666; }
.cm-grid .d.today { background:#c8202a; color:#fff; }
.cm-grid .d.sel { background:var(--p); color:#fff; font-weight:700; }

/* Correção: a regra genérica ".menu div" (menu de status) não pode afetar os blocos internos dos popovers */
.menu.pop div { display:block; padding:0; cursor:default; border-radius:0; gap:0; }
.menu.pop div:hover { background:none; }
.menu.pop .datepop { display:flex; gap:10px; }
.menu.pop .cm-head { display:flex; padding:0 2px; }
.menu.pop .cm-grid { display:grid; }
.menu.pop .cm-grid .d { padding:6px 0; border-radius:50%; cursor:pointer; }
.menu.pop .cm-grid .w { padding:3px 0; }
.menu.pop .pi { display:flex; align-items:center; gap:9px; padding:7px 8px; border-radius:6px; cursor:pointer; }
.menu.pop .pi:hover { background:#34343c; }
.menu.pop .pi.sel { background:#2a1510; }
.menu.pop .sec { padding:6px 8px 2px; }

/* Cabeçalhos clicáveis (classificação) e menu de ordem */
.thead .th.grow, .thead .th.c-cli, .thead .th.c-who, .thead .th.c-due, .thead .th.c-pri { cursor:pointer; border-radius:6px; user-select:none; }
.thead .th:hover { color:var(--text); background:var(--card2); }
.sort-ind { color:var(--accent); font-weight:700; }
.sort-ind sup { font-size:9px; margin-left:1px; }
.menu.pop .sortrow { display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:6px; cursor:grab; background:var(--card2); margin-bottom:4px; }
.menu.pop .sortrow:hover { background:#2c2c2c; }
.menu.pop .sortrow .grip { color:var(--muted); }
.menu.pop .sortrow .grow { padding:0; }
.menu.pop .sortrow button { background:none; border:0; color:var(--text); cursor:pointer; font-size:14px; padding:2px 7px; border-radius:6px; }
.menu.pop .sortrow button:hover { background:#3a3a3a; }
.menu.pop hr { border:0; border-top:1px solid var(--line); margin:8px 0 2px; }

/* Botão ⋯ (opções da tarefa), aviso rápido e menu */
.c-more { width:30px; flex:none; text-align:center; cursor:pointer; color:var(--muted); border-radius:6px; font-size:18px; line-height:1; padding:3px 0; user-select:none; }
.trow .c-more { opacity:.55; } .trow:hover .c-more { opacity:1; }
.c-more:hover { background:var(--card2); color:var(--text); }
.toast { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); z-index:80; background:#2a2a2a; border:1px solid #444; color:var(--text); padding:10px 18px; border-radius:99px; box-shadow:0 8px 24px rgba(0,0,0,.5); font-size:13px; }
.menu.pop .tm-top { display:flex; gap:6px; margin-bottom:6px; }
.menu.pop .tm-top button { flex:1; background:var(--card2); border:1px solid var(--line); color:var(--text); border-radius:8px; padding:7px 6px; cursor:pointer; font:inherit; font-size:12px; }
.menu.pop .tm-top button:hover { background:#34343c; }
.menu.pop .pi.danger { color:#f87171; }
.menu.pop hr { border:0; border-top:1px solid var(--line); margin:6px 0; }
.menu.pop .pi .chev { margin-left:auto; color:var(--muted); }
.menu.pop .rn { display:flex; gap:6px; } .menu.pop .rn input { margin:0; }

/* Botão × para limpar uma informação (aparece ao passar o mouse) */
.clr { opacity:0; margin-left:6px; width:16px; height:16px; border-radius:50%; background:#2d2d2d; color:var(--muted); font-size:12px; line-height:1; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; flex:none; user-select:none; }
.c-due:hover .clr, .c-pri:hover .clr, .d-v:hover .clr { opacity:1; }
/* Na lista o × fica na ponta direita da célula (sem ocupar espaço do texto, para não quebrar de linha) */
.c-due, .c-pri { position:relative; white-space:nowrap; }
.c-due .clr, .c-pri .clr { position:absolute; right:3px; top:50%; transform:translateY(-50%); margin:0; }
.clr:hover { background:#c8202a; color:#fff; }
.tag .tx { display:none; margin-left:6px; font-weight:700; cursor:pointer; opacity:.85; }
.tag:hover .tx { display:inline; } .tag .tx:hover { opacity:1; text-shadow:0 0 0 #fff; }
.avw { position:relative; display:inline-flex; }
.avs .avw + .avw { margin-left:-7px; }
.avx { position:absolute; top:-5px; right:-5px; width:14px; height:14px; border-radius:50%; background:#c8202a; color:#fff; font-size:10px; line-height:1; display:none; align-items:center; justify-content:center; cursor:pointer; z-index:2; }
.avw:hover .avx { display:inline-flex; }
.pchip { display:inline-flex; align-items:center; gap:6px; background:var(--card2); border:1px solid var(--line); border-radius:99px; padding:2px 4px 2px 3px; margin-right:6px; }
.d-v .tag { margin-left:0; }

/* Aviso discreto dos atalhos de teclado */
.kbd-hint { font-size:8px; line-height:1.4; color:#6a6a70; padding:6px 8px 0; white-space:nowrap; overflow:hidden; align-self:stretch; }
.kbd-hint b { font-weight:600; color:#85858c; }

/* Desfazer / Refazer */
.tb-btn { background:none; border:1px solid var(--line); color:var(--text); cursor:pointer; font:inherit; font-size:13px; padding:4px 10px; border-radius:8px; }
.tb-btn:hover:not(:disabled) { background:var(--card2); border-color:#444; }
.tb-btn:disabled { opacity:.35; cursor:default; }
.toast-btn { margin-left:10px; background:var(--grad); color:#fff; border:0; border-radius:99px; padding:4px 14px; font:inherit; font-weight:700; font-size:12px; cursor:pointer; }

/* Título automático (sigla - tipo nº - nome) */
.abbr-chip { display:inline-block; background:#2a1510; color:var(--accent); border:1px solid #6b3a1f; font-weight:700; font-size:12px; padding:2px 9px; border-radius:6px; letter-spacing:.04em; }
#projectAbbr { margin-left:10px; vertical-align:middle; } #projectAbbr:empty { display:none; }
.preview { font-size:13px; color:var(--muted); border-left:3px solid var(--p); padding:4px 12px; user-select:text; }
.preview b { color:var(--text); }
.preview .hint { display:block; margin-top:3px; font-size:12px; }
#tContentBox { font-size:13px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
#tContentBox input { font-size:15px; font-weight:600; color:var(--text); }
.d-titleview { cursor:default; }
.d-comp { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.d-comp .sep { color:var(--muted); }
.comp-btn { background:var(--card2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:7px 12px; font:inherit; font-weight:700; cursor:pointer; }
.comp-btn:hover { border-color:var(--p); }
.comp-seq { width:76px; text-align:center; font-weight:700; }
.comp-content { flex:1; min-width:180px; }
.st-table { width:100%; border-collapse:collapse; margin-bottom:6px; }
.st-table td { padding:5px 6px 5px 0; border-bottom:1px solid var(--line); }
.st-table input { padding:7px 9px; }
code { background:var(--card2); padding:1px 6px; border-radius:5px; color:var(--accent); }

/* Calendário geral (Visão geral) */
.cal-filters { display:flex; gap:10px; align-items:center; margin-bottom:10px; flex-wrap:wrap; }
.cal-filters select { width:auto; min-width:150px; }
.cal-filters label { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:13px; cursor:pointer; }
.cal-filters input[type=checkbox] { width:auto; accent-color:var(--p); }
.chip .dot { width:7px; height:7px; border-radius:2px; margin-right:5px; display:inline-block; }
.cal .more { font-size:11px; color:var(--accent); cursor:pointer; padding:1px 4px; } .cal .more:hover { text-decoration:underline; }
.menu.pop .pi .tt { white-space:normal; line-height:1.3; }

/* Detalhe da tarefa (Modal ou Barra lateral) */
.detail { position:fixed; z-index:30; }
.detail.mode-modal { inset:0; background:rgba(0,0,0,.62); display:flex; align-items:center; justify-content:center; padding:20px; }
.detail.mode-modal .d-card { width:800px; max-width:100%; max-height:92vh; border-radius:14px; border:1px solid var(--line); }
.detail.mode-side { top:0; right:0; bottom:0; width:540px; }
.detail.mode-side .d-card { height:100%; border-radius:0; border:0; border-left:1px solid var(--line); }
.d-card { background:var(--card); display:flex; flex-direction:column; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.d-top { display:flex; justify-content:space-between; align-items:center; padding:10px 16px; border-bottom:1px solid var(--line); flex:none; }
.d-actions { display:flex; gap:4px; }
.d-actions button { background:none; border:0; color:var(--text); cursor:pointer; font-size:17px; width:32px; height:32px; border-radius:8px; }
.d-actions button:hover { background:var(--card2); }
.d-scroll { overflow:auto; padding:18px 24px 26px; display:flex; flex-direction:column; gap:12px; min-height:0; }
.d-title { font:inherit; font-size:24px; font-weight:700; line-height:1.25; background:none; color:var(--text); border:0; border-bottom:2px solid transparent; border-radius:0; resize:none; padding:2px 0; overflow:hidden; }
.d-title:focus { outline:0; border-bottom-color:var(--p); }
.d-props { display:flex; flex-direction:column; gap:1px; }
.d-row { display:flex; align-items:center; min-height:38px; }
.d-k { width:132px; flex:none; color:var(--muted); font-size:13px; }
.d-v { flex:1; display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:5px 10px; border-radius:8px; cursor:pointer; min-height:32px; }
.d-v:hover { background:var(--card2); }
.d-v .due { width:auto; }
.d-v .tag { margin-left:0; }
.d-sec { font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); margin-top:6px; padding-top:12px; border-top:1px solid var(--line); }
.d-desc { min-height:180px; resize:vertical; line-height:1.5; }
body.side-open #app { padding-right:540px; }
.menu.pop .lay { display:flex; gap:10px; padding:4px 2px; }
.menu.pop .lay-opt { flex:1; text-align:center; font-size:12px; color:var(--muted); padding:8px 6px; border-radius:10px; cursor:pointer; border:1px solid transparent; }
.menu.pop .lay-opt:hover { background:#34343c; }
.menu.pop .lay-opt.sel { border-color:var(--p); color:var(--text); background:#2a1510; }
.lay-ill { height:46px; border-radius:6px; background:#2b2b2b; border:1px solid #444; margin-bottom:6px; position:relative; }
.lay-ill::after { content:""; position:absolute; background:#6b6b73; border-radius:3px; }
.lay-ill.ill-modal::after { inset:9px 16px; }
.lay-ill.ill-side::after { top:5px; bottom:5px; right:5px; width:42%; }
@media (max-width:900px) { .detail.mode-side { width:100%; } body.side-open #app { padding-right:0; } }

/* Perfil no menu lateral */
.meBox { display:flex; align-items:center; gap:9px; padding:2px 8px; }
.meBox .nm { font-size:13px; color:var(--muted); line-height:1.2; }
.avbtn { cursor:pointer; border-radius:50%; display:inline-flex; } .avbtn:hover { filter:brightness(1.2); }
.meBox .link { padding:0; font-size:11px; }
img.av { object-fit:cover; display:inline-block; }

.teamname { display:inline-flex; align-items:center; gap:8px; }

/* Painel de urgências */
.urg-widget { margin-bottom:14px; border-color:#5a2420; background:#1a1010; }
.urg-widget h3 { color:#ff8a80; display:flex; justify-content:space-between; align-items:center; }
.urg-widget h3 .link { text-transform:none; letter-spacing:0; font-size:13px; }
.urg-empty { color:var(--muted); padding:6px 2px; }
.urg-sec { margin-bottom:18px; }
.urg-sec h3 { margin:0 0 6px; display:flex; align-items:center; gap:8px; font-size:14px; }

/* Responsáveis (vários) */
.avs { display:inline-flex; align-items:center; flex:none; }
.avs .av + .av { margin-left:-7px; }
.avs .av { border:2px solid var(--bg); width:26px; height:26px; }
.av.more { background:#3a3a3a; }
.ok { color:#3fbf91; }
.people-wrap { display:flex; flex-direction:column; gap:6px; }
.people { display:flex; flex-wrap:wrap; gap:6px; }
.people label { display:flex; flex-direction:row; align-items:center; gap:6px; flex:none; background:var(--card2); border:1px solid var(--line); border-radius:99px; padding:5px 12px 5px 8px; cursor:pointer; color:var(--text); font-size:13px; }
.people label:has(input:checked) { border-color:var(--p); background:#2a1510; }
.people input { width:auto; accent-color:var(--p); }

/* Equipe, banner e janelas pequenas */
.banner { background:#2a1a10; border:1px solid #6b3a1f; color:#ffd2a8; padding:10px 14px; border-radius:10px; margin-bottom:14px; }
#teamTable { width:100%; border-collapse:collapse; margin-bottom:10px; }
#teamTable th { text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); padding:8px; border-bottom:1px solid var(--line); }
#teamTable td { padding:10px 8px; border-bottom:1px solid var(--line); }
#teamTable code { background:var(--card2); padding:2px 8px; border-radius:6px; color:var(--accent); }
.small-modal { width:420px; }
.small-modal label { font-size:13px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
.small-modal h3 { margin:0; }

@media (max-width:800px) {
  #app { flex-direction:column; } aside { width:100%; height:auto; position:static; }
  #board { grid-template-columns:repeat(8, 230px); }
  #charts { grid-template-columns:1fr; } .who, .cli, .av { display:none; }
  .dp-body { flex-direction:column; overflow:auto; } .dp-left { width:100%; border-right:0; }
}

/* ---------- Hora no prazo e gravação agendada ---------- */
.due .hh { font-size:11px; opacity:.85; margin-left:2px; }
.recchip { display:inline-block; margin-left:6px; font-size:11px; font-weight:600; padding:1px 7px; border-radius:6px; background:#3a1428; color:#ff9cc6; border:1px solid #6b2448; cursor:pointer; white-space:nowrap; }
.recchip:hover { filter:brightness(1.25); }
.recchip.past { background:#262626; color:var(--muted); border-color:#3a3a3a; }
.chip .ct, .ag-chip .ct { font-weight:700; color:var(--accent); }
.time-lbl { flex:0 0 130px !important; }
.menu.pop .dt-time { display:flex; align-items:center; gap:6px; margin-top:8px; padding-top:8px; border-top:1px solid var(--line); }
.menu.pop .dt-time span { font-size:12px; color:var(--muted); white-space:nowrap; }
.menu.pop .dt-time input { margin:0; padding:5px 8px; width:auto; flex:1; border-color:var(--line); }
.menu.pop .dt-time button, .menu.pop .dt-quick button { background:var(--card); border:1px solid var(--line); color:var(--text); border-radius:6px; padding:4px 8px; cursor:pointer; font:inherit; font-size:12px; }
.menu.pop .dt-time button:hover, .menu.pop .dt-quick button:hover { border-color:var(--p); }
.menu.pop .dt-quick { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.menu.pop .dt-quick button.on { background:#2a1510; border-color:var(--p); color:var(--accent); }
.menu.pop .dt-hint { font-size:11px; color:var(--muted); padding:6px 4px 0; }

/* ---------- Agenda da agência ---------- */
.badge.soft { background:#2a1510; color:var(--accent); border:1px solid #6b3a1f; }
.ag-bar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.ag-bar .cal-head, .ag-bar .cal-filters { margin:0; }
.ag-week { display:grid; grid-template-columns:repeat(7, minmax(150px,1fr)); gap:8px; overflow-x:auto; }
.ag-day { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:8px; min-height:340px; display:flex; flex-direction:column; gap:6px; }
.ag-day.today { border-color:var(--p); background:#1a1210; }
.ag-dh { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--muted); padding:0 2px 4px; border-bottom:1px solid var(--line); }
.ag-dh b { color:var(--text); text-transform:capitalize; }
.ag-day.today .ag-dh b { color:var(--accent); }
.ag-add { background:none; border:1px solid transparent; color:var(--muted); border-radius:6px; width:24px; height:24px; cursor:pointer; font-size:15px; opacity:.4; }
.ag-day:hover .ag-add { opacity:1; } .ag-add:hover { border-color:var(--p); color:var(--text); }
.ag-empty { color:#4a4a4a; text-align:center; font-size:12px; padding-top:6px; }
.ag-card { background:var(--card2); border:1px solid var(--line); border-left:3px solid var(--k); border-radius:8px; padding:7px 9px; cursor:pointer; display:flex; flex-direction:column; gap:3px; }
.ag-card:hover { border-color:#4a4a55; border-left-color:var(--k); background:#252525; }
.ag-card.past { opacity:.55; }
.ag-when { font-size:11px; font-weight:700; color:var(--k); }
.ag-title { font-weight:600; font-size:13px; line-height:1.3; }
.ag-sub { font-size:12px; color:var(--muted); display:flex; align-items:center; gap:5px; }
.ag-list { list-style:none; margin:2px 0 0; padding:0; display:flex; flex-direction:column; gap:2px; }
.ag-list li { display:flex; align-items:center; gap:5px; font-size:11px; color:#c9c5bf; }
.ag-list li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ag-list li .sicon { flex:none; }
.ag-ppl { display:flex; margin-top:2px; } .ag-ppl .av + .av { margin-left:-5px; } .ag-ppl .av { border:2px solid var(--card2); }
.ag-chip { font-size:11px; padding:2px 6px; margin-bottom:3px; border-radius:4px; background:var(--card2); border-left:3px solid; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ag-chip:hover { background:#2a2a30; }
.ag-n { display:inline-block; background:#ec5f9b; color:#fff; font-size:10px; font-weight:700; border-radius:99px; padding:0 6px; margin-left:3px; }
.ag-num { cursor:pointer; padding:0 4px; border-radius:4px; } .ag-num:hover { background:var(--p); color:#fff; }
.ag-lday { margin-bottom:16px; }
.ag-lday h4 { margin:0 0 8px; font-size:14px; display:flex; align-items:center; gap:8px; }
.ag-lgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:8px; }
.menu.pop .ag-poplist { display:flex; flex-direction:column; gap:3px; padding:4px; min-width:240px; }
.menu.pop .ag-poplist .ag-chip { display:block; padding:4px 8px; border-left:3px solid; border-radius:4px; cursor:pointer; }
.ev-modal { width:560px; }
.ev-modal .row label { min-width:0; }

/* ---------- Início (painel pessoal) ---------- */
.hm-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:10px; margin-bottom:14px; }
.hm-tile { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 12px; color:var(--text); font:inherit; cursor:pointer; display:flex; flex-direction:column; align-items:flex-start; gap:4px; text-align:left; }
.hm-tile b { font-size:30px; line-height:1; }
.hm-tile span { color:var(--muted); font-size:13px; }
.hm-tile:hover { border-color:#4a4a55; }
.hm-tile.on { border-color:var(--p); background:#1a1210; box-shadow:inset 0 -3px 0 var(--p); }
.hm-tile.bad b { color:#ff6b6b; } .hm-tile.warn b { color:#f5b942; }
.hm-grid { display:flex; flex-direction:column; gap:14px; margin-bottom:14px; }
.hm-side { order:-1; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; align-items:start; }
.hm-side .widget { min-width:0; }
.hm-ag { max-height:330px; overflow:auto; }
.hm-main h3 { display:flex; align-items:center; gap:8px; }
.hm-urg { margin-left:auto; color:#ff8a80; text-transform:none; letter-spacing:0; font-size:12px; }
.hm-empty { color:var(--muted); padding:8px 2px; }
.hm-ag { display:flex; flex-direction:column; gap:6px; }
.hm-recrow { display:flex; align-items:center; gap:10px; padding:7px 4px; border-top:1px solid var(--line); cursor:pointer; border-radius:6px; }
.hm-recrow:first-child { border-top:0; }
.hm-recrow:hover { background:var(--card2); }
.hm-rd { width:62px; flex:none; display:flex; flex-direction:column; font-size:12px; line-height:1.2; }
.hm-rd b { color:var(--accent); } .hm-rd span { color:var(--muted); }
.hm-bar { display:flex; align-items:center; gap:8px; padding:4px 0; font-size:12px; }
.hm-bl { width:96px; flex:none; color:var(--muted); }
.hm-bn { width:26px; flex:none; text-align:right; font-weight:700; }
.hm-tgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(330px,1fr)); gap:4px 24px; }
.hm-trow { display:flex; align-items:center; gap:10px; padding:6px 4px; border-radius:8px; }
.hm-trow.me { background:#1a1210; }
.hm-tn { width:100px; flex:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hm-late { width:48px; flex:none; font-size:12px; color:#ff6b6b; }
@media (max-width:1100px) { .hm-side { grid-template-columns:1fr 1fr; } .hm-tiles { grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:800px) { .hm-side { grid-template-columns:1fr; } .hm-tiles { grid-template-columns:repeat(2, minmax(0,1fr)); } .ag-week { grid-template-columns:repeat(7, 200px); } }
.hm-team h3 { display:flex; align-items:center; gap:10px; } .hm-team h3 .muted { margin-left:auto; }
.ev-modal .people label { flex-direction:row; color:var(--text); }

/* ---------- Coluna Gravação na lista ---------- */
.c-rec { width:116px; flex:none; cursor:pointer; border-radius:6px; padding:3px 4px; position:relative; white-space:nowrap; font-size:12px; }
.c-rec:hover { background:var(--card2); }
.thead .c-rec { cursor:pointer; font-size:12px; }
.thead .th.c-rec { border-radius:6px; user-select:none; }
.recd { color:#ff9cc6; font-weight:600; }
.recd.today { color:#ffd166; } .recd.past { color:var(--muted); font-weight:400; }
.recd.none { color:var(--muted); opacity:0; font-weight:400; }
.trow:hover .recd.none { opacity:.7; }
.c-rec .clr { position:absolute; right:3px; top:50%; transform:translateY(-50%); margin:0; }
.c-rec:hover .clr { opacity:1; }

/* ---------- Escolher pessoas pelo avatar ---------- */
.avpick { position:relative; background:none; border:2px solid transparent; border-radius:50%; padding:2px; cursor:pointer; opacity:.45; filter:grayscale(.6); transition:opacity .12s, transform .12s; }
.avpick:hover { opacity:.85; filter:none; transform:translateY(-1px); }
.avpick.on { opacity:1; filter:none; border-color:var(--p); }
.avpick .av { display:flex; }
.avck { position:absolute; right:-3px; bottom:-3px; width:16px; height:16px; border-radius:50%; background:var(--p); color:#fff; font-size:10px; font-weight:700; display:none; align-items:center; justify-content:center; border:2px solid var(--card); }
.avpick.on .avck { display:flex; }
.people .avpick { flex:none; }
.hint-s { font-size:11px; opacity:.8; }

/* ---------- Tarefa rápida, linha de adicionar e lote ---------- */
.tb-btn.quick { border-color:var(--p); color:var(--accent); font-weight:600; }
.tb-btn.quick:hover { background:#2a1510 !important; }
.qadd { background:none; border:0; color:var(--muted); font:inherit; font-size:13px; cursor:pointer; padding:7px 8px 7px 10px; border-radius:6px; width:100%; text-align:left; border-top:1px solid var(--line); }
.qadd:hover { color:var(--text); background:var(--card); }
.qrow { display:flex; align-items:center; gap:8px; padding:6px 8px; border-top:1px solid var(--line); background:var(--card); border-radius:0 0 8px 8px; }
.qrow .sicon-wrap { display:inline-flex; flex:none; }
.qrow .qtype { width:auto; flex:none; padding:6px 8px; font-size:12px; font-weight:700; }
.qrow .qname { flex:1; min-width:180px; padding:7px 10px; border-color:var(--p); }
.qrow .qprev { flex:none; max-width:300px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--muted); }
.qrow .link { flex:none; font-size:12px; }
.bk-modal { width:640px; }
.bk-modal > label { font-size:13px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
.bk-modal h3 { margin:0; }
.bk-list { margin:4px 0 0; padding-left:18px; color:var(--text); font-weight:600; }
.bk-list li { margin:1px 0; }

/* ---------- Abas CLIENTES / AVULSOS ---------- */
.side-tabs { display:flex; gap:2px; }
.side-tabs button { background:none; border:0; color:var(--muted); font:inherit; font-size:11px; letter-spacing:.08em; padding:4px 6px; border-radius:6px; cursor:pointer; width:auto; height:auto; }
.side-tabs button:hover { color:var(--text); background:var(--card2); }
.side-tabs button.on { color:var(--text); background:var(--card2); box-shadow:inset 0 -2px 0 var(--p); }
.side-tabs i { font-style:normal; opacity:.7; margin-left:2px; }
.side-empty { color:var(--muted); font-size:12px; cursor:default !important; line-height:1.4; }
.side-empty:hover { background:none !important; }
.kind-chip { display:inline-block; margin-left:8px; background:#10261c; color:#3fbf91; border:1px solid #1f5a3f; font-weight:700; font-size:11px; padding:2px 8px; border-radius:6px; letter-spacing:.05em; vertical-align:middle; }
.kind-chip.sm { font-size:9px; padding:0 5px; margin-left:4px; text-transform:uppercase; }
.c-due { width:150px; } .thead .th { white-space:nowrap; }
#projectView > header { justify-content:flex-start; } #projectView > header .actions { margin-left:auto; flex-wrap:wrap; justify-content:flex-end; }

/* ---------- Lista de horários (15 em 15 min, como no ClickUp) ---------- */
.tlist { position:fixed; z-index:95; background:var(--card2); border:1px solid #3a3a42; border-radius:12px; padding:6px; overflow-y:auto; box-shadow:0 14px 40px rgba(0,0,0,.6); }
.tlist .ti { padding:9px 12px; border-radius:8px; cursor:pointer; font-size:14px; font-weight:500; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.tlist .ti.hi { background:#34343c; }
.tlist .ti.cur { color:var(--accent); font-weight:700; }
.tlist .ti .ret { font-size:11px; color:var(--muted); font-weight:400; }
.tlist .ti.none { color:var(--muted); cursor:default; }
input.tpick { font-variant-numeric:tabular-nums; cursor:pointer; }
.menu.pop .dt-time input.tpick { cursor:text; }

/* ---------- Tarefas em lote: uma linha por tarefa, com prazo próprio ---------- */
.bk-modal { width:760px; }
.bk-head { display:flex; justify-content:space-between; align-items:flex-end; font-size:13px; color:var(--muted); }
.bk-cols { display:flex; gap:8px; padding-right:34px; } .bk-cols span:first-child { width:150px; } .bk-cols span:last-child { width:84px; }
.bk-rows { display:flex; flex-direction:column; gap:6px; max-height:44vh; overflow:auto; padding-right:2px; }
.bkrow { display:flex; align-items:flex-start; gap:8px; }
.bkrow .bk-n { width:20px; flex:none; text-align:right; color:var(--muted); font-size:12px; padding-top:10px; }
.bkrow .bk-main { flex:1; min-width:0; }
.bkrow .bk-title { font-size:11px; color:var(--muted); padding:3px 2px 0; min-height:0; }
.bkrow .bk-title:empty { display:none; }
.bkrow .bk-due { width:150px; flex:none; }
.bkrow .bk-time { width:84px; flex:none; text-align:center; }
.bkrow .bk-del { background:none; border:0; color:var(--muted); cursor:pointer; width:26px; height:36px; border-radius:6px; flex:none; }
.bkrow .bk-del:hover { color:#f87171; background:var(--card2); }
.bkrow.late .bk-due { border-color:#f5b942; }
.bk-warn { color:#f5b942; font-weight:600; }
.bk-tools { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.bk-tools .link { font-size:12px; }
.bk-tools .hint-s { margin-left:auto; }

/* ---------- Agenda: + Adicionar tarefa no dia ---------- */
.ag-qslot { margin-top:auto; }
.ag-qadd { border-top:0; font-size:12px; padding:6px 4px; border-radius:6px; opacity:.55; }
.ag-day:hover .ag-qadd { opacity:1; }
.ag-qform { display:flex; flex-direction:column; gap:5px; background:var(--card2); border:1px solid var(--p); border-radius:8px; padding:6px; }
.ag-qform select, .ag-qform input { padding:5px 7px; font-size:12px; }
.ag-qform .aq-line { display:flex; gap:4px; } .ag-qform .aq-line select { flex:1; min-width:0; } .ag-qform .aq-time { width:62px; flex:none; text-align:center; }
.ag-qform .aq-btns { display:flex; justify-content:space-between; align-items:center; }
.ag-qform .aq-hint { font-size:10px; color:var(--muted); }

/* ---------- Calendários com todas as tarefas ---------- */
.cal .day { overflow:visible; }
.cal .num { display:flex; justify-content:space-between; align-items:center; }
.day-cnt { font-size:10px; color:var(--muted); background:#202020; border-radius:99px; padding:0 6px; font-weight:600; }
.day-cnt i { font-style:normal; color:#3fbf91; margin-left:3px; }
.chip.done { opacity:.45; } .chip.done:hover { opacity:.9; }
.chip .ck { color:#3fbf91; font-weight:700; margin-right:3px; }
.chip.urg { box-shadow:inset -3px 0 0 #f04438; }
.day.dense .chip { font-size:10px; padding:1px 5px; margin-bottom:2px; }
.day-done { font-size:11px; color:#3fbf91; padding:2px 4px; }
.cal-hide { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:13px; cursor:pointer; margin-left:auto; }
.cal-hide input { width:auto; accent-color:var(--p); }

/* ---------- Prévia de links ---------- */
.d-links .d-sec { margin-top:4px; }
.lk-grid { display:flex; flex-wrap:wrap; gap:12px; margin-top:8px; }
.lk-card { background:var(--card2); border:1px solid var(--line); border-radius:12px; overflow:hidden; display:flex; flex-direction:column; text-decoration:none; color:var(--text); }
.lk-head { display:flex; align-items:center; gap:7px; padding:7px 10px; border-bottom:1px solid var(--line); font-size:12px; }
.lk-fav { width:16px; height:16px; border-radius:3px; }
.lk-host { flex:1; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lk-btn { background:none; border:0; color:var(--text); cursor:pointer; font-size:13px; padding:2px 6px; border-radius:6px; text-decoration:none; }
.lk-btn:hover { background:#34343c; }
.lk-ig, .lk-tt { width:328px; } .lk-ig iframe { width:100%; height:560px; border:0; background:#fff; } .lk-tt iframe { width:100%; height:580px; border:0; }
.lk-yt { width:480px; max-width:100%; } .lk-yt iframe { width:100%; aspect-ratio:16/9; border:0; }
.lk-yt.lk-tall { width:328px; } .lk-yt.lk-tall iframe { aspect-ratio:9/16; }
.lk-site { width:340px; } .lk-site:hover { border-color:#4a4a55; }
.lk-body { padding:10px 12px; display:flex; flex-direction:column; gap:4px; }
.lk-img { width:calc(100% + 24px); margin:-10px -12px 6px; max-height:180px; object-fit:cover; display:block; }
.lk-title { font-weight:600; font-size:13px; line-height:1.3; overflow-wrap:anywhere; }
.lk-desc { font-size:12px; color:var(--muted); line-height:1.4; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* ---------- Aviso: gravação depois do prazo ---------- */
.recd.warn { color:#f5b942; }
.d-warn { background:#2a2010; border:1px solid #6b531f; color:#ffd58a; border-radius:8px; padding:8px 12px; font-size:13px; margin:2px 0 4px; }
.d-warn .link { padding:0 4px; }
.warn-toast { position:fixed; left:50%; top:14px; transform:translateX(-50%); z-index:85; background:#2a2010; border:1px solid #f5b942; color:#ffd58a; padding:10px 14px 10px 18px; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.5); font-size:13px; max-width:min(680px, calc(100vw - 32px)); display:flex; align-items:center; gap:8px; }
.warn-x { background:none; border:0; color:#ffd58a; cursor:pointer; font-size:13px; padding:2px 6px; }

/* ---------- Metas do mês ---------- */
.gl-head { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:12px; }
.gl-head .cal-head { margin:0; }
.gl-kpis { display:grid; grid-template-columns:repeat(4, minmax(120px,1fr)) minmax(260px,2fr); gap:10px; margin-bottom:10px; }
.gl-kpi { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:4px; }
.gl-kpi b { font-size:30px; line-height:1; } .gl-kpi span { color:var(--muted); font-size:13px; }
.gl-kpi.ok b { color:#3fbf91; } .gl-kpi.bad b { color:#ff6b6b; }
.gl-kpi.big { justify-content:center; gap:10px; }
.gl-pct { display:flex; align-items:baseline; gap:8px; } .gl-pct b { font-size:34px; }
.gl-prog { height:12px; background:#2a2a30; border-radius:99px; overflow:hidden; } .gl-prog i { display:block; height:100%; background:var(--grad); border-radius:99px; }
.gl-pace { color:var(--muted); font-size:13px; margin:0 2px 14px; } .gl-pace b { color:var(--accent); }
.gl-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(330px,1fr)); gap:14px; margin-bottom:14px; align-items:start; }
.gl-bar { display:flex; align-items:center; gap:10px; padding:5px 2px; font-size:13px; border-radius:6px; }
.gl-bar[data-gc] { cursor:pointer; } .gl-bar[data-gc]:hover { background:var(--card2); }
.gl-bl { width:150px; flex:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:flex; align-items:center; gap:6px; }
.gl-bn { width:52px; flex:none; text-align:right; color:var(--muted); } .gl-bn b { color:var(--text); }
.gl-pc { width:40px; flex:none; text-align:right; font-weight:700; font-size:12px; }
.gl-clients { max-height:420px; overflow:auto; }
.gl-filters { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.gl-chip { background:var(--card2); border:1px solid var(--line); color:var(--text); border-radius:99px; padding:5px 12px; font:inherit; font-size:12px; cursor:pointer; }
.gl-chip b { color:var(--muted); margin-left:2px; } .gl-chip:hover { border-color:#4a4a55; }
.gl-chip.on { border-color:var(--p); background:#2a1510; } .gl-chip.on b { color:var(--accent); }
@media (max-width:1100px) { .gl-kpis { grid-template-columns:repeat(2, minmax(0,1fr)); } .gl-kpi.big { grid-column:1 / -1; } }
.lk-grid { align-items:flex-start; } .lk-site { cursor:pointer; }

/* ---------- Responsáveis por etapa ---------- */
.rl-tabs { display:flex; gap:3px; margin-bottom:8px; }
.menu.pop .rl-tabs button { flex:1; background:var(--card); border:1px solid var(--line); color:var(--text); border-radius:8px; padding:6px 0; cursor:pointer; font-size:15px; position:relative; }
.menu.pop .rl-tabs button span { font-size:10px; color:var(--accent); font-weight:700; margin-left:2px; }
.menu.pop .rl-tabs button.on { border-color:var(--p); background:#2a1510; }
.menu.pop .rl-tabs button.now::after { content:""; position:absolute; top:3px; right:4px; width:6px; height:6px; border-radius:50%; background:#3fbf91; }
.d-row-top { align-items:flex-start; }
.d-row-top .d-k { padding-top:6px; line-height:1.2; }
.rl-box { flex:1; display:flex; flex-direction:column; gap:2px; }
.rl-row { display:flex; align-items:center; gap:10px; padding:4px 10px; border-radius:8px; cursor:pointer; min-height:34px; }
.rl-row:hover { background:var(--card2); }
.rl-row.cur { background:#13241b; box-shadow:inset 3px 0 0 #3fbf91; }
.rl-row.gen { opacity:.8; border-top:1px dashed var(--line); margin-top:2px; }
.rl-k { width:120px; flex:none; font-size:12px; color:var(--muted); }
.rl-row.cur .rl-k { color:#3fbf91; font-weight:700; }
.rl-v { flex:1; display:flex; flex-wrap:wrap; gap:4px; align-items:center; }
.rl-v .pchip { margin-right:0; font-size:12px; }
.rl-row:hover .clr { opacity:1; }
.rl-now { font-size:10px; color:#3fbf91; border:1px solid #1f5a3f; border-radius:99px; padding:1px 7px; flex:none; text-transform:uppercase; letter-spacing:.04em; }
.rl-pick { display:flex; flex-direction:column; gap:6px; }
.rlp-row { display:flex; align-items:center; gap:10px; padding:4px 8px; border-radius:10px; border:1px solid transparent; }
.rlp-row.focus { border-color:#ec5f9b; background:#2a1420; }
.rlp-k { width:150px; flex:none; font-size:13px; color:var(--text); }
.rl-pick.compact .rlp-row { padding:2px 6px; } .rl-pick.compact .avpick .av { width:28px !important; height:28px !important; font-size:11px !important; }
.rl-pick.readonly .avpick { pointer-events:none; }
.ct-modal { width:640px; }
.avpick.sm { padding:1px; } .avpick.sm .avck { width:13px; height:13px; font-size:8px; }
.menu.pop .dt-who { display:flex; align-items:center; gap:8px; margin-top:8px; padding-top:8px; border-top:1px solid var(--line); }
.menu.pop .dt-wl { font-size:12px; color:#ff9cc6; white-space:nowrap; font-weight:600; }
.menu.pop .dt-av { display:flex; flex-wrap:wrap; gap:3px; }
.ag-qform .aq-wl { font-size:10px; color:#ff9cc6; font-weight:600; }
.ag-qform .aq-who { gap:2px; }
.ag-qform .aq-who .avpick { padding:1px; } .ag-qform .aq-who .av { width:22px !important; height:22px !important; font-size:9px !important; }
.ag-qform .aq-who .avck { width:11px; height:11px; font-size:7px; right:-2px; bottom:-2px; }
.hm-hint { font-size:12px; color:var(--muted); margin:-6px 0 8px; }
.nx-role { font-size:13px; margin-right:2px; }
.menu.pop .rl-tabs { display:flex; gap:3px; padding:0; } .menu.pop .rl-tabs button { min-width:38px; }

/* ---------- Título da tarefa: degradê da marca ao passar o mouse ---------- */
.tt-txt { transition:color .15s; }
.trow:hover .tt-txt, .task:hover .tt-txt {
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
/* Cargo nas listas de pessoas */
.pi-job { font-size:10px; color:var(--muted); border:1px solid var(--line); border-radius:99px; padding:0 6px; margin-left:4px; }
.pi-job.fit { color:var(--accent); border-color:#6b3a1f; }
.avpick.fit:not(.on) { opacity:.7; }
.rl-row.info { cursor:default; opacity:.75; } .rl-row.info:hover { background:none; }
.rl-row.info.cur { opacity:1; }

/* ---------- Conclusão de etapas ---------- */
.stage-flow { flex:1; display:flex; flex-direction:column; gap:8px; padding:4px 10px 8px; }
.sf-steps { display:flex; align-items:center; }
.sf-step { width:18px; height:18px; border-radius:50%; border:2px solid var(--c); display:inline-flex; align-items:center; justify-content:center; font-size:10px; color:#fff; flex:none; }
.sf-step.done { background:var(--c); }
.sf-step.cur { box-shadow:0 0 0 3px rgba(251,67,40,.25); background:#1a1a1a; }
.sf-line { flex:1; height:2px; background:var(--line); min-width:8px; }
.sf-act { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.sf-credit { font-size:12px; color:var(--muted); }
.sf-done { color:#3fbf91; font-weight:700; font-size:13px; }
.st-hist { display:flex; flex-direction:column; gap:2px; }
.sh-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; padding:5px 8px; border-radius:6px; }
.sh-row:nth-child(odd) { background:var(--card2); }
.sh-row b { font-size:12px; min-width:92px; }
.sh-dot { width:8px; height:8px; border-radius:50%; flex:none; }
.sh-row.back { color:#f5b942; }
.sh-row.open b { color:var(--accent); }
.sh-cr { color:#3fbf91; }
.menu.pop .pi.rec-done { color:#3fbf91; font-weight:700; border-top:1px solid var(--line); margin-top:4px; padding-top:9px; }
.job-chip { font-size:12px; color:var(--accent); background:#2a1510; border:1px solid #6b3a1f; border-radius:99px; padding:2px 9px; } .hm-tn small { display:block; font-size:10px; color:var(--muted); }

/* ---------- Desempenho da equipe ---------- */
.pf-team { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px,1fr)); gap:10px; margin-bottom:14px; }
.pf-team .gl-kpi small { font-size:11px; }
.pf-scroll { overflow-x:auto; }
.pf-table { width:100%; border-collapse:collapse; font-size:13px; }
.pf-table th { text-align:left; font-size:11px; color:var(--muted); font-weight:600; padding:8px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
.pf-table > tbody > tr[data-pu] > td { padding:8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.pf-table tr[data-pu] { cursor:pointer; } .pf-table tr[data-pu]:hover { background:var(--card2); } .pf-table tr.sel { background:#1a1210; }
.pf-table .teamname span { display:flex; flex-direction:column; line-height:1.2; }
.pf-job { font-size:10px; color:var(--accent); }
.pf-n b { font-size:18px; } .pf-n small, .pf-q small { display:block; font-size:10px; color:var(--muted); }
.pf-n.zero b { color:#4a4a4a; } .pf-n.warn b { color:#f5b942; }
.pf-q { font-weight:700; }
.pf-detail > td { padding:4px 8px 12px; background:#121212; }
.pf-rows { width:100%; border-collapse:collapse; font-size:12px; }
.pf-rows th { text-align:left; color:var(--muted); font-weight:600; padding:6px; font-size:11px; }
.pf-rows td { padding:5px 6px; border-top:1px solid #222; }
.pf-link { cursor:pointer; } .pf-link:hover { color:var(--accent); text-decoration:underline; }
.pf-rows .ok { color:#3fbf91; } .late { color:#ff6b6b; }
.pf-foot { margin-top:10px; font-size:12px; }
@media print {
  aside, #topbar, .no-print, #pwBanner, .toast, .warn-toast { display:none !important; }
  body, main, .widget, .gl-kpi { background:#fff !important; color:#000 !important; border-color:#ccc !important; }
  .muted, .pf-table th { color:#555 !important; }
  #app { display:block; } main { padding:0; }
}

/* ---------- Registro de atividade (compacto) ---------- */
.act-head { display:flex; justify-content:space-between; align-items:baseline; }
.act { display:flex; flex-direction:column; gap:1px; }
.ac-row { display:flex; align-items:baseline; gap:10px; font-size:12px; color:var(--muted); padding:3px 2px; line-height:1.45; }
.ac-txt { flex:1; min-width:0; }
.ac-who { color:#c9c5bf; font-weight:600; }
.ac-txt b:not(.ac-who) { color:#c9c5bf; font-weight:500; }
.ac-at { flex:none; font-size:11px; color:#6a6a70; white-space:nowrap; }
.ac-st { display:inline-flex; align-items:center; gap:4px; color:#c9c5bf; }
.ac-st i { width:8px; height:8px; border-radius:2px; display:inline-block; }
.ac-row .flag { display:inline-block; vertical-align:-1px; }
.ac-day { display:flex; align-items:center; gap:8px; margin:8px 0 2px; font-size:11px; color:var(--muted); }
.ac-day::before, .ac-day::after { content:""; flex:1; height:1px; background:var(--line); }
.ac-day span { border:1px solid var(--line); border-radius:99px; padding:1px 10px; }
.ac-more { align-self:flex-start; font-size:12px; padding:4px 2px; }
.ac-empty { font-size:12px; }
.st-details { font-size:12px; margin-top:2px; }
.st-details summary { cursor:pointer; color:var(--muted); padding:4px 2px; list-style:none; }
.st-details summary::-webkit-details-marker { display:none; }
.st-details summary::before { content:"▸ "; } .st-details[open] summary::before { content:"▾ "; }
.st-details summary:hover { color:var(--text); }
.st-details .st-hist { margin-top:4px; }

/* ---------- Minimizar etapas ---------- */
.grp-tg { background:var(--card2); border:1px solid var(--line); color:var(--muted); width:22px; height:22px; border-radius:6px; cursor:pointer; font-size:11px; display:inline-flex; align-items:center; justify-content:center; padding:0; transition:transform .15s; flex:none; }
.grp-tg:hover { color:var(--text); border-color:var(--p); }
.group.collapsed .grp-tg { transform:rotate(-90deg); }
.group.collapsed > .trow, .group.collapsed > .qadd-slot { display:none; }
.group.collapsed { margin-bottom:8px; }

/* ---------- Progressão: nível, XP, conquistas, pódio, meta ---------- */
.lv { display:flex; align-items:center; gap:12px; min-width:0; }
.lv-ic { width:44px; height:44px; border-radius:12px; background:#2a1510; border:1px solid #6b3a1f; display:flex; align-items:center; justify-content:center; font-size:22px; flex:none; }
.lv.big .lv-ic { width:64px; height:64px; font-size:32px; border-radius:16px; }
.lv-main { flex:1; min-width:0; }
.lv-top { display:flex; justify-content:space-between; gap:8px; font-size:13px; } .lv-top span { color:var(--accent); font-weight:700; }
.lv.big .lv-top { font-size:16px; }
.lv-bar { height:8px; background:#2a2a30; border-radius:99px; overflow:hidden; margin:6px 0 4px; } .lv-bar i { display:block; height:100%; background:var(--grad); border-radius:99px; }
.lv.big .lv-bar { height:12px; }
.lv-sub { font-size:11px; color:var(--muted); } .lv-sub b { color:var(--text); font-weight:600; }
.hm-gami { display:grid; grid-template-columns:minmax(240px,1.4fr) auto minmax(200px,1fr) auto; gap:18px; align-items:center; background:linear-gradient(100deg,#1d120e,#141414 60%); border:1px solid #4a2a1a; border-radius:14px; padding:12px 16px; margin-bottom:12px; cursor:pointer; }
.hm-gami:hover { border-color:var(--p); }
.hg-mid { display:flex; flex-direction:column; gap:3px; font-size:12px; color:var(--muted); } .hg-mid b { color:var(--text); }
.hg-bd i, .pf-badges i { font-style:normal; margin-right:2px; }
.hg-goal { font-size:12px; } .hg-gt { display:flex; justify-content:space-between; margin-bottom:4px; color:var(--muted); } .hg-gt b { color:var(--text); }
.hg-goal .gl-prog { height:8px; } .hg-goal small { display:block; margin-top:4px; color:var(--accent); }
.hg-top { display:flex; flex-direction:column; gap:2px; font-size:12px; color:var(--muted); } .hg-top .me { color:var(--accent); font-weight:700; }
.pf-xp b { font-size:16px; color:var(--accent); } .pf-xp small { display:block; font-size:10px; color:var(--muted); } .pf-badges { display:block; font-size:12px; margin-top:2px; }
.tg-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr); gap:14px; margin-bottom:14px; }
.tg-pct { display:flex; align-items:baseline; gap:10px; margin-bottom:8px; } .tg-pct b { font-size:34px; } .tg-pct span { color:var(--muted); font-size:13px; }
.tg-prog { position:relative; height:14px; overflow:visible; } .tg-prog i { border-radius:99px; }
.tg-mark { position:absolute; top:-3px; width:2px; height:20px; background:#3a3a3a; } .tg-mark.ok { background:#ffa24c; }
.tg-reward { margin-top:12px; padding:10px 12px; border-radius:10px; border:1px dashed #6b3a1f; background:#1d120e; font-size:13px; }
.tg-reward.open { border-style:solid; border-color:#3fbf91; background:#10261c; color:#bff3dc; }
.podium { display:flex; align-items:flex-end; justify-content:center; gap:10px; padding-top:6px; }
.pd { display:flex; flex-direction:column; align-items:center; gap:3px; width:96px; font-size:12px; }
.pd b { font-size:13px; } .pd span { color:var(--accent); font-weight:700; }
.pd-step { width:100%; border-radius:10px 10px 4px 4px; background:linear-gradient(180deg,#2a1a12,#161616); border:1px solid #4a2a1a; display:flex; justify-content:center; align-items:flex-start; padding-top:6px; font-size:22px; }
.pd-1 .pd-step { height:84px; border-color:#f5b942; } .pd-2 .pd-step { height:60px; } .pd-3 .pd-step { height:44px; }
.pd.me b { color:var(--accent); }
.pd-empty { padding:20px 0; text-align:center; }
.me-hero { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr); gap:14px; margin-bottom:14px; }
.me-lv { display:flex; flex-direction:column; gap:14px; justify-content:center; }
.me-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.me-stats div { background:var(--card2); border-radius:10px; padding:10px; display:flex; flex-direction:column; } .me-stats b { font-size:22px; } .me-stats span { font-size:12px; color:var(--muted); }
.me-part { display:flex; flex-direction:column; align-items:center; text-align:center; } .me-part h3 { align-self:stretch; text-align:left; } .me-part p { margin:6px 0 0; font-size:13px; }
.me-ring { width:110px; height:110px; border-radius:50%; background:conic-gradient(#fb4328 calc(var(--p) * 1%), #2a2a30 0); display:flex; align-items:center; justify-content:center; position:relative; }
.me-ring::before { content:""; position:absolute; inset:10px; border-radius:50%; background:var(--card); }
.me-ring b { position:relative; font-size:24px; }
.bd-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px,1fr)); gap:8px; }
.bd { background:var(--card2); border:1px solid var(--line); border-radius:12px; padding:10px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:3px; opacity:.38; filter:grayscale(1); }
.bd.got { opacity:1; filter:none; border-color:#6b3a1f; background:linear-gradient(180deg,#2a1510,#1a1a1a); box-shadow:0 0 0 1px rgba(251,67,40,.15); }
.bd-ic { font-size:26px; } .bd b { font-size:12px; } .bd small { font-size:10px; color:var(--muted); line-height:1.3; }
.xp-pop { position:fixed; right:28px; bottom:90px; z-index:120; background:var(--grad); color:#fff; font-weight:800; font-size:18px; padding:8px 16px; border-radius:99px; box-shadow:0 10px 30px rgba(251,67,40,.4); animation:xpUp 1.8s ease-out forwards; pointer-events:none; }
@keyframes xpUp { 0% { transform:translateY(20px) scale(.8); opacity:0; } 15% { transform:translateY(0) scale(1.1); opacity:1; } 70% { opacity:1; } 100% { transform:translateY(-60px); opacity:0; } }
.celebrate { position:fixed; inset:0; z-index:130; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; }
.celebrate .cf { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.celebrate .cf i { position:absolute; top:-20px; width:9px; height:14px; border-radius:2px; animation:cfFall 2.6s linear forwards; }
@keyframes cfFall { to { transform:translateY(110vh) rotate(720deg); } }
.celebrate .cb { position:relative; background:var(--card); border:1px solid var(--p); border-radius:18px; padding:26px 34px; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; box-shadow:0 20px 60px rgba(0,0,0,.6); }
.celebrate .cb b { font-size:22px; } .celebrate .cb span { color:var(--accent); }
@media (max-width:1100px) { .hm-gami { grid-template-columns:1fr 1fr; } .tg-grid, .me-hero { grid-template-columns:1fr; } }

/* =====================================================================
   ORYA 2.0 — camada visual: minimalista, futurista, com a identidade Orya
   (preto profundo, laranja #FB4328, degradê da marca só em destaques)
   ===================================================================== */
:root {
  --bg:#060607; --side:rgba(12,12,14,.82); --card:rgba(20,20,23,.72); --card2:#1a1a1e; --line:rgba(255,255,255,.07);
  --line2:rgba(255,255,255,.12); --text:#f3f0ea; --muted:#8a8690; --glow:rgba(251,67,40,.22);
  --r:14px; --ease:cubic-bezier(.2,.8,.2,1);
}
body {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(251,67,40,.10), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(255,138,31,.06), transparent 60%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--bg);
  background-attachment:fixed;
  letter-spacing:.005em;
}
::selection { background:rgba(251,67,40,.35); }
* { scrollbar-width:thin; scrollbar-color:#2a2a30 transparent; }
::-webkit-scrollbar { width:8px; height:8px; } ::-webkit-scrollbar-thumb { background:#26262b; border-radius:99px; } ::-webkit-scrollbar-thumb:hover { background:#3a3a42; }

/* ---------- Lateral ---------- */
aside { background:var(--side); backdrop-filter:blur(14px); border-right:1px solid var(--line); padding:18px 12px 12px; }
.logo { padding:4px 10px 18px; }
.nav-sec { font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:#5d5a62; padding:10px 12px 6px; }
.nav { margin:0 0 6px; }
.nav li { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:10px; color:#b9b5bd; font-size:13.5px; position:relative; transition:background .2s var(--ease), color .2s; }
.nav li .ni { width:18px; height:18px; flex:none; opacity:.75; transition:opacity .2s, color .2s, transform .2s var(--ease); }
.nav li .nl { flex:1; }
.nav li:hover { background:rgba(255,255,255,.04); color:var(--text); }
.nav li:hover .ni { opacity:1; transform:translateX(1px); }
.nav li.active { background:linear-gradient(90deg, rgba(251,67,40,.14), rgba(251,67,40,.02)); color:var(--text); }
.nav li.active::before { content:""; position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:3px; background:var(--grad); box-shadow:0 0 12px var(--glow); }
.nav li.active .ni { color:#ff7a4d; opacity:1; }
.side-title { margin-top:8px; padding:8px 4px 6px; border-top:1px solid var(--line); }
#projectList li { font-size:13px; color:#c9c5cc; padding:6px 10px; transition:background .15s, color .15s; }
#projectList li:hover { color:var(--text); }
#projectList li.active { background:rgba(251,67,40,.10); color:var(--text); box-shadow:inset 2px 0 0 var(--p); }
.side-bottom { border-top:1px solid var(--line); }

/* ---------- Área principal e topo ---------- */
main { padding:20px 32px 40px; }
#topbar { justify-content:space-between; gap:10px; margin:-4px 0 18px; padding:8px 10px; border:1px solid var(--line); border-radius:var(--r); background:rgba(14,14,16,.6); backdrop-filter:blur(12px); position:sticky; top:12px; z-index:15; }
.tb-group { display:flex; gap:2px; padding:2px; border:1px solid var(--line); border-radius:10px; }
.tb-group .tb-btn { border:0; border-radius:8px; }
.tb-live { display:flex; align-items:center; gap:6px; margin-left:auto; font-size:12px; color:var(--muted); }
.tb-live #refreshBtn { color:var(--muted); font-size:12px; }
.uppill { position:relative; padding:3px 10px 3px 20px; font-size:11.5px; background:rgba(251,67,40,.08); border-color:rgba(251,67,40,.35); }
.uppill::before { content:""; position:absolute; left:8px; top:50%; width:6px; height:6px; margin-top:-3px; border-radius:50%; background:#3fbf91; box-shadow:0 0 0 0 rgba(63,191,145,.6); animation:pulse 2s infinite; }
.uppill.off::before { background:#777; animation:none; }
.tb-quick { padding:7px 14px; font-size:13px; border-radius:10px; }
header { margin-bottom:16px; }
header h2 { font-size:26px; font-weight:700; letter-spacing:-.02em; display:flex; align-items:center; gap:10px; }

/* ---------- Botões ---------- */
.btn { border-radius:10px; background:var(--grad); background-size:180% 100%; background-position:0 0; box-shadow:0 6px 22px rgba(251,67,40,.22), inset 0 1px 0 rgba(255,255,255,.18); transition:background-position .5s var(--ease), transform .12s, box-shadow .2s, filter .2s; }
.btn:hover { background-position:100% 0; box-shadow:0 8px 28px rgba(251,67,40,.35), inset 0 1px 0 rgba(255,255,255,.2); filter:none; }
.btn:active, .tb-btn:active, header .actions .link:active { transform:scale(.97); }
header .actions { gap:6px; flex-wrap:wrap; }
header .actions .link { color:#d6d2d9; border:1px solid var(--line2); border-radius:10px; padding:7px 12px; font-size:13px; background:rgba(255,255,255,.02); transition:background .15s, border-color .15s, color .15s; }
header .actions .link:hover { background:rgba(255,255,255,.06); border-color:rgba(251,67,40,.45); color:var(--text); }
header .actions .link.danger { color:#f87171; }
.icon-btn { font-size:16px !important; line-height:1; padding:6px 11px !important; }
.link { transition:color .15s; } .link:hover { color:#ffc08a; }

/* ---------- Abas (controle segmentado) ---------- */
.tabs { display:inline-flex; gap:2px; padding:3px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.02); margin-bottom:16px; border-bottom:1px solid var(--line); }
.tabs button { border:0; border-radius:9px; padding:7px 14px; margin:0; font-size:13px; transition:background .2s var(--ease), color .2s; }
.tabs button.on { background:linear-gradient(180deg, rgba(251,67,40,.18), rgba(251,67,40,.08)); color:var(--text); border-image:none; box-shadow:inset 0 0 0 1px rgba(251,67,40,.35), 0 0 18px rgba(251,67,40,.12); }

/* ---------- Superfícies (cartões, painéis) ---------- */
.widget, .chart, .gl-kpi, .hm-tile, .ag-day, .col, .stat-box, .card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); backdrop-filter:blur(10px); }
.widget, .chart, .gl-kpi, .hm-tile { transition:border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.widget:hover, .chart:hover, .gl-kpi:hover { border-color:rgba(251,67,40,.22); box-shadow:0 10px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(251,67,40,.05); }
.gl-kpi:hover, .hm-tile:hover, .chart.stat-box:hover { transform:translateY(-2px); }
.widget h3, .chart h3 { font-size:11px; letter-spacing:.12em; color:#8f8b95; }
.gl-kpi b, .hm-tile b, .stat-box b { font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.hm-tile.on { box-shadow:inset 0 -2px 0 var(--p), 0 0 24px rgba(251,67,40,.12); }

/* ---------- Listas de tarefas ---------- */
.thead { border-bottom:1px solid var(--line); font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:#6f6b75; }
.trow { border-top:1px solid rgba(255,255,255,.045); border-radius:10px; transition:background .15s, box-shadow .2s; }
.trow:hover { background:rgba(255,255,255,.035); box-shadow:inset 2px 0 0 rgba(251,67,40,.6); }
.pill { border-radius:7px; font-size:10.5px; letter-spacing:.05em; padding:3px 9px; }
.tag { border-radius:99px; font-size:10.5px; }

/* ---------- Campos ---------- */
input, select, textarea { background:rgba(255,255,255,.03); border:1px solid var(--line2); border-radius:10px; transition:border-color .15s, box-shadow .15s, background .15s; }
input:focus, select:focus, textarea:focus { outline:0; border-color:rgba(251,67,40,.7); box-shadow:0 0 0 3px rgba(251,67,40,.16); background:rgba(255,255,255,.045); }

/* ---------- Menus, janelas e avisos ---------- */
.menu { background:rgba(24,24,28,.92); backdrop-filter:blur(16px); border:1px solid var(--line2); border-radius:14px; box-shadow:0 20px 50px rgba(0,0,0,.55); }
.overlay { background:rgba(4,4,6,.62); backdrop-filter:blur(6px); }
.detail.mode-modal { background:rgba(4,4,6,.6); backdrop-filter:blur(6px); }
.d-card, .overlay > .card { border:1px solid var(--line2); border-radius:18px; background:rgba(18,18,21,.96); box-shadow:0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(251,67,40,.05); }
.toast, .warn-toast { backdrop-filter:blur(12px); }
.toast { background:rgba(30,30,34,.92); border-color:var(--line2); }

/* ---------- Animações ---------- */
@keyframes viewIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes popIn { from { opacity:0; transform:translateY(-4px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes zoomIn { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes slideIn { from { transform:translateX(40px); opacity:0; } to { transform:none; opacity:1; } }
@keyframes growX { from { transform:scaleX(0); } }
@keyframes fadeIn { from { opacity:0; } }
@keyframes pulse { 0% { box-shadow:0 0 0 0 rgba(63,191,145,.55); } 70% { box-shadow:0 0 0 7px rgba(63,191,145,0); } 100% { box-shadow:0 0 0 0 rgba(63,191,145,0); } }
@keyframes sliceIn { from { opacity:0; transform:scale(.7) rotate(-8deg); } }
.view-enter { animation:viewIn .42s var(--ease) both; }
.view-enter .hm-tiles > *, .view-enter .gl-kpis > *, .view-enter .pf-team > *, .view-enter #charts > *, .view-enter .bd-grid > *,
.view-enter .gl-grid > *, .view-enter .tg-grid > *, .view-enter .ag-week > *, .view-enter .hm-side > *, .view-enter .me-hero > * { animation:viewIn .5s var(--ease) both; }
.view-enter :is(.hm-tiles,.gl-kpis,.pf-team,#charts,.bd-grid,.gl-grid,.tg-grid,.ag-week,.hm-side,.me-hero) > :nth-child(2) { animation-delay:.04s; }
.view-enter :is(.hm-tiles,.gl-kpis,.pf-team,#charts,.bd-grid,.gl-grid,.tg-grid,.ag-week,.hm-side,.me-hero) > :nth-child(3) { animation-delay:.08s; }
.view-enter :is(.hm-tiles,.gl-kpis,.pf-team,#charts,.bd-grid,.gl-grid,.tg-grid,.ag-week,.hm-side,.me-hero) > :nth-child(4) { animation-delay:.12s; }
.view-enter :is(.hm-tiles,.gl-kpis,.pf-team,#charts,.bd-grid,.gl-grid,.tg-grid,.ag-week,.hm-side,.me-hero) > :nth-child(5) { animation-delay:.16s; }
.view-enter :is(.hm-tiles,.gl-kpis,.pf-team,#charts,.bd-grid,.gl-grid,.tg-grid,.ag-week,.hm-side,.me-hero) > :nth-child(6) { animation-delay:.2s; }
.view-enter :is(.hm-tiles,.gl-kpis,.pf-team,#charts,.bd-grid,.gl-grid,.tg-grid,.ag-week,.hm-side,.me-hero) > :nth-child(n+7) { animation-delay:.24s; }
.view-enter .group { animation:fadeIn .4s ease both; }
.view-enter :is(.bar, .gl-prog, .lv-bar) i { animation:growX .9s var(--ease) both; transform-origin:left; animation-delay:.15s; }
.menu:not(.hidden), .tlist:not(.hidden) { animation:popIn .16s var(--ease); }
.overlay:not(.hidden) > .card { animation:zoomIn .22s var(--ease); }
.overlay:not(.hidden) { animation:fadeIn .18s ease; }
.detail.mode-modal:not(.hidden) .d-card { animation:zoomIn .24s var(--ease); }
.detail.mode-side:not(.hidden) .d-card { animation:slideIn .26s var(--ease); }
.toast:not(.hidden), .warn-toast:not(.hidden) { animation:zoomIn .25s var(--ease); }
.view-enter .pie .slice { animation:sliceIn .6s var(--ease) both; }

/* ---------- Pizza: a fatia salta e mostra o rótulo ao passar o mouse ---------- */
.pie { overflow:visible; }
.pie .slice { transition:transform .25s var(--ease), opacity .2s, filter .25s; transform-box:fill-box; transform-origin:center; }
.pie:hover .slice { opacity:.42; }
.pie .slice:hover { opacity:1; transform:translate(var(--dx,0), var(--dy,0)) scale(1.04); filter:drop-shadow(0 6px 14px rgba(0,0,0,.6)) brightness(1.08); }
.legend li { transition:background .15s, opacity .2s; border-radius:6px; }
.legend li.hl { background:rgba(255,255,255,.06); }
.chart-tip { position:fixed; z-index:140; pointer-events:none; background:rgba(14,14,16,.95); border:1px solid var(--line2); border-radius:10px; padding:7px 12px; font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; box-shadow:0 12px 30px rgba(0,0,0,.55); white-space:nowrap; transition:opacity .12s; }
.chart-tip i { display:inline-block; width:9px; height:9px; border-radius:3px; margin-right:7px; vertical-align:0; }
.chart-tip small { color:var(--muted); font-weight:500; margin-left:6px; text-transform:none; letter-spacing:0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
}

/* ---------- 🔔 Notificações ---------- */
.tb-btn.bell { position:relative; display:inline-flex; align-items:center; justify-content:center; padding:6px 9px; border-radius:10px; }
.tb-btn.bell.ring svg { color:var(--accent); animation:bellRing 2.5s ease-in-out infinite; transform-origin:50% 10%; }
.tb-btn.bell .badge { position:absolute; top:-6px; right:-8px; margin:0; font-size:10px; padding:1px 6px; box-shadow:0 0 0 2px var(--bg); }
@keyframes bellRing { 0%, 80%, 100% { transform:rotate(0); } 84% { transform:rotate(14deg); } 88% { transform:rotate(-12deg); } 92% { transform:rotate(8deg); } 96% { transform:rotate(-4deg); } }
.notif { position:fixed; z-index:70; width:380px; max-height:72vh; display:flex; flex-direction:column; background:rgba(20,20,24,.96); backdrop-filter:blur(16px); border:1px solid var(--line2); border-radius:16px; box-shadow:0 24px 60px rgba(0,0,0,.6); animation:popIn .16s var(--ease); }
.nf-head { display:flex; justify-content:space-between; align-items:center; padding:12px 14px 8px; border-bottom:1px solid var(--line); }
.nf-head .link { font-size:12px; }
.nf-desk { margin:8px 12px 0; background:rgba(251,67,40,.08); border:1px dashed rgba(251,67,40,.4); color:var(--accent); border-radius:10px; padding:7px; cursor:pointer; font:inherit; font-size:12px; }
.nf-list { overflow:auto; padding:4px 8px 10px; }
.nf-day { font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:#5d5a62; padding:10px 6px 4px; }
.nf { position:relative; padding:9px 10px 9px 14px; border-radius:10px; font-size:13px; color:#c9c5cc; cursor:pointer; transition:background .15s; }
.nf:hover { background:rgba(255,255,255,.04); }
.nf.unread { color:var(--text); background:rgba(251,67,40,.06); }
.nf.unread::before { content:""; position:absolute; left:4px; top:15px; width:6px; height:6px; border-radius:50%; background:var(--p); box-shadow:0 0 8px var(--glow); }
.nf-txt b { color:var(--text); font-weight:600; }
.nf-task { font-size:12px; color:var(--muted); padding:3px 0 0 2px; display:flex; align-items:center; gap:6px; }
.nf-task:hover { color:var(--accent); }
.nf-at { position:absolute; right:10px; top:9px; font-size:10px; color:#5d5a62; }
.nf-empty { padding:30px 14px; text-align:center; color:var(--muted); font-size:13px; }
.mention { color:var(--accent); background:rgba(251,67,40,.1); border-radius:4px; padding:0 3px; font-weight:600; }

/* ---------- Ajuste interno x do cliente ---------- */
.adj-modal { width:480px; }
.adj-opts { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.adj-opt { background:rgba(255,255,255,.03); border:1px solid var(--line2); border-radius:14px; padding:14px 12px; color:var(--text); font:inherit; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; transition:border-color .15s, background .15s, transform .12s; }
.adj-opt span { font-size:26px; } .adj-opt b { font-size:14px; } .adj-opt small { font-size:11px; color:var(--muted); line-height:1.3; }
.adj-opt:hover, .adj-opt.on { border-color:var(--p); background:rgba(251,67,40,.08); transform:translateY(-1px); }
.adj-opt[data-by="cliente"]:hover, .adj-opt[data-by="cliente"].on { border-color:#4f8cff; background:rgba(79,140,255,.08); }
.sf-adj { display:inline-flex; gap:2px; margin-left:auto; } .sf-adj .link { font-size:12px; padding:4px 8px; }
.ac-adj { font-size:11px; padding:0 6px; border-radius:6px; margin-left:4px; } .ac-adj.cliente { background:rgba(79,140,255,.12); color:#9cc0ff; } .ac-adj.interno { background:rgba(245,185,66,.12); color:#f5c96b; }
.cli { color:#9cc0ff; }

/* ---------- Pacote e pauta do mês ---------- */
.pk-chip { margin-left:8px; font:inherit; font-size:11.5px; font-weight:700; padding:3px 10px; border-radius:99px; cursor:pointer; border:1px solid; background:none; }
.pk-chip.ok { color:#3fbf91; border-color:#1f5a3f; background:#10261c; } .pk-chip.miss { color:#f5b942; border-color:#6b531f; background:#2a2010; }
.pk-rows { display:flex; flex-direction:column; gap:6px; }
.pk-row { display:flex !important; flex-direction:row !important; align-items:center; gap:10px; } .pk-row span { width:110px; font-weight:600; color:var(--text); } .pk-row input { width:90px; }
.gp-modal { width:620px; } .gp-info { align-self:center; }
.gp-body { display:flex; flex-direction:column; gap:12px; max-height:52vh; overflow:auto; }
.gp-type { border:1px solid var(--line); border-radius:12px; padding:10px; }
.gp-th { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px; font-size:13px; } .gp-th .miss { color:#f5b942; } .gp-th .ok { color:#3fbf91; }
.gp-row { display:flex; gap:8px; margin-top:5px; } .gp-row .gp-name { flex:1; } .gp-row .gp-due { width:160px; flex:none; }
.pauta-rem { display:flex; align-items:center; gap:12px; flex-wrap:wrap; background:rgba(245,185,66,.06); border:1px solid rgba(245,185,66,.3); border-radius:12px; padding:10px 14px; margin-bottom:12px; font-size:13px; }
.pr-list { display:flex; gap:6px; flex-wrap:wrap; } .pr-list button { background:var(--card2); border:1px solid var(--line2); color:var(--text); border-radius:99px; padding:4px 10px; font:inherit; font-size:12px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.pr-list button:hover { border-color:#f5b942; } .pr-list small { color:#f5b942; font-weight:700; }

/* ---------- ❤️ Saúde dos clientes ---------- */
#healthWidget { margin-bottom:14px; }
#healthWidget h3 { display:flex; justify-content:space-between; align-items:center; }
.hl-sum { text-transform:none; letter-spacing:0; font-size:12px; color:var(--muted); }
.hl-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:10px; }
.hl-card { border:1px solid var(--line); border-radius:12px; padding:10px 12px; cursor:pointer; background:rgba(255,255,255,.02); transition:transform .2s var(--ease), border-color .2s; }
.hl-card:hover { transform:translateY(-2px); }
.hl-card.bad { border-color:rgba(240,68,56,.45); background:rgba(240,68,56,.05); } .hl-card.warn { border-color:rgba(245,185,66,.35); } .hl-card.ok { border-color:rgba(63,191,145,.25); }
.hl-top { display:flex; align-items:center; gap:10px; }
.hl-ring { --c:#3fbf91; width:44px; height:44px; border-radius:50%; flex:none; background:conic-gradient(var(--c) calc(var(--p) * 1%), #2a2a30 0); display:flex; align-items:center; justify-content:center; position:relative; }
.hl-card.warn .hl-ring { --c:#f5b942; } .hl-card.bad .hl-ring { --c:#f04438; }
.hl-ring::before { content:""; position:absolute; inset:5px; border-radius:50%; background:#141416; } .hl-ring b { position:relative; font-size:13px; }
.hl-name { display:flex; flex-direction:column; min-width:0; } .hl-name b { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; } .hl-name span { font-size:11px; color:var(--muted); }
.hl-why { margin:8px 0 0; padding-left:16px; font-size:11.5px; color:#c9c5cc; line-height:1.45; } .hl-why .ok { color:#3fbf91; list-style:none; margin-left:-16px; }
.hl-foot { margin-top:10px; font-size:11.5px; }
.health-chip { margin-left:6px; font-size:11.5px; font-weight:700; padding:3px 10px; border-radius:99px; border:1px solid; cursor:help; }
.health-chip.ok { color:#3fbf91; border-color:#1f5a3f; background:#10261c; } .health-chip.warn { color:#f5b942; border-color:#6b531f; background:#2a2010; } .health-chip.bad { color:#ff8a80; border-color:#7a2a24; background:#2a1210; }
.pd-n { font-size:10px; color:var(--muted); }
.me-stats { grid-template-columns:repeat(4,1fr); }
.notif { background:#141417; backdrop-filter:none; }
.sf-take { font-size:12.5px; color:#9cc0ff; } .sf-take:hover { color:#cfe0ff; }

/* ---------- Menu ⋯ da tarefa organizado ---------- */
.menu.pop .tm-sec { display:flex; align-items:center; gap:6px; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:#6f6b75; padding:10px 8px 3px; }
.menu.pop .tm-sec .sdot { width:8px; height:8px; }
.menu.pop .tmi { display:flex; align-items:center; gap:10px; padding:7px 8px; min-width:250px; }
.menu.pop .tmi-ic { width:20px; flex:none; text-align:center; font-size:14px; }
.menu.pop .tmi-tx { flex:1; display:flex; flex-direction:column; line-height:1.25; }
.menu.pop .tmi-tx small { font-size:11px; color:var(--muted); }
.menu.pop .tmi-r { color:var(--muted); }
.menu.pop .tmi-main { background:rgba(63,191,145,.08); border:1px solid rgba(63,191,145,.25); }
.menu.pop .tmi-main .tmi-ic { color:#3fbf91; font-weight:700; }
.menu.pop .tmi-main:hover { background:rgba(63,191,145,.16); }
.menu.pop .tmi.danger { color:#f87171; }

/* ---------- Arrastar blocos ---------- */
.dlayout { display:flex; flex-direction:column; gap:14px; }
.dlayout > .dblock { position:relative; margin:0 !important; }
.dlayout > .dblock:empty, .dlayout > .dblock:has(> .dhandle:only-child) { display:none; }
#dashPanel > .dblock.hidden { display:none !important; }
.dhandle { position:absolute; left:-26px; top:8px; z-index:3; width:20px; height:28px; border:0; border-radius:6px; background:transparent; color:#5d5a62; font-size:15px; line-height:1; cursor:grab; opacity:0; transition:opacity .15s, background .15s, color .15s; padding:0; }
.dblock:hover > .dhandle { opacity:1; }
.dhandle:hover { background:rgba(251,67,40,.12); color:var(--accent); }
.dhandle:active { cursor:grabbing; }
.dlayout.arranging > .dblock { outline:1px dashed rgba(255,255,255,.08); outline-offset:4px; border-radius:var(--r); }
.dblock.dragging { opacity:.45; outline:1px dashed var(--p) !important; }
.dl-reset { align-self:flex-start; font-size:12px; color:var(--muted); padding:2px 0; }
.hm-side { order:0; }

/* ---------- "A caminho de mim" como aviso ---------- */
.cm-list { display:flex; flex-direction:column; gap:6px; }
.cm-card { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--line); border-left:3px solid #9cc0ff; border-radius:10px; background:rgba(79,140,255,.04); cursor:pointer; transition:background .15s; }
.cm-card:hover { background:rgba(79,140,255,.08); }
.cm-card.late { border-left-color:#ff6b6b; }
.cm-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.cm-main > b { font-size:13px; display:flex; align-items:center; gap:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cm-sub { font-size:12px; color:var(--muted); } .cm-sub b { color:var(--text); font-weight:600; } .cm-sub .pill { font-size:9.5px; padding:1px 6px; }
.cm-sub .due { width:auto; font-size:12px; }
.cm-nudge { flex:none; font-size:12px; border:1px solid var(--line2) !important; border-radius:8px; padding:6px 10px !important; color:#9cc0ff; }
.cm-nudge:hover { border-color:#9cc0ff !important; color:#cfe0ff; } .cm-nudge:disabled { color:#3fbf91; cursor:default; }

/* ---------- Novo cliente nas Configurações ---------- */
.st-h { display:flex; justify-content:space-between; align-items:center; }
.st-h .btn { text-transform:none; letter-spacing:0; font-size:12px; }
.st-new { display:grid; grid-template-columns:2fr 1fr 1fr 70px; gap:10px; align-items:end; padding:12px; margin:0 0 12px; border:1px solid rgba(251,67,40,.3); border-radius:12px; background:rgba(251,67,40,.04); animation:popIn .18s var(--ease); }
.st-new label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
.st-new input[type=color] { height:38px; padding:3px; cursor:pointer; }
.st-new-act { grid-column:1 / -1; display:flex; justify-content:flex-end; gap:8px; }
.st-new .error { grid-column:1 / -1; }

/* ---------- Backups (Configurações) ---------- */
.bk-status { padding:9px 12px; border-radius:10px; font-size:13px; margin-bottom:10px; }
.bk-status.ok { background:#10261c; border:1px solid #1f5a3f; color:#bff3dc; } .bk-status.warn { background:#2a2010; border:1px solid #6b531f; color:#ffd58a; }
.bk-table th { text-align:left; font-size:11px; color:var(--muted); font-weight:600; padding:6px 6px 6px 0; }
.bk-table td { font-size:13px; }
.bk-status.off { background:rgba(255,255,255,.03); border:1px dashed var(--line2); color:var(--muted); } .bk-status.bad { background:#2a1210; border:1px solid #7a2a24; color:#ffb4ab; } .bk-status .link { margin-left:6px; padding:0; }

/* ---------- Senhas provisórias ---------- */
.pw-row { display:flex; gap:6px; align-items:center; } .pw-row input { flex:1; font-family:ui-monospace, Menlo, monospace; }
.pw-row .link { flex:none; white-space:nowrap; }
.team-warn { display:flex; align-items:center; gap:10px; flex-wrap:wrap; border-color:#7a2a24; background:#2a1210; color:#ffd2cc; }
.team-warn .btn { margin-left:auto; }
.newpw { width:560px; }
.np-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; font-size:13px; }
.np-row code { font-size:12px; }
.team-acts { white-space:nowrap; text-align:right; }
.team-acts .link + .link { margin-left:12px; }

/* Logo Orya Flow (arquivo SVG feito pelo Rafael) */
.flow-logo { height:46px; }

/* ---------- Lateral compacta: grupos só com ícones + busca de cliente (mais clientes à vista) ---------- */
aside { padding-top:14px; }
aside .logo { padding:2px 10px 10px; }
.nav-grp { position:relative; }
.nav-grp .nav-sec { cursor:pointer; user-select:none; padding:8px 12px 4px; }
.nav-grp .nav-sec:hover { color:var(--muted); }
.grp-tg { position:absolute; right:6px; top:4px; width:22px; height:22px; border:0; border-radius:6px; background:none; color:#5d5a62; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.grp-tg svg { width:14px; height:14px; transform:rotate(180deg); transition:transform .2s var(--ease); }
.grp-tg:hover { background:rgba(255,255,255,.06); color:var(--text); }
.nav-grp .nav li { padding:6px 12px; }
.nav-grp .nav li.active::before { top:6px; bottom:6px; }
/* Modo só ícones */
.nav-grp.mini { display:flex; align-items:center; gap:2px; padding:2px 0; }
.nav-grp.mini .nav-sec { display:none; }
.nav-grp.mini .nav { display:flex; flex:1; gap:2px; margin:0; }
.nav-grp.mini .nav li { flex:0 0 auto; width:40px; height:36px; padding:0; justify-content:center; }
.nav-grp.mini .nav li .nl { display:none; }
.nav-grp.mini .nav li .ni { width:19px; height:19px; }
.nav-grp.mini .nav li.active::before { left:10px; right:10px; top:auto; bottom:2px; width:auto; height:2px; }
.nav-grp.mini .nav li .badge { position:absolute; top:1px; right:0; margin:0; font-size:9px; padding:0 5px; line-height:14px; box-shadow:0 0 0 2px var(--side); }
.nav-grp.mini .grp-tg { position:static; flex:none; order:2; margin-left:auto; }
.nav-grp.mini .grp-tg svg { transform:none; }
.nav-grp.mini + .nav-grp.mini { border-top:1px solid rgba(255,255,255,.04); }
/* Busca de cliente */
.side-search { display:flex; align-items:center; gap:6px; margin:2px 4px 6px; padding:0 8px; height:30px; border-radius:8px; background:rgba(255,255,255,.04); border:1px solid transparent; transition:border-color .15s, background .15s; }
.side-search:focus-within { border-color:rgba(251,67,40,.5); background:rgba(255,255,255,.06); }
.side-search svg { width:14px; height:14px; color:#6a6670; flex:none; }
.side-search input { flex:1; min-width:0; background:none; border:0; outline:0; color:var(--text); font:inherit; font-size:12.5px; padding:0; height:100%; }
.side-search input::placeholder { color:#6a6670; }
.side-search input::-webkit-search-cancel-button { filter:invert(.6); }
aside.searching .side-tabs button.on { box-shadow:none; background:none; color:var(--muted); }
/* Linhas de cliente mais baixas */
#projectList li { padding:4px 10px; gap:8px; min-height:26px; }
.side-title { margin-top:4px; padding:6px 4px 4px; }
/* Rodapé enxuto */
.side-bottom { padding-top:8px; gap:0; }
.side-links { display:flex; align-items:center; gap:4px; padding:2px 8px 0; color:#4a474f; font-size:12px; }
.side-links .link { padding:2px 0; }
.kbd-q { margin-left:auto; cursor:help; color:#6a6670; font-size:13px; padding:0 2px; }
@media (max-width:800px) {
  #projectList { max-height:46vh; }
}

/* Atalho para o app de Atendimento (menu lateral) */
.nav li .ext { font-size:11px; color:#6a6670; }
.nav-grp.mini .nav li .ext { display:none; }
#navAtend:hover .ext { color:var(--accent); }
/* Início: botão para a Visão geral */
.hm-dash { background:rgba(255,255,255,.04); color:var(--text); border:1px solid var(--line2, rgba(255,255,255,.12)); box-shadow:none; }
.hm-dash:hover { background:rgba(251,67,40,.10); border-color:rgba(251,67,40,.45); }
/* Janela "Novo cliente" (botão + da lateral) */
.np-modal { width:460px; max-width:calc(100vw - 32px); }
.np-modal h3 { margin:0 0 14px; }
.np-grid { display:grid; grid-template-columns:1fr 110px 64px; gap:10px; align-items:end; }
.np-grid label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
.np-grid input[type=color] { height:38px; padding:3px; cursor:pointer; }
#npAbbr { text-transform:uppercase; letter-spacing:.06em; font-weight:600; }
.np-kind-l { font-size:12px; color:var(--muted); margin:14px 0 6px; }
.np-kind { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.np-kind button { display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; padding:10px 12px; border-radius:10px; border:1px solid var(--line); background:rgba(255,255,255,.02); color:var(--muted); font:inherit; cursor:pointer; transition:border-color .15s, background .15s, color .15s; }
.np-kind button b { color:var(--text); font-size:13.5px; }
.np-kind button span { font-size:11.5px; }
.np-kind button:hover { border-color:rgba(255,255,255,.2); }
.np-kind button.on { border-color:var(--p); background:rgba(251,67,40,.08); box-shadow:inset 0 0 0 1px rgba(251,67,40,.35); }
.np-hint { font-size:12px; margin:12px 0 0; }
@media (max-width:520px) { .np-grid { grid-template-columns:1fr 1fr; } .np-name { grid-column:1 / -1; } }

/* ---------- Ícones de linha (substituem os emojis) — desenhos em #icSprite ---------- */
.ic { width:1.12em; height:1.12em; vertical-align:-0.2em; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; display:inline-block; }
h2 > .ic, h3 > .ic, .widget h3 .ic, .st-h > .ic { color:var(--accent); }
h2 > .ic { width:.95em; height:.95em; vertical-align:-0.1em; margin-right:2px; }
.btn .ic, .link .ic, button .ic { vertical-align:-0.22em; }
.ic.gold { color:#f5b942; } .ic.silver { color:#c9ccd3; } .ic.bronze { color:#d08a4e; }
.ic.dot { width:.8em; height:.8em; vertical-align:-0.05em; } .ic.dot.ok { color:#3fbf91; } .ic.dot.warn { color:#f5b942; } .ic.dot.bad { color:#f04438; }
.lv-ic .ic { width:56%; height:56%; color:var(--accent); }
.bd-ic .ic { width:22px; height:22px; }
.bd:not(.got) .bd-ic .ic { opacity:.45; }
.adj-opt > span .ic { width:24px; height:24px; color:var(--accent); }
.kbd-q .ic { width:15px; height:15px; vertical-align:-3px; }
.widget h3 .ic, .hm-col h3 .ic { min-width:14px; min-height:14px; }

/* Pedidos de alteração do cliente (#/alteracoes) */
#changesView { padding:22px 26px; }
.cc-tabs { align-items:center; }
.cc-tabs input[type=month] { margin-left:auto; padding:5px 8px; width:auto; }
.cc-card { border:1px solid rgba(251,67,40,.4); background:rgba(251,67,40,.06); border-radius:12px; padding:12px 14px; margin-bottom:10px; max-width:980px; }
.cc-top { display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:13px; }
.cc-task { display:inline-flex; align-items:center; gap:6px; font-weight:600; }
.cc-task .dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.cc-text { margin:8px 0 4px; font-size:14px; line-height:1.45; }
.cc-meta { font-size:12px; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.cc-meta .link { margin-left:6px; display:inline-flex; align-items:center; gap:4px; }
.cc-acts { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.cc-acts .btn.ghost { background:transparent; border:1px solid var(--line2, rgba(255,255,255,.18)); color:var(--text); box-shadow:none; }
.cc-acts .btn.ghost:hover { border-color:var(--accent); }
.cc-acts .btn .ic { width:14px; height:14px; vertical-align:-2px; }
.cc-empty { padding:20px 0; display:flex; align-items:center; gap:8px; }
.cc-sum { display:flex; flex-wrap:wrap; gap:8px 18px; font-size:13px; margin-bottom:12px; color:var(--muted); }
.cc-sum b { color:var(--text); }
.cc-scroll { overflow-x:auto; }
.cc-table { font-size:12.5px; min-width:860px; }
.cc-table th { text-align:left; font-weight:600; color:var(--muted); padding:6px 8px 6px 0; border-bottom:1px solid var(--line); white-space:nowrap; }
.cc-table td { vertical-align:top; padding:7px 8px 7px 0; }

/* Cartão da conta (canto de baixo da lateral): um botão só, o resto vai no menu */
.me-card { display:flex; align-items:center; gap:9px; width:100%; background:none; border:1px solid transparent; border-radius:12px; padding:6px 8px; color:var(--text); font:inherit; cursor:pointer; text-align:left; }
.me-card:hover { background:var(--card2); border-color:var(--line); }
.me-card .nm { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.2; }
.me-card .nm b { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.me-card .nm small { font-size:11px; color:var(--muted); }
.me-chev { color:var(--muted); font-size:11px; }
#me { padding:0 4px; }
.menu.pop .tm-sep { height:1px; background:var(--line); margin:4px 0; }

.rl-row .rl-pick-hint { opacity:.45; font-size:13px; } .rl-row:hover .rl-pick-hint { opacity:1; color:var(--accent); }

/* link "ver registro" nos avisos do Atendimento */
#notifPanel a { color:var(--accent); }
