/* =========================================================
   AMARIX Atividades — quadro estilo Trello
   Complementa style.css (cópia do Portal, mesma identidade).
   ========================================================= */

/* ---- Hero com botão ---- */
.at-hero-inner {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 18px; flex-wrap: wrap;
  padding-right: 150px;               /* espaço para o símbolo dourado */
}

/* Atualizações em tempo real não repetem a animação de entrada */
.at-estatico > *, .at-estatico .at-col { animation: none !important; }

.at-stat-alerta .stat-num   { color: var(--red) !important; }
.at-stat-alerta .stat-label { color: var(--red) !important; }
.at-stat-alerta { border-color: rgba(214,69,69,.35) !important; }

/* ---- Filtros ---- */
.at-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.at-resp { margin-bottom: 0; flex: 0 1 auto; }
.at-resp .sub-tab { flex: 0 0 auto; }
.at-select, .at-search {
  height: 46px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--white); color: var(--text);
  font-size: 13px; font-weight: 600; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.at-select { max-width: 240px; }
.at-search { flex: 1; min-width: 180px; }
.at-select:focus, .at-search:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,.16); }

/* ---- Quadro ---- */
.at-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 12px;
}
.at-col {
  background: #ECEAE3;
  border-radius: 18px;
  padding: 14px 12px 12px;
  border-top: 3px solid var(--muted);
  min-height: 180px;
  transition: background .2s, box-shadow .2s;
  animation: fadeUp .5s var(--ease) both;
}
.at-col:nth-child(2) { animation-delay: .06s; }
.at-col:nth-child(3) { animation-delay: .12s; }
.at-col[data-status="afazer"]  { border-top-color: var(--navy-3); }
.at-col[data-status="fazendo"] { border-top-color: var(--gold); }
.at-col[data-status="feito"]   { border-top-color: var(--green); }
.at-col.drop-alvo { background: #FBF4DF; box-shadow: inset 0 0 0 2px var(--gold); }

.at-col-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); margin: 0 4px 12px;
}
.at-col-count {
  min-width: 26px; height: 22px; padding: 0 8px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--muted); font-size: 12px; letter-spacing: 0;
}
.at-col-cards { display: flex; flex-direction: column; gap: 10px; }
.at-col-empty {
  font-size: 12px; color: var(--muted); text-align: center;
  padding: 22px 10px; border: 1.5px dashed #D6D3CA; border-radius: 12px;
}
.at-col-mais {
  display: block; width: 100%; margin-top: 10px; padding: 9px;
  background: transparent; border: none; border-radius: 10px;
  font-size: 12px; font-weight: 700; color: var(--navy-3); cursor: pointer;
}
.at-col-mais:hover { background: rgba(255,255,255,.7); }

/* ---- Cartão ---- */
.at-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid #B9C0D3;
  border-radius: 14px;
  padding: 12px 13px 11px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, opacity .2s;
}
.at-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.at-card.dragging { opacity: .4; transform: rotate(2deg); }
.at-card.prio-alta  { border-left-color: var(--red); }
.at-card.prio-media { border-left-color: var(--gold); }
.at-card.prio-baixa { border-left-color: #B9C0D3; }
.at-card.is-done { opacity: .78; }
.at-card.is-done .at-card-title { text-decoration: line-through; text-decoration-color: rgba(23,33,63,.35); }

.at-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.at-prio {
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.prio-alta .at-prio  { color: var(--red); }
.prio-media .at-prio { color: var(--gold-lo); }

.at-due {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: #F4F2ED; padding: 3px 8px; border-radius: 99px; white-space: nowrap;
}
.at-due-today { background: #FFF5DA; color: #8A6200; }
.at-due-late  { background: #FDEDED; color: #C23434; }
.at-due-ok    { background: #E3F5EC; color: #16805C; }

.at-card-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); word-break: break-word; }
.at-card-client {
  display: inline-block; margin-top: 7px;
  font-size: 11px; font-weight: 700; color: var(--navy-3);
  background: rgba(27,41,85,.07); padding: 3px 8px; border-radius: 6px;
}
.at-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 9px; border-top: 1px solid #F0EEE8;
}
.at-owner { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.at-owner i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-1), #22377A); color: var(--gold-hi);
  font-size: 9px; font-weight: 800;
}
.at-owner em { font-style: normal; }
.at-move {
  border: 1.5px solid var(--border); background: var(--white); color: var(--navy-3);
  border-radius: 9px; padding: 5px 10px; font-size: 11px; font-weight: 800;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.at-move:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--gold-hi); }

/* ---- Realizadas ---- */
.at-month { margin-bottom: 26px; }
.at-month-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-lo); margin-bottom: 12px;
}
.at-month-title span {
  background: var(--white); color: var(--muted); border-radius: 99px;
  padding: 2px 9px; font-size: 11px; letter-spacing: 0;
}
.at-done-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 16px; margin-bottom: 8px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.at-done-item:hover { transform: translateX(3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.at-done-check {
  flex: 0 0 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1D9E75, #3DD39E); color: #fff; font-size: 13px; font-weight: 800;
}
.at-done-main { flex: 1; min-width: 0; }
.at-done-main strong { font-size: 14px; color: var(--text); }
.at-done-main div { font-size: 12px; color: var(--muted); margin-top: 2px; }
.at-done-date { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ---- Janela de edição ---- */
.at-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.at-modal-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.at-btn-excluir { color: var(--red); }
.at-btn-excluir:hover { border-color: var(--red); }
.at-modal-meta { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: right; }

/* ---- Celular ---- */
@media (max-width: 900px) {
  .at-board { grid-template-columns: 1fr; overflow-x: visible; }
  .at-col { min-height: 0; }
}
@media (max-width: 600px) {
  .at-hero-inner { padding-right: 0; }
  .at-hero-inner .btn { width: 100%; }
  .at-toolbar { flex-direction: column; align-items: stretch; }
  .at-select { max-width: none; }
  .at-form-grid { grid-template-columns: 1fr; }
}

/* ---- Importar reuniões ---- */
.imp-ajuda {
  background: #FFF9E8; border: 1px solid #F0DFA8; border-left: 4px solid var(--gold);
  border-radius: 14px; padding: 14px 18px; font-size: 13px; line-height: 1.6; color: var(--text);
  margin-bottom: 18px;
}
.imp-ajuda em { font-style: normal; font-weight: 800; }
.imp-barra { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.imp-contador { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--gold-lo); }

.imp-reuniao { margin-bottom: 22px; }
.imp-reuniao-titulo {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 10px;
}
.imp-reuniao-titulo span {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  background: linear-gradient(135deg, var(--navy-1), #22377A); color: var(--gold-hi);
  padding: 4px 10px; border-radius: 99px;
}
.imp-item {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 6px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.imp-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.imp-item input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy-2); flex: 0 0 auto; cursor: pointer; }
.imp-item-main { flex: 1 1 260px; min-width: 0; }
.imp-item-main strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.imp-item-main small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.imp-item.is-terceiro { background: #FAF9F6; }
.imp-item.is-terceiro strong { font-weight: 600; color: #4A5578; }
.imp-item.is-importada { opacity: .55; cursor: default; }
.imp-tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; flex: 0 1 auto; }
.imp-tag {
  font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap;
  background: #F4F2ED; color: var(--muted); padding: 3px 8px; border-radius: 99px;
}
.imp-tag-cli  { background: rgba(27,41,85,.08); color: var(--navy-3); }
.imp-tag-alta { background: #FDEDED; color: #C23434; }
.imp-tag-ok   { background: #E3F5EC; color: #16805C; }

.imp-rodape {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  padding: 14px 0 6px; background: linear-gradient(to top, var(--bg) 70%, rgba(244,242,237,0));
}
.imp-rodape .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
@media (max-width: 600px) {
  .imp-rodape .btn { width: 100%; }
  .imp-contador { margin-left: 0; width: 100%; }
}
