:root{
  --sechi-purple:#903A83;
  --sechi-purple-2:#7e2f72;
  --sechi-yellow:#F8B828;

  --bg:#f4f6fa;
  --card:#ffffff;
  --card-soft:#fafbfe;
  --text:#111827;
  --muted:#667085;
  --border:#e5e7eb;
  --border-soft:#eef2f6;

  --success-bg:#ecfdf3;
  --success-border:#b7ebc6;
  --success-text:#067647;

  --warn-bg:#fffaeb;
  --warn-border:#f5d58a;
  --warn-text:#b54708;

  --danger-bg:#fef3f2;
  --danger-border:#f3b6b2;
  --danger-text:#b42318;

  --info-bg:#f5f3ff;
  --info-border:#ddd6fe;
  --info-text:#5b21b6;

  --shadow:0 6px 18px rgba(16,24,40,.05);
  --radius:14px;
  --radius-sm:10px;
}

*{box-sizing:border-box;}

html, body{
  margin:0;
  padding:0;
  width:100%;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
}

/* ===== layout base ===== */
.wrap{
  width:100%;
  max-width:none;
  margin:0 auto;
  padding:8px 14px 18px;
}

.muted{color:var(--muted);}

/* ===== topbar ===== */
.topbar{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:20;
}

.topbar__inner{
  display:grid;
  grid-template-columns:auto minmax(420px,1fr) auto;
  align-items:center;
  gap:16px;
  min-height:66px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:46px;
  height:40px;
  border-radius:12px;
  background:linear-gradient(180deg, var(--sechi-purple) 0%, var(--sechi-purple-2) 100%);
  display:grid;
  place-items:center;
  box-shadow:0 6px 16px rgba(144,58,131,.22);
}

.logo span{
  font-weight:900;
  color:#fff;
  letter-spacing:.5px;
  font-size:12px;
}

.brand__text{
  display:flex;
  flex-direction:column;
}

.brand__title{
  font-weight:900;
  font-size:15px;
  line-height:1.1;
}

.brand__sub{
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}

.topbar-search{
  display:flex;
  justify-content:center;
  width:100%;
}

.topbar-search__form{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:nowrap;
  width:100%;
}

.topbar-search__form input,
.topbar-search__form select{
  height:38px;
  padding:0 12px;
  border:1px solid #cfd6df;
  border-radius:10px;
  background:#fff;
  font-size:13px;
  color:#101828;
}

.topbar-search__form input{width:320px;}
.topbar-search__form select{min-width:170px;}

.topbar-search__form .btn{
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.userbox{
  display:flex;
  align-items:center;
  gap:10px;
  justify-self:end;
}

.whoami{
  font-size:12px;
  color:var(--muted);
  text-align:right;
}

/* ===== cards ===== */
.card{
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
  padding:16px 18px;
  margin-top:10px;
  position:relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg, rgba(144,58,131,.75), rgba(144,58,131,.08));
}

.card h2,
.card h3,
.card h4{
  margin:0 0 10px;
  color:var(--text);
  letter-spacing:-.01em;
  line-height:1.2;
}

.card h2{
  font-size:1.15rem;
  font-weight:800;
}

.card h3{
  font-size:.98rem;
  font-weight:800;
}

.card h4{
  font-size:.9rem;
  font-weight:700;
}

.card p{
  margin:0 0 7px;
  color:var(--muted);
  line-height:1.45;
  font-size:13px;
}

.card p b,
.card p strong{
  color:var(--text);
}

.card hr{
  border:0;
  height:1px;
  background:var(--border);
  margin:12px 0;
}

.card--kanban{
  padding:10px;
  overflow:hidden;
}

.card--kanban-premium{
  position:relative;
  overflow:visible;
  padding:12px 6px;
  background:#fff;
  border:1px solid #e7ebf0;
  border-radius:16px;
}

/* ===== grids ===== */
.grid2,
.grid3,
.grid4{
  display:grid;
  gap:10px;
}

.grid2{grid-template-columns:repeat(2, minmax(0,1fr));}
.grid3{grid-template-columns:repeat(3, minmax(0,1fr));}
.grid4{grid-template-columns:repeat(5, minmax(0,1fr));}

.field--full{
  grid-column:1 / -1;
}

/* ===== fields / inputs ===== */
.field{
  padding:0;
  border:0;
  background:transparent;
}

.field label{
  display:block;
  font-size:12px;
  color:var(--text);
  font-weight:700;
  margin:0 0 5px;
}

.req::after{
  content:" *";
  color:#ef4444;
  font-weight:900;
}

.field input,
.field select,
.field textarea{
  width:100%;
  padding:9px 11px;
  border:1px solid #d8deea;
  border-radius:10px;
  font-size:13px;
  outline:none;
  background:#fff;
  color:var(--text);
  transition:.15s ease;
}

.field textarea{
  resize:vertical;
  min-height:84px;
}

.field input[type="file"]{
  padding:8px 10px;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:rgba(144,58,131,.55);
  box-shadow:0 0 0 3px rgba(144,58,131,.08);
}

.field-help{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}

/* ===== buttons ===== */
.actions,
.actions-left{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:12px;
}

.actions{justify-content:flex-end;}
.actions-left{justify-content:flex-start;}

.actions--right{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}

.btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:10px;
  min-height:34px;
  padding:0 13px;
  font-weight:800;
  cursor:pointer;
  font-size:12px;
  line-height:1;
  transition:all .15s ease;
}

.btn--primary{
  background:linear-gradient(180deg, var(--sechi-purple) 0%, var(--sechi-purple-2) 100%);
  color:#fff;
  border:1px solid var(--sechi-purple);
}

.btn--primary:hover{
  filter:brightness(1.03);
}

.btn--ghost{
  background:#fff;
  color:var(--sechi-purple);
  border:1px solid rgba(144,58,131,.30);
}

.btn--ghost:hover{
  background:#faf7fc;
}

.btn--ghost-sm{
  min-height:30px;
  padding:0 10px;
  font-size:11px;
}

.btn--danger{
  background:linear-gradient(180deg, #e5484d 0%, #ca353a 100%);
  color:#fff;
  border:1px solid #ca353a;
}

.btn--danger:hover{
  filter:brightness(1.03);
}

.btn--success{
  background:#176b35;
  color:#fff;
  border:1px solid #176b35;
}

/* ===== table ===== */
.table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
  background:#fff;
}

.table th,
.table td{
  border:1px solid var(--border);
  padding:9px 10px;
  text-align:left;
  font-size:13px;
}

.table th{
  background:#fafafa;
}

/* ===== badges ===== */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 7px;
  border-radius:999px;
  font-size:9px;
  font-weight:900;
  line-height:1.1;
  text-transform:uppercase;
  letter-spacing:.2px;
  background:#eee;
}

.badge--ok{background:#dcfce7; color:#166534;}
.badge--warn{background:#fef3c7; color:#92400e;}
.badge--danger{background:#fdecec; color:#b42318;}
.badge--info{background:#ede9fe; color:#5b21b6;}
.badge--nao-evoluiu{background:#ede9fe; color:#5b21b6;}
.badge--soft{background:#f1f5f9; color:#334155;}
.badge--nao-seguiu{background:#f1f5f9; color:#475569;}

/* ===== login ===== */
.login-page{
  background:linear-gradient(135deg, #4b2c5e, #7c5295);
  min-height:100vh;
  padding:20px;
}

.login-box{
  width:100%;
  max-width:420px;
  background:#fff;
  border-radius:16px;
  box-shadow:0 15px 40px rgba(0,0,0,.20);
  padding:30px;
  margin:60px auto;
}

.login-box h1{
  text-align:center;
  margin-bottom:10px;
  color:#4b2c5e;
  font-size:28px;
}

.login-box p{
  text-align:center;
  margin-bottom:22px;
  color:#666;
  font-size:14px;
}

.erro,
.sucesso{
  padding:12px;
  border-radius:8px;
  margin-bottom:18px;
  text-align:center;
  font-size:14px;
}

.erro{
  background:#ffe6e6;
  color:#b30000;
  border:1px solid #ffb3b3;
}

.sucesso{
  background:#e8f8ee;
  color:#0f6b30;
  border:1px solid #b5e3c3;
}

/* ===== generic helpers ===== */
.section-title{
  margin-top:0;
  margin-bottom:4px;
}

.searchbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.searchbar input,
.searchbar select{
  min-width:200px;
}

.doc-item,
.msg-item{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  margin-bottom:8px;
  background:#fff;
}

.doc-item p{
  margin:0 0 6px;
}

.doc-item .actions-left{
  margin-top:8px;
}

/* ===== alerts ===== */
.alert{
  border-radius:10px;
  padding:10px 12px;
  margin-top:10px;
  font-size:12px;
  line-height:1.4;
  font-weight:600;
  border:1px solid transparent;
}

.alert--info{background:var(--info-bg); color:var(--info-text); border-color:var(--info-border);}
.alert--warn{background:var(--warn-bg); color:var(--warn-text); border-color:var(--warn-border);}
.alert--ok{background:var(--success-bg); color:var(--success-text); border-color:var(--success-border);}
.alert--danger{background:var(--danger-bg); color:var(--danger-text); border-color:var(--danger-border);}

/* ===== checklist ===== */
.checklist{
  display:grid;
  gap:8px;
}

.checklist__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid var(--border-soft);
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
}

.checklist__label{
  font-weight:700;
  font-size:13px;
}

.checklist__ok,
.checklist__no{
  font-weight:900;
  font-size:11px;
}

.checklist__ok{color:#176b35;}
.checklist__no{color:#b42318;}

/* ===== metrics ===== */
.metric{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  box-shadow:var(--shadow);
}

.metric__title{
  font-size:11px;
  color:var(--muted);
  font-weight:800;
  text-transform:uppercase;
}

.metric__value{
  font-size:22px;
  font-weight:900;
  margin-top:5px;
  color:var(--sechi-purple);
}

/* ===== detalhe do cliente ===== */
.card-detalhe-topo{
  padding: 16px 18px;
}

.detalhe-topo{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 14px;
}

.detalhe-topo__info{
  flex: 0 1 760px;
  max-width: 760px;
  min-width: 0;
}

.detalhe-topo__info h2{
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.detalhe-topo__acoes{
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-start;
}

.info-lista-premium{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.info-lista-premium__item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 0 16px;
  background: #fbfcfe;
  border: 1px solid #e4e8f1;
  border-radius: 14px;
}

.info-lista-premium__label{
  font-size: 13px;
  font-weight: 800;
  color: #667085;
  white-space: nowrap;
}

.info-lista-premium__valor{
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  text-align: right;
  min-width: 0;
  margin-left: auto;
}

.info-lista-premium__valor span[class*="badge"],
.info-lista-premium__valor span[class*="status"]{
  margin-left: auto;
}
@media (max-width: 1100px){
  .detalhe-topo{
    flex-direction: column;
    align-items: stretch;
  }

  .detalhe-topo__info{
    flex: 1 1 auto;
    max-width: 100%;
  }

  .detalhe-topo__acoes{
    justify-content: flex-start;
  }
}

@media (max-width: 700px){
  .info-lista-premium__item{
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
  }

  .info-lista-premium__valor{
    text-align: left;
    margin-left: 0;
    width: 100%;
  }
}

/* ===== documentos explorer ===== */
.card-documentos-cliente{
  padding:16px;
}

.card-documentos-cliente__topo{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.card-documentos-cliente__topo h3{
  margin-bottom:4px;
}

.card-documentos-cliente__topo p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.lista-documentos-explorer{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.lista-documentos-explorer__head{
  display:grid;
  grid-template-columns:120px 160px 190px minmax(280px,1fr) 140px 130px;
  background:#f7f8fb;
  border-bottom:1px solid var(--border);
  font-size:11px;
  font-weight:800;
  color:#344054;
}

.lista-documentos-explorer__head > div{
  padding:8px 10px;
  border-right:1px solid #eef2f6;
}

.lista-documentos-explorer__head > div:last-child{
  border-right:none;
}

.lista-documentos-explorer__body{
  display:flex;
  flex-direction:column;
}

.lista-documentos-explorer__row{
  display:grid;
  grid-template-columns:120px 160px 190px minmax(280px,1fr) 140px 130px;
  align-items:center;
  min-height:46px;
  border-bottom:1px solid #eef2f6;
  transition:background .15s ease, transform .15s ease;
}

.lista-documentos-explorer__row:hover{
  background:#fafbfd;
}

.lista-documentos-explorer__row:last-child{
  border-bottom:none;
}

.lista-documentos-explorer__row > div{
  padding:6px 10px;
  border-right:1px solid #f4f6f9;
  font-size:12px;
  color:var(--text);
}

.lista-documentos-explorer__row > div:last-child{
  border-right:none;
}

.doc-badge-pessoa{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  padding:0 7px;
  border-radius:999px;
  background:#f1f3f7;
  color:#475467;
  font-size:10px;
  font-weight:800;
}

.col-pessoa .badge,
.badge-pessoa{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#344054;
  font-size:11px;
  font-weight:700;
}

.col-categoria,
.col-tipooutro,
.col-data{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.col-arquivo{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  overflow:hidden;
}

.doc-file-icon{
  flex:0 0 auto;
  font-size:15px;
  color:#667085;
}

.doc-file-name{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  min-width:0;
}

.col-acoes{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-width:0;
  flex-wrap:nowrap;
}

.btn-doc-acao{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d8dee8;
  border-radius:8px;
  background:#fff;
  color:#344054;
  cursor:pointer;
  font-size:14px;
  line-height:1;
  padding:0;
  flex:0 0 32px;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
  transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.btn-doc-acao:hover{
  background:#f8fafc;
  border-color:#cfd8e3;
  color:#101828;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(16,24,40,.08);
}

.btn-doc-acao i{
  font-size:14px;
}

.btn-doc-acao--danger{
  border-color:#efb4b8;
  color:#dc3545;
}

.btn-doc-acao--danger:hover{
  background:#dc3545;
  border-color:#dc3545;
  color:#fff;
}

.btn-doc-acao{
  position:relative;
}

.btn-doc-acao::after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%) translateY(4px);
  background:#101828;
  color:#fff;
  font-size:11px;
  font-weight:600;
  padding:6px 8px;
  border-radius:6px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:all .16s ease;
  z-index:20;
}

.btn-doc-acao:hover::after{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* ===== chat / histórico ===== */
.chat-processo{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}

.chat-processo__item{
  display:flex;
  width:100%;
}

.chat-processo__item.is-me{
  justify-content:flex-end;
}

.chat-processo__item.is-other{
  justify-content:flex-start;
}

.chat-processo__bubble{
  max-width:72%;
  border-radius:14px;
  padding:9px 11px;
  border:1px solid #e5e7eb;
  box-shadow:none;
}

.chat-processo__bubble.is-mensagem{
  background:#fff;
  border-color:#e4e7ec;
}

.chat-processo__item.is-me .chat-processo__bubble.is-mensagem{
  background:#f7ecfb;
  border-color:#e2c4eb;
}

.chat-processo__bubble.is-motivo{
  background:#fff7e8;
  border-color:#f1d089;
}

.chat-processo__item.is-me .chat-processo__bubble.is-motivo{
  background:#fff1cc;
  border-color:#efc15a;
}

.chat-processo__meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:6px;
  font-size:11px;
}

.chat-processo__meta strong{
  color:#101828;
}

.chat-processo__meta span{
  color:#667085;
  font-size:11px;
}

.chat-processo__tag{
  display:inline-flex;
  align-items:center;
  margin-bottom:6px;
  padding:0 8px;
  min-height:20px;
  border-radius:999px;
  background:#101828;
  color:#fff;
  font-size:9px;
  font-weight:800;
}

.chat-processo__text{
  font-size:13px;
  line-height:1.42;
  color:#101828;
  white-space:pre-wrap;
}

/* ===== kanban ===== */
/* Estrutura antiga do kanban - mantida por segurança para telas legadas */
.kanban-pipeline{
  display:flex;
  gap:2px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:8px;
  align-items:flex-start;
  scroll-behavior:smooth;
}

.kanban-pipeline__col{
  flex:0 0 280px;
  width:280px;
  min-width:280px;
  max-width:280px;
  background:#f3f4f6;
  border:1px solid #dfe3ea;
  border-radius:10px;
  overflow:visible;
}

.kanban-pipeline__head{
  position:relative;
  min-height:46px;
  padding:7px 18px 7px 14px;
  border:0;
  box-shadow:none;
  overflow:visible;
  border-radius:0;
  width:calc(100% + 18px);
  margin-right:-18px;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 12px 50%);
}

.kanban-pipeline__head-title{
  font-size:10px;
  font-weight:700;
  line-height:1.05;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:.2px;
}

.kanban-pipeline__head-sub{
  margin-top:2px;
  font-size:9px;
  line-height:1.05;
  color:#fff;
  opacity:.95;
}

.kanban-pipeline__body{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:220px;
}

.kanban-pipeline__empty{
  border:1px dashed #d6dde6;
  border-radius:10px;
  padding:14px 10px;
  text-align:center;
  color:#6b7280;
  background:#fff;
  font-size:12px;
}

.kanban-pipeline__card{
  background:#fff;
  border:1px solid #d4d4d4;
  border-left:3px solid #cbd5e1;
  border-radius:10px;
  padding:8px;
  margin-bottom:8px;
  box-shadow:0 1px 4px rgba(15,23,42,.04);
}

.kanban-pipeline__card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:6px;
}

.kanban-pipeline__card-id{
  font-size:11px;
  font-weight:700;
  color:#6b7280;
}

.kanban-pipeline__card-title{
  font-size:13px;
  font-weight:700;
  color:#111827;
  margin-bottom:7px;
  line-height:1.22;
}

.kanban-pipeline__meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:11px;
  color:#4b5563;
  margin-bottom:8px;
  line-height:1.28;
}

.kanban-pipeline__badges{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-bottom:8px;
}

.kanban-pipeline__actions{
  display:flex;
  justify-content:flex-start;
}

.kanban-pipeline__actions .btn{
  width:100%;
  text-align:center;
}

.kanban-pipeline__body.drag-over,
.kanban-column__body.drag-over,
.kanban-column.drag-over .kanban-column__body{
  background:#f3ebf6;
  outline:2px dashed rgba(144,58,131,.35);
  outline-offset:-4px;
  border-radius:0 0 12px 12px;
}

.kanban-pipeline__card--draggable{
  cursor:grab;
  user-select:none;
}

.kanban-pipeline__card--draggable:active{cursor:grabbing;}

.kanban-pipeline__card.dragging{
  opacity:.55;
  transform:rotate(1deg);
}

/* cores das colunas */
.kanban-pipeline__col--rascunho .kanban-pipeline__head{background:#475569;}
.kanban-pipeline__col--rascunho .kanban-pipeline__card{border-left-color:#475569;}
.kanban-pipeline__col--recebido .kanban-pipeline__head,
.kanban-column.kanban-pipeline__col--recebido .kanban-pipeline__head{background:#3b82f6;}
.kanban-pipeline__col--recebido .kanban-pipeline__card{border-left-color:#2563eb;}
.kanban-pipeline__col--em_analise .kanban-pipeline__head,
.kanban-column.kanban-pipeline__col--em_analise .kanban-pipeline__head{background:#4f46e5;}
.kanban-pipeline__col--em_analise .kanban-pipeline__card{border-left-color:#7c3aed;}
.kanban-pipeline__col--falta_documento .kanban-pipeline__head,
.kanban-column.kanban-pipeline__col--falta_documento .kanban-pipeline__head{background:#d97706;}
.kanban-pipeline__col--nao_evoluiu .kanban-pipeline__head,
.kanban-column.kanban-pipeline__col--nao_evoluiu .kanban-pipeline__head{background:#e74100;}

.kanban-pipeline__col--nao_evoluiu .kanban-pipeline__card{border-left-color:#8b5cf6;}
.kanban-pipeline__col--falta_documento .kanban-pipeline__card{border-left-color:#f59e0b;}
.kanban-pipeline__col--aprovado .kanban-pipeline__head,
.kanban-column.kanban-pipeline__col--aprovado .kanban-pipeline__head{background:#059669;}
.kanban-pipeline__col--aprovado .kanban-pipeline__card{border-left-color:#16a34a;}
.kanban-pipeline__col--aprovado_nao_seguiu .kanban-pipeline__head,
.kanban-column.kanban-pipeline__col--aprovado_nao_seguiu .kanban-pipeline__head{background:#64748b;}
.kanban-pipeline__col--aprovado_nao_seguiu .kanban-pipeline__card{border-left-color:#475569;}
.kanban-pipeline__col--reprovado .kanban-pipeline__head,
.kanban-column.kanban-pipeline__col--reprovado .kanban-pipeline__head{background:#dc2626;}
.kanban-pipeline__col--reprovado .kanban-pipeline__card{border-left-color:#dc2626;}
.kanban-pipeline__col--condicionado .kanban-pipeline__head,
.kanban-column.kanban-pipeline__col--condicionado .kanban-pipeline__head{background:#7c3aed;}
.kanban-column.kanban-pipeline__col--vendidos .kanban-pipeline__head{background:#065f46;}
.kanban-pipeline__col--condicionado .kanban-pipeline__card{border-left-color:#9333ea;}

.page-head-kanban{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.page-head-kanban__left{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.page-head-kanban__left .section-title,
.page-head-kanban__left .muted{
  margin:0;
}

.page-head-kanban__right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.kanban-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  margin-bottom:4px;
  background:#fff;
  border:1px solid #e9ecef;
  border-radius:12px;
  flex-wrap:wrap;
}

.kanban-topbar__info{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:240px;
  flex:1;
}

.kanban-topbar__info h2{
  margin:0;
  font-size:20px;
  font-weight:700;
  color:#1f2937;
}

.kanban-topbar__subrow{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.kanban-topbar__subtitle{
  font-size:13px;
  color:#6b7280;
  white-space:nowrap;
}

.kanban-topbar__metrics,
.kanban-topbar__actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.kanban-topbar__actions{
  margin-left:auto;
}

.kanban-metric-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 8px;
  background:transparent;
  border:1px solid #e5e7eb;
  border-radius:6px;
  font-size:12px;
  color:#4b5563;
  line-height:1;
  cursor:default;
  transition:all .15s ease;
}

.kanban-metric-chip strong{
  font-weight:600;
  color:#111827;
  font-size:12px;
}

.kanban-metric-chip:hover{
  background:#f9fafb;
  border-color:#d1d5db;
}

.kanban-board-shell{
  display:flex;
  align-items:flex-start;
  gap:2px;
}

.kanban-inline-nav{
  width:18px;
  min-width:18px;
  height:46px;
  border:1px solid #d9e1ea;
  background:#fff;
  border-radius:10px;
  color:#4b5563;
  font-size:20px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .15s ease;
  box-shadow:0 2px 6px rgba(15,23,42,.05);
  margin-top:0;
  flex-shrink:0;
}

.kanban-inline-nav:hover{
  background:#f8fafc;
  border-color:#c9d3de;
  color:#111827;
}

.kanban-board-wrap{
  overflow-x:auto;
  overflow-y:visible;
  scrollbar-width:none;
  scroll-behavior:smooth;
  padding-bottom:2px;
  flex:1;
}

.kanban-board-wrap::-webkit-scrollbar{display:none;}

.kanban-board{
  display:flex;
  align-items:flex-start;
  gap:0;
  width:max-content;
  padding:0 4px;
  background-color:#efefef;
}

.kanban-column{
  width:260px;
  min-width:260px;
  flex-shrink:0;
}

.kanban-column__head{
  position:relative;
  z-index:5;
  margin-bottom:0;
  background:transparent;
}

.kanban-column__body{
  min-height:390px;
  background:#f6f8fa;
  border:1px solid #e7ebf0;
  border-top:0;
  border-radius:0 0 12px 12px;
  padding:4px;
  margin-right:1.5px;
}

.kanban-column--last .kanban-column__body{margin-right:0;}
.kanban-column--last .kanban-pipeline__head{width:100%; margin-right:0; border-top-right-radius:12px; border-bottom-right-radius:12px; clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%); padding-right:12px;}
.kanban-column--first .kanban-pipeline__head{border-top-left-radius:12px; border-bottom-left-radius:12px; clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); padding-left:14px;}
.kanban-column--first.kanban-column--last .kanban-pipeline__head{width:100%; margin-right:0; clip-path:none; border-radius:12px;}

/* card modelo */
.kanban-card-modelo{
  padding:12px;
}

.kanban-card-modelo__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  min-width:0;
}

.kanban-card-modelo__top-left{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:1;
  overflow:hidden;
}

.kanban-card-modelo__id{
  flex:0 0 auto;
  font-weight:800;
  font-size:13px;
  color:#1c2434;
  white-space:nowrap;
}

.kanban-card-modelo__status{
  display:inline-block;
  max-width:170px;
  font-size:9px;
  line-height:1.1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  vertical-align:middle;
}

.kanban-card-modelo__actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}

.kanban-card-modelo__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:20px;
  border-radius:8px;
  text-decoration:none;
  background:#f4f6fb;
  border:1px solid #dfe5f0;
  color:#25324a;
  font-size:15px;
  font-weight:700;
  transition:.18s ease;
}

.kanban-card-modelo__icon:hover{
  background:#edf2f8;
  transform:translateY(-1px);
}

.kanban-card-modelo__actions--bootstrap{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}

.kanban-card-modelo__btn{
  position:relative;
  width:17px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border-radius:8px;
  line-height:1;
  flex:0 0 20px;
  background-color: white;
}

.kanban-card-modelo__btn i{
  font-size:14px;
  line-height:1;
}

.kanban-card-modelo__btn::after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%) translateY(4px);
  background:#101828;
  color:#fff;
  font-size:11px;
  font-weight:600;
  padding:6px 8px;
  border-radius:6px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:all .16s ease;
  z-index:20;
}

.kanban-card-modelo__btn:hover::after{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.kanban-card-modelo__title{
  margin-top:10px;
  font-size:13px;
  line-height:1.2;
  font-weight:800;
  text-transform:uppercase;
  color:#111827;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kanban-card-modelo__info{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.kanban-card-modelo__line{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  color:#334155;
  font-size:13px;
  line-height:1.2;
}

.kanban-card-modelo__emoji{
  flex:0 0 auto;
  width:16px;
  text-align:center;
  font-size:13px;
}

.kanban-card-modelo__text{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.kanban-card-modelo__toggle{
  display:block;
  width:100%;
  margin-top:10px;
  padding:6px 8px;
  border-radius:8px;
  border:1px solid #e8edf5;
  background:transparent;
  color:#64748b;
  font-weight:600;
  font-size:11px;
  letter-spacing:.01em;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.kanban-card-modelo__toggle:hover{
  background:#f8fafc;
  color:#334155;
}

.kanban-card-modelo__toggle.is-open{
  background:#f8fafc;
  color:#0f172a;
}

.kanban-card-modelo__extra{
  max-height:0;
  opacity:0;
  overflow:hidden;
  margin-top:0;
  padding-top:0;
  border-top:0 solid #e8edf5;
  transition:max-height .35s ease, opacity .25s ease, margin-top .25s ease, padding-top .25s ease, border-color .25s ease;
}

.kanban-card-modelo__extra.is-open{
  max-height:220px;
  opacity:1;
  margin-top:10px;
  padding-top:10px;
  border-top-width:1px;
}

.kanban-card-modelo__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:8px;
}

.kanban-card-modelo__grid-item{min-width:0;}

.kanban-card-modelo__grid-item small,
.kanban-card-modelo__situacao small{
  display:block;
  margin-bottom:3px;
  font-size:8px;
  font-weight:800;
  letter-spacing:.05em;
  color:#64748b;
}

.kanban-card-modelo__grid-item strong{
  display:block;
  font-size:12px;
  line-height:1.2;
  color:#0f172a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kanban-card-modelo__situacao{
  margin-top:10px;
  min-width:0;
}

.kanban-card-modelo__situacao p{
  margin:0;
  font-size:12px;
  line-height:1.35;
  color:#334155;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* legado */
.card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.card-top-left{
  display:flex;
  align-items:center;
  gap:8px;
}

.card-id{font-weight:bold;}
.card-top-actions .btn-icon{text-decoration:none; font-size:16px;}
.card-title{font-weight:700; margin:10px 0;}

.card-info{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:14px;
}

.card-toggle{
  margin-top:10px;
  text-align:center;
  padding:6px;
  border-radius:6px;
  background:#f2f2f2;
  cursor:pointer;
  font-size:13px;
}

.card-extra{display:none; margin-top:10px;}

.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  font-size:12px;
}

.card-grid strong{
  display:block;
  font-size:14px;
}

.card-situacao{
  margin-top:10px;
  font-size:13px;
}

/* ===== filtro dashboard ===== */
.btn-filtro-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.btn-filtro-toggle.is-active{
  background:#faf7fc;
  border-color:rgba(144,58,131,.45);
}

.btn-filtro-toggle__count{
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:var(--sechi-purple);
  color:#fff;
  font-size:10px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.card--filter-panel{
  margin-top:8px;
  padding:0;
  overflow:hidden;
  max-height:0;
  opacity:0;
  border-width:0;
  box-shadow:none;
  transition:max-height .28s ease, opacity .22s ease, margin .22s ease, padding .22s ease, border .22s ease;
}

.card--filter-panel.is-open{
  max-height:420px;
  opacity:1;
  padding:14px 16px 16px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.filter-panel__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.filter-panel__header h3{
  margin:0 0 4px;
  font-size:16px;
  font-weight:900;
  color:var(--text);
}

.filter-panel__header p{
  margin:0;
  font-size:13px;
  color:var(--muted);
}

.filter-panel__form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.filter-panel__grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:12px;
}

.filter-panel__grid--corretor{
  grid-template-columns:2fr 1fr;
}

.filter-panel__actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* ===== responsive ===== */
@media(max-width:1100px){
  .kanban-topbar{align-items:flex-start;}
  .kanban-topbar__actions{margin-left:0;}
  .kanban-column{width:240px; min-width:240px;}
  .kanban-inline-nav{width:18px;}
  .filter-panel__grid{grid-template-columns:1fr 1fr;}
}

@media(max-width:980px){
  .grid2,
  .grid3,
  .grid4{grid-template-columns:1fr;}

  .topbar__inner{
    grid-template-columns:1fr;
    align-items:flex-start;
  }

  .topbar-search{
    justify-content:flex-start;
  }

  .topbar-search__form{
    flex-wrap:wrap;
    justify-content:flex-start;
  }

  .topbar-search__form input,
  .topbar-search__form select,
  .topbar-search__form .btn,
  .searchbar input,
  .searchbar select{
    width:100%;
    min-width:100%;
  }

  .userbox{
    width:100%;
    justify-content:space-between;
    justify-self:stretch;
  }

  .whoami{
    text-align:left;
  }
}

@media(max-width:900px){
  .page-head-kanban{
    flex-direction:column;
    align-items:flex-start;
  }

  .page-head-kanban__right{
    justify-content:flex-start;
  }

  .detalhe-topo{
    flex-direction:column;
  }

  .detalhe-topo__acoes{
    width:100%;
  }

  .detalhe-topo__acoes .btn,
  .detalhe-topo__acoes form{
    width:100%;
  }

  .actions,
  .actions-left{
    justify-content:stretch;
  }

  .actions .btn,
  .actions-left .btn{
    width:100%;
  }

  .chat-processo__bubble{
    max-width:100%;
  }
}

@media(max-width:768px){
  .kanban-card-modelo__grid{grid-template-columns:1fr;}
  .painel-admin-acoes__box,
  .card-anexo-admin{
    padding:14px;
  }
}

@media(max-width:720px){
  .filter-panel__grid,
  .filter-panel__grid--corretor{
    grid-template-columns:1fr;
  }

  .filter-panel__actions{
    justify-content:flex-start;
  }
}

.info-lista-premium{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:8px;
}

.info-lista-premium__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px;
  background:linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border:1px solid #e9edf5;
  border-radius:10px;
}

.info-lista-premium__label{
  font-size:11px;
  font-weight:800;
  color:#667085;
  min-width:120px;
  flex:0 0 auto;
}

.info-lista-premium__valor{
  font-size:12px;
  font-weight:700;
  color:#111827;
  text-align:right;
  flex:1;
  min-width:0;
  word-break:break-word;
}

.evolucao-admin-layout{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  align-items:stretch;
  width:100%;
}

.evolucao-admin-layout__col{
  min-width:0;
  background:#fff;
  border:1px solid #ebeef5;
  border-radius:12px;
  padding:12px;
}

.evolucao-admin-layout__col--side{
  min-width:0;
  background:linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
}

.evolucao-admin-layout__col{
  background:#fff;
  border:1px solid #ebeef5;
  border-radius:12px;
  padding:12px;
}

.evolucao-admin-layout__col--side{
  background:linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
}

.evolucao-admin-layout__col h4{
  margin:0 0 10px;
  font-size:13px;
  font-weight:800;
  color:#111827;
}

.evolucao-admin-upload-row{
  margin-top:10px;
}

@media (max-width: 980px){
  .evolucao-admin-layout{
    grid-template-columns:1fr;
  }

  .info-lista-premium__item{
    flex-direction:column;
    align-items:flex-start;
  }

  .info-lista-premium__valor{
    text-align:left;
    width:100%;
  }
}

@media (max-width:1280px){
  .lista-documentos-explorer{
    overflow-x:auto;
  }

  .lista-documentos-explorer__head,
  .lista-documentos-explorer__row{
    min-width:780px;
  }
}

/* =========================
   AJUSTE FINO - TOPO DO CLIENTE
   ========================= */

.card-detalhe-topo{
  padding: 16px 18px;
}

.detalhe-topo{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.detalhe-topo__info{
  min-width: 0;
}

.detalhe-topo__info h2{
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.detalhe-topo__acoes{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: flex-start;
  max-width: 360px;
}

.info-lista-premium{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 100%;
}

.info-lista-premium__item{
  display: flex;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  min-height: 44px;
  width: 320px;
}

.info-lista-premium__label{
  font-size: 12px;
  font-weight: 800;
  color: #667085;
  line-height: 1.2;
}

.info-lista-premium__valor{
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.info-lista-premium__valor span[class*="badge"],
.info-lista-premium__valor span[class*="status"]{
  margin-left: auto;
}

/* =========================
   AJUSTE FINO - EVOLUÇÃO DO CLIENTE
   ========================= */

.painel-admin-acoes{
  width:100%;
  margin-top:16px;
}

.painel-admin-acoes__box{
  width:100%;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
}

.painel-admin-acoes__box h3{
  margin:0 0 10px;
  font-size:1rem;
  font-weight:800;
  color:#111827;
}

.evolucao-admin-layout{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  width:100%;
  align-items:stretch;
}

.evolucao-admin-layout__col{
  display:flex;
  flex-direction:column;
  min-width:0;
  width:100%;
  border:1px solid #e4e8f1;
  border-radius:16px;
  background:linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding:14px;
  box-sizing:border-box;
}

.evolucao-admin-layout__col form{
  display:flex;
  flex-direction:column;
  height:100%;
  min-width:0;
}

.evolucao-admin-layout__col h4{
  margin:0 0 10px;
  font-size:.98rem;
  font-weight:800;
  color:#111827;
}

.evolucao-admin-layout .field{
  min-width:0;
}

.evolucao-admin-layout .field label{
  margin-bottom:5px;
  font-size:12px;
}

.evolucao-admin-layout input,
.evolucao-admin-layout select,
.evolucao-admin-layout textarea{
  width:100%;
  min-width:0;
  padding:8px 10px;
  font-size:13px;
  border-radius:10px;
  box-sizing:border-box;
}

.evolucao-admin-upload-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:8px;
}

.evolucao-admin-layout textarea{
  min-height:110px;
  max-height:110px;
  resize:none;
}

.evolucao-admin-layout .actions,
.evolucao-admin-layout .actions--right{
  margin-top:auto;
  padding-top:10px;
}

.evolucao-admin-layout .btn{
  min-width:0;
  width:100%;
  max-width:100%;
}

/* deixa a altura dos dois cards equilibrada */
.evolucao-admin-layout__col{
  align-self:stretch;
}

/* responsivo */
@media (max-width: 1200px){
  .evolucao-admin-layout{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  .evolucao-admin-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width: 700px){
  .evolucao-admin-upload-row{
    grid-template-columns:1fr;
  }
}

.info-lista-premium{
  width:100%;
  max-width:760px;
  border:1px solid #e4e8f1;
  border-radius:14px;
  background:linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  overflow:hidden;
}

.info-linha{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 16px;
  border-bottom:1px solid #eef2f7;
}

.info-linha:last-child{
  border-bottom:none;
}

.info-label{
  font-size:13px;
  font-weight:800;
  color:#667085;
}

.info-valor{
  font-size:13px;
  font-weight:700;
  color:#111827;
  text-align:right;
  margin-left:auto;
}

.info-valor span[class*="badge"],
.info-valor span[class*="status"]{
  margin-left:auto;
}

.card-detalhe-topo{
  padding:16px 18px;
}

.detalhe-topo{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  margin-bottom:14px;
}

.detalhe-topo__info{
  flex:1 1 auto;
  min-width:0;
  max-width:780px;
}

.detalhe-topo__info h2{
  margin:0 0 14px;
  font-size:1.5rem;
  font-weight:800;
  color:#111827;
}

.detalhe-topo__acoes{
  flex:0 0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  align-items:flex-start;
}

.info-lista-premium{
  width:100%;
  max-width:780px;
  border:1px solid #e4e8f1;
  border-radius:14px;
  background:linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  overflow:hidden;
}

.info-linha{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:46px;
  padding:10px 16px;
  border-bottom:1px solid #eef2f7;
}

.info-linha:last-child{
  border-bottom:none;
}

.info-label{
  font-size:13px;
  font-weight:800;
  color:#667085;
  white-space:nowrap;
  flex:0 0 auto;
}

.info-valor{
  font-size:13px;
  font-weight:700;
  color:#111827;
  text-align:right;
  margin-left:auto;
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}

.info-valor span[class*="badge"],
.info-valor span[class*="status"]{
  margin-left:auto;
}

.evolucao-admin-layout{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  align-items:stretch;
  width:100%;
}

.evolucao-admin-layout__col{
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  background:#fff;
  border:1px solid #e7eaf2;
  border-radius:14px;
  padding:14px;
}

.evolucao-admin-layout__col form{
  display:flex;
  flex-direction:column;
  height:100%;
}

.evolucao-admin-layout__col--side{
  background:linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
}

.evolucao-admin-upload-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:10px;
}

.evolucao-admin-layout .actions,
.evolucao-admin-layout .actions--right{
  margin-top:auto;
  padding-top:12px;
}

@media (max-width:1100px){
  .detalhe-topo{
    flex-direction:column;
    align-items:stretch;
  }

  .detalhe-topo__info{
    max-width:100%;
  }

  .detalhe-topo__acoes{
    justify-content:flex-start;
  }

  .evolucao-admin-layout{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:700px){
  .info-linha{
    flex-direction:column;
    align-items:flex-start;
    padding:10px 14px;
  }

  .info-valor{
    text-align:left;
    margin-left:0;
    width:100%;
  }

  .evolucao-admin-upload-row{
    grid-template-columns:1fr;
  }
}

.card-detalhe-topo{
  padding:16px 18px;
}

.detalhe-topo-linha1{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.detalhe-topo-linha1__titulo{
  min-width:0;
}

.detalhe-topo-linha1__titulo h2{
  margin:0;
  font-size:1.7rem;
  font-weight:800;
  color:#111827;
  line-height:1.1;
}

.detalhe-topo-linha1__acoes{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.detalhe-topo-linha2{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border:1px solid #e4e8f1;
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  margin-bottom:16px;
}

.detalhe-coluna-info{
  padding:12px 14px;
  border-right:1px solid #eef2f7;
  min-width:0;
}

.detalhe-coluna-info:last-child{
  border-right:none;
}

.detalhe-coluna-info__label{
  display:block;
  font-size:11px;
  font-weight:800;
  color:#667085;
  margin-bottom:6px;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.detalhe-coluna-info__valor{
  display:block;
  font-size:13px;
  font-weight:700;
  color:#111827;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.detalhe-coluna-info--corretor .detalhe-coluna-info__valor{
  overflow:visible;
  text-overflow:initial;
  white-space:normal;
}

.detalhe-corretor-box{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.detalhe-corretor-box__nome{
  min-width:120px;
}

.form-alterar-corretor{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}

.select-alterar-corretor{
  height:30px;
  max-width:170px;
  border:1px solid #d6dbe6;
  border-radius:9px;
  background:#fff;
  color:#111827;
  font-size:12px;
  font-weight:700;
  padding:0 8px;
  outline:none;
}

.select-alterar-corretor:focus{
  border-color:#7c3aed;
  box-shadow:0 0 0 3px rgba(124, 58, 237, .12);
}

.btn-alterar-corretor{
  height:30px;
  border:0;
  border-radius:9px;
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:800;
  padding:0 10px;
  cursor:pointer;
  transition:.18s ease;
}

.btn-alterar-corretor:hover{
  transform:translateY(-1px);
  filter:brightness(1.08);
}

@media (max-width: 1200px){
  .detalhe-topo-linha2{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px){
  .detalhe-topo-linha1{
    align-items:flex-start;
  }

  .detalhe-topo-linha1__acoes{
    justify-content:flex-start;
  }

  .detalhe-topo-linha2{
    grid-template-columns:1fr;
  }

  .detalhe-coluna-info{
    border-right:none;
    border-bottom:1px solid #eef2f7;
  }

  .detalhe-coluna-info:last-child{
    border-bottom:none;
  }
}

.evolucao-admin-layout__col--checklist{
  background:linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.checklist-box{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:6px;
}

.checklist-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid #e6eaf2;
  border-radius:10px;
  background:#fff;
  font-size:12px;
  font-weight:600;
  color:#374151;
}

.checklist-item input{
  width:15px;
  height:15px;
  accent-color:#7c3aed;
}

@media (max-width: 1200px){
  .evolucao-admin-layout{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  .evolucao-admin-layout{
    grid-template-columns:1fr;
  }
}

.resumo-admin-layout{
  display:grid;
  gap:16px;
  margin-top:14px;
  width:100%;
}

.resumo-admin-layout--3{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.resumo-admin-layout--2{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.resumo-admin-layout__col{
  display:flex;
  flex-direction:column;
  min-width:0;
  width:100%;
  border:1px solid #e4e8f1;
  border-radius:16px;
  background:linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding:14px;
  box-sizing:border-box;
}

.resumo-admin-layout__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.resumo-admin-layout__head h3{
  margin:0;
}

.resumo-admin-layout__col h3{
  margin:0 0 10px;
  font-size:1rem;
  font-weight:800;
  color:#111827;
}

.resumo-admin-lista{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.resumo-admin-lista__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 10px;
  border:1px solid #eef2f7;
  border-radius:10px;
  background:#fff;
}

.resumo-admin-lista__label{
  font-size:12px;
  font-weight:700;
  color:#667085;
  flex:0 0 auto;
}

.resumo-admin-lista__valor{
  font-size:12px;
  font-weight:700;
  color:#111827;
  text-align:right;
  min-width:0;
  overflow-wrap:anywhere;
}

@media (max-width: 1200px){
  .resumo-admin-layout--3{
    grid-template-columns:1fr;
  }

  .resumo-admin-layout--2{
    grid-template-columns:1fr;
  }
}

/* ===== PADRÃO MODAL SECHI (igual dragdrop) ===== */
.sechi-swal-popup .swal2-input {
    height: 38px !important;
    font-size: 14px !important;
    padding: 6px 10px !important;
}

.sechi-swal-popup label {
    font-size: 13px !important;
}

.sechi-swal-popup .swal2-html-container {
    margin-top: 10px !important;
}


/* Ajuste compacto do corretor no detalhe do cliente */
.detalhe-coluna-info--corretor {
    overflow: visible;
}

.detalhe-coluna-info--corretor .detalhe-corretor-box,
.detalhe-coluna-info--corretor .detalhe-corretor-box--inline {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    width: 100%;
    min-width: 0;
}

.detalhe-coluna-info--corretor .detalhe-corretor-box__nome {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    min-width: 0;
    max-width: 85px;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
}

.detalhe-coluna-info--corretor .form-alterar-corretor,
.detalhe-coluna-info--corretor .form-alterar-corretor--select-only {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto;
}

.detalhe-coluna-info--corretor .select-mudar-corretor {
    display: inline-block !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 26px !important;
    margin: 0 !important;
    padding: 2px 20px 2px 8px !important;
    border: 1px solid #d8dee8 !important;
    border-radius: 999px !important;
    background-color: #ffffff !important;
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
}

.detalhe-coluna-info--corretor .select-mudar-corretor:focus {
    outline: none !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18) !important;
}

@media (max-width: 900px) {
    .detalhe-coluna-info--corretor .detalhe-corretor-box,
    .detalhe-coluna-info--corretor .detalhe-corretor-box--inline {
        flex-wrap: wrap !important;
    }

    .detalhe-coluna-info--corretor .detalhe-corretor-box__nome {
        max-width: 120px;
    }

    .detalhe-coluna-info--corretor .select-mudar-corretor {
        width: 125px !important;
        min-width: 125px !important;
        max-width: 125px !important;
    }
}
