/* =========================================================================
   Tema NeuroTasks — paleta ESCURA sobre o Bulma.
   Fundos: #111 (página), #1A1A1A (painéis), #252525 (elevado/inputs).
   Destaque: verde-limão da marca #E1FF04. Semânticas: danger/success/warning/info.
   ========================================================================= */
:root {
    --nt-bg:        #111111;
    --nt-bg-2:      #1A1A1A;  /* painéis / janelas */
    --nt-bg-3:      #252525;  /* inputs / superfícies elevadas */
    --nt-bg-hover:  #2E2E2E;
    --nt-border:    rgba(255, 255, 255, 0.09);
    --nt-border-2:  rgba(255, 255, 255, 0.16);
    --nt-border-accent: rgba(225, 255, 4, 0.40);  /* borda no tom de destaque */

    /* Cards/janelas: fundo mais claro + borda cinza clara (sem sombra) */
    --nt-card-bg:     #232323;
    --nt-card-border: rgba(255, 255, 255, 0.14);
    --nt-card-shadow: none;

    --nt-text:        #E8E8E8;
    --nt-text-strong: #FFFFFF;
    --nt-muted:       #8A8A8A;

    /* Cor de destaque da marca (verde-limão do logo N+). */
    --nt-accent:        #E1FF04;
    --nt-accent-light:  #EDFF5A;
    --nt-accent-dark:   #B4CC03;
    --nt-on-accent:     #111111;                 /* texto/ícones sobre o destaque */
    --nt-accent-glow:   rgba(225, 255, 4, 0.28);
    --nt-accent-soft:   rgba(225, 255, 4, 0.13);

    /* Cores semânticas */
    --nt-danger:   #FF4D6D;
    --nt-success:  #2ECD7A;
    --nt-warning:  #F5A623;
    --nt-info:     #4DA3FF;

    --nt-sidebar-w: 248px;

    /* Raio padrão dos componentes (botões, inputs, cards, modais). */
    --nt-radius: 7px;
}

/* ---- Base ---- */
/* Reduz a escala tipográfica de TODA a app: Bulma e o tema usam rem, então
   baixar a base de 16px encolhe fontes e espaçamentos proporcionalmente. */
html { background: var(--nt-bg); font-size: 14px; }
body {
    background: var(--nt-bg);
    color: var(--nt-text);
}
::selection { background: var(--nt-accent); color: var(--nt-on-accent); }

a { color: var(--nt-accent); transition: color .15s ease; }
a:hover { color: var(--nt-accent-light); }

.has-text-primary { color: var(--nt-accent) !important; }
.has-text-grey, .has-text-grey-light, .nt-muted { color: var(--nt-muted) !important; }
.has-text-dark, .has-text-black { color: var(--nt-text-strong) !important; }

strong { color: inherit; }
hr { background: var(--nt-border); height: 1px; }

/* Tipografia: adapta os padrões do Bulma às cores do tema escuro */
.title, .subtitle { color: var(--nt-text-strong); }
.subtitle { color: var(--nt-text); }
.title strong { color: inherit; }
.label { color: var(--nt-text); }
.help { color: var(--nt-muted); }
.content { color: var(--nt-text); }

/* Custom thin scrollbars (dark) */
* { scrollbar-width: thin; scrollbar-color: #333 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #333; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: #444; }

/* =========================================================================
   Buttons
   ========================================================================= */
.button {
    background-color: var(--nt-bg-3);
    border-color: var(--nt-border-2);
    color: var(--nt-text);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.button:hover { background-color: var(--nt-bg-hover); border-color: var(--nt-border-2); color: var(--nt-text-strong); }
.button:active { transform: translateY(1px); }
.button:focus, .button.is-focused { box-shadow: 0 0 0 0.125em var(--nt-accent-glow); }

.button.is-primary {
    background-color: var(--nt-accent);
    border-color: transparent;
    color: var(--nt-on-accent);
    font-weight: 700;
}
.button.is-primary:hover { background-color: var(--nt-accent-light); color: var(--nt-on-accent); }
.button.is-primary:focus { box-shadow: 0 0 0 0.125em var(--nt-accent-glow); }

/* "is-light" used as a subtle secondary action */
.button.is-light {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: transparent;
    color: var(--nt-text);
}
.button.is-light:hover { background-color: rgba(255, 255, 255, 0.13); color: var(--nt-text-strong); }

/* "is-white": ações só com ícone (menu/sair/parar) */
.button.is-white {
    background-color: transparent;
    border-color: transparent;
    color: var(--nt-muted);
}
.button.is-white:hover { background-color: rgba(255, 255, 255, 0.08); color: var(--nt-text-strong); }

.button.is-warning { background-color: var(--nt-warning); border-color: transparent; color: #1a1206; }
.button.is-warning:hover { background-color: #ffb840; color: #1a1206; }
.button.is-success { background-color: var(--nt-success); border-color: transparent; color: #04200f; }
.button.is-success:hover { background-color: #41dc8a; color: #04200f; }
.button.is-danger { background-color: var(--nt-danger); border-color: transparent; color: #2a0009; }
.button.is-danger:hover { background-color: #ff6a85; color: #2a0009; }
.button.is-info { background-color: var(--nt-info); border-color: transparent; color: #021326; }

.button.is-accent { background-color: var(--nt-accent); color: var(--nt-on-accent); border-color: transparent; }
.button.is-accent:hover { background-color: var(--nt-accent-light); color: var(--nt-on-accent); }

/* =========================================================================
   Form controls
   ========================================================================= */
.input, .textarea, .select select {
    background-color: var(--nt-bg-3);
    border-color: rgba(255, 255, 255, 0.09);
    color: var(--nt-text);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.input::placeholder, .textarea::placeholder { color: #6b6b6b; }
.input:hover, .textarea:hover, .select select:hover { border-color: rgba(255, 255, 255, 0.16); }
.input:focus, .textarea:focus, .select select:focus, .select select:focus-within {
    border-color: var(--nt-accent);
    box-shadow: 0 0 0 0.125em var(--nt-accent-glow);
}
.input[disabled], .textarea[disabled], .select select[disabled] { background-color: #1a1a1a; color: #5a5a5a; }
.select:not(.is-multiple):not(.is-loading)::after { border-color: var(--nt-accent); }
.select select option { background: var(--nt-bg-2); color: var(--nt-text); }
.field.has-addons .button { z-index: 1; }

/* =========================================================================
   Tables
   ========================================================================= */
.table {
    background-color: transparent;
    color: var(--nt-text);
}
.table th { color: var(--nt-accent); font-weight: 700; text-align: center; }
.table td, .table th {
    vertical-align: middle;
    border-color: var(--nt-border);
}
.table.is-hoverable tbody tr:not(.is-selected):hover { background-color: rgba(255, 255, 255, 0.035); }
.table thead th { border-color: var(--nt-border-2); color: var(--nt-accent); }

/* =========================================================================
   Layout shell
   ========================================================================= */
.nt-shell { display: flex; min-height: 100vh; }
.nt-sidebar {
    width: var(--nt-sidebar-w);
    background: var(--nt-bg-2);
    border-right: 1px solid var(--nt-border);
    position: fixed; top: 0; bottom: 0; left: 0;
    display: flex; flex-direction: column;
    z-index: 30;
}
.nt-main { flex: 1; margin-left: var(--nt-sidebar-w); display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 1; }

/* Fundo animado (partículas subindo) — usado no login e, opcionalmente, em telas
   do app (fica ATRÁS do conteúdo via z-index). Custo desprezível: CSS puro. */
.nt-particles { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.nt-particles span {
    position: absolute; bottom: -12px; border-radius: 50%;
    background: var(--nt-accent);
    box-shadow: 0 0 6px rgba(225, 255, 4, 0.55);
    opacity: 0;
    animation-name: nt-particle-rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes nt-particle-rise {
    0%   { transform: translateY(0) scale(1);   opacity: 0; }
    12%  { opacity: .65; }
    88%  { opacity: .45; }
    100% { transform: translateY(-105vh) scale(.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .nt-particles { display: none; }
}
.nt-content { padding: 1.75rem 2rem; flex: 1; animation: nt-fade-up .35s ease both; }

.nt-brand {
    /* padding-top igual ao espaço abaixo do logo até "GERAL"
       (brand 1.1 + nav 0.75 + label-group 0.8 = 2.65rem) */
    padding: 2.65rem 1.25rem 1.1rem;
}

.nt-nav { padding: 0.75rem 0.5rem; overflow-y: auto; flex: 1; }
.nt-nav .label-group {
    font-size: 0.7rem; text-transform: uppercase; color: var(--nt-muted);
    letter-spacing: 0.08em; padding: 0.8rem 0.85rem 0.35rem; font-weight: 700;
}
.nt-nav a {
    display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.85rem;
    border-radius: var(--nt-radius); color: var(--nt-text); font-weight: 500; font-size: 0.92rem;
    transition: background-color .15s ease, color .15s ease;
}
.nt-nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--nt-accent); }
.nt-nav a.is-active {
    background: rgba(225, 255, 4, 0.16);
    color: var(--nt-accent); font-weight: 700;
    box-shadow: inset 3px 0 0 var(--nt-accent);
}
.nt-nav a.is-active:hover { background: rgba(225, 255, 4, 0.22); }
.nt-nav a .ico { width: 18px; text-align: center; opacity: 0.85; }
.nt-nav a.is-active .ico { opacity: 1; }

/* Submenu recolhível (Dashboards → Desempenho / Financeiro) */
.nt-nav-sub > summary {
    display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.85rem;
    border-radius: var(--nt-radius); color: var(--nt-text); font-weight: 500; font-size: 0.92rem;
    cursor: pointer; list-style: none; user-select: none;
    transition: background-color .15s ease, color .15s ease;
}
.nt-nav-sub > summary::-webkit-details-marker { display: none; }
.nt-nav-sub > summary:hover { background: rgba(255, 255, 255, 0.05); color: var(--nt-accent); }
.nt-nav-sub > summary .ico { width: 18px; text-align: center; opacity: 0.85; }
.nt-nav-sub > summary .caret { margin-left: auto; font-size: 0.7rem; opacity: 0.6; transition: transform .15s ease; }
.nt-nav-sub[open] > summary .caret { transform: rotate(180deg); }
.nt-nav-sub > a { padding-left: 2.4rem; font-size: 0.88rem; }

.nt-user { border-top: 1px solid var(--nt-border); padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.6rem; }

/* Versão (rodapé da sidebar): linha divisória separa do usuário logado. */
.nt-version {
    display: block; text-align: center;
    border-top: 1px solid var(--nt-border);
    padding: 0.55rem 1rem; margin: 0;
    color: var(--nt-accent); font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.02em; transition: color .15s ease, background-color .15s ease;
}
.nt-version:hover { color: var(--nt-accent-light); background: rgba(255, 255, 255, 0.04); }

/* Botão "Reportar BUG" — canto superior direito, sobre qualquer tela. */
.nt-bug-fab {
    position: fixed; top: 14px; right: 16px; z-index: 45;
    background: var(--nt-bg-2); color: var(--nt-accent);
    border: 1px solid var(--nt-border-2); font-weight: 700; font-size: 0.82rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.nt-bug-fab:hover { color: var(--nt-on-accent); background: var(--nt-accent); border-color: var(--nt-accent); }

/* Anexos do report de bug (chips com nome do arquivo). */
.nt-bug-files { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.nt-bug-file {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--nt-bg-2); border: 1px solid var(--nt-border-2); border-radius: var(--nt-radius);
    padding: 0.25rem 0.5rem; font-size: 0.8rem; color: var(--nt-text);
}
.nt-bug-file-x {
    background: none; border: none; color: var(--nt-muted); cursor: pointer;
    font-size: 1rem; line-height: 1; padding: 0;
}
.nt-bug-file-x:hover { color: var(--nt-danger); }

/* Página de novidades / changelog. */
.nt-changelog-head { margin-bottom: 1.25rem; }
.nt-changelog-head .title { color: var(--nt-accent); }
.nt-changelog-table { width: 100%; background: transparent; }
.nt-changelog-table thead th {
    color: var(--nt-accent); font-size: 1.05rem; font-weight: 700;
    border-bottom: 2px solid var(--nt-border-2); background: transparent;
}
.nt-changelog-table td { border-color: var(--nt-border); vertical-align: top; }
.nt-changelog-table .chg-desc { color: var(--nt-accent); font-weight: 700; white-space: nowrap; }
.nt-changelog-table .chg-detail { color: var(--nt-text-strong); }
@media (max-width: 768px) {
    .nt-changelog-table .chg-desc { white-space: normal; }
    .nt-bug-fab span:not(.icon) { display: none; }  /* só o ícone no mobile */
}

/* ---- Notificações (sino + badge + balão) ---- */
.nt-bell {
    position: relative; flex: none; cursor: pointer;
    background: transparent; border: none; padding: 6px;
    color: var(--nt-accent); font-size: 1.05rem; line-height: 1; border-radius: var(--nt-radius);
    transition: background-color .15s ease;
}
.nt-bell:hover { background: rgba(255, 255, 255, 0.06); }
.nt-notif-badge {
    position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 999px; background: var(--nt-danger); color: #2a0009;
    font-size: 0.62rem; font-weight: 800; line-height: 16px; text-align: center;
    box-shadow: 0 0 0 2px var(--nt-bg-2);
}
.nt-notif-pop {
    position: fixed; left: 12px; bottom: 74px; width: 320px; max-width: calc(100vw - 24px);
    background: var(--nt-bg-2); border: 1px solid var(--nt-border-2); border-radius: var(--nt-radius);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55); z-index: 50; overflow: hidden;
    animation: nt-fade-up .18s ease both;
}
.nt-notif-head {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--nt-border);
}
.nt-notif-head .button { font-size: 0.7rem; height: auto; padding: .25rem .5rem; }
.nt-notif-list { max-height: 360px; overflow-y: auto; padding: 0.3rem; }
.nt-notif-item {
    display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.55rem 0.5rem;
    border-radius: var(--nt-radius); color: var(--nt-text); position: relative;
}
.nt-notif-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--nt-text); }
.nt-notif-item.is-unread { background: var(--nt-accent-soft); }
.nt-notif-ava {
    width: 30px; height: 30px; border-radius: 50%; background: var(--nt-accent);
    color: var(--nt-on-accent); display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 700; flex: none; overflow: hidden;
}
.nt-notif-ava.has-photo { background: transparent; }
.nt-notif-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.nt-notif-txt { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.nt-notif-line { font-size: 0.82rem; }
.nt-notif-body {
    font-size: 0.78rem; color: var(--nt-muted);
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.nt-notif-ago { font-size: 0.68rem; color: var(--nt-muted); margin-top: 1px; }
.nt-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nt-accent); flex: none; margin-top: 4px; }

/* ---- Dropdown do autocomplete de @menção ---- */
.nt-mention-menu {
    position: absolute; left: 0; top: 100%; margin-top: 4px; z-index: 60;
    width: 260px; max-width: 100%; background: var(--nt-bg-2);
    border: 1px solid var(--nt-border-2); border-radius: var(--nt-radius);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); max-height: 220px; overflow-y: auto; padding: 0.25rem;
}
.nt-mention-opt {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem;
    border-radius: var(--nt-radius); font-size: 0.85rem; cursor: pointer;
}
.nt-mention-opt:hover, .nt-mention-opt.is-active { background: var(--nt-accent-soft); color: var(--nt-accent); }

/* Menção @Nome dentro dos comentários publicados */
.nt-mention { color: var(--nt-accent); font-weight: 600; }

/* Blocos de modelo de e-mail (Configurações > Notificações) */
.nt-notify-block { border: 1px solid var(--nt-border); border-radius: var(--nt-radius); padding: 0.9rem 1rem; background: rgba(255,255,255,0.02); }
.nt-notify-block .label.is-small { font-size: 0.75rem; margin-bottom: 0.25rem; }
.nt-preview-btn { background: transparent; border: none; cursor: pointer; color: var(--nt-accent); font-size: 1rem; padding: 4px 8px; border-radius: 6px; flex: none; }
.nt-preview-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--nt-accent-light); }

/* Badges de variáveis (verde) com balãozinho de ajuda ao passar o mouse. */
.nt-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-var {
    position: relative; cursor: help;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem;
    background: var(--nt-accent-soft); color: var(--nt-accent);
    border: 1px solid var(--nt-border-accent); border-radius: 6px; padding: 2px 8px;
}
.nt-var::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--nt-bg-3); color: var(--nt-text);
    border: 1px solid var(--nt-border-2); border-radius: var(--nt-radius); padding: 6px 10px;
    font-family: Arial, Helvetica, sans-serif; font-size: 0.72rem; line-height: 1.35;
    width: max-content; max-width: 220px; white-space: normal; text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 80; pointer-events: none;
}
.nt-var::before {
    content: ''; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--nt-border-2);
    opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 80; pointer-events: none;
}
.nt-var:hover::after, .nt-var:hover::before { opacity: 1; visibility: visible; }

/* Rótulo pequeno reutilizável nos filtros de relatórios. */
.label.is-small { font-size: 0.75rem; margin-bottom: 0.25rem; }

/* Matriz de horas por dia (relatório timesheet) na tela. */
.nt-matrix { font-size: 0.8rem; }
.nt-matrix th, .nt-matrix td { white-space: nowrap; }
.nt-matrix .grp td { background: var(--nt-bg-3); font-weight: 700; color: var(--nt-accent); }
.nt-matrix th .dow { display: block; font-weight: 400; opacity: 0.55; font-size: 0.8em; }
textarea.nt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; }

/* ---- Top bar (timer lives here) ---- */
/* Botão de menu flutuante (só no mobile, quando a sidebar está recolhida) */
.nt-menu-fab { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 45; }

/* Global running-timer pill — flutuante no canto inferior direito */
#nt-timer-bar {
    display: none; align-items: center; gap: 0.75rem; background: #000;
    border: 1px solid var(--nt-border-2);
    color: #fff; padding: 0.4rem 0.5rem 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem;
    position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 40;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: nt-fade-in .25s ease both;
}
#nt-timer-bar.is-running { display: inline-flex; }
#nt-timer-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--nt-accent); animation: nt-pulse 1.1s infinite; }
#nt-timer-bar .nt-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--nt-accent); }
#nt-timer-bar .nt-stop {
    background: var(--nt-accent); color: var(--nt-on-accent); border: none; border-radius: 999px;
    width: 30px; height: 30px; cursor: pointer; transition: background-color .15s ease;
}
#nt-timer-bar .nt-stop:hover { background: var(--nt-accent-light); }
@keyframes nt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---- Avatars ---- */
.nt-avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--nt-accent);
    color: var(--nt-on-accent); display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; flex: none;
}
.nt-avatar.is-sm { width: 38px; height: 38px; font-size: 0.8rem; }
.nt-avatar.is-lg, .nt-avatar.nt-avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }
.nt-avatar.has-photo { background: var(--nt-bg-3); overflow: hidden; }
.nt-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* =========================================================================
   Cards / panels / stats
   ========================================================================= */
.nt-card, .nt-stat, .box, .card {
    background: var(--nt-card-bg);
    border: 1px solid var(--nt-card-border);
    border-radius: var(--nt-radius);
    color: var(--nt-text);
    box-shadow: var(--nt-card-shadow);
    animation: nt-fade-up .4s ease both;
}
.nt-card, .nt-stat { padding: 1.35rem 1.5rem; }

/* Espaçamento uniforme de 13px entre colunas, linhas e blocos de cards.
   O gutter de 13px vem de 6.5px de padding em cada coluna (6.5+6.5); a margem
   negativa alinha os cards às bordas do container; e os 13px entre blocos
   empilhados vêm de 6.5 (padding) + 6.5 (margin-bottom) + (-6.5) (margin-top do
   próximo) + 6.5 (padding do próximo). */
.columns { margin-left: -6.5px; margin-right: -6.5px; margin-top: -6.5px; }
.columns:not(:last-child) { margin-bottom: 6.5px; }
.column { padding: 6.5px; }
.mb-13 { margin-bottom: 13px !important; }

/* Descrição do projeto — rola por dentro (não cresce a view). */
.nt-desc-body { overflow-y: auto; padding-right: 6px; }
/* Não-gestor (standalone): largura total, altura máxima e rolagem. */
.nt-desc-box.is-standalone { display: flex; flex-direction: column; }
.nt-desc-box.is-standalone .nt-desc-body { max-height: 460px; }
/* Gestor (fill): acompanha EXATAMENTE a altura do bloco de stats ao lado. O
   conteúdo fica posicionado de forma absoluta (não empurra a altura do card),
   então a caixa mede o mesmo que os stats e o texto rola por dentro. */
.nt-desc-fill { position: relative; padding: 0 !important; height: 100%; min-height: 230px; }
.nt-desc-fill .nt-desc-inner { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 1.35rem 1.5rem; }
.nt-desc-fill .nt-desc-body { flex: 1 1 auto; min-height: 0; }

/* Grade 2x2 de stats (detalhe do projeto): 2 colunas com gaps EXATOS de 13px
   (grid evita a variação de espaçamento do flex quando a altura estica) e a
   mesma altura mínima nos quatro cards. */
.columns.nt-stat-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 0; height: 100%; align-content: start; }
.columns.nt-stat-2x2 > .column { padding: 0; width: auto !important; min-width: 0; }
.nt-stat-2x2 .nt-stat { min-height: 128px; }

/* Lista de Atividades: ~7 linhas visíveis, depois rola (cabeçalho fixo). */
.nt-table-scroll { max-height: 400px; overflow-y: auto; }
.nt-table-scroll table thead th { position: sticky; top: 0; background: var(--nt-card-bg); z-index: 1; }

/* Scrollbar verde nessas caixas roláveis. */
.nt-desc-body, .nt-table-scroll, .nt-chat { scrollbar-width: thin; scrollbar-color: var(--nt-accent) transparent; }
.nt-desc-body::-webkit-scrollbar, .nt-table-scroll::-webkit-scrollbar, .nt-chat::-webkit-scrollbar { width: 8px; }
.nt-desc-body::-webkit-scrollbar-thumb, .nt-table-scroll::-webkit-scrollbar-thumb, .nt-chat::-webkit-scrollbar-thumb { background: var(--nt-accent); border-radius: 999px; }
.nt-desc-body::-webkit-scrollbar-track, .nt-table-scroll::-webkit-scrollbar-track, .nt-chat::-webkit-scrollbar-track { background: transparent; }

/* Discussão em estilo chat: mais recentes embaixo; minhas à direita, outras à esquerda. */
.nt-chat { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; padding: 2px 8px 2px 2px; }
.nt-msg { display: flex; gap: .55rem; align-items: flex-end; }
.nt-msg.is-mine { justify-content: flex-end; }
.nt-msg-bubble { background: var(--nt-bg-3); border: 1px solid var(--nt-border); border-radius: 10px; padding: .45rem .7rem; max-width: 78%; }
.nt-msg:not(.is-mine) .nt-msg-bubble { border-bottom-left-radius: 3px; }
.nt-msg.is-mine .nt-msg-bubble { background: var(--nt-accent-soft); border-color: var(--nt-border-accent); border-bottom-right-radius: 3px; }
.nt-msg-head { font-size: .7rem; margin-bottom: 2px; }
.nt-msg-head strong { color: var(--nt-text-strong); }
.nt-msg-text { font-size: .9rem; line-height: 1.4; word-break: break-word; }
.card-header { box-shadow: 0 1px 0 var(--nt-border); }
.card-header-title { color: var(--nt-text-strong); }
.card-content { color: var(--nt-text); }
.card-footer, .card-footer-item { border-color: var(--nt-border); }

.nt-stat { height: 100%; }  /* cards de estatística com a mesma altura na linha */
.nt-stat .label { color: var(--nt-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.nt-stat .value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; margin-top: 0.25rem; color: var(--nt-text-strong); }
.nt-stat .value.pink { color: var(--nt-accent); }

/* Títulos das seções/cards: verde da marca e um pouco maiores. */
.nt-card .title.is-6 { color: var(--nt-accent); font-size: 1.1rem; }
.nt-stat .label { color: var(--nt-accent); }

/* =========================================================================
   Kanban
   ========================================================================= */
.kanban { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.kanban-col { background: transparent; border: 1px solid var(--nt-border); border-radius: var(--nt-radius); width: 300px; flex: none; padding: 0.6rem; }
/* Board de status (Projetos): colunas preenchem a largura total, sem sobra à direita.
   Em telas estreitas o overflow-x:auto herdado mantém a rolagem horizontal. */
.kanban.is-fill .kanban-col { flex: 1 1 0; width: auto; min-width: 220px; }
.kanban-col h3 { font-weight: 700; font-size: 0.85rem; padding: 0.4rem 0.5rem; display: flex; justify-content: space-between; color: var(--nt-text-strong); }
.kanban-col .count { color: var(--nt-muted); }
.kanban-list { min-height: 40px; }
.kanban-card {
    background: var(--nt-card-bg); border-radius: var(--nt-radius); padding: 1rem; margin-bottom: 0.6rem;
    border: 1px solid var(--nt-card-border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    color: var(--nt-text);
    animation: nt-fade-up .3s ease both;
    transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.kanban-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); border-color: var(--nt-border-2); }
/* Título do card (nome do projeto / etapa) na cor da marca */
.kanban-card-title { color: var(--nt-accent); }
.kanban-card .meta { font-size: 0.72rem; color: var(--nt-muted); }
.kanban-card .tag-deadline { color: var(--nt-accent); font-weight: 600; }

/* Stage column header: name + responsible */
.kanban-col .stage-owner { font-weight: 500; color: var(--nt-muted); font-size: 0.72rem; }

/* "Concluídas" column + finished cards — mesma cor das demais colunas, título branco */
.kanban-col.is-done h3 { color: var(--nt-text-strong); }
/* verde-escuro OPACO (equivale ao tint 12% sobre #232323) — sólido p/ as partículas não aparecerem atrás */
.kanban-card.is-done { background: #24372D; border-left: 3px solid var(--nt-success); }
.kanban-card.is-locked { opacity: 0.5; border-left: 3px solid var(--nt-border-2); }

/* ---- Activity row timer buttons ---- */
.timer-controls .button { border-radius: var(--nt-radius); }
.timer-controls .nt-elapsed { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 74px; display: inline-block; color: var(--nt-text); }
.activity-item.is-running { border-left: 3px solid var(--nt-accent); }

/* =========================================================================
   Agenda — mini-Gantt (linha do tempo de projetos)
   ========================================================================= */
.gantt { display: flex; flex-direction: column; gap: 0.5rem; }
.gantt-row { display: flex; align-items: center; gap: 0.75rem; }
.gantt-label { width: 200px; flex: none; line-height: 1.15; overflow: hidden; }
.gantt-label a { color: var(--nt-text); }
.gantt-label a:hover { color: var(--nt-accent); }
.gantt-track {
    position: relative; flex: 1; height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--nt-radius);
    /* linhas de grade sutis, alinhadas às marcações (a cada 2 dias) */
    background-image: repeating-linear-gradient(to right,
        rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px,
        transparent 1px, transparent var(--gantt-grid, 10%));
}
.gantt-head { height: 30px; }
.gantt-head .gantt-track { height: 30px; background: transparent; background-image: none; }
.gantt-tick {
    position: absolute; top: 0; transform: translateX(-50%);
    font-size: 0.68rem; color: var(--nt-muted); white-space: nowrap;
}
/* Marcador "HOJE" na régua, na fronteira cinza/amarelo (segue o dia atual) */
.gantt-today-marker {
    position: absolute; bottom: 0; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    z-index: 5; pointer-events: none;
}
.gantt-today-label {
    font-size: 0.56rem; font-weight: 800; letter-spacing: 0.06em;
    color: var(--nt-accent); line-height: 1;
}
.gantt-today-marker::after {
    content: ''; margin-top: 2px;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid var(--nt-accent);
}
.gantt-bar {
    position: absolute; top: 50%; transform: translateY(-50%);
    height: 24px; border-radius: 999px; min-width: 8px;
    display: flex; align-items: center; padding: 0 0.6rem;
    background: var(--nt-accent); color: var(--nt-on-accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3); z-index: 2;
    transition: filter .15s ease, transform .1s ease;
    overflow: hidden;
}
.gantt-bar:hover { filter: brightness(1.12); color: var(--nt-on-accent); }
/* progresso: dias JÁ decorridos em cinza escuro; o que falta fica na cor cheia */
.gantt-elapsed {
    position: absolute; top: 0; left: 0; bottom: 0;
    background: #2b2b2b;
    z-index: 1; pointer-events: none;
}
.gantt-bar.of-left .gantt-elapsed { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gantt-bar.of-left  { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gantt-bar.of-right { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.gantt-bar.is-point { width: 24px !important; padding: 0; justify-content: center; }
.gantt-bar.is-point .gantt-bar-label { display: none; }

/* cor por status */
.gantt-bar.is-not_started       { background: #6b6b6b; color: #fff; }
.gantt-bar.is-in_progress       { background: var(--nt-accent); color: var(--nt-on-accent); }
.gantt-bar.is-awaiting_approval { background: var(--nt-warning); color: #1a1206; }
.gantt-bar.is-completed         { background: var(--nt-success); color: #04200f; }
.gantt-bar.is-archived          { background: #3a3a3a; color: #aaa; }

@media (max-width: 768px) {
    .gantt-label { width: 120px; }
}

/* =========================================================================
   Status pills
   ========================================================================= */
.pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.pill.new, .pill.not_started, .pill.low { background: rgba(255, 255, 255, 0.07); color: var(--nt-muted); }
.pill.in_progress { background: var(--nt-accent-soft); color: var(--nt-accent); }
.pill.awaiting_approval, .pill.medium { background: rgba(245, 166, 35, 0.16); color: #f0a93a; }
.pill.done, .pill.completed { background: rgba(46, 205, 122, 0.16); color: #45d98a; }
.pill.archived { background: rgba(255, 255, 255, 0.05); color: #777; }
.pill.high { background: rgba(255, 77, 109, 0.16); color: #ff6f8a; }
.pill.returned { background: rgba(255, 77, 109, 0.14); color: #ff8fa3; }
.pill.adjust { background: rgba(245, 166, 35, 0.16); color: #f0a93a; }

/* =========================================================================
   Tags
   ========================================================================= */
.tag:not(body) { background-color: var(--nt-bg-3); color: var(--nt-text); }
.tag.is-primary { background-color: var(--nt-accent); color: var(--nt-on-accent); }
.tag.is-warning { background-color: var(--nt-warning); color: #1a1206; }
.tag.is-success { background-color: var(--nt-success); color: #04200f; }
.tag.is-danger { background-color: var(--nt-danger); color: #2a0009; }
.tag.is-info { background-color: var(--nt-info); color: #021326; }
.tag.is-light { background-color: var(--nt-accent); color: var(--nt-on-accent); font-weight: 700; }
.tag.nt-tag-edited { background-color: rgba(255, 120, 170, 0.18); color: #ff9ec2; font-weight: 700; }

/* =========================================================================
   Notifications / messages
   ========================================================================= */
.notification {
    background-color: var(--nt-bg-3);
    color: var(--nt-text);
    border: 1px solid var(--nt-border);
    animation: nt-fade-in .3s ease both;
}
.notification.is-success, .notification.is-light.is-success { background-color: rgba(46, 205, 122, 0.14); color: #7ce6ad; border-color: rgba(46, 205, 122, 0.3); }
.notification.is-danger,  .notification.is-light.is-danger  { background-color: rgba(255, 77, 109, 0.14); color: #ff90a4; border-color: rgba(255, 77, 109, 0.3); }
.notification.is-warning, .notification.is-light.is-warning { background-color: rgba(245, 166, 35, 0.14); color: #f3bd6e; border-color: rgba(245, 166, 35, 0.3); }
.notification.is-info,    .notification.is-light.is-info    { background-color: rgba(77, 163, 255, 0.14); color: #93c4ff; border-color: rgba(77, 163, 255, 0.3); }
.notification.is-primary, .notification.is-light.is-primary { background-color: var(--nt-accent-soft); color: var(--nt-accent-light); border-color: rgba(225, 255, 4, 0.3); }
.notification .delete { background-color: rgba(255, 255, 255, 0.25); }

/* =========================================================================
   Modals
   ========================================================================= */
.modal-background { background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-card-head, .modal-card-foot {
    background-color: var(--nt-bg-2);
    border-color: var(--nt-border);
}
.modal-card-body { background-color: var(--nt-bg-2); color: var(--nt-text); }
.modal-card-title { color: var(--nt-text-strong); }
.modal-card { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.modal.is-active .modal-card, .modal.is-active .modal-content { animation: nt-modal-in .25s ease both; }
.modal.is-active .modal-background { animation: nt-fade-in .25s ease both; }
.delete, .modal-close { background-color: rgba(255, 255, 255, 0.18); }
.delete:hover, .modal-close:hover { background-color: rgba(255, 255, 255, 0.3); }
/* Confirmação/devolução ficam ACIMA de outros modais (ex.: excluir projeto
   disparado de dentro do modal de edição). */
#nt-confirm-modal, #nt-reject-modal { z-index: 70; }

/* Modal AJAX que hospeda formulários de criação — o modal É o painel (título + form dentro) */
.nt-modal-content {
    position: relative;
    width: 686px; max-width: 94vw;
    max-height: calc(100vh - 80px); overflow-y: auto;
    background: var(--nt-card-bg);
    border: 1px solid var(--nt-card-border);
    border-radius: var(--nt-radius);
    padding: 2.5rem 2.75rem 2.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
/* título agora vive DENTRO do painel, com divisória (estilo do print) */
#nt-modal-body h1.title {
    margin: 0 0 1.5rem;
    padding: 0 2.5rem 1rem 0;
    border-bottom: 1px solid var(--nt-border);
}
/* o form interno deixa de ser um "card dentro de card": vira transparente */
#nt-modal-body .nt-card {
    max-width: none !important; width: 100%;
    background: transparent; border: none; box-shadow: none; padding: 0;
    animation: none;
}
/* mais respiro entre os campos dentro do modal */
#nt-modal-body .field:not(:last-child) { margin-bottom: 1.25rem; }
#nt-modal-body .label { margin-bottom: 0.45rem; }
#nt-modal-body .columns { margin-bottom: 0; }

/* Lista de etapas com rolagem própria (modal de modelo/projeto).
   Altura ~5 etapas; a barra fica SEMPRE visível (trilho fixo) para sinalizar
   que a área rola, e o polegar amarelo aparece quando passa de 5 etapas. */
.nt-stage-scroll {
    max-height: 250px;
    overflow-y: scroll;
    padding-right: .4rem;
    scrollbar-width: thin;                                   /* Firefox */
    scrollbar-color: var(--nt-accent) rgba(255, 255, 255, 0.10);
}
.nt-stage-scroll::-webkit-scrollbar { width: 10px; }
.nt-stage-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--nt-radius);
}
.nt-stage-scroll::-webkit-scrollbar-thumb {
    background: var(--nt-accent);
    border-radius: var(--nt-radius);
    border: 2px solid transparent;
    background-clip: padding-box;
}
.nt-stage-scroll::-webkit-scrollbar-thumb:hover { background: var(--nt-accent-light); }

/* botão de fechar dentro do painel (canto superior direito) */
.nt-modal-x {
    position: absolute; top: 1.1rem; right: 1.1rem;
    width: 34px; height: 34px; border-radius: var(--nt-radius);
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.06); border: none; color: var(--nt-muted);
    cursor: pointer; z-index: 2; font-size: 1rem;
    transition: background-color .15s ease, color .15s ease;
}
.nt-modal-x:hover { background: rgba(255, 255, 255, 0.13); color: var(--nt-text-strong); }

/* Etapas personalizadas: fontes ~1px maiores que o is-small padrão */
#custom_stages .input.is-small,
#custom_stages .select.is-small select { font-size: 0.85rem; }
#custom_stages .button.is-small { font-size: 0.82rem; }

/* =========================================================================
   Breadcrumb
   ========================================================================= */
.breadcrumb a { color: var(--nt-muted); }
.breadcrumb a:hover { color: var(--nt-accent); }
.breadcrumb li.is-active a { color: var(--nt-text-strong); }
.breadcrumb li + li::before { color: #444; }

/* =========================================================================
   Hero (used sparingly)
   ========================================================================= */
.hero { background: transparent; color: var(--nt-text); }
.hero .title, .hero .subtitle { color: var(--nt-text-strong); }

/* =========================================================================
   Timeline
   ========================================================================= */
.nt-timeline { display: flex; align-items: center; overflow-x: auto; padding: 1rem 0; }
.nt-timeline .node { display: flex; flex-direction: column; align-items: center; min-width: 120px; position: relative; }
.nt-timeline .node .dot {
    width: 26px; height: 26px; border-radius: 50%; background: var(--nt-bg-3);
    border: 3px solid var(--nt-border-2); z-index: 2;
}
.nt-timeline .node.done .dot { background: var(--nt-success); border-color: var(--nt-success); }
.nt-timeline .node.active .dot { background: var(--nt-accent); border-color: var(--nt-accent); box-shadow: 0 0 0 4px var(--nt-accent-soft); }
.nt-timeline .node.locked { opacity: 0.55; }
.nt-timeline .node.locked .dot { background: var(--nt-bg-3); border-color: var(--nt-border-2); }
.nt-timeline .node:not(:last-child)::after {
    content: ''; position: absolute; top: 13px; left: 50%;
    width: 100%; height: 3px; background: var(--nt-border-2); z-index: 1;
}
.nt-timeline .node.done:not(:last-child)::after { background: var(--nt-success); }
.nt-timeline .node small { margin-top: 0.4rem; font-size: 0.72rem; text-align: center; color: var(--nt-muted); line-height: 1.3; }
.nt-timeline .node small strong { color: var(--nt-text); }
/* Cor do estado da etapa na timeline (concluído/andamento/aguardando). */
.nt-timeline .node small.nt-state-done            { color: var(--nt-success); font-weight: 700; }
.nt-timeline .node small.nt-state-in_progress     { color: #f0a93a; font-weight: 700; }
.nt-timeline .node small.nt-state-awaiting_approval { color: #D6336C; font-weight: 700; }
.nt-timeline .node small.nt-state-new,
.nt-timeline .node small.nt-state-locked          { color: var(--nt-muted); }

/* =========================================================================
   Bars / mini charts
   ========================================================================= */
.nt-bar-track { background: rgba(255, 255, 255, 0.07); border-radius: 6px; height: 14px; overflow: hidden; }
.nt-bar-fill { height: 100%; background: var(--nt-accent); border-radius: 6px; transition: width .4s ease; }
.nt-bar-fill.yellow { background: var(--nt-accent-light); }

/* Dashboard — gráfico de colunas (projetos por status) */
.nt-columns { display: flex; align-items: flex-end; gap: 1rem; height: 180px; padding-top: 0.5rem; }
.nt-columns .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.nt-columns .col .n { font-weight: 800; font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--nt-text-strong); }
.nt-columns .col .bar { width: 100%; max-width: 60px; background: var(--nt-accent); border-radius: 6px 6px 0 0; min-height: 3px; }
.nt-columns .col .lbl { margin-top: 0.5rem; font-size: 0.72rem; color: var(--nt-muted); text-align: center; line-height: 1.15; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-columns .col[title] { cursor: default; }

/* Dashboard — pizza (prazo) + legenda */
.nt-pie { width: 150px; height: 150px; border-radius: 50%; flex: none; }
.nt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.4rem; vertical-align: middle; }

.nt-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.nt-chart .col { flex: 1; background: var(--nt-accent-dark); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; transition: background-color .15s ease; }
.nt-chart .col:hover { background: var(--nt-accent); }

/* =========================================================================
   Toast notifications (canto inferior direito, temporárias)
   ========================================================================= */
.nt-toast-stack { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.6rem; pointer-events: none; }
.nt-toast {
    pointer-events: all;
    min-width: 220px; max-width: 340px;
    background: var(--nt-bg-2);
    border-radius: var(--nt-radius);
    border-left: 3px solid var(--nt-success);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.88rem; color: var(--nt-text);
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
    position: relative;
    animation: nt-toast-in .25s ease both;
}
.nt-toast--success { border-left-color: var(--nt-success); background: rgba(46, 205, 122, 0.14); color: #7ce6ad; }
.nt-toast--danger  { border-left-color: var(--nt-danger);  background: rgba(255, 77, 109, 0.14); color: #ff90a4; }
.nt-toast--warning { border-left-color: var(--nt-warning); background: rgba(245, 166, 35, 0.14); color: #f0c07a; }
.nt-toast--info    { border-left-color: var(--nt-info); }
.nt-toast.is-hiding { animation: nt-toast-out .3s ease forwards; }
.nt-toast-close {
    position: absolute; top: 50%; right: 0.6rem; transform: translateY(-50%);
    background: none; border: none; color: var(--nt-muted); cursor: pointer;
    font-size: 1.1rem; line-height: 1; padding: 0.2rem 0.3rem;
}
.nt-toast-close:hover { color: var(--nt-text-strong); }
@keyframes nt-toast-in  { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }
@keyframes nt-toast-out { from { opacity:1; transform: translateX(0); } to { opacity:0; transform: translateX(20px); } }

/* =========================================================================
   Filter badges (Ativos / Inativos / Todos)
   ========================================================================= */
.nt-filter-badge {
    display: inline-flex; align-items: center;
    padding: .3rem .95rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600;
    border: 1.5px solid var(--nt-border-2);
    color: var(--nt-muted);
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.nt-filter-badge:hover { border-color: var(--nt-accent); color: var(--nt-accent); }
.nt-filter-badge.is-active,
a.nt-filter-badge.is-active { border-color: var(--nt-accent) !important; color: var(--nt-accent) !important; background: var(--nt-accent-soft) !important; }

/* =========================================================================
   Toggle switch
   ========================================================================= */
.nt-toggle { display: inline-flex; align-items: center; gap: 0.7rem; cursor: pointer; user-select: none; }
.nt-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.nt-toggle-track {
    width: 48px; height: 26px; border-radius: 999px;
    background: var(--nt-bg-hover); border: 1px solid var(--nt-border-2);
    position: relative; flex: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.nt-toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--nt-muted);
    transition: transform .2s ease, background-color .2s ease;
}
.nt-toggle input:checked ~ .nt-toggle-track { background: var(--nt-accent); border-color: var(--nt-accent); }
.nt-toggle input:checked ~ .nt-toggle-track .nt-toggle-thumb { transform: translateX(22px); background: var(--nt-on-accent); }
.nt-toggle-label { font-size: 0.92rem; color: var(--nt-text); }

/* =========================================================================
   Permissões do colaborador (form) — caixa com borda + hover na cor da marca
   ========================================================================= */
.nt-perms-box {
    border: 1px solid var(--nt-border-2);
    border-radius: var(--nt-radius);
    padding: 1rem 1.25rem 0.35rem;
    background: rgba(255, 255, 255, 0.02);
}
.nt-perms-box .checkbox { transition: color .15s ease; }
.nt-perms-box .checkbox:hover { color: var(--nt-accent); }
.nt-perms-box input[type="checkbox"] { accent-color: var(--nt-accent); margin-right: 0.4rem; }

/* =========================================================================
   Reordenar etapas por arraste (alça) — form de projeto/modelo
   ========================================================================= */
.stage-drag {
    display: inline-flex; align-items: center; justify-content: center;
    cursor: grab; color: var(--nt-muted); padding: 0 0.35rem; user-select: none;
}
.stage-drag:hover { color: var(--nt-accent); }
.stage-drag:active { cursor: grabbing; }
[data-sort-item].is-dragging { opacity: 0.5; }
[data-sortable] [data-sort-item] { transition: opacity .12s ease; }
/* Tipo de etapa: ícone no verde da marca — play (execução) / martelinho (aprovação). */
.stage-type-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; color: var(--nt-accent); font-size: 1.05rem; }

/* =========================================================================
   Misc
   ========================================================================= */
.progress { background-color: rgba(255, 255, 255, 0.07); }
.progress.is-primary::-webkit-progress-value { background-color: var(--nt-accent); }
.progress.is-primary::-moz-progress-bar { background-color: var(--nt-accent); }
.progress.is-primary { color: var(--nt-accent); }

.menu-label { color: var(--nt-muted); }
.menu-list a { color: var(--nt-text); }
.menu-list a:hover { background-color: rgba(255, 255, 255, 0.05); color: var(--nt-accent); }
.menu-list a.is-active { background-color: var(--nt-accent-soft); color: var(--nt-accent); }

.tabs a { color: var(--nt-muted); border-bottom-color: var(--nt-border); }
.tabs a:hover { color: var(--nt-text-strong); border-bottom-color: var(--nt-border-2); }
.tabs li.is-active a { color: var(--nt-accent); border-bottom-color: var(--nt-accent); }

.dropdown-content { background-color: var(--nt-bg-2); border: 1px solid var(--nt-border); }
.dropdown-item { color: var(--nt-text); }
.dropdown-item:hover { background-color: rgba(255, 255, 255, 0.05); color: var(--nt-accent); }

/* =========================================================================
   Animations
   ========================================================================= */
@keyframes nt-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes nt-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes nt-modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 768px) {
    .nt-sidebar { transform: translateX(-100%); transition: transform .2s; }
    .nt-sidebar.is-open { transform: translateX(0); }
    .nt-main { margin-left: 0; }
    /* espaço no topo p/ o botão de menu flutuante não cobrir o título */
    .nt-content { padding: 3.25rem 1rem 1rem; }
}
