/*
 * Agendamento CREA-GO: o visual do sistema original (AdminLTE 2.0.1 + Bootstrap 3.3 + assets/css/application.css),
 * reconstruído sobre o Bootstrap 5 com os valores do CSS original (git 6bb2b86: libs/lte, libs/select2, tema Redmond de
 * libs/jquery-ui-1.11.4, libs/toast-message e, no login, private/assets/css/shared/style.css).
 * Nada inline nos templates: a CSP é style-src 'self'. Quebras do Bootstrap 3: xs < 768 px; sm >= 768; lg >= 1200.
 */

/* ---- Fontes, servidas pelo próprio sistema (o AdminLTE buscava a Source Sans Pro no Google) ---- */
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 300; font-display: swap; src: url(../vendor/source-sans-pro/source-sans-pro-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/source-sans-pro/source-sans-pro-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-style: italic; font-weight: 400; font-display: swap; src: url(../vendor/source-sans-pro/source-sans-pro-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/source-sans-pro/source-sans-pro-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/source-sans-pro/source-sans-pro-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 300; font-display: swap; src: url(../vendor/roboto/roboto-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/roboto/roboto-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url(../vendor/roboto/roboto-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url(../vendor/roboto/roboto-latin-700-normal.woff2) format('woff2'); }
/* Fonte de ícones própria do sistema antigo (libs/fontes), recortada só com os ícones usados (docs/deploy/DEPENDENCIAS.md). */
@font-face { font-family: 'font-alego'; font-style: normal; font-weight: normal; font-display: block; src: url(../fonts/font-alego/font-alego.woff2) format('woff2'); }

[class^="icon-"], [class*=" icon-"] {
    font-family: 'font-alego'; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none;
    line-height: 1; -webkit-font-smoothing: antialiased; speak: none;
}
.icon-user:before { content: "\e00d"; }
.icon-location:before { content: "\e012"; }
.icon-calendar:before { content: "\e03f"; }
.icon-plus-2:before { content: "\e07d"; }
.icon-list:before { content: "\e093"; }
.icon-download:before { content: "\e0a3"; }
.icon-pencil-4:before { content: "\e122"; }
.icon-trashcan:before { content: "\e329"; }
.icon-ok:before { content: "\f00c"; }
.icon-trash-2:before { content: "\f014"; }
.icon-time:before { content: "\f017"; }
.icon-refresh:before { content: "\f021"; }
.icon-book-3:before { content: "\f02d"; }
.icon-cogs:before { content: "\f085"; }
.icon-building:before { content: "\f0f7"; }
.icon-spinner:before { content: "\f110"; }
i.icon { font-style: normal; }
.icone-gira { display: inline-block; animation: icone-gira 2s infinite linear; }
@keyframes icone-gira { from { transform: rotate(0deg); } to { transform: rotate(359deg); } }

/* ---- Base: Bootstrap 3 (14 px, entrelinha 1.428) + AdminLTE + application.css ---- */
:root {
    --bs-body-font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.42857143;
    --bs-body-color: #333;
    --bs-link-color: #3c8dbc;
    --bs-link-color-rgb: 60, 141, 188;
    --bs-link-hover-color: #72afd2;
    --bs-link-hover-color-rgb: 114, 175, 210;
    --bs-border-radius: 4px;
}
html { font-size: 14px; }
body { font-weight: 400; overflow-x: hidden; overflow-y: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: #3c8dbc; text-decoration: none; }
a:hover, a:active, a:focus { color: #72afd2; text-decoration: none; }
b, strong { font-weight: bold; }
.container-fluid, .row { --bs-gutter-x: 30px; }

h1, h2, h3, h4, h5, h6 { color: #333; font-family: Cambria, Georgia, serif; font-weight: 500; line-height: 1.1; margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; }
h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }
p { font-family: 'Lato', Calibri, Arial, sans-serif; margin: 0 0 10px; }
label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: bold; }
form label { font-size: 14px; color: #555; font-family: 'Lato', Calibri, Arial, sans-serif; font-weight: bold; }
section label { font-size: 10px; }
.upper { text-transform: uppercase; }
.center { text-align: center; }
.left { text-align: left; }
.right { text-align: right; }
.min { width: 4%; }
.pull-right { float: right !important; }
.pull-left { float: left !important; }
.img-circle { border-radius: 50%; }
.text-success { color: #00a65a !important; }
@media (max-width: 767.98px) { .hidden-xs { display: none !important; } }

/* ---- Moldura do painel (AdminLTE: .wrapper / .main-header / .main-sidebar / .content-wrapper / .main-footer) ---- */
.wrapper { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.skin-purple .wrapper, .skin-purple .main-sidebar, .skin-blue .wrapper { background: #222d32; }
.content-wrapper, .main-footer { margin-left: 230px; transition: transform .3s ease-in-out, margin-left .3s ease-in-out; }
.content-wrapper { flex: 1 0 auto; background-color: #ecf0f5; }
.main-footer { background: #fff; padding: 15px; color: #444; border-top: 1px solid #eee; }
.main-footer::after { content: ""; display: table; clear: both; }
.layout-top-nav .content-wrapper, .layout-top-nav .main-footer { margin-left: 0; }
.fixed .main-header, .fixed .main-sidebar { position: fixed; }
.fixed .main-header { top: 0; right: 0; left: 0; }
.fixed .content-wrapper { padding-top: 50px; }
@media (min-width: 768px) {
    .sidebar-collapse .content-wrapper, .sidebar-collapse .main-footer { margin-left: 0; }
    .sidebar-collapse .main-sidebar { transform: translate(-230px, 0); }
}
@media (max-width: 767.98px) {
    .content-wrapper, .main-footer { margin-left: 0; }
    .fixed .content-wrapper { padding-top: 100px; }
    .main-sidebar { padding-top: 100px !important; transform: translate(-230px, 0); }
    .sidebar-open .main-sidebar { transform: translate(0, 0); }
    .sidebar-open .content-wrapper, .sidebar-open .main-footer { transform: translate(230px, 0); }
}

.main-header { position: relative; max-height: 100px; z-index: 1030; }
.main-header::after { content: ""; display: table; clear: both; }
.main-header .logo {
    display: block; float: left; width: 230px; height: 50px; padding: 0 15px; overflow: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 20px; font-weight: 300; line-height: 50px; text-align: center;
    transition: width .3s ease-in-out;
}
.main-header > .navbar { display: block; position: relative; margin: 0 0 0 230px; padding: 0; min-height: 50px; border: none; border-radius: 0; }
.main-header > .navbar::after { content: ""; display: table; clear: both; }
.main-header .sidebar-toggle {
    float: left; padding: 15px; border: 0; background: transparent; color: #fff;
    font-family: FontAwesome; font-size: 14px; line-height: 20px; cursor: pointer;
}
.main-header .sidebar-toggle::before { content: "\f0c9"; }
.navbar-custom-menu { float: right; margin-right: 5px; }
.navbar-custom-menu > .navbar-nav { display: flex; flex-direction: row; margin: 0 10px 0 0; padding: 0; list-style: none; }
.navbar-custom-menu > .navbar-nav > li { position: relative; }
.navbar-custom-menu > .navbar-nav > li > a { display: block; padding: 15px; line-height: 20px; color: #fff; }
.navbar-custom-menu > .navbar-nav > li > .dropdown-menu { position: absolute; top: 100%; right: 0; left: auto; }
.navbar-nav > .user-menu > .dropdown-toggle::after { display: none; }
.navbar-nav > .user-menu .user-image { float: left; width: 25px; height: 25px; border-radius: 50%; margin-right: 10px; margin-top: -2px; }
.navbar-nav > .user-menu > .dropdown-menu { width: 280px; margin: 0; padding: 1px 0 0; border-radius: 0; border-top-width: 0; }
.navbar-nav > .user-menu > .dropdown-menu > li.user-header { height: 175px; padding: 10px; text-align: center; }
.navbar-nav > .user-menu > .dropdown-menu > li.user-header > img { height: 90px; width: 90px; border: 3px solid rgba(255, 255, 255, .2); }
.navbar-nav > .user-menu > .dropdown-menu > li.user-header > p { color: rgba(255, 255, 255, .8); font-size: 17px; margin-top: 10px; }
.navbar-nav > .user-menu > .dropdown-menu > li.user-header > p > small { display: block; font-size: 12px; }
.navbar-nav > .user-menu > .dropdown-menu > .user-footer { background-color: #f9f9f9; padding: 10px; }
.navbar-nav > .user-menu > .dropdown-menu > .user-footer::after { content: ""; display: table; clear: both; }
.navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default { color: #666; }
@media (max-width: 767.98px) {
    .main-header .logo, .main-header > .navbar { float: none; width: 100%; margin: 0; }
    .navbar-nav > .user-menu .user-image { float: none; margin-right: 0; margin-top: -8px; line-height: 10px; }
}

.skin-purple .main-header .navbar { background-color: #605ca8; }
.skin-purple .main-header .logo { background-color: #555299; color: #fff; }
.skin-purple .main-header .logo:hover { background: #545096; }
.skin-purple .main-header .navbar .nav > li > a:hover, .skin-purple .main-header .navbar .nav > li > a:focus,
.skin-purple .main-header .navbar .nav > li > a.show { background: rgba(0, 0, 0, .1); color: #f6f6f6; }
.skin-purple .main-header .navbar .sidebar-toggle:hover, .skin-purple .main-header .navbar .sidebar-toggle:focus-visible { background-color: #555299; color: #f6f6f6; }
.skin-purple .main-header li.user-header { background-color: #605ca8; }

.main-sidebar { position: absolute; top: 0; left: 0; padding-top: 50px; min-height: 100%; width: 230px; z-index: 810; transition: transform .3s ease-in-out; }
.fixed .main-sidebar { height: 100%; }
.sidebar { padding-bottom: 10px; }
.fixed .sidebar { overflow: auto; height: 100%; }
.user-panel { position: relative; padding: 10px; }
.user-panel::after { content: ""; display: table; clear: both; }
.user-panel > .image > img { width: 45px; height: 45px; }
.user-panel > .info { padding: 5px 5px 5px 15px; font-size: 14px; font-weight: 600; line-height: 1; color: #fff; }
.user-panel > .info > p { margin-bottom: 9px; font-family: inherit; }
.user-panel > .info > span { display: inline-block; padding-right: 5px; margin-top: 3px; font-size: 11px; font-weight: normal; }
.user-panel > .info > span > .fa { margin-right: 3px; }
.sidebar-menu { list-style: none; margin: 0; padding: 0; }
.sidebar-menu > li { position: relative; margin: 0; padding: 0; }
.sidebar-menu > li > a { display: block; padding: 12px 5px 12px 15px; margin-right: 1px; border-left: 3px solid transparent; color: #b8c7ce; }
.sidebar-menu > li > a > .fa { width: 20px; }
.skin-purple .sidebar-menu > li > a:hover, .skin-purple .sidebar-menu > li > a:focus-visible { color: #fff; background: #1e282c; border-left-color: #605ca8; }

/* ---- Painel e caixa (Bootstrap 3 .panel + AdminLTE .box) ---- */
.panel { margin-bottom: 20px; background-color: #fff; border: 1px solid transparent; border-radius: 4px; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.panel-default { border-color: #ddd; }
.panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; }
.panel-heading::after { content: ""; display: table; clear: both; }
.panel-default > .panel-heading { color: #333; background-color: #f5f5f5; border-color: #ddd; }
.panel-title { margin: 0; font-size: 16px; color: #333; font-family: 'Lato', Calibri, Arial, sans-serif; font-weight: bold; line-height: 1.1; }
.panel-body { padding: 15px; }
.panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; }
.box { position: relative; width: 100%; margin-bottom: 20px; background: #fff; border-top: 3px solid #d2d6de; border-radius: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.box-header { position: relative; display: block; padding: 10px; color: #444; }
.box-header::after { content: ""; display: table; clear: both; }
.box-header .box-title { display: inline-block; margin: 0; font-family: Cambria, Georgia, serif; font-size: 18px; font-weight: 500; line-height: 1; color: #333; }
.table-container { overflow-x: auto; }
/* Busca de "Dados do Requerente" (não existia no original): pequena, à direita do título do painel. */
.busca-painel { width: 340px; max-width: 100%; margin: -5px 0 -5px 10px; }
.busca-painel .form-control { height: 30px; padding: 5px 10px; font-size: 12px; }
.busca-painel .btn { border-radius: 0; }
@media (max-width: 575.98px) { .busca-painel { float: none !important; width: 100%; margin: 0 0 8px; } }

/* ---- Formulários (Bootstrap 3 + AdminLTE: cantos retos, borda #d2d6de, foco azul) ---- */
.form-group { margin-bottom: 15px; }
.form-control {
    display: block; width: 100%; height: 34px; padding: 6px 12px; font-family: inherit; font-size: 14px; line-height: 1.42857143;
    color: #555; background-color: #fff; background-image: none; border: 1px solid #d2d6de; border-radius: 0 !important; box-shadow: none;
}
.form-control:focus { color: #555; background-color: #fff; border-color: #3c8dbc !important; box-shadow: none; outline: 0; }
.form-control::placeholder { color: #bbb; opacity: 1; }
.form-control[readonly], .form-control:disabled { background-color: #eee; opacity: 1; }
select.form-control { appearance: auto; -webkit-appearance: menulist; }
select.form-control[multiple] { height: auto; }
.input-group { flex-wrap: nowrap; }
.input-group-addon {
    display: flex; align-items: center; justify-content: center; padding: 6px 12px; font-size: 14px; font-weight: normal; line-height: 1;
    color: #555; text-align: center; white-space: nowrap; background-color: #fff; border: 1px solid #d2d6de; border-right: 0; border-radius: 0;
}
.input-group > .form-control, .input-group > .ts-wrapper { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
input[type="checkbox"] { margin: 4px 0 0; line-height: normal; }
/* Campo sem .form-control no original (qtde de atendentes, horário diferenciado, status): o aspecto padrão do navegador. */
.campo-simples { height: 26px; padding: 1px 4px; font: inherit; color: #333; background: #fff; border: 1px solid #a9a9a9; border-radius: 2px; }
.largura-10 { width: 10%; min-width: 60px; }
.largura-20 { width: 20%; min-width: 120px; }
.largura-84 { width: 84%; }
.largura-90 { width: 90%; }
.largura-91 { width: 91%; }
/* Erro de validação devolvido pelo servidor: o vermelho do AdminLTE (.has-error), sem o ícone do Bootstrap 5. */
.form-control.is-invalid, .was-validated .form-control:invalid { border-color: #dd4b39 !important; background-image: none; padding-right: 12px; }
.campo-simples.is-invalid { border-color: #dd4b39; }
.invalid-feedback { margin-top: 3px; font-size: 12px; color: #dd4b39; }
.invalid-feedback:empty { display: none !important; }
.is-invalid ~ .invalid-feedback, .input-group:has(.is-invalid) ~ .invalid-feedback { display: block; }

/* ---- Botões (Bootstrap 3 + AdminLTE) ---- */
.btn {
    --bs-btn-padding-x: 12px; --bs-btn-padding-y: 6px; --bs-btn-font-family: inherit; --bs-btn-font-size: 14px; --bs-btn-font-weight: normal;
    --bs-btn-line-height: 1.42857143; --bs-btn-color: #333; --bs-btn-border-radius: 3px; --bs-btn-hover-color: #333;
    --bs-btn-hover-bg: transparent; --bs-btn-hover-border-color: transparent; --bs-btn-active-color: #333; --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent; --bs-btn-disabled-opacity: .65; --bs-btn-disabled-color: #333;
    --bs-btn-disabled-bg: transparent; --bs-btn-disabled-border-color: transparent;
    white-space: nowrap; box-shadow: none;
}
.btn:active, .btn.active { box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); }
.btn:disabled, .btn.disabled { cursor: not-allowed; box-shadow: none; }
.btn-default {
    --bs-btn-color: #444; --bs-btn-bg: #f4f4f4; --bs-btn-border-color: #ddd; --bs-btn-hover-color: #444; --bs-btn-hover-bg: #e7e7e7;
    --bs-btn-hover-border-color: #ddd; --bs-btn-active-color: #444; --bs-btn-active-bg: #e7e7e7; --bs-btn-active-border-color: #ddd;
    --bs-btn-disabled-color: #444; --bs-btn-disabled-bg: #f4f4f4; --bs-btn-disabled-border-color: #ddd;
}
.btn-primary {
    --bs-btn-color: #fff; --bs-btn-bg: #3c8dbc; --bs-btn-border-color: #367fa9; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #367fa9;
    --bs-btn-hover-border-color: #367fa9; --bs-btn-active-color: #fff; --bs-btn-active-bg: #367fa9; --bs-btn-active-border-color: #367fa9;
    --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #3c8dbc; --bs-btn-disabled-border-color: #367fa9; --bs-btn-focus-shadow-rgb: 60, 141, 188;
}
.btn-success {
    --bs-btn-color: #fff; --bs-btn-bg: #00a65a; --bs-btn-border-color: #008d4c; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #008d4c;
    --bs-btn-hover-border-color: #008d4c; --bs-btn-active-color: #fff; --bs-btn-active-bg: #008d4c; --bs-btn-active-border-color: #008d4c;
}
.btn-danger {
    --bs-btn-color: #fff; --bs-btn-bg: #dd4b39; --bs-btn-border-color: #d73925; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #d73925;
    --bs-btn-hover-border-color: #d73925; --bs-btn-active-color: #fff; --bs-btn-active-bg: #d73925; --bs-btn-active-border-color: #d73925;
}
.btn-sm { --bs-btn-padding-x: 10px; --bs-btn-padding-y: 5px; --bs-btn-font-size: 12px; --bs-btn-border-radius: 3px; --bs-btn-line-height: 1.5; }
.btn-flat { --bs-btn-border-radius: 0; box-shadow: none; }
.btn-block { display: block; width: 100%; }
.btn.dropdown-toggle::after { margin-left: 4px; vertical-align: middle; border-top-width: 4px; border-right-width: 4px; border-left-width: 4px; }
.btn-group > .btn { flex: 0 0 auto; }

/* ---- Menus suspensos (Bootstrap 3 + AdminLTE) ---- */
.dropdown-menu {
    --bs-dropdown-min-width: 160px; --bs-dropdown-padding-y: 5px; --bs-dropdown-spacer: 2px; --bs-dropdown-font-size: 14px;
    --bs-dropdown-color: #333; --bs-dropdown-border-color: #eee; --bs-dropdown-border-radius: 4px; --bs-dropdown-link-color: #777;
    --bs-dropdown-link-hover-color: #333; --bs-dropdown-link-hover-bg: #e1e3e9; --bs-dropdown-link-active-color: #333;
    --bs-dropdown-link-active-bg: #e1e3e9; --bs-dropdown-item-padding-x: 20px; --bs-dropdown-item-padding-y: 3px;
    --bs-dropdown-link-disabled-color: #bbb;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}
.dropdown-menu .dropdown-item { line-height: 1.42857143; }
.dropdown-menu .dropdown-item > [class*="icon-"], .dropdown-menu .dropdown-item > .fa { margin-right: 10px; }
.dropdown-menu .dropdown-item.disabled { pointer-events: auto; cursor: not-allowed; }

/* ---- Tabelas (Bootstrap 3 condensada/com borda + AdminLTE + application.css) ---- */
.table { --bs-table-bg: transparent; --bs-table-border-color: #f4f4f4; width: 100%; margin-bottom: 20px; background-color: #fff; }
.table > :not(caption) > * > * { padding: 8px; line-height: 1.42857143; color: inherit; background-color: transparent; border-top: 1px solid #f4f4f4; border-bottom: 0; box-shadow: none; }
.table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #f4f4f4; }
.table-condensed > :not(caption) > * > * { padding: 5px; }
.table-bordered { border: 1px solid #f4f4f4; }
.table-bordered > :not(caption) > * > * { border: 1px solid #f4f4f4; }
.table-bordered > thead > tr > th { border-bottom-width: 2px; }
table thead { background: #f5f5f5; }
table thead th { font-family: Cambria, Georgia, serif; font-size: 11px; font-weight: bold; text-transform: uppercase; text-align: center; color: #555; text-shadow: 0 1px 1px #fff; }
table tbody tr td { vertical-align: middle !important; }
tbody tr:hover { background-color: #ffffe0; color: #283c82; text-shadow: 0 1px 1px #fff; }
td.vazio { text-align: center; }

/* ---- Paginação (Bootstrap 3 + AdminLTE; página atual de application.css) ---- */
.pagination { display: inline-flex; margin: 0; padding-left: 0; list-style: none; border-radius: 4px; }
.pagination > li > a { position: relative; float: left; padding: 6px 12px; margin-left: -1px; line-height: 1.42857143; color: #666; background: #fafafa; border: 1px solid #ddd; }
.pagination > li:first-child > a { margin-left: 0; }
.pagination > li > a:hover, .pagination > li > a:focus { color: #23527c; background-color: #eee; border-color: #ddd; }
.pagination > li > a.atual { background-color: #5f9ea0; color: #fff; font-weight: bold; }

/* ---- Janelas (Bootstrap 3 + AdminLTE: sem cantos, sombra leve, fundo escurecido) ---- */
.modal { --bs-modal-width: 600px; --bs-modal-margin: 10px; --bs-modal-border-width: 0; --bs-modal-border-radius: 0; --bs-modal-padding: 15px; background: rgba(0, 0, 0, .3); }
@media (min-width: 576px) { .modal { --bs-modal-margin: 30px; } }
.modal-content { border: 0; border-radius: 0; box-shadow: 0 2px 3px rgba(0, 0, 0, .125); }
.modal-header { display: block; min-height: 16.43px; padding: 15px; border-bottom: 1px solid #f4f4f4; }
.modal-header::after { content: ""; display: table; clear: both; }
.modal-title { margin: 0; line-height: 1.42857143; }
.modal-body { padding: 15px; }
.modal-footer { display: block; padding: 15px; text-align: right; border-top: 1px solid #e5e5e5; }
.modal-footer > * { margin: 0; }
.modal-footer .btn + .btn { margin-left: 5px; }
.close { float: right; padding: 0; font-size: 21px; font-weight: bold; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .2; background: transparent; border: 0; cursor: pointer; }
.close:hover, .close:focus { color: #000; opacity: .5; }
.modal-header .close { margin-top: -2px; }
.modal-body dl { margin-bottom: 0; }
.modal-body dt { font-weight: bold; }

/* "Por favor aguarde" (o #dialogo do sistema original): fica por cima de tudo enquanto o servidor processa. */
.aguarde { position: fixed; inset: 0; z-index: 2000; overflow-y: auto; background: rgba(0, 0, 0, .5); }
.aguarde[hidden] { display: none; }
.aguarde .modal-dialog { pointer-events: auto; }
@media (min-width: 768px) { .aguarde .modal-dialog { max-width: 600px; margin: 30px auto; } }

/* ---- Lista com busca no visual do select2 4.0 (Tom Select) ---- */
.ts-wrapper.form-control { height: auto; padding: 0; border: 0 !important; background: none; }
.ts-control, .ts-dropdown, .ts-control input, .ts-dropdown input { font-family: inherit; font-size: 14px; line-height: 1.42857143; color: #444; }
.ts-wrapper.single .ts-control {
    height: 34px; padding: 0 20px 0 8px; flex-wrap: nowrap; align-items: center; color: #444; line-height: 28px; cursor: pointer;
    background-color: #fff; border: 1px solid #d2d6de; border-radius: 0;
}
.ts-wrapper.single .ts-control > .item { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ts-wrapper.single .ts-control::after {
    content: ""; position: absolute; top: 50%; right: 7px; margin-top: -2px; width: 0; height: 0;
    border-style: solid; border-width: 5px 4px 0 4px; border-color: #888 transparent transparent transparent;
}
.ts-wrapper.single.dropdown-active .ts-control::after { border-width: 0 4px 5px 4px; border-color: transparent transparent #888 transparent; }
.ts-wrapper.focus .ts-control { border-color: #3c8dbc; }
.ts-wrapper.single.is-invalid .ts-control, .ts-wrapper.multi.is-invalid .ts-control { border-color: #dd4b39; }
.ts-wrapper.multi .ts-control { min-height: 32px; padding: 0 5px 5px; background-color: #fff; border: 1px solid #aaa; border-radius: 4px; cursor: text; }
.ts-wrapper.multi.focus .ts-control { border-color: #000; }
.ts-wrapper.multi .ts-control > div.item {
    margin: 5px 5px 0 0; padding: 0 5px; color: #333; line-height: 1.42857143; cursor: default;
    background-color: #e4e4e4; border: 1px solid #aaa; border-radius: 4px;
}
.ts-wrapper.multi .ts-control > input { margin-top: 5px !important; }
.ts-wrapper.plugin-remove_button .item { flex-direction: row-reverse; }
.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove { margin: 0 2px 0 0; padding: 0; color: #999; font-weight: bold; border: 0; }
.ts-wrapper.plugin-remove_button .item .remove:hover { color: #333; background: none; }
.ts-dropdown { z-index: 1051; margin: 0; color: #444; background-color: #fff; border: 1px solid #aaa; border-top: 0; border-radius: 0 0 4px 4px; box-shadow: none; }
.ts-dropdown .dropdown-input-wrap { padding: 4px; }
.plugin-dropdown_input .dropdown-input { padding: 4px; border: 1px solid #aaa; border-width: 1px; }
.plugin-dropdown_input .dropdown-input:focus { outline: 0; border-color: #3c8dbc; }
.ts-dropdown .option, .ts-dropdown .no-results { padding: 6px; min-height: 32px; }
.ts-dropdown .option.selected { background-color: #ddd; }
.ts-dropdown .active, .ts-dropdown .option.active { background-color: #5897fb; color: #fff; }
.ts-dropdown [data-selectable] .highlight { background: none; color: inherit; }
.ts-dropdown-content { max-height: 200px; }

/* ---- Autocompletar do requerente (devbridge autocomplete, como em application.css) ---- */
.autocomplete-suggestions { position: absolute; top: 100%; z-index: 1050; max-height: 300px; overflow: auto; background: #fff; border: 1px solid #999; cursor: default; }
.autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.autocomplete-selected { background: #f0f0f0; }
.autocomplete-suggestions strong { font-weight: normal; color: #ff6700; }

/* ---- Calendário (jQuery UI 1.11 datepicker, tema Redmond) ---- */
.ui-datepicker {
    position: absolute; top: 100%; z-index: 1060; width: 17em; padding: .2em .2em 0; margin-top: 1px;
    font-family: 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-size: 1.1em; line-height: normal;
}
.ui-datepicker[hidden] { display: none; }
.ui-widget-content { border: 1px solid #a6c9e2; background: #fcfdfd url(../images/calendario/ui-bg_inset-hard_100_fcfdfd_1x100.png) 50% bottom repeat-x; color: #222; }
.ui-corner-all { border-radius: 5px; }
.ui-widget-header { border: 1px solid #4297d7; background: #5c9ccc url(../images/calendario/ui-bg_gloss-wave_55_5c9ccc_500x100.png) 50% 50% repeat-x; color: #fff; font-weight: bold; }
.ui-datepicker .ui-datepicker-header { position: relative; padding: .2em 0; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
    position: absolute; top: 2px; width: 1.8em; height: 1.8em; padding: 0; background: transparent; border: 1px solid transparent; cursor: pointer;
}
.ui-datepicker .ui-datepicker-prev { left: 2px; }
.ui-datepicker .ui-datepicker-next { right: 2px; }
.ui-datepicker .ui-datepicker-prev:hover, .ui-datepicker .ui-datepicker-next:hover,
.ui-datepicker .ui-datepicker-prev:focus-visible, .ui-datepicker .ui-datepicker-next:focus-visible {
    top: 1px; border: 1px solid #79b7e7; background: #d0e5f5 url(../images/calendario/ui-bg_glass_75_d0e5f5_1x400.png) 50% 50% repeat-x; outline: 0;
}
.ui-datepicker .ui-datepicker-prev:hover, .ui-datepicker .ui-datepicker-prev:focus-visible { left: 1px; }
.ui-datepicker .ui-datepicker-next:hover, .ui-datepicker .ui-datepicker-next:focus-visible { right: 1px; }
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { position: absolute; top: 50%; left: 50%; margin-top: -8px; margin-left: -8px; }
.ui-icon { display: block; width: 16px; height: 16px; overflow: hidden; text-indent: -99999px; background-repeat: no-repeat; }
.ui-widget-header .ui-icon { background-image: url(../images/calendario/ui-icons_d8e7f3_256x240.png); }
.ui-datepicker-prev:hover .ui-icon, .ui-datepicker-next:hover .ui-icon { background-image: url(../images/calendario/ui-icons_217bc0_256x240.png); }
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
.ui-datepicker table { width: 100%; margin: 0 0 .4em; font-size: .9em; border-collapse: collapse; }
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
.ui-datepicker td { padding: 1px; border: 0; }
.ui-datepicker td span, .ui-datepicker td button { display: block; width: 100%; padding: .2em; font: inherit; text-align: right; text-decoration: none; }
.ui-state-default { border: 1px solid #c5dbec; background: #dfeffc url(../images/calendario/ui-bg_glass_85_dfeffc_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #2e6e9e; }
.ui-datepicker td button.ui-state-default { cursor: pointer; }
.ui-datepicker td button.ui-state-default:hover, .ui-datepicker td button.ui-state-default:focus-visible {
    border: 1px solid #79b7e7; background: #d0e5f5 url(../images/calendario/ui-bg_glass_75_d0e5f5_1x400.png) 50% 50% repeat-x; color: #1d5987; outline: 0;
}
.ui-datepicker td .ui-state-highlight { border: 1px solid #fad42e; background: #fbec88 url(../images/calendario/ui-bg_flat_55_fbec88_40x100.png) 50% 50% repeat-x; color: #363636; }
.ui-datepicker td .ui-state-active, .ui-datepicker td .ui-state-active:hover {
    border: 1px solid #79b7e7; background: #f5f8f9 url(../images/calendario/ui-bg_inset-hard_100_f5f8f9_1x100.png) 50% 50% repeat-x; font-weight: bold; color: #e17009;
}
.ui-state-disabled { opacity: .35; background-image: none; cursor: default !important; }
.campo-data { position: relative; }

/* ---- Avisos (jquery.toastmessage: canto superior direito, ícone, borda colorida) ---- */
.avisos { position: fixed; top: 20px; right: 20px; z-index: 9999; width: 280px; }
.aviso {
    position: relative; display: block; margin: 0 0 12px; padding: 20px 6px; color: #fff; background: #333; opacity: .9;
    border: 2px solid #999; border-radius: 10px; font-family: 'Lucida Grande', sans-serif; font-size: 14px; animation: aviso-entra 1s;
}
.aviso p { margin: 8px 24px 0 50px; text-align: left; }
.aviso.saindo { opacity: 0; transition: opacity .6s; }
.aviso-imagem { position: absolute; top: 50%; left: 10px; width: 32px; height: 32px; margin-top: -16px; }
.aviso-sucesso .aviso-imagem { background: url(../images/aviso/success.png); }
.aviso-erro .aviso-imagem { background: url(../images/aviso/error.png); }
.aviso-alerta .aviso-imagem { background: url(../images/aviso/warning.png); }
.aviso-info .aviso-imagem { background: url(../images/aviso/notice.png); }
.aviso-erro { border-color: #b32b2b; }
.aviso-alerta { border-color: #fcbd57; }
.aviso-fechar { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; padding: 0; background: url(../images/aviso/close.gif); border: 0; cursor: pointer; }
@keyframes aviso-entra { from { opacity: 0; } to { opacity: .9; } }
@media (max-width: 400px) { .avisos { right: 10px; left: 10px; width: auto; } }

/* ---- Tela pública (layout-top-nav do AdminLTE; o cabeçalho original fica escuro porque o <header> não tem .navbar) ---- */
.layout-top-nav .main-header .navbar-header { float: left; }
.layout-top-nav .main-header .navbar-brand { float: left; height: 50px; padding: 15px; margin: 0; font-size: 18px; line-height: 20px; color: #fff; }
.layout-top-nav .main-header .navbar-brand:hover { color: #fff; }
.content-header { position: relative; display: flex; flex-wrap: wrap; padding: 15px 15px 0; }
.content-header > div { width: 100%; padding: 0 15px; }
@media (min-width: 768px) { .content-header > div { width: 50%; } }
.titulo-publico { margin-top: 20px; margin-bottom: 10px; font-family: Arial, sans-serif; font-size: 28px; font-weight: bolder; }
.passo-a-passo { font-family: Arial, sans-serif; font-weight: bolder; }
.passo-a-passo a { font-family: Arial, sans-serif; font-weight: bolder; }
.destaque { background-color: rgba(255, 255, 0, .3); font-family: Arial, sans-serif; font-weight: bolder; }
.content { min-height: 250px; padding: 15px; margin-right: auto; margin-left: auto; }
/* No original os títulos flutuam (float) e o painel começa logo abaixo deles, por cima do recuo do .content. */
.content-header + .content { padding-top: 0; }
.box-header .titulo-arial { font-family: Arial, sans-serif; font-weight: bolder; }
.linha-carteira { margin-top: 10px; font-weight: bold; }
.linha-carteira label { display: inline; margin: 0; font-family: inherit; font-size: 14px; color: #333; font-weight: bold; }
.linha-listar { margin-top: 5px; }
.espaco-linha { margin-top: 20px; }
.btn-group-toggle > .btn { position: relative; font-family: 'Lato', Calibri, Arial, sans-serif; font-weight: normal; color: #555; }
.btn-group-toggle > .btn input[type="radio"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; }
.btn-group-toggle > .btn:has(input:focus-visible) { outline: 2px solid #3c8dbc; outline-offset: -2px; }
.btn-horario { --bs-btn-padding-y: 6px; }
.observacao { color: red; font-family: Arial, sans-serif; font-weight: bolder; }
.g-recaptcha { margin-top: 15px; }

/* ---- Login (private/index.html do sistema original: tema Star Admin, fundo azul do CREA) ---- */
.tela-login { background: #054589; font-family: Roboto, sans-serif; }
.auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 0 15px; }
.auth-coluna { width: 100%; }
@media (min-width: 992px) { .auth-coluna { width: calc(33.3333% - 15px); } }
.auth .img-responsive { display: block; width: 100%; height: auto; }
.auto-form-wrapper { margin-top: 10px; padding: 40px 40px 10px; background: rgba(255, 255, 255, .9); border-radius: 4px; box-shadow: 0 -25px 37.7px 11.3px rgba(8, 143, 220, .07); }
.auto-form-wrapper .form-group { margin-bottom: 16px; }
.auto-form-wrapper label { margin-bottom: 8px; font-family: Roboto, sans-serif; font-size: 14px; font-weight: normal; line-height: 1; color: #212529; vertical-align: top; }
.auto-form-wrapper .input-group { height: 44px; }
.auto-form-wrapper .form-control {
    height: 44px; padding: 0 12px; font-family: Roboto, sans-serif; font-size: 12px; font-weight: 300; line-height: 14px; color: #212529;
    border: 1px solid #cfd5db; border-right: none; border-radius: 6px 0 0 6px !important;
}
.auto-form-wrapper .form-control:focus { border-color: #cfd5db !important; }
.auto-form-wrapper .input-group-text { padding: 9px 22px; font-size: 12px; color: #b6b6b6; background: #fff; border: 1px solid #cfd5db; border-left: none; border-radius: 0 6px 6px 0; }
.auto-form-wrapper .submit-btn {
    --bs-btn-padding-y: 12px; --bs-btn-padding-x: 8px; --bs-btn-font-size: 13px; --bs-btn-font-weight: 600; --bs-btn-line-height: 1;
    --bs-btn-border-radius: 2px; --bs-btn-bg: #2196f3; --bs-btn-border-color: #2196f3; --bs-btn-hover-bg: #0c83e2; --bs-btn-hover-border-color: #0c7cd5;
    --bs-btn-active-bg: #0c7cd5; --bs-btn-active-border-color: #0b75c9; --bs-btn-disabled-bg: #2196f3; --bs-btn-disabled-border-color: #2196f3;
    font-family: Roboto, sans-serif;
}
.auto-form-wrapper .text-block { margin: 16px 0; text-align: center; }
.text-small { font-size: 12px; }
.font-weight-semibold { font-weight: 600; }
.msg-erro { color: #dd4b39; }
.footer-text { margin-top: 44px; color: rgba(255, 255, 255, .4); text-align: center; font-family: Roboto, sans-serif; }
.auto-form-wrapper h1 { margin-top: 0; font-family: Roboto, sans-serif; font-size: 18px; font-weight: 500; }
.auto-form-wrapper p { font-family: Roboto, sans-serif; }

/* ---- Páginas de erro do CodeIgniter (application/views/errors/html) ---- */
.erro-pagina { max-width: 40rem; margin: 4rem auto; padding: 2rem; background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; font-family: system-ui, sans-serif; }
.erro-pagina h1 { font-size: 1.4rem; }
.erro-php { margin: 1rem; padding: .5rem 1rem; border: 1px solid #990000; font-family: monospace; font-size: .85rem; }
