/* Minha Área - grid de cards com bordas arredondadas, consistente com o padrão
   introduzido em Licitações/Faixa de Domínio (header-padrao, cards, pills). */

/* Layout mestre-detalhe do detalhe da solicitação de Faixa de Domínio: lista
   compacta à esquerda (todas as solicitações continuam acessíveis) e detalhe
   à direita, sem overlay - dá espaço pra uma futura edição por item quando a
   Fase 2 existir, sem perder o contexto dos outros protocolos. */
.fd-split {
    display: grid;
    grid-template-columns: 240px 1fr;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    overflow: hidden;
    min-height: 420px;
    background: #fff;
}

.fd-split-list {
    background: #f8f9fb;
    border-right: 1px solid #e6e6e6;
    padding: 10px;
    overflow-y: auto;
}

.fd-split-list-item {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 6px;
    border: 1px solid transparent;
    transition: background-color .15s ease;
}

.fd-split-list-item:hover {
    background: #eef2f7;
}

.fd-split-list-item.active {
    background: #fff;
    border-color: #1363c6;
}

.fd-split-list-protocolo {
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.fd-split-detail {
    padding: 24px;
    overflow-y: auto;
}

@media (max-width: 767px) {
    .fd-split {
        grid-template-columns: 1fr;
    }

    .fd-split-list {
        display: none;
    }
}

.fd-anexo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fd-anexo-row:last-child {
    border-bottom: none;
}

.fd-anexo-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fd-anexo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eaf1fb;
    color: #1363c6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fd-anexo-texts {
    min-width: 0;
}

.fd-anexo-tipo {
    font-weight: 600;
    font-size: .88rem;
}

.fd-anexo-nome {
    font-size: .78rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}

/* Compensa o header/topbar fixos do portal (mesmo valor usado em
   .portal-licitacoes-wrapper e #ConsultaPublicaApp). Usa padding (não margin)
   para o próprio azul do .header-padrao preencher o espaço reservado pro
   header fixo, em vez de deixar uma tarja branca ali - só a borda fininha
   embaixo do header já diferencia as duas faixas azuis. Os 102px/70px só
   compensam o header fixo (não sobra folga visual nenhuma ali); some +30px
   por cima disso pra dar respiro de verdade acima do título, simétrico aos
   30px que já existiam embaixo (padding original do .header-padrao). Abaixo
   de 992px o próprio #header do site vira "top: 0" (a topbar de 32px some),
   então o offset também precisa cair. */
.ma-header-offset {
    padding-top: 132px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 991px) {
    .ma-header-offset {
        padding-top: 100px;
    }
}

.ma-tabs {
    border-bottom: 1px solid #e6e6e6;
}

.ma-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
    padding: 10px 18px;
}

.ma-tabs .nav-link.active {
    color: #1363c6;
    border-bottom-color: #1363c6;
    background: transparent;
}

.ma-toolbar {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.ma-search {
    display: flex;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    overflow: hidden;
}

.ma-search input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    outline: none;
}

.ma-search button {
    border: none;
    background: #1363c6;
    color: #fff;
    padding: 0 16px;
}

.ma-pill {
    border: 1px solid #dcdcdc;
    background: #fff;
    color: #495057;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: .85rem;
    font-weight: 600;
    transition: all .15s ease;
}

.ma-pill:hover {
    border-color: #1363c6;
    color: #1363c6;
}

.ma-pill.filter-acompanhamento-active {
    background: #1363c6;
    border-color: #1363c6;
    color: #fff;
}

.ma-clear {
    border: none;
    background: transparent;
    color: #dc3545;
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 10px;
}

.ma-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}

.ma-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.ma-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eaf1fb;
    color: #1363c6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.ma-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ma-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.ma-card-title a:hover {
    color: #1363c6;
}

.ma-card-meta {
    font-size: .82rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.ma-card-desc {
    font-size: .9rem;
    color: #495057;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.ma-card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.ma-empty {
    text-align: center;
    color: #6c757d;
    background: #fff;
    border: 1px dashed #d0d0d0;
    border-radius: 12px;
    padding: 48px 20px;
}

.ma-empty i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.ma-pagination {
    margin-top: 24px;
}
