body.modal-aberto{
    overflow:hidden;
}
.busca-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
}
.busca-modal.ativo{
    display:block;
}
.busca-modal__backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.78);
    backdrop-filter:blur(5px);
}
.busca-modal__box{
    position:relative;
    z-index:2;
    width:min(1000px,calc(100% - 24px));
    max-height:calc(100vh - 30px);
    overflow-y:auto;
    margin:15px auto;
    background:#161616;
    border:1px solid #383838;
    border-radius:18px;
    box-shadow:0 25px 80px rgba(0,0,0,.55);
    color:#fff;
}
.busca-modal__header{
    position:sticky;
    top:0;
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px;
    background:#161616;
    border-bottom:1px solid #303030;
}
.busca-modal__header span{
    color:#d98cad;
    font-size:11px;
    letter-spacing:2px;
    font-weight:700;
}
.busca-modal__header h2{
    margin:4px 0 0;
    font-size:25px;
}
.busca-modal__header button{
    width:40px;
    height:40px;
    border:1px solid #444;
    border-radius:50%;
    background:#242424;
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
}
.busca-avancada-form{
    padding:20px;
}
.busca-grupo{
    padding:0 0 24px;
    margin-bottom:24px;
    border-bottom:1px solid #303030;
}
.busca-grupo h3{
    margin:0 0 15px;
    font-size:17px;
}
.busca-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}
.busca-grid label{
    display:flex;
    flex-direction:column;
    gap:6px;
    color:#ccc;
    font-size:13px;
}
.busca-grid input,
.busca-grid select{
    width:100%;
    height:44px;
    border:1px solid #414141;
    border-radius:8px;
    background:#222;
    color:#fff;
    padding:0 11px;
    outline:none;
}
.busca-grid input:focus,
.busca-grid select:focus{
    border-color:#d98cad;
}
.busca-modal__acoes{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:12px;
}
.busca-modal__acoes button,
.busca-limpar{
    height:46px;
    border-radius:9px;
    padding:0 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    cursor:pointer;
}
.busca-modal__acoes button{
    border:0;
    background:#d26b98;
    color:#fff;
    font-weight:700;
}
.busca-limpar{
    border:1px solid #444;
    color:#ddd;
    background:#242424;
}
@media (max-width:700px){
    .busca-modal__box{
        width:100%;
        max-height:100vh;
        margin:0;
        border-radius:0;
    }
    .busca-grid{
        grid-template-columns:1fr;
    }
    .busca-modal__acoes{
        position:sticky;
        bottom:0;
        background:#161616;
        padding-top:15px;
    }
    .busca-modal__acoes button,
    .busca-limpar{
        flex:1;
    }
}
/* Opções compactas e acessíveis */
.busca-modal__box{background:#21131c;border-color:#694056}
.busca-modal__header{background:#2b1724;border-color:#694056}
.busca-grupo{border-color:#694056}
.busca-grid,.opcoes-extras{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.busca-modal input:not([type=radio]):not([type=checkbox]),.busca-modal select{background:#38202e;border:1px solid #85516b;color:#fff;border-radius:10px}
.opcoes-radio{min-width:0;margin:0;padding:0;border:0}
.opcoes-radio legend{padding:0 0 9px;color:#f6d9e6;font-size:13px;font-weight:700}
.opcoes-radio__lista{display:flex;flex-wrap:wrap;gap:7px}
.opcoes-radio__lista label{display:inline-flex;cursor:pointer;margin:0}
.opcoes-radio__lista input{position:absolute;opacity:0;width:1px;height:1px}
.opcoes-radio__lista span{display:inline-block;padding:8px 12px;border:1px solid #82516b;border-radius:999px;background:#38202e;color:#f6d9e6;line-height:1.2;transition:background .15s,border-color .15s}
.opcoes-radio__lista input:checked+span{background:#9b315f;border-color:#f0a4c7;color:white}
.opcoes-radio__lista input:focus-visible+span{outline:3px solid #f6b9d4;outline-offset:2px}
.opcoes-radio__lista label:hover span{border-color:#eaa5c5}
.busca-status{display:inline-flex;align-items:center;color:#f6d9e6;font-weight:700;margin:8px}
.busca-status[hidden]{display:none}
@media(max-width:680px){.busca-grid,.opcoes-extras{grid-template-columns:1fr}.busca-modal__box{width:calc(100% - 12px)}}

.opcoes-radio__lista input[type="checkbox"]{position:absolute;opacity:0;width:1px;height:1px}
.opcoes-radio__lista input[type="checkbox"]:checked+span{background:#9b315f;border-color:#f0a4c7;color:#fff}
.opcoes-radio__lista input[type="checkbox"]:focus-visible+span{outline:3px solid #f6b9d4;outline-offset:2px}
.busca-multi-acoes{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.busca-multi-acoes button,.busca-multi-acoes a{min-height:40px;border-radius:9px}
.busca-grupo .opcoes-radio{background:#2a1823;border:1px solid #70415a;border-radius:12px;padding:12px;min-height:86px}
.busca-grupo .opcoes-radio legend{float:left;width:100%}
.busca-grupo .opcoes-radio__lista{clear:both}
