/* Estilos para os cards de Meus Processos */
body {
    font-family: 'Poppins', sans-serif !important;
}

.link_meus_processos_links {
    background-color: white;
    color: #333333;
    font-weight: bold;
    text-decoration: none;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.processo-rj-form-list .form-item, .processo-rj-form-list-procurador .form-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: right !important;
    margin-top: 20px;
}

.text-2xl {
    font-size: 25px;
    line-height: 2rem;
}

.message-error {
    background: #c94d1c;
    border-radius: 10px;
    margin-top: 100px;
}

/* Hover effect - fundo amarelo */
.link_meus_processos_links:hover {
    background-color: #ffff00;
    color: #333333;
    font-weight: bold;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Garantir que o texto permaneça em negrito */
a.link_meus_processos_links {
    font-weight: bold !important;
}

a.link_meus_processos_links:hover {
    font-weight: bold !important;
    text-decoration: none !important;
}

/* ====== Container da tabela ====== */
.table-container {
  width: 100%;
  overflow-x: auto;
  background: transparent;
  padding: 8px;
}

/* ====== Tabela estilo Material ====== */
table.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff; /* fundo branco */
  color: #212121;      /* texto escuro */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-size: 14.5px;
  line-height: 1.45;
  transition: box-shadow 0.2s ease;
}

/* Cabeçalho fixo */
table.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafafa; /* tom bem claro */
  color: #424242;
  text-align: left;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}

/* Células do corpo */
table.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #333;
}

/* Listrado suave */
table.table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

/* Hover leve */
table.table tbody tr {
  transition: background 0.2s ease;
}
table.table tbody tr:hover {
  background: #f5f5f5;
}

/* Links de ação (chips estilo material) */
table.table td a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #1976d2 !important; /* azul material */
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
table.table td a:hover {
  background: #f0f7ff;
  border-color: #bbdefb;
}
table.table td a:active {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) inset;
}

/* Header adjustments */
header.aj-custom-header .aj-container {
    max-width: 100%;
    width: 90%;
    margin: 0 auto; /* Center it properly */
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Responsive Header */
@media (max-width: 768px) {
    header.aj-custom-header .aj-container {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0.5rem;
        flex-wrap: wrap; /* Allow wrapping if needed */
    }
    
    header.aj-custom-header .aj-container > a {
        margin-right: auto;
    }
    
    header.aj-custom-header .aj-container nav {
        margin-left: auto;
    }
    
    /* Adjust logo size on mobile */
    header.aj-custom-header .aj-container img {
        height: 32px !important; /* Smaller logo */
        width: 100% !important;
    }
    
    header.aj-custom-header .aj-container span.text-2xl {
        font-size: 1.25rem; /* Smaller text */
    }
}

#processo-rj-form-processos > header > div > nav > div > div.header-notification-bell-container > span{
  color: white !important;
}

#processo-rj-form-list > header > div > a > span{
    color: #000 !important;
    display: initial;
    font-weight: 700;
    font-family: 'Poppins' !important;
}

/* ====== Filtro (campo de busca) ====== */
#processo-filter {
  font: inherit;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0 12px;
  width: 100%; /* Fluid width */
  max-width: 400px; /* Max width for desktop */
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Mobile specific for filter and controls */
@media (max-width: 640px) {
    .header-controls {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
        gap: 10px !important;
    }
    
    /* Force wrapper to be full width */
    .header-controls .form-item,
    .header-controls .form-actions {
        width: 100% !important;
        margin: 0 !important;
        max-width: none !important;
        justify-content: center !important; /* Center content inside wrapper */
    }

    #processo-filter {
        max-width: none !important; /* Full width on mobile */
        width: 100% !important;
        margin-bottom: 0px;
        box-sizing: border-box; /* Ensure padding doesn't overflow */
    }
    
    #btn-ordenar-processos {
        width: 100% !important;
        justify-content: center;
        margin: 5px 0 0 0 !important; /* Reset all margins, keep top margin */
        box-sizing: border-box;
    }
    
    /* Fix container padding */
    .aj-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Fix card layout if needed */
    .rec-item .flex-col {
        width: 100%;
    }
    
    .rec-item .sm\:w-64 {
        width: 100% !important;
        border-bottom: 1px solid #eee;
    }

    .processo-rj-form-list .form-item, .processo-rj-form-list-procurador .form-item {
        justify-content: center !important;
    }
}
#processo-filter::placeholder {
  color: #999;
}
#processo-filter:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25,118,210,0.25);
}

/* ====== Botão ordenar estilo material ====== */
#btn-ordenar-processos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  cursor: pointer;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: none;
  background: #1976d2;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
#btn-ordenar-processos:hover {
  background: #1565c0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
#btn-ordenar-processos:active {
  background: #0d47a1;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}

/* ====== Responsividade ====== */
@media (max-width: 720px) {
  table.table {
    font-size: 13px;
  }
  table.table thead th,
  table.table tbody td {
    padding: 10px 12px;
  }
}

/* ====== Media Queries para Mobile - Meus Processos ====== */
@media screen and (max-width: 768px) {
  .link_meus_processos_links {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    margin: 8px 0;
    padding: 12px 10px;
    font-size: 14px;
  }
}

/* Layout do Header de Meus Processos - Seletor/Título e Busca */
.meus-processos-header-container {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    flex-wrap: wrap;
    align-items: center;
}

/* Elemento da esquerda (Seletor de Escritório ou Título) */
.meus_processos_nome {
    margin-right: auto !important;
    text-align: left;
}

/* Elemento da direita (Busca e Ordenar) */
#edit-header-controls {
    margin-left: auto !important;
    display: flex !important;
    gap: 8px !important; /* Ajuste o espaçamento conforme necessário */
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
}

#edit-header-controls .form-item {
    margin: 0 !important;
    padding: 0 !important;
}

.meus-processos-header-container {
    display: flex !important;
    justify-content: space-between !important;
    width: 97% !important;
    flex-wrap: wrap;
    align-items: center;

/* Ajustes Mobile para o Header */
@media screen and (max-width: 768px) {
    .meus-processos-header-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }
    
    .meus_processos_nome {
        width: 100%;
        margin-bottom: 0;
    }
    
    #edit-header-controls {
        width: 100%;
        margin-left: 0 !important;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    #processo-filter {
        width: 400px !important;
        max-width: 100% !important;

    }
}
}