/* ============================================================
   XINGUZINHO_PLANNER_TAREFAS_CSS_V1
   ============================================================ */

.xpt-topbar{
  gap:16px;
  flex-wrap:wrap;
}

.xpt-topbar-acoes{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.xpt-filtros{
  padding:14px;
  margin-bottom:14px;
  display:grid;
  grid-template-columns:minmax(220px,1fr) 190px 190px;
  gap:10px;
}

.xpt-filtros input,
.xpt-filtros select{
  width:100%;
  margin:0;
  box-sizing:border-box;
}

.xpt-board{
  display:grid;
  grid-template-columns:repeat(4,minmax(245px,1fr));
  gap:12px;
  align-items:start;
  overflow-x:auto;
  padding-bottom:14px;
}

.xpt-coluna{
  min-width:245px;
  border:1px solid var(--tema-borda,#e2e8f0);
  border-radius:14px;
  background:var(--tema-card-2,#f8fafc);
  overflow:hidden;
}

.xpt-coluna-header{
  padding:13px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border-bottom:1px solid var(--tema-borda,#e2e8f0);
  background:var(--tema-card,#fff);
}

.xpt-coluna-header span{
  min-width:26px;
  height:26px;
  padding:0 7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--tema-card-2,#f1f5f9);
  font-size:12px;
  font-weight:800;
}

.xpt-coluna-corpo{
  min-height:190px;
  padding:10px;
  display:grid;
  gap:9px;
  align-content:start;
}

.xpt-card{
  padding:13px;
  border:1px solid var(--tema-borda,#e2e8f0);
  border-radius:12px;
  background:var(--tema-card,#fff);
  box-shadow:0 2px 8px rgba(15,23,42,.05);
  cursor:pointer;
}

.xpt-card[draggable="true"]{
  cursor:grab;
}

.xpt-card[draggable="true"]:active{
  cursor:grabbing;
}

.xpt-card:hover{
  box-shadow:0 8px 22px rgba(15,23,42,.09);
}

.xpt-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin-bottom:9px;
}

.xpt-prioridade,
.xpt-atrasada{
  padding:3px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
}

.xpt-urgente{
  background:rgba(239,68,68,.14);
}

.xpt-alta{
  background:rgba(249,115,22,.14);
}

.xpt-normal{
  background:rgba(14,165,233,.14);
}

.xpt-baixa{
  background:rgba(34,197,94,.14);
}

.xpt-atrasada{
  background:rgba(239,68,68,.13);
}

.xpt-card-titulo{
  display:block;
  font-size:14px;
  line-height:1.35;
}

.xpt-card-descricao{
  margin-top:7px;
  font-size:12px;
  line-height:1.45;
  color:var(--tema-texto-secundario,#64748b);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.xpt-card-meta{
  margin-top:10px;
  display:grid;
  gap:4px;
  font-size:11px;
  color:var(--tema-texto-secundario,#64748b);
}

.xpt-card-rodape{
  margin-top:10px;
  padding-top:8px;
  border-top:1px solid var(--tema-borda,#e2e8f0);
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:10px;
  color:var(--tema-texto-secundario,#94a3b8);
}

.xpt-vazio,
.xpt-carregando,
.xpt-erro{
  padding:28px 12px;
  text-align:center;
  color:var(--tema-texto-secundario,#94a3b8);
}

.xpt-erro{
  color:#b91c1c;
}

.xpt-overlay{
  position:fixed;
  inset:0;
  z-index:100700;
  background:rgba(15,23,42,.62);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:5vh 16px 18px;
  overflow:auto;
}

.xpt-modal{
  width:min(720px,96vw);
  max-height:90vh;
  overflow:auto;
  border-radius:16px;
  background:var(--tema-card,#fff);
  color:var(--tema-texto,#0f172a);
  border:1px solid var(--tema-borda,#e2e8f0);
  box-shadow:0 30px 90px rgba(15,23,42,.32);
}

.xpt-modal-pequeno{
  width:min(520px,96vw);
}

.xpt-modal-header{
  padding:18px 20px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--tema-borda,#e2e8f0);
}

.xpt-modal-header h3{
  margin:0 0 3px;
}

.xpt-modal-header span{
  font-size:12px;
  color:var(--tema-texto-secundario,#64748b);
}

.xpt-form{
  padding:20px;
  display:grid;
  gap:14px;
}

.xpt-form label{
  display:grid;
  gap:6px;
}

.xpt-form label > span{
  font-size:12px;
  font-weight:800;
}

.xpt-form input,
.xpt-form textarea,
.xpt-form select{
  width:100%;
  box-sizing:border-box;
  margin:0;
}

.xpt-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.xpt-check{
  display:flex !important;
  grid-template-columns:none !important;
  flex-direction:row;
  align-items:center;
  gap:8px !important;
  padding:12px;
  border:1px solid var(--tema-borda,#e2e8f0);
  border-radius:10px;
  background:var(--tema-card-2,#f8fafc);
}

.xpt-check input{
  width:auto;
}

.xpt-modal-acoes{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-top:4px;
}

.xpt-modal-acoes > div{
  display:flex;
  gap:8px;
}

.xpt-danger{
  color:#b91c1c;
  border-color:#fecaca;
}

.xpt-info{
  padding:12px;
  border-radius:10px;
  background:var(--tema-card-2,#f8fafc);
  color:var(--tema-texto-secundario,#64748b);
  font-size:12px;
  line-height:1.5;
}

@media(max-width:1100px){
  .xpt-board{
    grid-template-columns:repeat(4,minmax(270px,270px));
  }
}

@media(max-width:760px){
  .xpt-filtros{
    grid-template-columns:1fr;
  }

  .xpt-form-grid{
    grid-template-columns:1fr;
  }

  .xpt-topbar-acoes{
    width:100%;
    justify-content:flex-start;
  }

  .xpt-board{
    grid-template-columns:repeat(4,minmax(82vw,82vw));
  }
}
