/* Compatibilidade Bootstrap 4 -> 5 (29/10/2026, B7 etapa 3). Só carrega com o Bootstrap 5 (novo/bibliotecas.php, /layout/bs5/).
   Faz as classes e o visual do Bootstrap 4 que o sistema usa continuarem iguais no 5, sem mexer nas ~150 telas de uma vez.
   Valores copiados do bootstrap 4.6.2. Ao trocar uma tela para as classes novas do 5, a regra daqui deixa de ser usada. */

/* Links: no 4 só sublinhavam ao passar o mouse; no 5 vêm sublinhados */
a { text-decoration: none; }
a:hover { text-decoration: underline; }
a.btn:hover { text-decoration: none; }

/* Rótulos: o 4 dava espaço embaixo */
label { display: inline-block; margin-bottom: .5rem; }

/* Lista (select) com form-control: o 5 tira a seta (pede form-select) */
select.form-control { -webkit-appearance: menulist; -moz-appearance: menulist; appearance: auto; }
select.form-control[multiple], select.form-control[size]:not([size="1"]) { appearance: none; height: auto; }

/* Margens e espaçamentos: ml/mr/pl/pr viraram ms/me/ps/pe */
.ml-0 { margin-left: 0 !important; } .mr-0 { margin-right: 0 !important; } .pl-0 { padding-left: 0 !important; } .pr-0 { padding-right: 0 !important; }
.ml-1 { margin-left: .25rem !important; } .mr-1 { margin-right: .25rem !important; } .pl-1 { padding-left: .25rem !important; } .pr-1 { padding-right: .25rem !important; }
.ml-2 { margin-left: .5rem !important; } .mr-2 { margin-right: .5rem !important; } .pl-2 { padding-left: .5rem !important; } .pr-2 { padding-right: .5rem !important; }
.ml-3 { margin-left: 1rem !important; } .mr-3 { margin-right: 1rem !important; } .pl-3 { padding-left: 1rem !important; } .pr-3 { padding-right: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; } .mr-4 { margin-right: 1.5rem !important; } .pl-4 { padding-left: 1.5rem !important; } .pr-4 { padding-right: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; } .mr-5 { margin-right: 3rem !important; } .pl-5 { padding-left: 3rem !important; } .pr-5 { padding-right: 3rem !important; }
.ml-auto { margin-left: auto !important; } .mr-auto { margin-right: auto !important; }
@media (min-width: 576px) { .ml-sm-0 { margin-left: 0 !important; } .mr-sm-0 { margin-right: 0 !important; } .ml-sm-2 { margin-left: .5rem !important; } .mr-sm-2 { margin-right: .5rem !important; } .ml-sm-auto { margin-left: auto !important; } .mr-sm-auto { margin-right: auto !important; } }
@media (min-width: 768px) { .ml-md-0 { margin-left: 0 !important; } .mr-md-0 { margin-right: 0 !important; } .ml-md-2 { margin-left: .5rem !important; } .mr-md-2 { margin-right: .5rem !important; } .ml-md-3 { margin-left: 1rem !important; } .mr-md-3 { margin-right: 1rem !important; } .ml-md-auto { margin-left: auto !important; } .mr-md-auto { margin-right: auto !important; } }
@media (min-width: 992px) { .ml-lg-0 { margin-left: 0 !important; } .mr-lg-0 { margin-right: 0 !important; } .ml-lg-2 { margin-left: .5rem !important; } .mr-lg-2 { margin-right: .5rem !important; } .ml-lg-auto { margin-left: auto !important; } .mr-lg-auto { margin-right: auto !important; } }

/* float e alinhamento: left/right viraram start/end */
.float-left { float: left !important; } .float-right { float: right !important; }
.text-left { text-align: left !important; } .text-right { text-align: right !important; }
@media (min-width: 576px) { .float-sm-left { float: left !important; } .float-sm-right { float: right !important; } .text-sm-left { text-align: left !important; } .text-sm-right { text-align: right !important; } }
@media (min-width: 768px) { .float-md-left { float: left !important; } .float-md-right { float: right !important; } .text-md-left { text-align: left !important; } .text-md-right { text-align: right !important; } }
@media (min-width: 992px) { .float-lg-left { float: left !important; } .float-lg-right { float: right !important; } .text-lg-left { text-align: left !important; } .text-lg-right { text-align: right !important; } }

/* Formulários: form-group, form-row e form-inline saíram do 5 */
.form-group { margin-bottom: 1rem; }
.form-row { display: flex; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; }
.form-row > .col, .form-row > [class*="col-"] { padding-right: 5px; padding-left: 5px; }
.form-inline { display: flex; flex-flow: row wrap; align-items: center; }
.form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }

/* Rádios e caixas "custom" (o 5 usa form-check): aparecem como os comuns */
.custom-control { position: relative; display: block; min-height: 1.5rem; padding-left: 0; }
.custom-control-inline { display: inline-flex; margin-right: 1rem; }
.custom-control-input { position: static; z-index: auto; opacity: 1; margin-right: .4rem; vertical-align: middle; }
.custom-control-label { margin-bottom: 0; vertical-align: middle; }
.custom-control-label::before, .custom-control-label::after { display: none; }

/* Grupos de campo: append/prepend saíram (no 5 os botões ficam direto no input-group) */
.input-group-prepend, .input-group-append { display: flex; }
.input-group-prepend { margin-right: -1px; } .input-group-append { margin-left: -1px; }
.input-group > .input-group-prepend > .btn, .input-group > .input-group-prepend > .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-append > .btn, .input-group > .input-group-append > .input-group-text { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .input-group-append:not(:last-child) > .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Leitores de tela: sr-only virou visually-hidden */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.sr-only-focusable:active, .sr-only-focusable:focus { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; white-space: normal !important; }

/* Botão X de fechar (close virou btn-close, com outro visual) */
.close { float: right; font-size: 1.5rem; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .5; background-color: transparent; border: 0; padding: 0; }
.close:hover { color: #000; text-decoration: none; opacity: .75; }
.close:not(:disabled):not(.disabled) { cursor: pointer; }
.modal-header .close { padding: 1rem; margin: -1rem -1rem -1rem auto; }

/* Outras classes que saíram ou mudaram de nome */
.btn-block { display: block; width: 100%; }
.rounded-lg { border-radius: .3rem !important; }
.font-weight-bold { font-weight: 700 !important; } .font-weight-normal { font-weight: 400 !important; } .font-weight-light { font-weight: 300 !important; }
.font-italic { font-style: italic !important; }
.badge-pill { border-radius: 10rem; }
.dropdown-menu-right { right: 0; left: auto; }
.embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; }
.embed-responsive::before { display: block; content: ""; }
.embed-responsive-16by9::before { padding-top: 56.25%; } .embed-responsive-4by3::before { padding-top: 75%; }
.embed-responsive .embed-responsive-item, .embed-responsive iframe, .embed-responsive video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
