/* eMiO — design system
   Visual layer only. Does not change forms, IDs, or business rules.
   Brand: navy #002266 · cyan #00BBDD (same as e-mails and PDFs)
*/

:root {
	--emio-navy: #002266;
	--emio-navy-hover: #001a4d;
	--emio-navy-soft: #e8eef8;
	--emio-cyan: #00bbdd;
	--emio-cyan-deep: #0096b4;
	--emio-bg: #eef2f7;
	--emio-surface: #ffffff;
	--emio-text: #1a2433;
	--emio-muted: #5b6b7c;
	--emio-border: #dce3ed;
	--emio-shadow: 0 8px 28px rgba(0, 34, 102, 0.08);
	--emio-shadow-sm: 0 2px 10px rgba(0, 34, 102, 0.06);
	--emio-radius: 14px;
	--emio-radius-sm: 10px;
	--emio-header: 64px;
	--emio-footer: 48px;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                        */
/* -------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--emio-text);
	background-color: var(--emio-bg);
	background-image:
		radial-gradient(ellipse 80% 50% at 100% -10%, rgba(0, 187, 221, 0.12), transparent 50%),
		radial-gradient(ellipse 60% 40% at -10% 0%, rgba(0, 34, 102, 0.08), transparent 45%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

.app-guest {
	background-color: var(--emio-navy);
	background-image:
		radial-gradient(ellipse 90% 70% at 110% 0%, rgba(0, 187, 221, 0.35), transparent 50%),
		radial-gradient(ellipse 70% 50% at -10% 100%, rgba(0, 150, 180, 0.25), transparent 50%),
		linear-gradient(165deg, #001845 0%, #002266 48%, #003080 100%);
}

.app-content {
	padding-bottom: 2.5rem;
}

.app-content.container-fluid,
.app-navbar > .container-fluid,
.app-footer > .container-fluid {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	max-width: none;
}

@media (min-width: 1200px) {
	.app-content.container-fluid,
	.app-navbar > .container-fluid,
	.app-footer > .container-fluid {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

a {
	color: var(--emio-cyan-deep);
	transition: color 0.15s ease;
}

a:hover {
	color: var(--emio-navy);
	text-decoration: none;
}

::selection {
	background: rgba(0, 187, 221, 0.28);
	color: var(--emio-navy);
}

/* -------------------------------------------------------------------------- */
/* Brand tokens over Bootstrap                                                 */
/* -------------------------------------------------------------------------- */

.bg-primary {
	background-color: var(--emio-navy) !important;
}

.bg-info {
	background-color: var(--emio-cyan-deep) !important;
}

.text-primary {
	color: var(--emio-navy) !important;
}

.text-info {
	color: var(--emio-cyan-deep) !important;
}

.border-primary {
	border-color: var(--emio-navy) !important;
}

.badge-primary {
	background-color: var(--emio-navy);
}

.badge-info {
	background-color: var(--emio-cyan-deep);
}

.alert-primary {
	color: var(--emio-navy);
	background-color: var(--emio-navy-soft);
	border-color: #c5d2ea;
}

.alert-info {
	color: #0a4d5c;
	background-color: #e6f8fc;
	border-color: #b5e8f3;
}

/* -------------------------------------------------------------------------- */
/* Navbar                                                                      */
/* -------------------------------------------------------------------------- */

.app-navbar {
	min-height: var(--emio-header);
	background: linear-gradient(90deg, #001845 0%, var(--emio-navy) 55%, #003080 100%) !important;
	box-shadow: 0 4px 20px rgba(0, 24, 64, 0.22) !important;
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}

.app-navbar .navbar-brand {
	display: flex;
	align-items: center;
	padding: 0;
}

.app-navbar .navbar-brand img {
	width: 108px;
	height: auto;
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.08));
}

.app-navbar .navbar-toggler {
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 10px;
	padding: 0.4rem 0.55rem;
}

.app-navbar .navbar-toggler:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 187, 221, 0.35);
}

.app-navbar .nav-link {
	color: rgba(255, 255, 255, 0.82) !important;
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: 8px;
	padding: 0.45rem 0.75rem !important;
	margin: 0 0.1rem;
	transition: background 0.15s ease, color 0.15s ease;
}

.app-navbar .nav-link i {
	opacity: 0.85;
	margin-right: 0.15rem;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-item.active > .nav-link,
.app-navbar .nav-link.active {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.12);
}

.app-navbar .dropdown-menu {
	border: 1px solid var(--emio-border);
	border-radius: var(--emio-radius-sm);
	box-shadow: var(--emio-shadow);
	padding: 0.4rem;
	margin-top: 0.45rem;
}

.app-navbar .dropdown-item {
	border-radius: 8px;
	padding: 0.45rem 0.75rem;
	font-size: 0.88rem;
	color: var(--emio-text);
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus {
	background: var(--emio-navy-soft);
	color: var(--emio-navy);
}

.app-navbar .nav-whatsapp {
	background: transparent !important;
	margin-right: 0.4rem !important;
}

.app-navbar .nav-whatsapp a,
.app-navbar .btn-sair {
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	transition: background 0.15s ease, transform 0.15s ease;
}

.app-navbar .nav-whatsapp a:hover {
	background: #1ebd5b;
	border-color: #1ebd5b;
	color: #fff;
	transform: translateY(-1px);
}

.app-navbar .btn-sair:hover {
	background: #dc3545;
	border-color: #dc3545;
	color: #fff;
}

@media (max-width: 991.98px) {
	.app-navbar .navbar-collapse {
		padding: 0.75rem 0 0.4rem;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		margin-top: 0.6rem;
	}

	.app-navbar .nav-link {
		padding: 0.65rem 0.85rem !important;
	}

	.app-navbar .navbar-nav.mr-right {
		flex-direction: row;
		align-items: center;
		margin-top: 0.5rem;
		padding-top: 0.5rem;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */

.app-footer {
	background: rgba(255, 255, 255, 0.92) !important;
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--emio-border) !important;
	box-shadow: 0 -4px 16px rgba(0, 34, 102, 0.04) !important;
}

.app-footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	width: 100%;
	gap: 0.75rem;
}

.app-footer-inner > :first-child {
	justify-self: start;
	min-width: 0;
}

.app-footer-inner > .footer-bmf {
	justify-self: center;
}

.app-footer-inner > :last-child {
	justify-self: end;
	text-align: right;
	min-width: 0;
}

.app-footer small {
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: var(--emio-muted);
}

.footer-emio {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.footer-emio img {
	height: 28px;
	width: auto;
	display: block;
}

.app-guest .app-footer {
	height: var(--emio-footer);
	background: transparent !important;
	border-top-color: rgba(255, 255, 255, 0.1) !important;
	box-shadow: none !important;
}

.app-guest .app-footer > .container-fluid {
	height: 100%;
	display: flex;
	align-items: center;
	padding-top: 0;
	padding-bottom: 0;
}

.app-guest .app-footer small {
	color: rgba(255, 255, 255, 0.55);
}

/* -------------------------------------------------------------------------- */
/* Page titles (all modules share this markup pattern)                         */
/* -------------------------------------------------------------------------- */

.app-content > .row > .col-12 > h3.p-2,
.app-content > .row > .col-12 > h4.p-2,
.app-content > .row.mt-4 > .col-12 > h3,
.app-content > .row.mt-4 > .col-12 > h4 {
	border-bottom: none !important;
	background: var(--emio-surface);
	border-radius: var(--emio-radius);
	box-shadow: var(--emio-shadow-sm);
	padding: 0.95rem 1.15rem !important;
	margin-bottom: 1.25rem !important;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--emio-navy) !important;
	position: relative;
}

.app-content > .row > .col-12 > h3.p-2::after,
.app-content > .row > .col-12 > h4.p-2::after {
	content: "";
	position: absolute;
	left: 1.15rem;
	bottom: 0;
	width: 48px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--emio-cyan);
}

.app-content > .row > .col-12 > h3.p-2 i,
.app-content > .row > .col-12 > h4.p-2 i {
	color: var(--emio-cyan-deep);
	margin-right: 0.35rem;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */

.btn {
	border-radius: var(--emio-radius-sm);
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn:not(:disabled):not(.disabled):hover {
	transform: translateY(-1px);
}

.btn:focus,
.btn.focus {
	box-shadow: 0 0 0 0.2rem rgba(0, 187, 221, 0.28);
}

.btn-primary {
	background-color: var(--emio-navy);
	border-color: var(--emio-navy);
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
	background-color: var(--emio-navy-hover);
	border-color: var(--emio-navy-hover);
	color: #fff;
}

.btn-info {
	background-color: var(--emio-cyan-deep);
	border-color: var(--emio-cyan-deep);
	color: #fff;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:not(:disabled):not(.disabled):active {
	background-color: #007f99;
	border-color: #007f99;
	color: #fff;
}

.btn-success {
	background-color: #128a5c;
	border-color: #128a5c;
}

.btn-success:hover {
	background-color: #0e734c;
	border-color: #0e734c;
}

.btn-outline-primary {
	color: var(--emio-navy);
	border-color: var(--emio-navy);
}

.btn-outline-primary:hover {
	background-color: var(--emio-navy);
	border-color: var(--emio-navy);
	color: #fff;
}

.btn-outline-info {
	color: var(--emio-cyan-deep);
	border-color: var(--emio-cyan-deep);
}

.btn-outline-info:hover {
	background-color: var(--emio-cyan-deep);
	color: #fff;
}

.btn-outline-secondary {
	color: var(--emio-muted);
	border-color: #c5ced8;
	background: #fff;
}

.btn-outline-secondary:hover {
	background: #f3f6f9;
	color: var(--emio-text);
	border-color: #b4bec9;
}

.btn-outline-light {
	border-color: rgba(255, 255, 255, 0.35);
}

.btn-lg {
	padding: 0.7rem 1.2rem;
	border-radius: 12px;
}

.btn-link {
	color: var(--emio-cyan-deep);
	font-weight: 500;
}

.btn-link:hover {
	color: var(--emio-navy);
	text-decoration: none;
}

.btn:disabled,
.btn.disabled {
	transform: none;
	opacity: 0.55;
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                       */
/* -------------------------------------------------------------------------- */

label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--emio-muted);
	margin-bottom: 0.35rem;
}

.form-control,
.custom-select,
select.form-control {
	border: 1px solid var(--emio-border);
	border-radius: var(--emio-radius-sm);
	min-height: 44px;
	padding: 0.5rem 0.85rem;
	color: var(--emio-text);
	background-color: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control-lg {
	min-height: 50px;
	font-size: 1rem;
	border-radius: 12px;
}

.form-control:hover,
select.form-control:hover {
	border-color: #b8c4d4;
}

.form-control:focus,
.custom-select:focus,
select.form-control:focus {
	border-color: var(--emio-cyan);
	box-shadow: 0 0 0 3px rgba(0, 187, 221, 0.18);
	background-color: #fff;
}

.form-control[readonly] {
	background-color: #f6f8fb;
	color: var(--emio-text);
}

.form-control:disabled {
	background-color: #f0f3f7;
}

.select2-container {
	width: 100% !important;
}

.select2-container .select2-selection--single {
	min-height: 44px;
	border: 1px solid var(--emio-border);
	border-radius: var(--emio-radius-sm);
	background: #fff;
	display: flex;
	align-items: center;
	padding: 0 8px 0 4px;
}

.form-control-lg + .select2-container .select2-selection--single {
	min-height: 50px;
	border-radius: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--emio-text);
	line-height: 42px;
	padding-left: 0.7rem;
	font-size: 0.95rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 42px;
	right: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #8a97a8;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
	margin-right: 1.4rem;
	font-size: 1.1rem;
	color: var(--emio-muted);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--emio-cyan);
	box-shadow: 0 0 0 3px rgba(0, 187, 221, 0.18);
}

.select2-container--default.select2-container--disabled .select2-selection--single {
	background-color: #f0f3f7;
	cursor: not-allowed;
}

.select2-dropdown {
	border: 1px solid var(--emio-border);
	border-radius: var(--emio-radius-sm);
	box-shadow: var(--emio-shadow);
	z-index: 2000;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	border: 1px solid var(--emio-border);
	border-radius: 8px;
	min-height: 38px;
	padding: 0.4rem 0.7rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
	border-color: var(--emio-cyan);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 187, 221, 0.16);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
	background: var(--emio-navy);
	color: #fff;
}

.select2-container--default .select2-results__option--selected {
	background: var(--emio-navy-soft);
	color: var(--emio-navy);
}

textarea.form-control {
	min-height: 96px;
}

.input-group-append .btn,
.input-group-prepend .btn {
	min-height: 44px;
	border-radius: 0 var(--emio-radius-sm) var(--emio-radius-sm) 0;
}

.custom-file-label,
input[type="file"].form-control {
	padding-top: 0.45rem;
}

.form-check-input {
	margin-top: 0.3rem;
}

legend.lead,
.lead.text-primary,
.lead.text-info {
	font-size: 0.95rem;
	font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Cards                                                                       */
/* -------------------------------------------------------------------------- */

.card {
	border: 1px solid rgba(220, 227, 237, 0.9);
	border-radius: var(--emio-radius);
	background: var(--emio-surface);
	box-shadow: var(--emio-shadow-sm);
}

.card.shadow {
	box-shadow: var(--emio-shadow) !important;
}

.card-header {
	background: #f7f9fc;
	border-bottom: 1px solid var(--emio-border);
	padding: 1rem 1.15rem 0.35rem;
}

.card-header .form-group {
	margin-bottom: 0.85rem;
}

.card-body {
	padding: 1.15rem;
}

.card-footer {
	background: #f7f9fc;
	border-top: 1px solid var(--emio-border);
}

.card-calendario,
.card-datas,
.card-reserva {
	border: none;
}

.card-header h3.lead,
.card-header .lead {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

/* -------------------------------------------------------------------------- */
/* Tables                                                                      */
/* -------------------------------------------------------------------------- */

.table {
	background: #fff;
	margin-bottom: 0;
}

.table thead th,
.table thead td {
	border-top: none;
	border-bottom: 1px solid var(--emio-border);
	color: var(--emio-navy);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: #f4f7fb;
	white-space: nowrap;
	vertical-align: middle;
}

.table td,
.table th {
	vertical-align: middle;
	padding: 0.45rem 0.65rem;
}

.table-striped tbody tr:nth-of-type(odd) {
	background-color: #fafcfe;
}

.table-dark,
.table.table-dark {
	background: #1a2433 !important;
	color: #f3f6fa !important;
}

.table-dark thead th,
.table-dark thead td,
.table.table-dark thead th,
.table.table-dark thead td,
.table-dark tfoot th,
.table-dark tfoot td {
	background: #0f1724 !important;
	color: #ffffff !important;
	border-color: #2c3a4d !important;
}

.table-dark td,
.table-dark th,
.table.table-dark td,
.table.table-dark th {
	color: #f3f6fa !important;
	border-color: #2c3a4d !important;
}

.table-dark.table-striped tbody tr:nth-of-type(odd) {
	background-color: rgba(255, 255, 255, 0.06) !important;
}

.table-dark.table-striped tbody tr:nth-of-type(even) {
	background-color: transparent !important;
}

.table-itens,
.table.table-itens {
	background: #fff !important;
	color: var(--emio-text) !important;
}

.table-itens thead th,
.table-itens thead td,
.table.table-itens thead th {
	background: var(--emio-navy-soft) !important;
	color: var(--emio-navy) !important;
	border-color: var(--emio-border) !important;
}

.table-itens td,
.table-itens th,
.table.table-itens td,
.table.table-itens th {
	color: var(--emio-text) !important;
	background: #fff !important;
	border-color: var(--emio-border) !important;
}

.table-itens.table-striped tbody tr:nth-of-type(odd) td,
.table-itens.table-striped tbody tr:nth-of-type(odd) th {
	background: #f7f9fc !important;
	color: var(--emio-text) !important;
}

.table-itens tfoot th,
.table-itens tfoot td {
	background: var(--emio-navy-soft) !important;
	color: var(--emio-navy) !important;
}

.table-hover tbody tr:hover {
	background-color: var(--emio-navy-soft);
}

.table-grid tbody tr {
	cursor: pointer;
}

.table-bordered {
	border-color: var(--emio-border);
}

.table-bordered td,
.table-bordered th {
	border-color: var(--emio-border);
}

.table-responsive {
	border-radius: var(--emio-radius);
	background: #fff;
	box-shadow: var(--emio-shadow-sm);
}

.table-responsive.shadow {
	box-shadow: var(--emio-shadow) !important;
}

.table-responsive > .table {
	margin-bottom: 0;
}

.troca-passos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
}

.troca-passos span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	color: var(--emio-muted);
}

.troca-passos i {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-style: normal;
	font-size: 0.72rem;
	font-weight: 600;
	background: var(--emio-navy-soft);
	color: var(--emio-navy);
}

.troca-passos .is-on {
	color: var(--emio-navy);
	font-weight: 600;
}

.troca-passos .is-on i {
	background: var(--emio-cyan);
	color: #fff;
}

.troca-lista {
	max-height: calc(100vh - 320px);
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.troca-vazio {
	text-align: center;
	padding: 2rem 1rem;
	color: var(--emio-muted);
}

.troca-vazio i {
	font-size: 1.6rem;
	color: var(--emio-cyan);
	margin-bottom: 0.55rem;
}

.troca-vazio strong {
	display: block;
	color: var(--emio-navy);
	margin-bottom: 0.35rem;
}

.troca-vazio p {
	max-width: 420px;
	margin: 0 auto 1rem;
}

.troca-item {
	display: grid;
	grid-template-columns: auto 1fr auto auto auto;
	align-items: center;
	gap: 0.85rem 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--emio-border);
	border-radius: var(--emio-radius-sm);
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.troca-item:hover,
.troca-item.is-active {
	border-color: var(--emio-cyan);
	box-shadow: 0 8px 20px rgba(0, 34, 102, 0.08);
}

.troca-item.is-active {
	background: #e6f8fc;
}

.troca-item-id {
	font-weight: 700;
	color: var(--emio-navy);
	background: var(--emio-navy-soft);
	border-radius: 8px;
	padding: 0.35rem 0.55rem;
	min-width: 58px;
	text-align: center;
}

.troca-item-info strong,
.troca-item-berco strong {
	display: block;
	color: var(--emio-navy);
}

.troca-item-info small,
.troca-item-periodo small,
.troca-item-berco small {
	display: block;
	color: var(--emio-muted);
	font-size: 0.78rem;
}

.troca-item-periodo span {
	display: block;
	font-weight: 600;
	color: var(--emio-text);
}

.troca-berco-atual {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.75rem 0.9rem;
	border-radius: var(--emio-radius-sm);
	background: var(--emio-navy-soft);
}

.troca-berco-atual small {
	color: var(--emio-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.72rem;
}

.troca-berco-atual strong {
	color: var(--emio-navy);
	font-size: 1.05rem;
}

@media (max-width: 767.98px) {
	.troca-item {
		grid-template-columns: 1fr auto;
	}

	.troca-item-id {
		grid-column: 1;
	}

	.troca-item .btn-abrir-troca {
		grid-column: 2;
		grid-row: 1;
	}

	.troca-item-info,
	.troca-item-periodo,
	.troca-item-berco {
		grid-column: 1 / -1;
	}
}

.exp-toolbar {
	position: sticky;
	top: calc(var(--emio-header) + 8px);
	z-index: 4;
}

.exp-toolbar-titulo {
	font-size: 0.95rem;
	color: var(--emio-muted);
	font-weight: 500;
}

.exp-toolbar-titulo #exp-relatorio-nome {
	color: var(--emio-navy);
	font-weight: 600;
}

.exp-simplificado {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	color: var(--emio-muted);
	cursor: pointer;
}

.exp-btn-gerar {
	min-height: 38px;
	white-space: nowrap;
}

.exp-grupo + .exp-grupo {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--emio-border);
}

.exp-grupo h6 {
	margin: 0 0 0.55rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--emio-muted);
}

.exp-grupo-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.exp-relatorio-card {
	margin: 0;
	min-height: 0;
	padding: 0.45rem 0.7rem 0.45rem 0.45rem;
	border: 1px solid var(--emio-border);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	text-align: left;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 0.45rem;
	color: var(--emio-text);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.exp-relatorio-card i {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	background: var(--emio-navy-soft);
	color: var(--emio-navy);
	font-size: 0.78rem;
}

.exp-relatorio-card span,
.exp-relatorio-card strong {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--emio-navy);
	line-height: 1.2;
}

.exp-relatorio-card small {
	display: none;
}

.exp-relatorio-card:hover {
	border-color: var(--emio-cyan);
	background: #f3fbfd;
}

.exp-relatorio-card.is-active {
	border-color: var(--emio-cyan);
	background: #e6f8fc;
	box-shadow: 0 0 0 3px rgba(0, 187, 221, 0.12);
	transform: none;
}

.exp-relatorio-card.is-active i {
	background: var(--emio-cyan);
	color: #fff;
}

.table-row-hint,
.contrato-grid-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin: 0.75rem 0 0;
	padding: 0.55rem 0.85rem;
	background: #e8f8fc;
	border: 1px solid #b7e6f2;
	border-radius: 10px;
	color: var(--emio-navy);
	font-size: 0.82rem;
	font-weight: 500;
}

.table-row-hint i,
.contrato-grid-hint i {
	color: var(--emio-cyan-deep);
}

.table-clickable tbody tr,
#resultado-busca tr,
#resultado-reservas tr {
	cursor: pointer;
}

.table-clickable tbody tr:hover,
#resultado-busca tr:hover,
#resultado-reservas tr:hover {
	background: var(--emio-navy-soft) !important;
}

/* -------------------------------------------------------------------------- */
/* Calendar                                                                    */
/* -------------------------------------------------------------------------- */

.table-mapa-sintetico,
table:has(#grid-calendario):not(.table-mapa-analitico) {
	table-layout: fixed;
}

.card-calendario .head-calendar th {
	background: var(--emio-navy) !important;
	color: #fff !important;
	text-transform: none;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0.7rem 0.25rem;
	border: none;
}

.card-calendario .head-calendar.bg-success th {
	background: #128a5c !important;
}

#grid-calendario td {
	height: 48px;
	vertical-align: middle;
	font-weight: 500;
	border-color: #eef2f6 !important;
	transition: background 0.12s ease, color 0.12s ease;
}

#grid-calendario td:not([colspan]):not(.bg-danger):not(.bg-secondary) {
	cursor: pointer;
}

#grid-calendario td:not([colspan]):not(.bg-danger):not(.bg-warning):not(.bg-secondary):hover {
	background: rgba(0, 187, 221, 0.14);
	color: var(--emio-navy);
}

#grid-calendario td.bg-warning {
	background: #fff3cd !important;
	color: #7a5b00 !important;
	font-weight: 700;
}

#grid-calendario td.bg-secondary {
	background: #94a3b8 !important;
	color: #fff !important;
	font-weight: 600;
}

#grid-calendario td.bg-danger {
	background: #f87171 !important;
	color: #fff !important;
	cursor: not-allowed;
	opacity: 0.92;
}

#grid-calendario td.dia-calendario {
	cursor: pointer;
	position: relative;
}

.mapa-dia-qtd {
	position: absolute;
	right: 4px;
	bottom: 3px;
	font-size: 0.62rem;
	line-height: 1;
	font-weight: 700;
	opacity: 0.85;
}

#grid-calendario td.dia-com-evento {
	box-shadow: inset 0 -3px 0 rgba(0, 34, 102, 0.28);
}

#grid-calendario td.dia-selecionado {
	outline: 2px solid var(--emio-cyan);
	outline-offset: -2px;
}

.mapa-legenda {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	font-size: 0.78rem;
	color: var(--emio-muted);
	font-weight: 500;
}

.mapa-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 0.35rem;
	vertical-align: middle;
}

.mapa-dot-livre {
	background: #e8eef5;
	box-shadow: inset 0 0 0 1px #c5d0de;
}

.mapa-dot-ok {
	background: #f5c518;
}

.mapa-dot-outro {
	background: #94a3b8;
}

.mapa-analitico-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table-mapa-analitico {
	table-layout: auto !important;
	width: max-content;
	min-width: 100%;
	margin-bottom: 0;
}

.table-mapa-analitico thead td,
.table-mapa-analitico thead th {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.72rem;
	font-weight: 600;
	white-space: nowrap;
	padding: 0.4rem 0.35rem !important;
	vertical-align: middle;
}

.table-mapa-analitico thead td.bg-info,
.table-mapa-analitico .mapa-col-dia {
	background: var(--emio-navy) !important;
	color: #fff !important;
}

.table-mapa-analitico thead td.bg-warning,
.table-mapa-analitico .mapa-col-local {
	background: #f5c518 !important;
	color: var(--emio-navy) !important;
}

.table-mapa-analitico thead td.bg-success {
	background: var(--emio-cyan-deep) !important;
	color: #fff !important;
}

.table-mapa-analitico thead tr:last-child td {
	background: var(--emio-navy) !important;
	color: #fff !important;
	min-width: 46px;
}

#result-map td {
	font-size: 0.68rem;
	padding: 0.2rem 0.15rem !important;
	white-space: nowrap;
	min-width: 46px;
	text-align: center;
	background: #fff;
}

#result-map td[rowspan] {
	min-width: 52px;
	width: 52px;
	font-weight: 700;
	color: var(--emio-navy);
	background: #f4f7fb;
	position: sticky;
	left: 0;
	z-index: 2;
}

#result-map tr > td:first-child:not([rowspan]) {
	min-width: 96px;
	width: 96px;
	font-weight: 600;
	color: var(--emio-text);
	background: #fffbeb;
	position: sticky;
	left: 52px;
	z-index: 2;
}

.table-mapa-analitico thead .mapa-col-dia {
	position: sticky;
	left: 0;
	z-index: 4;
	min-width: 52px;
	width: 52px;
}

.table-mapa-analitico thead .mapa-col-local {
	position: sticky;
	left: 52px;
	z-index: 4;
	min-width: 96px;
	width: 96px;
}

#result-map .badge {
	font-size: 0.62rem;
	padding: 0.18rem 0.28rem !important;
	margin: 0.08rem 0 !important;
	white-space: nowrap;
	display: block;
}

#result-map td[data-idreserva] {
	background: #fff5f5;
	cursor: pointer;
}

.table-mapa-analitico.table-striped tbody tr:nth-of-type(odd) td[rowspan] {
	background: #f4f7fb;
}

.table-mapa-analitico.table-striped tbody tr:nth-of-type(odd) > td:first-child:not([rowspan]) {
	background: #fffbeb;
}

.card-calendario .card-footer .alert {
	margin-bottom: 0;
	border-radius: var(--emio-radius-sm);
}

.mapa-detalhe {
	position: fixed;
	inset: 0;
	z-index: 1080;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.mapa-detalhe.is-open {
	display: flex;
}

.mapa-detalhe-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 18, 48, 0.48);
}

.mapa-detalhe-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: min(80vh, 640px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0, 18, 48, 0.28);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mapa-detalhe-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.95rem 1.1rem;
	background: var(--emio-navy);
	color: #fff;
}

.mapa-detalhe-head h5 {
	font-size: 1rem;
	font-weight: 600;
}

.mapa-detalhe-head #fechar-detalhe {
	flex: 0 0 auto;
	color: var(--emio-navy);
	font-weight: 600;
}

.mapa-detalhe-lista {
	padding: 1rem;
	overflow: auto;
}

.mapa-evento {
	border: 1px solid var(--emio-border);
	border-radius: 12px;
	padding: 0.85rem 1rem;
	margin-bottom: 0.7rem;
	background: #f8fafc;
}

.mapa-evento:last-child {
	margin-bottom: 0;
}

.mapa-evento strong {
	color: var(--emio-navy);
}

body.mapa-detalhe-open {
	overflow: hidden;
}

.label-msg {
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--emio-navy);
	background: #fff;
	border: 1px solid var(--emio-border);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	box-shadow: var(--emio-shadow-sm);
}

/* -------------------------------------------------------------------------- */
/* Tabs                                                                        */
/* -------------------------------------------------------------------------- */

.nav-tabs {
	border-bottom: 1px solid var(--emio-border);
	background: #fff;
	border-radius: var(--emio-radius) var(--emio-radius) 0 0;
	padding: 0.45rem 0.55rem 0;
	box-shadow: var(--emio-shadow-sm);
}

.nav-tabs .nav-link {
	border: none;
	border-radius: 8px 8px 0 0;
	color: var(--emio-muted);
	font-weight: 500;
	font-size: 0.9rem;
	padding: 0.7rem 1rem;
	margin-right: 0.15rem;
}

.nav-tabs .nav-link i {
	margin-right: 0.25rem;
}

.nav-tabs .nav-link:hover {
	border: none;
	color: var(--emio-navy);
	background: var(--emio-navy-soft);
}

.nav-tabs .nav-link.active {
	color: var(--emio-navy);
	background: transparent;
	border: none;
	box-shadow: inset 0 -3px 0 var(--emio-cyan);
	font-weight: 600;
}

.tab-content {
	background: #fff;
	border-radius: 0 0 var(--emio-radius) var(--emio-radius);
	box-shadow: var(--emio-shadow-sm);
	padding: 0.25rem 0.25rem 1rem;
}

.tab-content .table-responsive {
	box-shadow: none;
}

/* -------------------------------------------------------------------------- */
/* Forms in standalone pages (profile, password, parameters, CRUD)             */
/* -------------------------------------------------------------------------- */

#form-perfil,
#form-senha,
#form-parametro {
	max-width: 1100px;
}

#form-perfil,
#form-senha,
#form-parametro,
#form-cadastro,
#form-termo,
#form-busca {
	background: #fff;
	border-radius: var(--emio-radius);
	padding: 1.25rem 1.15rem 0.5rem;
	box-shadow: var(--emio-shadow-sm);
}

.tab-content #form-cadastro {
	box-shadow: none;
	padding: 0.5rem 0 0;
}

#form-edicao > .form-group,
#form-edicao > .texto-inicio {
	background: #fff;
	border-radius: var(--emio-radius);
	padding: 1rem 1.15rem;
	box-shadow: var(--emio-shadow-sm);
}

/* -------------------------------------------------------------------------- */
/* Alerts, badges, lists                                                       */
/* -------------------------------------------------------------------------- */

.alert {
	border-radius: var(--emio-radius-sm);
	border: none;
	font-size: 0.9rem;
}

.alert-warning {
	background: #fff6e5;
	color: #8a5a00;
}

.alert-success {
	background: #e8f8f0;
	color: #0d5c38;
}

.alert-danger {
	background: #fdecec;
	color: #9b1c1c;
}

.badge {
	font-weight: 600;
	letter-spacing: 0.01em;
}

.badge-pill {
	padding-left: 0.65em;
	padding-right: 0.65em;
}

.list-group-item {
	border-color: var(--emio-border);
}

.list-group-item:first-child {
	border-top-left-radius: var(--emio-radius-sm);
	border-top-right-radius: var(--emio-radius-sm);
}

.list-group-item:last-child {
	border-bottom-left-radius: var(--emio-radius-sm);
	border-bottom-right-radius: var(--emio-radius-sm);
}

/* -------------------------------------------------------------------------- */
/* Modals & Bootbox                                                            */
/* -------------------------------------------------------------------------- */

.modal-content {
	border: none;
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(0, 24, 64, 0.22);
	overflow: hidden;
}

.modal-header {
	background: #f7f9fc;
	border-bottom: 1px solid var(--emio-border);
	padding: 1rem 1.25rem;
}

.modal-title,
.modal-header h5 {
	font-weight: 600;
	color: var(--emio-navy);
	font-size: 1.05rem;
}

.modal-header .close {
	outline: none;
	text-shadow: none;
	opacity: 0.55;
}

.modal-header .close:hover {
	opacity: 1;
}

.modal-footer {
	background: #f7f9fc;
	border-top: 1px solid var(--emio-border);
	padding: 0.85rem 1.25rem;
}

.bootbox .modal-title h4,
.bootbox h4 {
	font-size: 1.05rem;
	font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* DataTables                                                                  */
/* -------------------------------------------------------------------------- */

.dataTables_wrapper {
	padding: 0.5rem 0.25rem 0.75rem;
	color: var(--emio-muted);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
	border: 1px solid var(--emio-border);
	border-radius: 8px;
	padding: 0.35rem 0.65rem;
	min-height: 38px;
	margin-left: 0.35rem;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
	outline: none;
	border-color: var(--emio-cyan);
	box-shadow: 0 0 0 3px rgba(0, 187, 221, 0.16);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	border-radius: 8px !important;
	border: 1px solid transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: var(--emio-navy) !important;
	color: #fff !important;
	border-color: var(--emio-navy) !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
	color: var(--emio-muted);
	font-size: 0.85rem;
	padding-top: 0.6rem;
}

/* -------------------------------------------------------------------------- */
/* Home dashboard                                                              */
/* -------------------------------------------------------------------------- */

.home-page .page-hero {
	background: linear-gradient(120deg, var(--emio-navy) 0%, #003080 60%, #0096b4 140%);
	color: #fff;
	border-radius: var(--emio-radius);
	padding: 1.15rem 1.4rem;
	margin-bottom: 1.25rem;
	box-shadow: var(--emio-shadow);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.25rem;
	flex-wrap: wrap;
}

.home-page .page-hero-copy {
	position: relative;
	z-index: 1;
	min-width: 0;
	flex: 1 1 220px;
}

.home-page .page-hero::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -50px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(0, 187, 221, 0.18);
}

.home-page .page-hero h4,
.home-page .page-title {
	color: #fff !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 0 0.25rem !important;
	font-size: 1.35rem;
	font-weight: 600;
	position: relative;
	z-index: 1;
}

.home-page .page-hero h4::after,
.home-page .page-title::after {
	display: none;
}

.home-page .page-subtitle,
.home-page .page-hero p {
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
	position: relative;
	z-index: 1;
	font-size: 0.92rem;
}

.home-page > .col-12.mb-4 > p.text-center {
	display: none;
}

@media (min-width: 1200px) {
	.dash-tile {
		min-height: 196px;
	}
}

.dash-tile {
	background: #fff !important;
	color: var(--emio-text) !important;
	border: 1px solid var(--emio-border) !important;
	border-radius: 16px !important;
	min-height: 176px;
	box-shadow: var(--emio-shadow-sm) !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
}

.dash-tile:hover,
.dash-tile:focus,
.dash-tile:not(:disabled):not(.disabled):active {
	color: var(--emio-text) !important;
	background: #fff !important;
	border-color: #c5d2ea !important;
	box-shadow: 0 14px 32px rgba(0, 34, 102, 0.12) !important;
	transform: translateY(-3px);
}

.dash-tile i.fa-3x {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 0.75rem;
	border-radius: 18px;
	font-size: 1.75rem !important;
}

.dash-tile > span:not(.badge) {
	font-size: 0.98rem;
	font-weight: 600;
}

.dash-tile.btn-primary i {
	background: var(--emio-navy-soft);
	color: var(--emio-navy);
}

.dash-tile.btn-secondary i {
	background: #eef1f4;
	color: #4b5563;
}

.dash-tile.btn-info i {
	background: #e6f8fc;
	color: var(--emio-cyan-deep);
}

.dash-tile.btn-warning i {
	background: #fff6e5;
	color: #c48400;
}

.dash-tile.btn-danger i {
	background: #fdecec;
	color: #dc3545;
}

.dash-tile.btn-success i {
	background: #e8f8f0;
	color: #128a5c;
}

.dash-tile .badge {
	font-size: 0.78rem;
	border-radius: 999px;
	padding: 0.4rem 0.75rem !important;
	margin-top: 0.65rem !important;
}

.home-page h3.lead {
	font-size: 1rem;
	font-weight: 600;
	color: var(--emio-navy);
	margin: 0.5rem 0 1rem;
}

.op-dashboard {
	margin-top: 0.25rem;
}

.op-kpi-row {
	margin-left: -0.5rem;
	margin-right: -0.5rem;
}

.op-kpi-row > [class*="col-"] {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.op-kpi {
	background: #fff;
	border-radius: var(--emio-radius);
	box-shadow: var(--emio-shadow-sm);
	padding: 0.75rem 0.85rem;
	min-height: 78px;
	border: 1px solid var(--emio-border);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 100%;
}

.op-kpi-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}

.op-kpi-icon-navy {
	background: var(--emio-navy-soft);
	color: var(--emio-navy);
}

.op-kpi-icon-cyan {
	background: #e6f8fc;
	color: var(--emio-cyan-deep);
}

.op-kpi-icon-amber {
	background: #fff6e5;
	color: #c48400;
}

.op-kpi-icon-green {
	background: #e8f8f0;
	color: #128a5c;
}

.op-kpi-icon-alert {
	background: #fdecec;
	color: #dc3545;
}

.op-kpi small {
	display: block;
	color: var(--emio-muted);
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 0.1rem;
	line-height: 1.2;
}

.op-kpi strong {
	display: block;
	color: var(--emio-navy);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.15;
}

.op-kpi-alert {
	border-color: #f5c6cb;
	background: #fff7f7;
}

.op-kpi-alert strong {
	color: #dc3545;
}

.op-dash-row {
	align-items: stretch;
}

.op-chart-card {
	border: 1px solid var(--emio-border);
	overflow: hidden;
}

.op-chart-card .card-header {
	font-weight: 600;
	color: var(--emio-navy);
	padding: 0.7rem 1rem;
	background: #fff;
	border-bottom: 1px solid var(--emio-border);
	font-size: 0.92rem;
}

.op-chart-card .card-body {
	padding: 0.75rem 1rem 1rem;
}

.op-chart-box {
	position: relative;
	height: 220px;
}

.op-chart-box canvas {
	display: block;
}

.op-agenda-card .card-body {
	padding: 0;
}

.op-agenda-wrap {
	height: 220px;
	overflow: auto;
}

.op-agenda-wrap .table {
	margin-bottom: 0;
}

.op-agenda-wrap thead th {
	position: sticky;
	top: 0;
	background: #f7f9fc;
	z-index: 1;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--emio-muted);
	border-top: 0;
}

.op-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.65rem;
	position: relative;
	z-index: 1;
	margin: 0;
}

.op-actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 42px;
	padding: 0.45rem 0.9rem;
	border-radius: 12px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.96) !important;
	color: var(--emio-text) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	box-shadow: 0 8px 20px rgba(0, 18, 48, 0.18);
}

.op-actions .btn i {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.op-actions .btn-info i {
	background: #e6f8fc;
	color: var(--emio-cyan-deep);
}

.op-actions .btn-warning i {
	background: #fff6e5;
	color: #c48400;
}

.op-actions .btn-primary i {
	background: var(--emio-navy-soft);
	color: var(--emio-navy);
}

.op-actions .btn-secondary i {
	background: #eef1f4;
	color: #4b5563;
}

.op-actions .btn-danger i {
	background: #fdecec;
	color: #dc3545;
}

.op-actions .btn-success i {
	background: #e8f8f0;
	color: #128a5c;
}

.op-actions .badge {
	margin-left: 0.15rem;
	border-radius: 999px;
	padding: 0.3rem 0.55rem;
}

@media (min-width: 1200px) {
	.op-chart-box,
	.op-agenda-wrap {
		height: 240px;
	}
}

/* -------------------------------------------------------------------------- */
/* Login                                                                       */
/* -------------------------------------------------------------------------- */

.login-page {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 1rem var(--emio-footer);
}

.login-page > .navbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

.login-page > .navbar.bg-primary {
	display: none !important;
}

.login-instagram {
	position: fixed;
	top: 14px;
	left: 14px;
	z-index: 1040;
	width: auto;
	height: auto;
	padding: 0;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	background: none;
	font-size: 1.05rem;
	box-shadow: none;
	opacity: 0.9;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.login-instagram:hover {
	color: #fff !important;
	background: none;
	box-shadow: none;
	opacity: 1;
	transform: scale(1.08);
}

.login-nav-mobile {
	background: transparent !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
	color: #fff;
	padding-left: 48px;
}

.login-nav-mobile p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.78rem;
	margin: 0;
}

.login-nav-mobile p strong {
	color: #fff;
	font-size: 0.95rem;
}

.login-page > .container {
	width: 100%;
	margin-top: 0 !important;
	padding-top: 0;
	padding-bottom: 0;
}

.login-panel {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(0, 10, 40, 0.28);
	padding: 1.75rem 1.5rem 1.25rem;
	margin-bottom: 0;
}

.login-panel-brand {
	text-align: center;
	margin-bottom: 1.35rem;
	padding-bottom: 1.15rem;
	border-bottom: 1px solid var(--emio-border);
}

.login-panel-brand img {
	display: block;
	width: 140px;
	max-width: 55%;
	height: auto;
	margin: 0 auto 0.65rem;
}

.login-panel-brand strong {
	display: block;
	color: var(--emio-navy);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.footer-bmf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	border-radius: 50%;
	overflow: hidden;
	width: 28px;
	height: 28px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-bmf img {
	width: 28px;
	height: 28px;
	object-fit: cover;
	display: block;
}

.footer-bmf:hover {
	transform: scale(1.08);
	box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0, 0, 0, 0.18);
}

.app-guest .footer-bmf {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.app-auth .footer-bmf,
.footer-bmf-app {
	width: 36px;
	height: 36px;
}

.app-auth .footer-bmf img,
.footer-bmf-app img {
	width: 36px;
	height: 36px;
}

.login-panel #form-login p,
.login-panel #form-token p {
	font-weight: 600;
	color: var(--emio-navy);
	margin-bottom: 0.5rem;
}

.login-heading {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--emio-navy);
	margin-bottom: 0.25rem;
}

.login-heading-sub {
	font-size: 0.88rem;
	color: var(--emio-muted);
	margin-bottom: 1.25rem;
}

.app-guest .app-cta-bar {
	background: #fff !important;
	border-top: 1px solid var(--emio-border) !important;
	box-shadow: 0 -8px 24px rgba(0, 24, 64, 0.08);
	padding: 0.85rem 1rem !important;
}

.fab-whatsapp {
	position: fixed;
	width: 56px;
	height: 56px;
	bottom: 64px;
	right: 20px;
	border-radius: 50%;
	background: #25d366;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.7rem;
	box-shadow: 0 8px 20px rgba(18, 140, 70, 0.35);
	z-index: 1030;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fab-whatsapp:hover {
	color: #fff !important;
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 12px 24px rgba(18, 140, 70, 0.45);
}

@media (max-width: 767.98px) {
	.login-panel {
		margin-bottom: 5.5rem;
	}
}

@media (min-width: 768px) {
	.login-page > .container {
		padding-top: 0;
	}

	.login-panel {
		padding: 2.25rem 2rem 1.75rem;
	}

	.fab-whatsapp {
		bottom: 72px;
		right: 28px;
	}
}

/* -------------------------------------------------------------------------- */
/* Check-in CTA bar                                                            */
/* -------------------------------------------------------------------------- */

.app-cta-bar {
	background: rgba(255, 255, 255, 0.96) !important;
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--emio-border) !important;
	box-shadow: 0 -8px 24px rgba(0, 24, 64, 0.08);
	padding: 0.85rem 1.15rem !important;
	z-index: 1020;
}

.app-cta-bar .btn-lg {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/* Reservation / services tables                                               */
/* -------------------------------------------------------------------------- */

.card-reserva .table thead th.text-info,
.card-reserva .lead.text-info {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.95rem;
}

.list-berco {
	border-radius: var(--emio-radius);
	overflow: hidden;
}

.comodidades .table-responsive {
	border-radius: var(--emio-radius);
}

.input-qtd {
	min-height: 38px !important;
	text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Popovers (mapa e detalhes)                                                  */
/* -------------------------------------------------------------------------- */

.popover {
	border: 1px solid var(--emio-border);
	border-radius: 12px;
	box-shadow: var(--emio-shadow);
}

.popover-header {
	background: var(--emio-navy);
	color: #fff;
	border: none;
	font-weight: 600;
	border-radius: 11px 11px 0 0;
}

.popover-body {
	font-size: 0.85rem;
	color: var(--emio-text);
}

/* -------------------------------------------------------------------------- */
/* Auditoria                                                                   */
/* -------------------------------------------------------------------------- */

.auditoria-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	background: #fff;
	border-radius: var(--emio-radius);
	padding: 0.7rem 1rem;
	margin-bottom: 0.75rem;
	box-shadow: var(--emio-shadow-sm);
}

.auditoria-atividade {
	max-width: 480px;
	word-break: break-word;
	white-space: normal;
	font-size: 0.85rem;
}

.pagination .page-link {
	color: var(--emio-navy);
	border-color: var(--emio-border);
	border-radius: 8px !important;
	margin: 0 0.12rem;
	min-width: 34px;
	text-align: center;
}

.pagination .page-link:hover {
	background: var(--emio-navy-soft);
	color: var(--emio-navy);
}

.pagination .page-item.active .page-link {
	background: var(--emio-navy);
	border-color: var(--emio-navy);
	color: #fff;
}

.pagination .page-item.disabled .page-link {
	color: #9aa8b6;
	background: #f7f9fc;
}

/* -------------------------------------------------------------------------- */
/* Tooltips                                                                    */
/* -------------------------------------------------------------------------- */

.tooltip-inner {
	background: var(--emio-navy);
	border-radius: 8px;
	padding: 0.4rem 0.65rem;
	font-size: 0.78rem;
}

.bs-tooltip-auto[x-placement^="bottom"] .arrow::before,
.bs-tooltip-bottom .arrow::before {
	border-bottom-color: var(--emio-navy);
}

/* -------------------------------------------------------------------------- */
/* Scrollbars (supporting browsers)                                            */
/* -------------------------------------------------------------------------- */

* {
	scrollbar-width: thin;
	scrollbar-color: #b8c4d4 transparent;
}

/* -------------------------------------------------------------------------- */
/* Mobile                                                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 575.98px) {
	.app-content {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.app-content > .row > .col-12 > h3.p-2,
	.app-content > .row > .col-12 > h4.p-2 {
		font-size: 1.02rem;
	}

	#grid-calendario td {
		height: 42px;
		font-size: 0.85rem;
		padding: 0.25rem 0;
	}

	.dash-tile {
		min-height: 150px;
	}

	.app-content.container-fluid,
	.app-navbar > .container-fluid,
	.app-footer > .container-fluid {
		padding-left: 0.85rem;
		padding-right: 0.85rem;
	}

	#result-map tr > td:first-child:not([rowspan]),
	.table-mapa-analitico thead .mapa-col-local {
		left: 44px;
		min-width: 72px;
		width: 72px;
	}

	.login-panel {
		padding: 1.25rem 1rem 1rem;
	}

	.modal-dialog {
		margin: 0.6rem;
	}
}

.rel-fin-kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.55rem;
}

.rel-fin-kpi,
.rel-fin-chart-card {
	border: 1px solid var(--emio-border);
	border-radius: var(--emio-radius-sm);
	background: #fff;
	padding: 0.55rem 0.75rem;
}

.rel-fin-kpi small,
.rel-fin-chart-card > small {
	display: block;
	color: var(--emio-muted);
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 0.15rem;
}

.rel-fin-kpi strong {
	display: block;
	color: var(--emio-navy);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
}

.rel-fin-chart-box {
	position: relative;
	height: 118px;
}

.rel-fin-chart-box canvas {
	display: block;
}

.rel-fin-lista {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.rel-fin-card {
	border: 1px solid var(--emio-border);
	border-radius: var(--emio-radius);
	background: #fff;
	padding: 1rem 1.1rem 0.85rem;
}

.rel-fin-card-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.85rem;
	align-items: center;
	margin-bottom: 0.85rem;
}

.rel-fin-card-id {
	font-weight: 700;
	color: var(--emio-navy);
	background: var(--emio-navy-soft);
	border-radius: 8px;
	padding: 0.4rem 0.65rem;
	min-width: 64px;
	text-align: center;
}

.rel-fin-card-tit strong,
.rel-fin-card-total strong {
	display: block;
	color: var(--emio-navy);
}

.rel-fin-card-tit small,
.rel-fin-card-total small,
.rel-fin-meta small {
	display: block;
	color: var(--emio-muted);
	font-size: 0.75rem;
}

.rel-fin-card-total {
	text-align: right;
}

.rel-fin-card-total strong {
	font-size: 1.15rem;
}

.rel-fin-meta {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.65rem 0.85rem;
	margin-bottom: 0.65rem;
}

.rel-fin-meta strong {
	display: block;
	color: var(--emio-text);
	font-size: 0.88rem;
}

.rel-fin-specs {
	font-size: 0.78rem;
	color: var(--emio-muted);
	margin-bottom: 0.75rem;
}

.rel-fin-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--emio-navy-soft) !important;
	color: var(--emio-navy);
	font-weight: 600;
}

.rel-fin-total strong {
	font-size: 1.25rem;
}

@media (max-width: 991.98px) {
	.rel-fin-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.rel-fin-kpis {
		grid-template-columns: 1fr;
	}

	.rel-fin-card-head {
		grid-template-columns: auto 1fr;
	}

	.rel-fin-card-total {
		grid-column: 1 / -1;
		text-align: left;
	}
}

@media print {
	.app-navbar,
	.app-footer,
	.rel-fin-toolbar,
	.rel-fin-print,
	.btn-sair,
	.nav-whatsapp {
		display: none !important;
	}

	.app-content {
		margin: 0 !important;
		padding: 0 !important;
	}

	.rel-fin-card {
		break-inside: avoid;
		box-shadow: none;
	}

	.rel-fin-total {
		break-inside: avoid;
	}
}

/* Space for fixed footer on long pages */
.app-auth {
	padding-bottom: 0.5rem;
}
