#workers-chatbot-root{
	display: none !important;
}
#content{
	display: flex;
	flex-direction: column;
	flex: 1;
}
footer{
	display: none;
}

main{
	padding-block: var(--padding-block);
	display: flex;
	flex-direction: column;
}
.messages__container .flex{
	gap: 10px;
	align-items: center;
}



img.profile{
	--size: 40px;
	height: var(--size);
	width: var(--size);
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

aside.card{
	padding: 10px;
	max-width: 300px;
	flex: 1;
	border-radius: 10px;
	overflow-y: scroll;
}
aside.pane-left{
	display: flex;
	flex-direction: column;
	overflow-y: scroll;
	gap: 5px;
}
aside > div{
	padding-inline: 1rem;
}
aside .header{
	text-align: center;
}
aside .header > a{
	border-radius: 8px;
	padding: 10px 1rem;
	width: max-content;
	margin: 0 auto;
}
aside .header a.profile:hover{
	color: var(--color);
	background: #ebebeb;
}
aside .header a.button{
	margin-top: 10px;
}
aside .header > strong{
	display: block;
	padding-block: 10px;
}

aside.pane-left img.profile{
	--size: 30px;
}
aside .salary{
	margin-bottom: 1rem;
}
aside hr{
	--margin: 1rem;
}
aside .tag{
	flex-direction: column;
}


section.messages__container{
	--header-height2: 72px;

	display: flex;
	flex: 1;
	gap: 1rem;
	overflow: hidden;
	max-height: calc( 99dvh - (var(--header-height) + (var(--padding-block)*2) + var(--header-height2)));
}

.conversation{
	display: flex;
	align-items: center;
	border-radius: 6px;
	padding: 10px;
	gap: 10px;
	cursor: pointer;
}
.conversation:is(:hover, .active){
	background: #F6F6F6;
}
.conversation div.content{
	max-width: 18ch;
}
.conversation div.content span{
	font-size: .85rem;
}
.conversation strong{
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.conversation span.time{
	align-self: flex-end;
	font-size: .8rem;
	color: gray;
	margin-left: auto;
}
.conversation .badge{
	display: none;
}

section.messages__container .messages__core{
	display: flex;
	flex-direction: column;
	flex: 1;
	background: #fafafa;
	border-radius: 10px;
	position: relative;
	overflow-y: scroll;
}

.conversation-header{
	flex-wrap: nowrap;
	position: sticky;
	top: 0;
	display: none;
	justify-content: space-between;
	background: #fafafa;
	padding: 10px;
	box-shadow: 0 0 8px #00000029;
}
.conversation-header > .flex{
	min-width: 20ch;
	flex-wrap: nowrap;
}
.conversation-header > .flex div{
	min-width: 20ch;
}

.conversation-footer{
	position: sticky;
	bottom: 0;
	background: #fafafa;
	border-top: 1px solid #ebe9e9;
	padding: 20px 10px 10px;
	margin-top: auto;
	gap: 1rem;
}
.conversation-footer .send-buttons{
	display: none;
	gap: 1rem;
}
.conversation-footer .send-write{
	flex: 1;
	flex-wrap: nowrap;
}
.conversation-footer .send-write textarea{
	border: 0;
	height: auto;
	padding: 1rem .8rem 0;
	min-height: 40px;
	max-height: 220px;
	border-radius: .8rem;
	transition: box-shadow 0.2s;
	field-sizing: content;
}
.conversation-footer .send-write textarea:focus{
	outline: 0;
	box-shadow: 0 0 5px 1px #0000000f;
}

.conversation-header .details-trigger,
.conversation-footer .send-buttons > *{
	font-size: 1.4rem;
}
.conversation-header .details-trigger,
.conversation-footer .send-buttons > *,
.conversation-footer .send-write .send{
	color: var(--legacy-primary);
	cursor: pointer;
}
.conversation-header .details-trigger:hover,
.conversation-footer .send-buttons > *:hover,
.conversation-footer .send-write .send:hover{
	color: var(--accent);
}


.messages__chat{
	padding: 1rem;
	display: flex;
	flex-direction: column;
}
.messages__chat .message{
	display: flex;
	gap: 5px;
}
.messages__chat .message .profile{
	--size: 30px;
}
.messages__chat .message .text{
	max-width: 50ch;
	margin-bottom: 10px;
	border-radius: 8px;
	background: #fff;
	padding: 10px;
	font-size: .9rem;
	box-shadow: 2px 2px 8px 0px rgb(0 0 0 / 3%);
}
.messages__chat .message span.time{
	float: right;
}
.messages__chat .message.self{
	align-self: flex-end;
}
.messages__chat .message.self .text{
	background: var(--legacy-primary);
	color: #fff;
}
.messages__chat .message.self .text span.time{
	color: #fff;
	padding-top: 10px;
}

aside .close-pane, aside .close-pane{
	color: var(--legacy-primary);
	position: sticky;
	bottom: 5px;
	margin-top: 2rem;
}



.tag-group{
	padding-top: 5px;
	gap: 5px;
}
.tag{
	font-size: .9rem;
}

strong.jobtitle{
	padding: 0 0 1rem 1rem;
	font-weight: 400;
}
strong.jobtitle::before{
	content: 'Job : ';
	font-weight: 600;
}

.chats-trigger{
	position: fixed;
	z-index: 11;
    top: 11px;
    right: 1.5rem;
    width: 40px;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    background: linear-gradient(240deg, #F1898E -0.65%, #EB565F 65.72%);
    border-radius: 50%;
    color: #fff;
}

@media( min-width: 1096px){
	aside .close-pane{
		display: none;
	}
}
@media( max-width: 1095px){
	aside.pane-right{
		position: absolute;
		right: 0;
		translate: calc(100% + 2rem) 0;
		transition: translate 0.2s;
		height: 100%;
		z-index: 9;
	}
	aside.pane-right.trigger-open{
		translate: 0 0;
	}
	.conversation-header{
		display: flex;
	}

}

@media( min-width: 769px){
	aside.pane-left .close-pane,
	.chats-trigger{
		display: none;
	}
}
@media( max-width: 768px){
	main{
		--padding-block: 1rem;
	}
	aside.pane-left{
		position: absolute;
		translate: calc(-100% - 2rem) 0;
		transition: translate 0.2s;
		height: 100%;
		z-index: 9;
	}
	aside.pane-left.trigger-open{
		translate: 0 0;
	}

	.conversation-footer textarea{
		resize: none;
	}

	section.messages__container{
		--header-height2: 72px;
	}
}

@media( max-width: 400px){
	.conversation-footer:has( > .send-write textarea:focus) .send-buttons{
		display: none;
	}
}

/* Require CV button styling */
/*.require-cv-button {
	background-color: #ff6b35;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.require-cv-button:hover {
	background-color: #e55a2b;
}
*/
/* Require CV message styling */


.message.require-cv-message {
	background-color: #fff3cd;
	border-left: 4px solid #ff6b35;
	padding: 12px;
	margin: 8px 0;
	border-radius: 6px;
}

.message.require-cv-message .text {
	color: #856404;
	font-weight: 500;
}