/* Portal AUTH - Apps de expediente em coluna real dentro da Central v3.16.6 */

/* remove sobras dos modelos antigos */
#snetExpedientePanel,
#snetExpedienteBar,
#snetExpedienteWorkspaceDock{
  display:none !important;
}

/* A Central vira um grid de 2 colunas */
.snet-central-grid-mode{
  display:grid !important;
  grid-template-columns: 305px minmax(0, 1fr) !important;
  column-gap:18px !important;
  align-items:start !important;
}

/* Coluna direita com a Central original */
#snetCentralMain{
  grid-column:2 !important;
  min-width:0 !important;
}

/* Coluna esquerda */
#snetExpedienteCentral{
  grid-column:1 !important;
  grid-row:1 !important;

  width:100% !important;
  max-width:305px !important;
  box-sizing:border-box !important;

  background:#ffffff;
  border:1px solid #d9e3f0;
  border-radius:18px;
  box-shadow:0 10px 26px rgba(15,23,42,.08);

  padding:12px;
  margin:0;

  font-family:Arial, Helvetica, sans-serif;
  color:#0f172a;
}

/* cabeçalho */
#snetExpedienteCentral .snet-exp-central-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

#snetExpedienteCentral .snet-exp-central-title{
  font-size:16px;
  font-weight:900;
  line-height:1;
}

#snetExpedienteCentral .snet-exp-central-count{
  font-size:11px;
  font-weight:800;
  color:#64748b;
  background:#f1f5f9;
  border:1px solid #dbe3ef;
  border-radius:999px;
  padding:4px 7px;
}

/* ações */
#snetExpedienteCentral .snet-exp-central-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-bottom:10px;
}

#snetExpedienteCentral .snet-exp-central-btn{
  border:1px solid #d9e3f0;
  background:#f8fafc;
  color:#0f172a;
  border-radius:12px;
  padding:8px 8px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}

#snetExpedienteCentral .snet-exp-central-btn.primary{
  background:#1d4ed8;
  border-color:#1d4ed8;
  color:#fff;
}

/* lista */
#snetExpedienteCentral .snet-exp-central-list{
  display:flex;
  flex-direction:column;
  gap:7px;
}

#snetExpedienteCentral .snet-exp-central-app{
  display:grid;
  grid-template-columns:30px minmax(0, 1fr) 22px 43px;
  align-items:center;
  gap:8px;

  min-height:38px;
  padding:7px 8px;

  background:#fff;
  border:1px solid #e1e8f2;
  border-radius:13px;
}

#snetExpedienteCentral .snet-exp-central-icon{
  width:30px;
  height:30px;
  min-width:30px;
  min-height:30px;

  display:flex;
  align-items:center;
  justify-content:center;

  overflow:hidden;
  border-radius:8px;
  background:#fff;
}

#snetExpedienteCentral .snet-exp-central-icon img{
  width:24px;
  height:24px;
  max-width:24px;
  max-height:24px;
  object-fit:contain;
  display:block;
}

#snetExpedienteCentral .snet-exp-central-name{
  font-size:12px;
  font-weight:900;
  line-height:1.05;

  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

#snetExpedienteCentral .snet-exp-central-status{
  width:20px;
  height:20px;
  min-width:20px;
  min-height:20px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:50%;
  font-size:12px;
  font-weight:900;
  line-height:1;
}

#snetExpedienteCentral .snet-exp-central-status.unknown,
#snetExpedienteCentral .snet-exp-central-status.closed{
  background:#ffe7e7;
  border:1px solid #e26a6a;
  color:#b42318;
}

#snetExpedienteCentral .snet-exp-central-status.open{
  background:#eef6ef;
  border:1px solid #c7dcc8;
  color:#6e8f72;
  opacity:.75;
}

#snetExpedienteCentral .snet-exp-central-open{
  border:1px solid #d9e3f0;
  background:#fff;
  color:#0f172a;
  border-radius:10px;
  padding:6px 0;
  width:43px;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}

#snetExpedienteCentral .snet-exp-central-empty{
  padding:10px;
  font-size:12px;
  color:#64748b;
  border:1px dashed #d9e3f0;
  border-radius:12px;
  background:#f8fafc;
}

/* Em telas pequenas, volta empilhado */
@media (max-width:1100px){
  .snet-central-grid-mode{
    display:block !important;
  }

  #snetCentralMain{
    grid-column:auto !important;
  }

  #snetExpedienteCentral{
    max-width:none !important;
    margin-bottom:14px !important;
  }
}
