﻿.portal-licitacoes-wrapper {
    padding-top: 102px;
}

.header-padrao {
    background-color: #0056b3;
    color: white;
    padding: 30px 0;
    border-left: 6px solid #ffc107;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 100%;
}

    .header-padrao h2 {
        margin: 0;
        font-weight: 700;
        font-size: 1.8rem;
        color: white;
    }

.header-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 5px;
}

.portal-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 1.5rem;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    transition: all .2s;
}

    .step-pill .num {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #e9ecef;
        color: #6c757d;
        font-size: 11px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .step-pill.active {
        background: #0056b3;
        color: #fff;
        border-color: #0056b3;
    }

        .step-pill.active .num {
            background: rgba(255,255,255,0.25);
            color: #fff;
        }

    .step-pill.done {
        background: #e8f5e9;
        color: #2e7d32;
        border-color: #a5d6a7;
    }

        .step-pill.done .num {
            background: #2e7d32;
            color: #fff;
        }

.step-sep {
    color: #ced4da;
    font-size: 18px;
    margin: 0 2px;
}

.acc-panel {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow .2s;
}

    .acc-panel.is-open {
        box-shadow: 0 2px 12px rgba(0,86,179,0.10);
        border-color: #b6cff0;
    }

.acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    user-select: none;
}

.acc-panel.is-open .acc-header {
    border-bottom: 1px solid #e9ecef;
    background: #f8fbff;
}

.acc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acc-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acc-panel.is-open .acc-num {
    background: #0056b3;
    color: #fff;
}

.acc-panel.is-done .acc-num {
    background: #2e7d32;
    color: #fff;
}

.acc-title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.acc-summary {
    font-size: 12px;
    font-weight: 500;
    color: #0056b3;
    background: #e7f0fb;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 6px;
}

.acc-edit-btn {
    font-size: 12px;
    color: #0056b3;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background .15s;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .acc-edit-btn:hover {
        background: #e7f0fb;
    }

.acc-body {
    padding: 20px;
    background: #fff;
    animation: accFadeIn .2s ease;
}

@keyframes accFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9e9e9e;
    margin-bottom: .6rem;
}

.portal-type-card {
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    height: 100%;
}

    .portal-type-card:hover {
        border-color: #378ADD;
        background: #f0f7ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,86,179,.1);
    }

    .portal-type-card.selected {
        border-color: #0056b3;
        background: #e7f0fb;
    }

    .portal-type-card i {
        font-size: 2rem;
        color: #378ADD;
        display: block;
        margin-bottom: .5rem;
    }

    .portal-type-card.selected i {
        color: #0056b3;
    }

    .portal-type-card h6 {
        font-weight: 600;
        margin-bottom: 2px;
    }

    .portal-type-card small {
        color: #6c757d;
    }

.portal-lei-card {
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    padding: 1.25rem;
    cursor: pointer;
    transition: all .2s;
    height: 100%;
}

    .portal-lei-card:hover {
        border-color: #378ADD;
        background: #f0f7ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,86,179,.1);
    }

    .portal-lei-card.selected {
        border-color: #0056b3;
        background: #e7f0fb;
    }

    .portal-lei-card h6 {
        font-weight: 600;
        color: #212529;
        margin-bottom: 2px;
    }

.badge-andamento {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
}

.badge-total {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #e7f0fb;
    color: #0056b3;
    font-weight: 500;
}

.portal-prog-card--pular {
    border-style: dashed !important;
    border-color: #ced4da !important;
}

    .portal-prog-card--pular:hover {
        border-color: #6c757d !important;
        background: #f8f9fa !important;
        box-shadow: none !important;
    }

    .portal-prog-card--pular.selected {
        border-color: #6c757d !important;
        background: #f8f9fa !important;
    }

    .portal-prog-card--pular span {
        color: #6c757d !important;
    }

.portal-prog-card {
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    padding: .85rem .5rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    height: 100%;
}

    .portal-prog-card:hover {
        border-color: #378ADD;
        background: #f0f7ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,86,179,.1);
    }

    .portal-prog-card.selected {
        border-color: #0056b3;
        background: #e7f0fb;
    }

.prog-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .5rem;
    overflow: hidden;
    padding: 8px;
}

    .prog-icon-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.portal-prog-card span {
    font-size: 12px;
    font-weight: 500;
    color: #212529;
    display: block;
    line-height: 1.3;
}

.portal-modal-card {
    border: 1.5px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    height: 100%;
    position: relative;
}

    .portal-modal-card:hover {
        border-color: #378ADD;
        background: #f0f7ff;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,86,179,.1);
    }

    .portal-modal-card.selected {
        border-color: #0056b3;
        background: #e7f0fb;
    }

        .portal-modal-card.selected .modal-check {
            display: flex;
        }

.modal-check {
    display: none;
    position: absolute;
    top: 8px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0056b3;
    color: #fff;
    font-size: 10px;
    align-items: center;
    justify-content: center;
}

.portal-modal-card h6 {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    margin-bottom: .5rem;
}

.modal-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0056b3;
    line-height: 1;
}

.portal-modal-card small {
    font-size: 11px;
    color: #6c757d;
}

.portal-results-panel {
    margin-top: 1.5rem;
}

.results-titulo-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f8fbff;
    border: 1px solid #b6cff0;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #dee2e6;
}

    .results-titulo-bar h5 {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
    }

.results-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    background: #e7f0fb;
    color: #0056b3;
    font-weight: 500;
}

.filtro-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: #fff;
    border-left: 1px solid #b6cff0;
    border-right: 1px solid #b6cff0;
    border-bottom: 1px solid #dee2e6;
}

    .filtro-bar select,
    .filtro-bar input {
        font-size: 13px;
        padding: 5px 10px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: #fff;
        color: #212529;
        transition: border-color .15s;
    }

        .filtro-bar select:focus,
        .filtro-bar input:focus {
            border-color: #0056b3;
            outline: none;
        }

.filtro-toggle {
    font-size: 13px;
    font-weight: 500;
    color: #0056b3;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background .15s;
}

    .filtro-toggle:hover {
        background: #e7f0fb;
    }

.lic-card-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px solid #b6cff0;
    border-top: none;
    background: #f4f7fb;
}

.lic-card {
    background: #fff;
    border-left: 4px solid #0056b3;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px 20px 20px 24px;
    transition: box-shadow .2s, transform .2s;
}

    .lic-card:hover {
        box-shadow: 0 4px 12px rgba(0,86,179,0.10);
        transform: translateY(-1px);
    }

.lic-num {
    font-size: 15px;
    font-weight: 700;
    color: #212529;
}

.lic-meta-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9e9e9e;
    display: block;
    margin-bottom: 2px;
}

.lic-meta-val {
    font-size: 13px;
    font-weight: 500;
    color: #212529;
}

.lic-objeto-wrap {
    background: #f8f9fa;
    border: 1px solid #f1f3f5;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0;
}

.lic-objeto-text {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

    .lic-objeto-text.clamped {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.btn-mais-info {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 6px;
}

.portal-pagination {
    padding: 16px 20px;
    border: 1px solid #b6cff0;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 10px 10px;
    background: #f8fbff;
}

.estado-vazio {
    padding: 40px 20px;
    text-align: center;
    color: #9e9e9e;
    border: 1px solid #b6cff0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #fff;
}
