/* =========================================================
   Ajustes globais do tema (Metronic + Bootstrap 3), carregados no template/header.php depois do tema.
   Alinham classes do tema ao Design System "PrismaBox Web" (docs/ux-guide.md).

   "blue" do Metronic (btn blue, btn-outline blue, blue-stripe; era #3598dc) e btn-primary do Bootstrap (era #337ab7)
   usam o --accent do sistema, o mesmo azul da linha das abas (tabs.css) — um azul só para ação:
     #3b6fe0  fundo com texto branco (4,63:1; o #3598dc dava 3,15:1)
     #2f5ec8  hover/foco (5,91:1)      #2a55b8  pressionado / menu aberto (6,80:1)      #244aa3  borda em foco

   success/green: verde do Metronic 8 (#40BF70), ver a seção "Success" abaixo.
   ========================================================= */

.btn.blue:not(.btn-outline) { color: #fff; background-color: #3b6fe0; border-color: #3b6fe0; }
.btn.blue:not(.btn-outline):hover, .btn.blue:not(.btn-outline):focus, .btn.blue:not(.btn-outline).focus,
.open > .btn.blue:not(.btn-outline).dropdown-toggle { color: #fff; background-color: #2f5ec8; border-color: #2f5ec8; }
.btn.blue:not(.btn-outline):focus, .btn.blue:not(.btn-outline).focus { border-color: #244aa3; }
.btn.blue:not(.btn-outline):active, .btn.blue:not(.btn-outline).active,
.btn.blue:not(.btn-outline):active:hover, .btn.blue:not(.btn-outline).dropdown-toggle:focus,
.open > .btn.blue:not(.btn-outline).dropdown-toggle:hover { color: #fff; background-color: #2a55b8; border-color: #244aa3; }
.btn.blue:not(.btn-outline)[disabled], .btn.blue:not(.btn-outline).disabled,
fieldset[disabled] .btn.blue:not(.btn-outline):hover { background-color: #3b6fe0; border-color: #3b6fe0; }
.btn.blue:not(.btn-outline) .badge { color: #3b6fe0; background-color: #fff; }

.btn.btn-outline.blue { color: #3b6fe0; border-color: #3b6fe0; background: none; }
.btn.btn-outline.blue:hover, .btn.btn-outline.blue:focus, .btn.btn-outline.blue:active,
.btn.btn-outline.blue.active, .open > .btn.btn-outline.blue.dropdown-toggle { color: #fff; background-color: #3b6fe0; border-color: #3b6fe0; }

.btn.blue-stripe { border-left-color: #3b6fe0 !important; }

/* btn-primary (Bootstrap) */
.btn-primary { color: #fff; background-color: #3b6fe0; border-color: #2f5ec8; }
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus { color: #fff; background-color: #2f5ec8; border-color: #2a55b8; }
.btn-primary:focus, .btn-primary.focus { border-color: #244aa3; }
.btn-primary:active, .btn-primary.active, .open > .btn-primary.dropdown-toggle,
.btn-primary:active:hover, .btn-primary.active:hover, .btn-primary:active:focus, .btn-primary.active:focus,
.btn-primary:active.focus, .btn-primary.active.focus,
.open > .btn-primary.dropdown-toggle:hover, .open > .btn-primary.dropdown-toggle:focus,
.open > .btn-primary.dropdown-toggle.focus { color: #fff; background-color: #2a55b8; border-color: #244aa3; }
.btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus { background-color: #3b6fe0; border-color: #2f5ec8; }
.btn-primary .badge { color: #3b6fe0; background-color: #fff; }

/* --- Success: verde do Metronic 8 suavizado (matiz do #17C653, menos saturado: #40BF70; ativo #35A862; claro #DFFFEA) no lugar do ciano do Metronic 4.
   Fundo sólido #40BF70 com texto branco (como no Metronic 8); hover/pressionado #35A862; texto sobre claro #0a7a33 (5,1:1).
   Vale para btn-success, btn green, label/badge-success, alert/panel/bg/text-success, progress-bar-success,
   font-green/bg-green e o "ligado" success do bootstrap-switch. --- */
.btn-success, .btn.green:not(.btn-outline) { color: #fff; background-color: #40BF70; border-color: #40BF70; }
.btn-success:hover, .btn-success:focus, .btn-success.focus,
.btn.green:not(.btn-outline):hover, .btn.green:not(.btn-outline):focus, .btn.green:not(.btn-outline).focus { color: #fff; background-color: #35A862; border-color: #35A862; }
.btn-success:active, .btn-success.active, .open > .btn-success.dropdown-toggle,
.btn-success:active:hover, .btn-success.active:hover, .btn-success:active:focus, .btn-success.active:focus,
.btn.green:not(.btn-outline):active, .btn.green:not(.btn-outline).active, .open > .btn.green:not(.btn-outline).dropdown-toggle { color: #fff; background-color: #35A862; border-color: #2C9455; }
.btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success,
.btn-success.disabled:hover, .btn-success[disabled]:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus,
.btn.green:not(.btn-outline)[disabled], .btn.green:not(.btn-outline).disabled { background-color: #40BF70; border-color: #40BF70; }
.btn-success .badge, .btn.green:not(.btn-outline) .badge { color: #35A862; background-color: #fff; }
.btn.green-stripe { border-left-color: #40BF70 !important; }
.btn.btn-outline.green { color: #0a7a33; border-color: #40BF70; background: none; }
.btn.btn-outline.green:hover, .btn.btn-outline.green:focus, .btn.btn-outline.green.active, .btn.btn-outline.green:active { color: #fff; background-color: #40BF70; border-color: #40BF70; }
.label-success, .badge-success { background-color: #40BF70; }
.label-success[href]:hover, .label-success[href]:focus { background-color: #35A862; }
.text-success { color: #0a7a33; }
a.text-success:hover, a.text-success:focus { color: #35A862; }
.bg-success { background-color: #DFFFEA; }
.alert-success { background-color: #DFFFEA; border-color: #b8f2cb; color: #0a7a33; }
.alert-success .alert-link { color: #35A862; }
/* Tarja laranja (tipo 'orange' do MY_Warning): entre o verde e o vermelho, âmbar do guia (warning #c27c0e) */
.alert-orange { background-color: #fdf3e1; border-color: #f3d29b; color: #8a5300; }
.alert-orange .alert-link, .alert-orange a:not(.btn) { color: #8a5300; text-decoration: underline; }
.btn.btn-alert-orange { color: #fff; background-color: #c27c0e; border-color: #c27c0e; }
.btn.btn-alert-orange:hover, .btn.btn-alert-orange:focus { color: #fff; background-color: #a8690a; border-color: #a8690a; }
.panel-success { border-color: #b8f2cb; }
.panel-success > .panel-heading { color: #0a7a33; background-color: #DFFFEA; border-color: #b8f2cb; }
.progress-bar-success { background-color: #40BF70; }
.list-group-item-success { color: #0a7a33; background-color: #DFFFEA; }
.font-green { color: #40BF70 !important; }
.bg-green { background: #40BF70 !important; }
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success { background: #40BF70 !important; color: #fff !important; }

/* =========================================================
   CAMADA GLOBAL DO DESIGN SYSTEM (rodada 1): acabamento de todas as telas sem mudar views.
   Tokens: accent #3b6fe0 · accent-hover #2f5ec8 · accent-pressed #2a55b8 · accent-bg #f4f8ff
           text #3f444a · text-2 #5e6a7d · muted #8a94a6 · border #e7ecf1 · soft #eef4f7
   Regras por elemento, com a mesma especificidade do tema (vencem por carregar depois); !important só onde o
   Metronic já usa !important. CSS de módulo com classe própria continua vencendo.
   ========================================================= */

/* --- Azul único: o que ainda usava #337ab7 --- */
a, .btn-link { color: #3b6fe0; }
a:hover, a:focus, .btn-link:hover, .btn-link:focus { color: #2a55b8; }
.text-primary { color: #3b6fe0; }
a.text-primary:hover, a.text-primary:focus { color: #2a55b8; }
.bg-primary { color: #fff; background-color: #3b6fe0; }
.label-primary, .badge-primary { background-color: #3b6fe0; }
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { background-color: #3b6fe0; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { background-color: #3b6fe0; }
.nav-pills > .active > a > .badge { color: #3b6fe0; }
.pagination > li > a, .pagination > li > span { color: #3b6fe0; border-color: #e7ecf1; }
.pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus { color: #2a55b8; background-color: #f4f8ff; border-color: #e7ecf1; }
.pagination > .active > a, .pagination > .active > span,
.pagination > .active > a:hover, .pagination > .active > span:hover,
.pagination > .active > a:focus, .pagination > .active > span:focus { color: #fff; background-color: #3b6fe0; border-color: #3b6fe0; }
.progress-bar { background-color: #3b6fe0; }
.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] { background-color: #3b6fe0; }

/* --- Título de portlet: sem caixa alta, peso 600, texto escuro; ícone no azul de ação --- */
.portlet > .portlet-title > .caption > .caption-subject.font-blue-sharp {
    color: #3f444a !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0;
}
.portlet > .portlet-title > .caption > i.font-blue-sharp,
.portlet > .portlet-title > .caption > .fa.font-blue-sharp { color: #3b6fe0 !important; }
.portlet.light > .portlet-title { border-bottom-color: #e7ecf1; }

/* --- Formulários: rótulo 600 em text-2; foco no azul de ação --- */
.form-group > label:not(.mt-checkbox):not(.mt-radio):not(.btn), .form-group > .control-label, label.control-label { color: #5e6a7d; font-weight: 600; }
/* Ajuda do campo: estilo meta do design system (12px, muted); erro/aviso continuam com a cor do estado (.has-error etc.) */
.help-block { margin-top: 4px; margin-bottom: 5px; font-size: 12px; line-height: 1.45; color: #8a94a6; }
.help-block a { font-weight: 600; }
/* Foco: o mesmo em input, select, textarea e select2 — borda accent + brilho desfocado 0 0 8px rgba(59,111,224,.45)
   (o efeito do select2). A regra base (com !important) está no layouts/custom.css; aqui os estados que ela não cobre. */
.form-control:focus { border-color: #3b6fe0; }
.select2-container--bootstrap.select2-container--focus .select2-selection,
.select2-container--bootstrap.select2-container--open .select2-selection { border-color: #3b6fe0; box-shadow: 0 0 8px rgba(59, 111, 224, .45); }
.select2-container--bootstrap .select2-dropdown { border-color: #3b6fe0; -webkit-box-shadow: 0 8px 24px rgba(16, 24, 40, .12); box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
/* com erro, o foco fica vermelho (vence o !important do custom.css por carregar depois) */
.has-error .form-control:not(.form-control-solid):focus,
.has-error .select2-container *:focus,
.has-error .select2-container--bootstrap.select2-container--focus .select2-selection,
.has-error .select2-container--bootstrap.select2-container--open .select2-selection { border-color: #e73d4a !important; -webkit-box-shadow: 0 0 8px rgba(231, 61, 74, .45) !important; box-shadow: 0 0 8px rgba(231, 61, 74, .45) !important; }

/* --- Select nativo sem a aparência do sistema: no Safari o "menulist" desenha cantos e setas próprios e não emenda no
   input-group. Seta desenhada igual à do select2 (triângulo #999). Não vale para múltipla seleção nem lista (size). --- */
select.form-control:not([multiple]):not([size]) {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 0h8L4 4z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 8px 4px;
}
select.form-control:not([multiple]):not([size])::-ms-expand { display: none; }
select.form-control.input-sm:not([multiple]):not([size]) { padding-right: 24px; background-position: right 9px center; }
/* O Bootstrap 3 dá line-height igual à altura ao select sm/lg (30px/46px) para centralizar o texto do menulist nativo;
   sem a aparência do sistema esse line-height soma com o padding e o texto desce e é cortado. */
select.form-control.input-sm:not([multiple]):not([size]),
.form-group-sm select.form-control:not([multiple]):not([size]) { line-height: 1.5; padding-top: 5px; padding-bottom: 5px; }
select.form-control.input-lg:not([multiple]):not([size]),
.form-group-lg select.form-control:not([multiple]):not([size]) { line-height: 1.3333333; padding-top: 10px; padding-bottom: 10px; }

/* --- Forma: campos, select2 e botões com raio de 4px (radius-sm). O Metronic zera o raio de a, button, div, input,
   select, span, textarea… com !important; por isso aqui também é !important. Em grupos, só os cantos de fora. --- */
.form-control, textarea.form-control, select.form-control,
.select2-container--bootstrap .select2-selection,
.select2-container--bootstrap .select2-search--dropdown .select2-search__field,
.select2-container--bootstrap .select2-dropdown,
.input-group-addon,
.btn { border-radius: 4px !important; }
.btn-sm, .btn-xs, .input-sm, .form-group-sm .form-control,
.select2-container--bootstrap.input-sm .select2-selection--single { border-radius: 3px !important; }
/* exceções do tema: campo de linha (form-md-line-input) sem raio; botão circular do Metronic continua circular */
.form-group.form-md-line-input .form-control { border-radius: 0 !important; }
.btn.btn-circle { border-radius: 25px !important; }
.btn.btn-circle-right { border-radius: 0 25px 25px 0 !important; }
.btn.btn-circle-left { border-radius: 25px 0 0 25px !important; }
.btn.btn-circle-bottom { border-radius: 0 0 25px 25px !important; }
.btn.btn-circle-top { border-radius: 25px 25px 0 0 !important; }

/* select2 aberto: o lado colado na lista fica reto, como no plugin */
.select2-container--bootstrap.select2-container--open.select2-container--below .select2-selection { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.select2-container--bootstrap.select2-container--open.select2-container--above .select2-selection { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
.select2-container--bootstrap .select2-dropdown--below { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
.select2-container--bootstrap .select2-dropdown--above { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }

/* --- Itens escolhidos do select2 múltiplo (tags, unidades, anos…) como chips: fundo suave, raio 12px (o mesmo dos
   chips das listagens), sem a caixa com borda do tema e "×" discreto. O Metronic zera o raio do <li>, por isso !important. --- */
.select2-container .select2-selection--multiple .select2-selection__choice {
    display: inline-block;
    margin: 4px 0 0 5px !important;
    padding: 1px 9px 1px 7px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #eef4f7 !important;
    color: #5e6a7d !important;
    font-size: 12px;
    line-height: 1.6;
}
.select2-container .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 5px !important;
    color: #8a94a6 !important;
    font-weight: 400 !important;
    float: none;
}
.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover { color: #e7505a !important; }
.select2-container--disabled .select2-selection--multiple .select2-selection__choice { opacity: .7; }

/* input-group: só os cantos externos.
   O select2 deixa o <select> original escondido como primeiro filho; por isso o select2 só perde os cantos esquerdos
   quando vem depois de um addon/botão (~), nunca por ":not(:first-child)". Botão que abre menu (dropdown-toggle) é
   seguido pela lista (<ul>), então também não usa ":not(:last-child)" — mesma lógica do Bootstrap. */
.input-group > .form-control:not(:first-child):not(.select2-hidden-accessible),
.input-group > .input-group-addon:not(:first-child),
.input-group > .input-icon:not(:first-child) > .form-control,
.input-group > .input-group-btn:not(:first-child) > .btn,
.input-group > .input-group-btn:not(:first-child) > .btn-group > .btn,
.input-group > .input-group-btn > .btn + .btn,
.input-group > .input-group-addon ~ .select2-container--bootstrap .select2-selection,
.input-group > .input-group-btn ~ .select2-container--bootstrap .select2-selection,
.input-group.select2-bootstrap-prepend .select2-container--bootstrap .select2-selection { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }

.input-group > .form-control:not(:last-child),
.input-group > .input-group-addon:not(:last-child),
.input-group > .input-icon:not(:last-child) > .form-control,
.input-group > .input-group-btn:not(:last-child) > .btn,
.input-group > .input-group-btn:not(:last-child) > .btn-group > .btn,
.input-group > .input-group-btn > .btn:not(:last-child):not(.dropdown-toggle),
.input-group > .select2-container--bootstrap:not(:last-child) .select2-selection,
.input-group.select2-bootstrap-append .select2-container--bootstrap .select2-selection { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }

/* btn-group: só as pontas (mesma lógica do Bootstrap: o dropdown-toggle é seguido pela <ul> do menu) */
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0 !important; }
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0 !important; }
.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.btn-group-vertical > .btn { border-radius: 0 !important; }
.btn-group-vertical > .btn:first-child { border-top-left-radius: 4px !important; border-top-right-radius: 4px !important; }
.btn-group-vertical > .btn:last-child { border-bottom-left-radius: 4px !important; border-bottom-right-radius: 4px !important; }

/* --- Ícone dentro do campo (.input-icon > i): o Metronic usa margin-top fixo (11px, feito para 34px) e o ícone fica baixo
   no input-sm (30px). Aqui o ícone tem a altura do campo e o glifo centralizado nela — vale para normal, sm e lg, e não
   depende da altura do wrapper (mensagem de validação dentro dele não desloca o ícone). Campo de linha (md) fica como está. --- */
.input-icon:not(.form-md-line-input .input-icon) > i {
    top: 0;
    height: 34px;
    margin: 0 2px 0 10px;
    line-height: 34px;
}
.input-icon:not(.form-md-line-input .input-icon):has(> .input-sm) > i,
.input-icon.input-icon-sm:not(.form-md-line-input .input-icon) > i { height: 30px; margin-top: 0; line-height: 30px; }
.input-icon:not(.form-md-line-input .input-icon):has(> .input-lg) > i,
.input-icon.input-icon-lg:not(.form-md-line-input .input-icon) > i { height: 46px; margin-top: 0; line-height: 46px; }
.portlet.light > .portlet-title > .inputs > .portlet-input .input-icon > i { height: 30px; margin-top: 0; line-height: 30px; }

/* --- Modais: cantos de 6px, sombra mais leve, título 600 --- */
.modal-content { border: 0; border-radius: 6px !important; box-shadow: 0 12px 32px rgba(16, 24, 40, .18); }
.modal-header { border-bottom-color: #e7ecf1; }
.modal-header .modal-title, .bootbox .modal-title { font-size: 16px; font-weight: 600; color: #3f444a; }
.modal-footer { border-top-color: #e7ecf1; }

/* --- Selos (label/badge do tema): forma de pill, peso 600 --- */
.label { display: inline-block; padding: 2px 8px; border-radius: 10px !important; font-size: 11px; font-weight: 600; line-height: 15px; }
.label.label-sm { padding: 1px 6px; font-size: 11px; }

/* --- Menus suspensos --- */
.dropdown-menu { border-color: #e7ecf1; border-radius: 6px !important; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.dropdown-menu > li > a { color: #3f444a; font-weight: 400; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background-color: #f4f6f9; color: #3f444a; }
.dropdown-menu .divider { background-color: #e7ecf1; }

/* --- Tabelas: cabeçalho em text-2 600; hover suave --- */
.table > thead > tr > th { color: #5e6a7d; font-weight: 600; font-size: 13px; }
.table-hover > tbody > tr:hover, .table-hover > tbody > tr:hover > td { background-color: #fafbfc; }

/* --- Alertas: cantos de 6px --- */
.alert { border-radius: 6px !important; }
/* Aviso do redirect (flashdata no topo do .page-content): a .page-bar do Metronic sobe 25px (margin-top negativo) e
   cobria a borda de baixo do alerta, que ficava sem os cantos arredondados. Com alerta antes, ela não sobe. */
.page-content > .alert + .page-bar { margin-top: 0 !important; }

/* --- Abrir registro vinculado (js-open-linked, OpenLinked.js): botão de ícone neutro ao lado do campo --- */
.btn.js-open-linked .fa { color: #5e6a7d; }
.btn.js-open-linked:hover .fa, .btn.js-open-linked:focus .fa { color: #3b6fe0; }
.btn.js-open-linked[disabled], .btn.js-open-linked[disabled]:hover { opacity: 1; background-color: #fff; cursor: not-allowed; }
.btn.js-open-linked[disabled] .fa { color: #c2cad8; }

/* --- Alterar campo travado (field-edit): lápis sempre visível ao lado do rótulo --- */
/* Ex.: contrato faturado → "Dia de pagamento ✎" abre a alteração global do financeiro. title/aria-label dizem a ação. */
.field-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    border-radius: 4px !important;
    color: #8a94a6;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    vertical-align: 1px;
    text-decoration: none;
    transition: color .15s, background-color .15s;
}
.field-edit:hover, .field-edit:focus { color: #3b6fe0; background-color: #f4f8ff; text-decoration: none; }
.field-edit:focus-visible { outline: 2px solid rgba(59, 111, 224, .35); outline-offset: 1px; }

/* --- Notificações (noty v2, tema "relax"): cartão branco com faixa e ícone pelo tipo ---
   O tema aplica estilos inline (fundo colorido, raio 2px, texto centralizado), por isso !important.
   Tipos: error (danger), warning (âmbar), success (verde de status, como as pills), info/information/alert (accent).
   Aviso que já traz ícone próprio (ex.: spinner "Aguarde...") não ganha o ícone do tipo. */
/* o tema aplica fundo/borda/sombra/raio no <li> que envolve o aviso (this.$bar = <li>); o <li> fica neutro e o cartão é o
   .noty_bar. O <li> tem overflow:hidden (animação de altura): o padding dá espaço para a sombra do cartão. */
ul[id^="noty_"][id$="_layout_container"] > li {
    margin: 0 !important;
    padding: 6px 12px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}
.noty_bar {
    position: relative;
    margin: 0 !important;
    border: 1px solid #e7ecf1 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #3f444a !important;
    /* sombra pequena de propósito: o <li> corta o que passar do padding (overflow:hidden da animação) */
    -webkit-box-shadow: inset 4px 0 0 var(--noty-tone, #3b6fe0), 0 3px 8px rgba(16, 24, 40, .12) !important;
    box-shadow: inset 4px 0 0 var(--noty-tone, #3b6fe0), 0 3px 8px rgba(16, 24, 40, .12) !important;
    --noty-tone: #3b6fe0;
}
.noty_bar.noty_type_error { --noty-tone: #e7505a; }
.noty_bar.noty_type_warning { --noty-tone: #c27c0e; }
.noty_bar.noty_type_success { --noty-tone: #40BF70; }
.noty_bar .noty_message {
    position: relative;
    padding: 11px 30px 11px 42px !important;
    text-align: left !important;
    font-size: 13px;
    font-weight: 400 !important;
    line-height: 1.45;
}
.noty_bar .noty_message::before {
    content: "\f05a";
    position: absolute;
    top: 11px;
    left: 16px;
    font: normal normal normal 16px/1 FontAwesome;
    color: var(--noty-tone, #3b6fe0);
}
.noty_bar.noty_type_error .noty_message::before { content: "\f06a"; }
.noty_bar.noty_type_warning .noty_message::before { content: "\f071"; }
.noty_bar.noty_type_success .noty_message::before { content: "\f058"; }
.noty_bar .noty_message:has(.noty_text > .fa:first-child)::before,
.noty_bar .noty_message:has(.noty_text > i:first-child)::before { content: none; }
.noty_bar .noty_message:has(.noty_text > .fa:first-child),
.noty_bar .noty_message:has(.noty_text > i:first-child) { padding-left: 16px !important; }
.noty_bar .noty_text .fa { color: var(--noty-tone, #3b6fe0); margin-right: 4px; }
.noty_bar .noty_text b, .noty_bar .noty_text strong { font-weight: 600; }
.noty_bar .noty_close { top: 12px !important; right: 10px !important; opacity: .5; }
.noty_bar .noty_progress_bar { height: 3px !important; background-color: var(--noty-tone, #3b6fe0) !important; opacity: .35 !important; }

/* --- Faixa de dias (bootstrap-datepaginator: #calendar-choice, .eq-day-picker): acabamento do design system ---
   Larguras e alturas continuam do plugin (calculadas em JS); aqui cor, borda, estados e ícones. O CSS do plugin usa
   !important e é injetado no <head>; por isso o prefixo .datepaginator* e !important.
   Dia: neutro · fim de semana (dp-off): fundo #fafbfc · hoje (dp-today): número em accent + traço · selecionado: accent ·
   fora do intervalo (dp-no-select): apagado. Setas e calendário em Font Awesome (o resto do app não usa Glyphicons). */
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination { display: flex; white-space: nowrap; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li > a {
    position: relative;
    border-color: #e7ecf1 !important;
    background-color: #fff !important;
    color: #5e6a7d !important;
    line-height: 1.35;
    transition: background-color .15s, color .15s;
}
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li:first-child > a { border-radius: 6px 0 0 6px !important; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li:last-child > a { border-radius: 0 6px 6px 0 !important; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li > a:hover,
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li > a:focus { background-color: #f4f8ff !important; color: #3b6fe0 !important; z-index: 2; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li > a:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px rgba(59, 111, 224, .45); }

/* fim de semana e divisória de semana */
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .dp-off { background-color: #fafbfc !important; color: #8a94a6 !important; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .dp-divider { border-left: 1px solid #c2cad8 !important; }

/* hoje: número em accent e traço embaixo (sem pintar o dia todo) */
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .dp-today { background-color: #fff !important; color: #3b6fe0 !important; font-weight: 600; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .dp-today::after {
    content: ""; position: absolute; left: 25%; right: 25%; bottom: 6px; height: 2px; border-radius: 2px; background: #3b6fe0;
}

/* selecionado */
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li > a.dp-selected,
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li > a.dp-selected:hover,
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li > a.dp-selected:focus {
    border-color: #2f5ec8 !important; background-color: #3b6fe0 !important; color: #fff !important; font-weight: 600; z-index: 3;
}
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .dp-selected.dp-today::after { background: rgba(255, 255, 255, .7); }

/* fora do intervalo permitido */
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li > a.dp-no-select,
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .pagination > li > a.dp-no-select:hover { color: #c2cad8 !important; background-color: #fff !important; cursor: not-allowed; }

/* setas e calendário em Font Awesome */
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .dp-nav .glyphicon,
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) #dp-calendar { font-family: FontAwesome; font-style: normal; font-weight: normal; -webkit-font-smoothing: antialiased; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .dp-nav .glyphicon { top: 0; font-size: 18px; line-height: 1; pointer-events: none; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .dp-nav .glyphicon-chevron-left::before { content: "\f104"; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) .dp-nav .glyphicon-chevron-right::before { content: "\f105"; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) #dp-calendar { top: 8px !important; right: 6px !important; padding: 4px !important; border-radius: 4px !important; font-size: 13px; line-height: 1; opacity: .85; cursor: pointer; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) #dp-calendar::before { content: "\f073"; }
:is(.datepaginator, .datepaginator-sm, .datepaginator-lg) #dp-calendar:hover { opacity: 1; background: rgba(255, 255, 255, .18); }

/* --- bootstrap-switch (make-switch "Sim/Não"): acabamento do design system ---
   Larguras são do plugin (JS); aqui forma, cores e estados. "Desligado" fica neutro quando a cor de off é danger/default
   (o vermelho cheio no "Não" parecia erro); a cor de "ligado" continua a da tela (success = verde do Metronic 8, primary = accent).
   Foco igual ao dos campos. */
.bootstrap-switch {
    border-color: #c2cad8 !important;
    border-radius: 6px !important;
    background: #eef1f5;
    transition: border-color .15s, box-shadow .15s;
}
.bootstrap-switch .bootstrap-switch-container { border-radius: 6px !important; }
.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container { -webkit-transition: margin-left .2s ease; transition: margin-left .2s ease; }
.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-off { font-size: 13px; font-weight: 600; letter-spacing: .01em; border-radius: 0 !important; }
.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,
.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,
.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on,
.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off { font-size: 12px; }

/* pegador: branco, com sombra leve, como um interruptor */
.bootstrap-switch .bootstrap-switch-label {
    position: relative;
    background: #fff !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .18), 0 0 0 1px rgba(16, 24, 40, .06);
}

/* cores das alças, todas no design system e com !important (o CSS do plugin pode ser carregado de novo depois, ex.: User.php):
   primary/info = accent · success = verde do Metronic 8 · warning = âmbar · danger ligado = vermelho ·
   desligado em danger/default = neutro (o "Não" vermelho parecia erro) */
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info { background: #3b6fe0 !important; color: #fff !important; }
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning { background: #c27c0e !important; color: #fff !important; }
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger { background: #e7505a !important; color: #fff !important; }
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default { background: #eef1f5 !important; color: #5e6a7d !important; }
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default { background: #eef1f5 !important; color: #3f444a !important; }

/* foco (teclado) igual ao dos campos */
.bootstrap-switch.bootstrap-switch-focused { border-color: #3b6fe0 !important; box-shadow: 0 0 8px rgba(59, 111, 224, .45) !important; }

/* desabilitado / somente leitura: o switch inteiro apagado */
.bootstrap-switch.bootstrap-switch-disabled, .bootstrap-switch.bootstrap-switch-readonly { opacity: .55; }
.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,
.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,
.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,
.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,
.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,
.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label { opacity: 1 !important; }

/* Janela dos avisos do sistema (Controle de notificações; MY_Controller::notification_control_modal) */
.pb-notice-modal .modal-header { border-bottom: 1px solid #e7ecf1; }
.pb-notice-modal .modal-title { font-weight: 600; }
.pb-notice-modal .modal-title .fa { margin-right: 6px; color: #3b6fe0; }
.pb-notice-modal__body { max-height: calc(100vh - 220px); overflow-y: auto; font-size: 14px; line-height: 1.55; color: #3f444a; }
.pb-notice-modal__body img { max-width: 100%; height: auto; }
.pb-notice-modal .modal-footer { border-top: 1px solid #e7ecf1; }
