@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

/* Coluna fixa (sticky) durante scroll horizontal */
td.sticky-col {
	position: sticky;
	left: 0;
	z-index: 1;
	background-color: #ffff;
}

.table-striped>tbody>tr:nth-of-type(odd)>td.sticky-col {
	background-color: rgb(255, 255, 255);
}

th.sticky-col {
	position: sticky;
	left: 0;
	z-index: 2;
	background-color: #f8f9fa;
}

:root {
	--top-row-height: 40px;
	--top-row-gap: 10px;
	--sidebar-offset: 240px;
}

body {
	background-color: #F3F6FE !important;
	font-family: 'Nunito Sans', sans-serif;
}

.container-fluid {
	padding: 0;
}

.container-fluid>.row {
	flex-wrap: nowrap;
}

.sidebar {
	width: 240px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #1F263E;
	font-size: 14px;
	z-index: 1062;
}

.top-row-content {
	height: var(--top-row-height);
	background-color: white;
	border-bottom: 1px solid #dee2e6;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 20px;
	margin-bottom: 0;
	position: fixed;
	top: 0;
	left: var(--sidebar-offset);
	right: 0;
	z-index: 1030;
}

#top-row-container {
	height: calc(var(--top-row-height) + var(--top-row-gap));
}

#birthday-today,
#upcoming-birthdays {
	font-size: 12px !important;
}

.main-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.main-wrapper .content {
	padding-top: 0;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.user-name {
	font-weight: 600;
	color: #1F263E;
	font-size: 14px;
}

#sidebar-container ul {
	border-color: rgba(255, 255, 255, 0.08) !important;

}

.sidebar-divider-btn {
	position: fixed;
	top: 2%;
	left: 240px;
	transform: translateY(-50%);
	width: 18px;
	height: 28px;
	background-color: #1F263E;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-left: none;
	border-radius: 0 6px 6px 0;
	color: white;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1051;
	padding: 0;
}

.sidebar-container-minimized {
	position: fixed;
	left: 0;
	top: 0;
	width: 2px;
	height: 100vh;
	background-color: #1F263E;
	z-index: 1061;
}

.sidebar-expand-btn {
	position: fixed;
	top: 2%;
	left: 2px;
	transform: translateY(-50%);
	width: 20px;
	height: 30px;
	background-color: #1F263E;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-left: none;
	border-radius: 0 6px 6px 0;
	color: white;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1060;
	padding: 0;
}

.content {
	flex: 1;
	padding: 10px;
}

#passengersTable {
	border-radius: 0px;
	overflow: hidden;
}

/* Botões de ações das tabelas */
.table-action-btn {
	font-size: 14px !important;
	padding: 3px 8px !important;
	line-height: 1.3;
}

/* Células da tabela */
.table thead th {
	font-size: 13px;
	padding: 2px 4px;
}

.table tbody td {
	font-size: 14px;
	padding: 2px 4px;
}

/* Linhas clicáveis */
.table tbody tr[style*="cursor: pointer"]:hover {
	background-color: #e9ecef !important;
	transition: background-color 0.2s ease;
}

/* Scroll horizontal para tabelas */
.table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Garantir que a tabela não quebre em telas pequenas */
.table-responsive table {
	min-width: 100%;
	white-space: nowrap;
}

/* Inputs e selects nas células da tabela */
.table .form-control-sm,
.table .form-select-sm {
	min-width: 100px;
	font-size: 13px;
}

/* Input de data precisa de um pouco mais de largura */
.table input[type="date"].form-control-sm {
	min-width: 130px;
}

/* Input de número pode ser menor */
.table input[type="number"].form-control-sm {
	min-width: 80px;
}

/* Colunas de nome podem ser um pouco mais largas */
.table td:has(.passenger-detail-input[data-field="tipo_pacote"]),
.table td:has(.passenger-detail-input[data-field="quarto"]),
.table td:has(.passenger-detail-input[data-field="parcelas"]) {
	min-width: 120px;
}

.pageTitle {
	color: #F76E2E;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 1.5em;
	font-weight: bold;
}

.uppercase-input {
	text-transform: uppercase;
}

.custom-column-like-card {
	border: var(--bs-card-border-width) solid var(--bs-card-border-color);
	border-radius: var(--bs-card-border-radius);
}

/* Responsivo: Sidebar em telas menores que 1200px */
@media (max-width: 1199px) {

	:root {
		--sidebar-offset: 0px;
	}

	/* Container geral */
	.container-fluid,
	.container-fluid>.row {
		min-height: 100vh;
	}

	/* Container do sidebar não ocupa espaço quando minimizado */
	#sidebar-container:not(.mobile-expanded) {

		width: 0;
	}

	/* Sidebar minimizado aparece por padrão em mobile */
	.sidebar-container-minimized {
		display: flex;
	}

	/* Quando sidebar expandido em mobile, sobrepõe */
	#sidebar-container.mobile-expanded {
		display: flex !important;
		position: fixed;
		z-index: 1050;
		width: 240px !important;
		left: 0;
		top: 0;
		height: 100vh;
		overflow-y: auto;
		background-color: #1F263E;
		margin-top: 0px !important;
	}

	/* Sidebar interno quando em mobile */
	#sidebar-container.mobile-expanded .sidebar {
		width: 240px;
		height: 100%;
		position: static;
		display: flex;
	}

	/* Esconde o botão de expandir quando sidebar está aberto */
	body.sidebar-mobile-open .sidebar-container-minimized {
		display: none !important;
	}

	/* Main wrapper ocupa toda largura em mobile */
	.main-wrapper {
		width: 100%;
		margin-left: 0;
	}

	/* Backdrop para quando sidebar está aberto em mobile */
	.sidebar-backdrop {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 1040;
	}

	.sidebar-backdrop.show {
		display: block;
	}
}