/* Portal de implantação Sage — folha compartilhada por todos os clientes. */
* { box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; background: #080808; color: #e8e8e8; margin: 0; }
a { color: inherit; }
::selection { background: #00D4AA; color: #062b25; }

.card { background: #141414; border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #00D4AA; }
.muted { color: #6b7280; }

/* Status */
.s-concluido    { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.s-em_andamento { background: rgba(0,212,170,0.12);  color: #00D4AA; border: 1px solid rgba(0,212,170,0.25); }
.s-pendente     { background: rgba(251,191,36,0.10); color: #fbbf24; border: 1px solid rgba(251,191,36,0.22); }
.s-atrasado     { background: rgba(251,146,60,0.12); color: #fb923c; border: 1px solid rgba(251,146,60,0.25); }
.s-bloqueado    { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.s-a_definir    { background: rgba(107,114,128,0.10);color: #9ca3af; border: 1px solid rgba(107,114,128,0.20); }

/* Prioridade */
.p-ALTA   { background: rgba(239,68,68,0.10);  color: #f87171; border: 1px solid rgba(239,68,68,0.22); }
.p-MEDIA  { background: rgba(251,191,36,0.10); color: #fbbf24; border: 1px solid rgba(251,191,36,0.22); }
.p-NORMAL { background: rgba(107,114,128,0.10);color: #9ca3af; border: 1px solid rgba(107,114,128,0.18); }

/* Dots */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-concluido    { background: #4ade80; }
.dot-em_andamento { background: #00D4AA; box-shadow: 0 0 7px rgba(0,212,170,0.7); }
.dot-pendente     { background: #fbbf24; }
.dot-atrasado     { background: #fb923c; }
.dot-bloqueado    { background: #f87171; }
.dot-a_definir    { background: #6b7280; }

.badge { display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 0.22em 0.65em; border-radius: 9999px; white-space: nowrap; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.67rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: #4b5563; padding: 0.65rem 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.06); white-space: nowrap; }
td { padding: 0.8rem 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: top; font-size: 0.875rem; }
tr:last-child td { border-bottom: none; }
tr.done td { opacity: 0.5; }
tr.done .task-title { text-decoration: line-through; }
tr:hover td { background: rgba(255,255,255,0.01); }

.phase-card { background: #141414; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 0.9rem 1rem; min-width: 155px; text-decoration: none; display: block; transition: border-color 0.15s, transform 0.15s; }
.phase-card:hover { border-color: rgba(0,212,170,0.35); transform: translateY(-1px); }
.phase-card.maxima { border-color: rgba(0,212,170,0.2); }

.phase-section { border-top: 1px solid rgba(255,255,255,0.05); }
.phase-left-bar { border-left: 3px solid #00D4AA; padding-left: 0.75rem; }

.origem-sage     { color: #00D4AA; font-weight: 600; font-size: 0.82rem; }
.origem-cliente  { color: #60a5fa; font-weight: 600; font-size: 0.82rem; }
.origem-ambos    { color: #c084fc; font-weight: 600; font-size: 0.82rem; }

.notas-cell { font-size: 0.77rem; color: #6b7280; font-style: italic; }

/* Contador / linha do tempo */
.countdown { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-end; justify-content: space-between; }
.count-big { font-size: 2.6rem; font-weight: 700; line-height: 1; color: #f5f5f5; }
.count-big.alerta { color: #fb923c; }
.count-big.estourado { color: #f87171; }
.timebar { position: relative; background: rgba(255,255,255,0.06); border-radius: 9999px; height: 8px; margin-top: 1.25rem; }
.timebar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg,#00D4AA,#00b89a); border-radius: 9999px; display: block; }
.timebar > b { position: absolute; top: -4px; width: 2px; height: 16px; background: #f87171; border-radius: 2px; }

/* Ação necessária */
.acao-box { background: rgba(0,212,170,0.04); border: 1px solid rgba(0,212,170,0.22); border-radius: 12px; padding: 1.5rem; }
.acao-item { display: flex; gap: 0.875rem; align-items: flex-start; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.acao-item:last-child { border-bottom: none; }
.acao-check { appearance: none; width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,0.22); background: transparent; cursor: pointer; flex-shrink: 0; margin-top: 0.15rem; position: relative; transition: all 0.15s; }
.acao-check:hover { border-color: #00D4AA; }
.acao-check:checked { background: #00D4AA; border-color: #00D4AA; }
.acao-check:checked::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #06251f; font-size: 13px; font-weight: 800; }
.acao-item.marcado .acao-txt { opacity: 0.45; text-decoration: line-through; }

/* Formulário */
label.f { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; font-weight: 700; margin-bottom: 0.35rem; }
input.f, textarea.f { width: 100%; background: #0f0f0f; border: 1px solid rgba(255,255,255,0.09); border-radius: 8px; color: #e8e8e8; padding: 0.65rem 0.8rem; font-size: 0.875rem; font-family: inherit; }
input.f:focus, textarea.f:focus { outline: none; border-color: rgba(0,212,170,0.5); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.15rem; border-radius: 9px; border: 1px solid rgba(255,255,255,0.14); background: transparent; color: #e8e8e8; font-weight: 600; font-size: 0.85rem; font-family: inherit; cursor: pointer; transition: all 0.16s; text-decoration: none; }
.btn:hover { border-color: #00D4AA; color: #00D4AA; }
.btn-primary { background: #00D4AA; color: #062b25; border-color: #00D4AA; }
.btn-primary:hover { background: #14e8bd; color: #062b25; }
.btn-block { width: 100%; }

@media (max-width: 768px) {
  .hide-sm { display: none !important; }
  td, th { padding: 0.6rem 0.6rem; font-size: 0.82rem; }
  .count-big { font-size: 2rem; }
}
