/**
 * Ce fichier ne doit contenir que les modification de CSS sur les plugins Datatable et Bootsrap
 **/
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child::before, 
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child::before {
    top: 10px;
    left: 4px;
    height: 24px;
    width: 24px;
    display: block;
    position: absolute;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    box-shadow: none;
    box-sizing: content-box;
    text-align: center;
    text-indent: 0 !important;
    font-family: 'Courier New', Courier, monospace;
    line-height: 28px;
    content: '+';
    background-color: #0069d9;
    font-size: 30px;
    margin: 0 0 0 10px;
    font-weight: bold;
    padding: 1px;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child::before, table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child::before {
    content: '-';
    background-color: #d33333;
}

table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child, table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child {
    position: relative;
    padding-left: 50px;
    cursor: pointer;
}

@media screen and (max-width: 640px) {

  	/* Popups agenda plus grosses */
	#agenda_wrapper .modal-lg {
	    max-width: 80%;
	}
	
	/* permet de rendre les groupe de bouton plus acc�ssible sur les petits �cran */
	
	.btn-group.my-btn-group-responsive {
		display: table;
		width: 100%;
		table-layout: fixed;
		border-collapse: separate;
	}
	
  	.btn-group.my-btn-group-responsive > .btn {
    	display: block;
    	width: 100%;
  	}
	  
	/* making the border-radius correct */
	.btn-group.my-btn-group-responsive > .btn:first-child {
		border-radius: 6px 6px 0 0;
	}
	
	.btn-group.my-btn-group-responsive > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
		border-top-right-radius: 6px;
	}
	
	.btn-group.my-btn-group-responsive > .btn:last-child:not(:first-child) {
	 	border-radius: 0 0 6px 6px;
	}

	/* fixing margin */
	.btn-group.my-btn-group-responsive .btn + .btn {
		margin-left: 0;
	}
}
.historique {
    font-size:0.7em;
}
.historique hr {
    margin:0;
}

.reply-to{
	padding: 2px;
	font-size: .7rem;
}

.reply-to:hover{
	background-color: #fff0;
}

.history-mail-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.history-mail-header-text {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.history-mail-chevron {
    flex: 0 0 auto;
    width: 24px;
    text-align: right;
    font-size: 0.9rem;
}

.history-mail-chevron i {
    transition: transform 0.2s ease;
}

.history-mail-toggle:not(.collapsed) .history-mail-chevron i {
    transform: rotate(180deg);
}

.history-mail-body {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    max-height: 350px;
    overflow-y: auto;
    font-size: 0.95rem;
}

.history-mail-body img {
    max-width: 100%;
    height: auto;
}

.history-mail-body div,
.history-mail-body p,
.history-mail-body span {
    word-break: break-word;
}

.mail-attachment-upload-zone {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.mail-attachment-list .mail-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #f8f9fa;
}

.mail-attachment-list .mail-attachment-name {
    margin-right: 12px;
    word-break: break-word;
}

.mail-attachment-list .mail-attachment-meta {
    color: #777;
    font-size: 0.85rem;
    margin-left: 8px;
}