/* geral */
* {
	font-family: 'Poppins-Regular';
}
body {
	margin: 0;
    padding: 0;
	display: flex;
    flex-direction: column;
    cursor: default;
    box-sizing: border-box;
    color: #1F2D1B !important;
	font-size: 18px !important;
}
h1, h2, h3, h4, h5, h6, p {
	margin-bottom: 0;
}
.footer .container {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

/* card */
.card-main {
  	border: 0;
	flex-grow: 1;
  	padding: 32px;
	width: 100%;
  	max-width: 670px;
  	border-radius: 32px;
  	margin: 3% auto;
  	background-color: rgb(235,222,181);
}
.card-main > .card-body {
	padding: 0 !important;
}

@media (max-width: 771px) {
	.card-main {
		margin: 0 !important;
		max-width: unset !important;
		padding: 32px 15px;
		border-radius: 0 !important;
		box-shadow: none !important;
	}
}

.legenda-fechado {
	width: 35px;
	height: 35px;
	display: -webkit-inline-box;
	background-color: #ccc;
}
.legenda-durante-semana {
	width: 35px;
	height: 35px;
	line-height: 15px;
	display: -webkit-inline-box;
	background-color: rgb(42,50,32);
}
.legenda-final-semana {
	width: 35px;
  	height: 35px;
	display: -webkit-inline-box;
	background-color: rgb(138,46,54);
}
.col-legenda {
	top: 3px;
	position: relative;
	line-height: 15px;
}
.btn {
	font-family: 'Poppins-Regular';
}
.btn-lg {
	padding-top: 0.8rem;
    padding-bottom: 0.8rem;
	font-size: 14px !important;
}
.bg-secondary {
	background-color: #384A36 !important;
	border-color: #384A36 !important;
}
.bg-tertiary {
	background-color: #FFAC33 !important;
	border-color: #FFAC33 !important;
}
.bg-quaternary {
	color: #8A2E36;
	border-color: #8A2E36;
}
.bg-cor-secundaria-border {
	color: var(--cor-secundaria);
	font-family: 'Poppins-Medium';
	background-color: transparent;
	border-color: var(--cor-secundaria);
}
.bg-cor-secundaria-border:hover {
	border-color: var(--cor-secundaria);
	color: var(--cor-secundaria);
}
.fs-6 {
	font-size: 14px !important;
}
/* NÃO REVISADO */
.cursor-pointer {
	cursor: pointer;
}
.dropdown-menu-custom {
	max-height: 250px;
	overflow-y: overlay;
}

@-webkit-keyframes pulse {
	to {
		box-shadow: 0 0 0 15px rgba(232, 76, 61, 0);
	}
}

@-moz-keyframes pulse {
	to {
		box-shadow: 0 0 0 15px rgba(232, 76, 61, 0);
	}
}

@-ms-keyframes pulse {
	to {
		box-shadow: 0 0 0 15px rgba(232, 76, 61, 0);
	}
}

@keyframes pulse {
	to {
		box-shadow: 0 0 0 15px rgba(232, 76, 61, 0);
	}
}

/* HORARIOS */
.btn-group-vertical > .btn:not(:first-child) {
	margin-top: initial;
}
.btn-horario-1 {
	padding: .5rem .75rem;
	font-size: 16px !important;
	font-family: 'Poppins-SemiBold';
	letter-spacing: -0.01em;
}
.btn-horario-2 {
	padding: .4rem .75rem;
    font-size: 11px !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    font-family: 'Poppins-SemiBold';
    text-transform: uppercase;
}

/* Card base moderno */
.btn-horario {
	border-width: 2px;
	border-style: solid;
	border-color: transparent;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn-check:not(:checked) + .btn-horario:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(16, 24, 40, .12);
}

/* ---- Status: cor sólida no topo + rótulo na base (sem ícones) ---- */
/* O background-color do botão = cor do status: elimina a linha clara no canto arredondado */
.btn-horario.status-disponivel { border-color: #10b981; background-color: #10b981; }
.btn-check:not(:checked) + .btn-horario.status-disponivel .btn-horario-1 { background-color: #10b981; color: #fff; }
.btn-horario.status-disponivel .btn-horario-2 { background-color: #fff; color: #047857; }

.btn-horario.status-vagas-limitadas { border-color: #f59e0b; background-color: #f59e0b; }
.btn-check:not(:checked) + .btn-horario.status-vagas-limitadas .btn-horario-1 { background-color: #f59e0b; color: #fff; }
.btn-horario.status-vagas-limitadas .btn-horario-2 { background-color: #fff; color: #b45309; }

.btn-horario.status-ultimas-vagas { border-color: #f97316; background-color: #f97316; }
.btn-check:not(:checked) + .btn-horario.status-ultimas-vagas .btn-horario-1 { background-color: #f97316; color: #fff; }
.btn-horario.status-ultimas-vagas .btn-horario-2 { background-color: #fff; color: #c2410c; }

/* ---- Estados desabilitados ---- */
.btn-horario.status-lotado,
.btn-horario.status-encerrado {
	opacity: .75;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
}
.btn-horario.status-lotado { border-color: #dc2626; background-color: #dc2626; position: relative; }
.btn-horario.status-lotado .btn-horario-1 { background-color: #dc2626; color: #fff; }
.btn-horario.status-lotado .btn-horario-2 { background-color: #fff; color: #dc2626; }
/* Camada escura semi-transparente por cima: aspecto de desabilitado */
.btn-horario.status-lotado::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, .1);
	pointer-events: none;
}

.btn-horario.status-encerrado { border-color: #94a3b8; background-color: #94a3b8; }
.btn-horario.status-encerrado .btn-horario-1 { background-color: #94a3b8; color: #444; }
.btn-horario.status-encerrado .btn-horario-2 { background-color: #fff; color: #64748b; }

/* ---- Estado selecionado (mantém a cor da marca para todos os status) ---- */
.btn-check:checked + .btn-horario {
	border: 2px solid rgb(255,172,51) !important;
	background-color: rgb(255,172,51);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 172, 51, .3);
}
.btn-check:checked + .btn-horario .btn-horario-1 {
	background-color: rgb(255,172,51) !important;
	color: rgb(56,74,54);
	font-family: 'Poppins-SemiBold';
}
.btn-check:checked + .btn-horario .btn-horario-2 {
	background-color: #fff !important;
	color: rgb(56,74,54);
}
.btn-check:focus + .btn-horario {
  	box-shadow: none;
}

/* BOOTSTRAP */
.text-secondary {
	color: rgb(56,74,54) !important;
}
.btn-success {
	background-color: rgb(56,74,54);
	border-color: rgb(56,74,54);
}
.btn-success:hover {
	background-color: rgb(56,74,54);
	border-color: rgb(56,74,54);
}

/***** LOADING *****/
.loading {
    position: fixed;
    z-index: 9999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Transparent Overlay */
.loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
	opacity: 0.5;
}

/* flatpickr */
.flatpickr-calendar {
	width: auto !important;
	box-shadow: none !important;
	margin-top: 5px !important;
}