.lp-wrap * { box-sizing: border-box; }

.lp-hero { background: #f1f2ed; position: relative; overflow: hidden; }
.lp-hero-geo { position: absolute; top: 0; right: 0; bottom: 0; width: 45%; opacity: 0.07; pointer-events: none; }
.lp-hero-geo svg { width: 100%; height: 100%; }
.lp-hero-inner { position: relative; z-index: 2; padding: 28px 0 0; }
.lp-hero-bar { height: 3px; margin-top: 20px; }
.lp-hero-body { display: flex; align-items: flex-start; gap: 18px; }
.lp-hero-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.lp-hero-title { font-size: 22px; font-weight: 600; color: #fff; line-height: 1.25; letter-spacing: -0.3px; margin: 0; }
.lp-hero-sub { font-size: 17px; color: rgba(255, 255, 255, 0.55); margin: 4px 0 0; }
.lp-hero-stats { display: flex; gap: 0; margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 16px; }
.lp-hero-stat { flex: 1; padding-right: 20px; border-right: 1px solid rgba(255, 255, 255, 0.1); margin-right: 20px; }
.lp-hero-stat:last-child { border-right: none; margin-right: 0; }
.lp-hero-stat-num { font-size: 18px; font-weight: 600; color: #fff; }
.lp-hero-stat-label { font-size: 15px; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }

.lp-main { background: #f1f2ed; padding: 24px 0 56px; }

.lp-filter-card {
    background: #fff;
    border: 0.5px solid #e2e0d9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.lp-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 0.5px solid #edecea;
    background: #fafaf8;
}
.lp-filter-header-left { display: flex; align-items: center; gap: 10px; }
.lp-filter-icon {
    width: 28px;
    height: 28px;
    background: #eef6ee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-filter-icon i { font-size: 11px; color: #15803d; }
.lp-filter-title { font-size: 15px; font-weight: 500; color: #1a1a1a; }
.lp-filter-sub { font-size: 13px; color: #aaa; margin-left: 4px; }
.lp-filter-body { padding: 20px 24px; }

.lp-filter-grid,
.lp-filter-grid-top {
    display: grid;
    gap: 14px 14px;
    margin-bottom: 14px;
    align-items: end;
}
.lp-filter-grid,
.lp-filter-grid-top {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.lp-grid-span-2 { grid-column: span 2; }
.lp-filter-grid-bottom {
    display: grid;
    gap: 14px;
    align-items: end;
    grid-template-columns: 5fr 1fr;
}
#form-filtros-licitacoes-procedimentos .lp-filter-grid-bottom {
    grid-template-columns: 5fr 4fr 3fr;
}

.lp-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}
.lp-field-wrap { position: relative; }
.lp-field-wrap .lp-field-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 11px;
    pointer-events: none;
    z-index: 1;
}
.lp-field-wrap .lp-select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 9px;
    pointer-events: none;
    z-index: 1;
}

.lp-filter-card .form-select,
.lp-filter-card .form-control {
    width: 100%;
    height: 36px;
    font-size: 15px;
    color: #222;
    background: #fafaf8;
    border: 0.5px solid #d6d4ce;
    border-radius: 9px;
    padding: 0 12px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.lp-filter-card .form-select { padding-right: 28px; cursor: pointer; }
.lp-field-wrap.lp-has-icon .form-select,
.lp-field-wrap.lp-has-icon .form-control { padding-left: 28px; }
.lp-filter-card .form-select:focus,
.lp-filter-card .form-control:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    background: #fff;
}

.btn-lp-apply {
    height: 36px;
    background: #15803d;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
    width: 100%;
}
.btn-lp-apply:hover { background: #166534; color: #fff; }
.btn-lp-clear {
    font-size: 13px;
    color: #999;
    border: 0.5px solid #e0ddd6;
    border-radius: 6px;
    padding: 4px 10px;
    background: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}
.btn-lp-clear:hover { color: #555; border-color: #bbb; background: #f5f5f3; }

.lp-result-bar-wrap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lp-result-bar { font-size: 15px; color: #888; margin: 0; }
.lp-result-bar strong { color: #333; font-weight: 500; }
.lp-download-link {
    font-size: 12px;
    color: #15803d;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 0.5px solid #d4edd9;
    border-radius: 7px;
    background: #f0fdf4;
    transition: all 0.15s;
}
.lp-download-link:hover { background: #dcfce7; border-color: #bbdfc4; color: #15803d; }

.lp-result-item {
    background: #fff;
    border: 0.5px solid #e2e0d9;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.lp-result-item:hover { box-shadow: 0 3px 16px rgba(0, 0, 0, 0.07); border-color: #c8c5bc; }
.lp-result-item-header { padding: 16px 20px 14px; border-bottom: 0.5px solid #f0efeb; }
.lp-result-title { font-size: 15px; font-weight: 500; color: #1a1a1a; line-height: 1.5; margin: 0; }
.lp-result-title a { color: inherit; }
.lp-result-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.lp-result-meta {
    padding: 11px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    background: #fafaf8;
    border-bottom: 0.5px solid #f0efeb;
}
.lp-meta-item { display: flex; align-items: center; gap: 5px; font-size: 14px; color: #888; }
.lp-meta-item i { color: #ccc; font-size: 10px; }
.lp-meta-item strong { color: #555; font-weight: 500; }

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 5px;
    padding: 3px 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.lp-badge-modalidade { background: #eff6ff; color: #1d4ed8; border: 0.5px solid #bfdbfe; }
.lp-badge-aberta { background: #dcfce7; color: #15803d; border: 0.5px solid #bbf7d0; }
.lp-badge-analise { background: #fefce8; color: #854d0e; border: 0.5px solid #fde68a; }
.lp-badge-encerrada { background: #fee2e2; color: #991b1b; border: 0.5px solid #fecaca; }
.lp-badge-homologada { background: #eff6ff; color: #1d4ed8; border: 0.5px solid #bfdbfe; }
.lp-badge-default { background: #f3f4f6; color: #6b7280; border: 0.5px solid #e5e7eb; }

.lp-file-links { padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-file-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #15803d;
    font-weight: 500;
    padding: 4px 10px;
    background: #f0fdf4;
    border: 0.5px solid #d4edd9;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s;
}
.lp-file-link:hover { background: #dcfce7; border-color: #bbdfc4; color: #15803d; }

.lp-empty {
    text-align: center;
    padding: 48px 24px;
    border-radius: 14px;
    background: #fafaf8;
    border: 0.5px dashed #d6d4ce;
}
.lp-empty i { font-size: 32px; color: #d0cdc4; display: block; margin-bottom: 12px; }
.lp-empty p { font-size: 13px; color: #aaa; margin: 0; }
.lp-error {
    text-align: center;
    padding: 48px 24px;
    border-radius: 14px;
    background: #fef2f2;
    border: 0.5px solid #fca5a5;
    color: #991b1b;
}

.lp-pagination .page-link {
    font-size: 12px;
    color: #555;
    border: 0.5px solid #e0ddd6;
    border-radius: 8px !important;
    margin: 0 2px;
    padding: 5px 12px;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.12s;
    background: #fff;
}
.lp-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    list-style: none;
}
.lp-pagination .page-item {
    list-style: none;
}
.lp-pagination .page-item.active .page-link {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
    font-weight: 500;
}
.lp-pagination .page-item.disabled .page-link {
    color: #ccc;
    background: transparent;
    pointer-events: none;
}

@media (max-width: 1199px) {
    .lp-filter-grid,
    .lp-filter-grid-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #form-filtros-licitacoes-procedimentos .lp-filter-grid-bottom {
        grid-template-columns: 1fr 1fr;
    }
    #form-filtros-licitacoes-procedimentos .lp-filter-grid-bottom .d-flex {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .lp-filter-body { padding: 18px 16px; }
    .lp-filter-grid,
    .lp-filter-grid-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lp-grid-span-2 { grid-column: span 2; }
    .lp-filter-grid-bottom,
    #form-filtros-licitacoes-procedimentos .lp-filter-grid-bottom {
        grid-template-columns: 1fr;
    }
    .lp-hero-stats { flex-wrap: wrap; gap: 12px; }
    .lp-hero-stat { border-right: none; margin-right: 0; padding-right: 0; flex-basis: 40%; }
}

@media (max-width: 480px) {
    .lp-filter-grid,
    .lp-filter-grid-top {
        grid-template-columns: 1fr;
    }
    .lp-grid-span-2 { grid-column: span 1; }
    .lp-hero-title { font-size: 18px; }
}
