/*
Theme Name: critec
Theme URI: https://critec.pt/
Author: critec
Author URI: https://critec.pt/
Description: critec
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: critec
*/

html { scroll-behavior: smooth; }

body {
	font-family: "Inter", sans-serif;
}

h1, h2 {
	color: var(--cor-secundaria);
}
h1 {
	font-size: 3.625rem;
	font-weight: 100;
}
h2 {
	font-weight: 300;
}
.text-white {
	color: #fff !important;
}
.text-blue{
	color: #a1d5fd !important;
}

.intro-bg {
    position: relative;
}

.intro-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Menu com icones customizados */
li.nav-item > a.nav-link { display: inline-flex; align-items: center; gap: .5rem; letter-spacing: 1.2px; }
li.nav-item.language > a::before {
	content: none;
}
li.nav-item > a::before {
	font-family: 'Font Awesome 6 Pro';
	display: grid;
	place-content: center;
	border-radius: 50%;
}
footer li.nav-item > a::before {
	color: #FFF;
}
li.nav-item.reports > a::before {
	content: '\f659';
	/* background: url("assets/images/icones/icon-relatorios.png") no-repeat center / contain; */
}
li.nav-item.accident-rate > a::before {
	content: '\f5e1';
	/* background: url("assets/images/icones/icon-sinistralidade.png") no-repeat center / contain; */
}
li.nav-item.oversight > a::before {
	content: '\f06e';
	/* background: url("assets/images/icones/icon-fiscalizacao.png") no-repeat center / contain; */
}

li.nav-item.inspect > a::before {
	content: '\f002';
	/* background: url("assets/images/icones/icon-inspecao.png") no-repeat center / contain; */
}

li.nav-item.email > a::before {
	content: '\f0e0';
	/* background: url("assets/images/icones/icon-email32.png") no-repeat center / contain; */
}

.list-group.list-group-flush.links {
	list-style: none;
}
.list-group-flush .list-group-item {
	border-width: 0 0 1px;
}

.form-w-100 * {
	width: 100%;
}

.icon-shorcut {
	width: 64px;
	height: 64px;
	background-color: #fff;
	border-radius: 50%;
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.icon-shorcut img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.name-shorcut {
	color: #fff;
	font-size: 30px;
	font-weight: 600;
}

.footer-grid-menu {
    display: flex;
    flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
    gap: 1rem;
	position: relative;
	z-index: 1;
	padding: 0 !important;
}
.gap-3 {
	gap: 30px;
}
.footer-grid-menu .menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px; /* equal height for all items */
}

.list-group-item {
	background: none;
	border: none;
	padding: 0;
}
.list-group-item-action:focus, .list-group-item-action:hover {
	color: #ebf3fa;
	background: none;
}

.footer-grid-menu .menu-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.footer-grid-menu .menu-item img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain; /* keeps logos undistorted */
}

main {
	padding-block: 0px 90px;
}

.tabsRelatorios {
	margin-top: 40px;
}
.tabsRelatorios .nav-pills {
	gap: 10px 30px;
	border-bottom: 1px solid lightgray;
}
.tabsRelatorios .nav-pills .nav-link{
	border: 5px transparent;
	color: #212529;
	font-weight: 700;
	background: none;
	border-radius: 0;
	padding: 1rem 1.5rem;
	transition: all 0.2s ease-in-out;
}
.tabsRelatorios .nav-pills .nav-link.active,
.tabsRelatorios .nav-pills .nav-link:hover{
	color: #084F87;
	/* background: #084F87; */
	text-decoration: none;
	border-bottom: 5px solid #084F87;
}
.tabsRelatorios .tab-content{
	padding: 0;
	padding-top: 20px;
}
.tabsRelatorios .relatorio-content a {
	color: #084F87;
	font-weight: 700;
}
.tabsRelatorios .relatorio-content a:hover{
	color: #000;
	text-decoration: none;
}
.tabsRelatorios .card-header{
	padding: 0;
	background: transparent;
}
.tabsRelatorios .card-header button{
	color: #084F87;
	font-size: 22px;
	display: flex;
}
.tabsRelatorios .card-header button::after {
	content: '+';
	margin-left: auto;

}
.tabsRelatorios .card-header button:focus{
	box-shadow: none;
	text-decoration: none;
}
.tabsRelatorios .card-header button:hover,
.tabsRelatorios .card-header button:hover::after {
	text-decoration: none;
}
.tabsRelatorios .accordion>.card{
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid #e9edf0;
}

/* Estilos para a pesquisa de relatórios */
#pesquisarReport {
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

#pesquisarReport:focus {
    border-color: #084F87;
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
    outline: none;
}

#contador-resultados {
    border-radius: 10px;
    border: none;
    background-color: #e3f2fd;
    color: #084F87;
    font-size: 14px;
}

.relatorio-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
	font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.relatorio-content a:hover {
    color: #084F87;
    text-decoration: none;
}

.relatorio-list-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.relatorio-list-grid a {
    width: 100%;
}

.relatorio-list-grid.columns-1 {
    grid-template-columns: 1fr;
}

.relatorio-list-grid.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.relatorio-list-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767.98px) {
    .relatorio-list-grid.columns-2,
    .relatorio-list-grid.columns-3 {
        grid-template-columns: 1fr;
    }
}

.relatorio-content .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Animação para resultados da pesquisa */
.relatorio-content a {
    transition: opacity 0.3s ease;
}

.relatorio-content a:not(:visible) {
    opacity: 0;
}

.iframe-container {
    width: 100%;
    height: 100%;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
	aspect-ratio: 16/10;
}
.legal-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}
/* .footer-nav{
	justify-content: end;
} */
.legal-menu li a {
	color: #fff;
	text-decoration: none;
	border: 0px;
	background-color: transparent;
	margin-bottom: 12px;
}
.legal-menu li a:hover {
	color: #fff;
	text-decoration: none;
	background-color: transparent;
}
/* footer li.nav-item>a::before{
	max-width: 32px;
} */
footer li.nav-item:last-child>a.nav-link{
	margin-right: 0 !important;
}
.bg-banner-text{
	background: #2166A5;
	background: linear-gradient(196deg, rgba(33, 102, 165, 1) 0%, rgba(4, 52, 75, 1) 100%);
}

/* Header toggle button  */
.menu-icon {
    display: grid;
	place-content: center;
	width: 50px;
	height: 50px;
	background-color: #a1d5fd;
	border-radius: 50%;

}
.menu-icon i {
    font-size: 24px;
}

/* Area reservada - municipios */
.reserved-area {
    margin-top: 40px;
}
.reserved-header-row {
    border-bottom: 1px solid #e9edf0;
    padding-bottom: 20px;
}
.reserved-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 300;
    color: #084F87;
}
.reserved-subtitle {
    color: #6b7280;
}
.reserved-logout-btn {
    border-color: #084F87;
    color: #084F87;
}
.reserved-logout-btn:hover {
    background-color: #084F87;
    border-color: #084F87;
    color: #fff;
}

.reserved-table-wrap {
    border: 1px solid #e9edf0;
    border-radius: 8px;
    overflow: hidden;
}
.reserved-table thead th {
    background: #f7f9fb;
    color: #084F87;
    border-bottom: 1px solid #e9edf0;
    font-weight: 600;
}
.reserved-table tbody td {
    vertical-align: middle;
    border-top: 1px solid #f0f3f6;
}
.reserved-eye-btn {
    border: 1px solid #cfd8e3;
    background: #fff;
    color: #084F87;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.reserved-eye-btn:hover {
    background: #084F87;
    color: #fff;
    border-color: #084F87;
}

.reserved-modal .modal-title {
    color: #084F87;
    font-weight: 600;
}
.reserved-modal .modal-body {
    background: #f6f8fb;
}
.reserved-modal-meta p {
    margin-bottom: 8px;
}
.reserved-modal-section {
    margin-top: 16px;
}
.reserved-modal-section h6 {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #084F87;
}
.reserved-field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.reserved-field-card {
    background: #fff;
    border: 1px solid #dfe7f0;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(8, 79, 135, 0.05);
    align-self: start;
}
.reserved-field-card--vehicles {
    grid-column: 1 / -1;
}
.reserved-field-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.reserved-field-card p {
    margin: 0;
    color: #374151;
}
.reserved-field-value {
    color: #374151;
}
.reserved-nested-block {
    margin-top: 6px;
}
.reserved-subfield-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.reserved-subfield-grid--inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
@media (max-width: 991.98px) {
    .reserved-subfield-grid--inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .reserved-subfield-grid--inline {
        grid-template-columns: 1fr;
    }
}
.reserved-subfield-item {
    background: #f9fbfd;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 8px 10px;
}
.reserved-subfield-item--driver {
    background: #edf5ff;
    border-color: #cfe2ff;
}
.reserved-subfield-item--passengers {
    background: #eefcf5;
    border-color: #ccefdc;
}
.reserved-subfield-item strong {
    display: block;
    color: #111827;
    margin-bottom: 4px;
}
.reserved-nested-list {
    margin: 0;
    padding-left: 18px;
}
.reserved-nested-list li {
    margin-bottom: 4px;
}

/* Veiculos/repeaters: mostrar cada item em card, sem bullets */
.reserved-field-value > .reserved-nested-block > .reserved-nested-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}
.reserved-field-value > .reserved-nested-block > .reserved-nested-list > li {
    margin: 0;
}
.reserved-field-value > .reserved-nested-block > .reserved-nested-list > li > .reserved-nested-block {
    background: #f9fbfd;
    border: 1px solid #e7eef6;
    border-radius: 10px;
    padding: 10px;
}
@media (max-width: 767.98px) {
    .reserved-field-value > .reserved-nested-block > .reserved-nested-list {
        grid-template-columns: 1fr;
    }
}
.reserved-modal-content p:last-child {
    margin-bottom: 0;
}
.reserved-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d7dee7;
    border-radius: 6px;
    color: #084F87;
    text-decoration: none;
    font-weight: 600;
    margin: 0 4px;
}
.reserved-pagination .page-numbers.current,
.reserved-pagination .page-numbers:hover {
    background: #084F87;
    color: #fff;
    border-color: #084F87;
}

/* Reforço de especificidade para modal da área reservada */
#reservedSinistroModal .reserved-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
#reservedSinistroModal .reserved-field-card--vehicles {
    grid-column: 1 / -1;
}
#reservedSinistroModal .reserved-field-value > .reserved-nested-block > .reserved-nested-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}
#reservedSinistroModal .reserved-field-value > .reserved-nested-block > .reserved-nested-list > li {
    margin: 0;
}

/* Estrutura por linhas para arrays (Veiculos, Passageiros, Peoes, etc.) */
#reservedSinistroModal .reserved-array-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
#reservedSinistroModal .reserved-array-grid--vehicles,
#reservedSinistroModal .reserved-array-grid--other {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Veiculos: cada card ocupa 100% (um por linha) */
#reservedSinistroModal .reserved-array-grid--vehicles {
    grid-template-columns: 1fr;
}
#reservedSinistroModal .reserved-array-item {
    background: #f9fbfd;
    border: 1px solid #e7eef6;
    border-radius: 10px;
    padding: 10px;
}
#reservedSinistroModal .reserved-array-item-title {
    font-weight: 700;
    color: #084F87;
    margin-bottom: 8px;
}