body
{
	padding:0px;
	margin:0px;
	background-color:#dde2f1;
	overflow-x: hidden;
}
img {
	border:none;
}
#header {
	background-color:#FFD700;
	text-align:center;
	margin:0px;
	padding:10px;
	text-shadow: 1px 1px 3px #333;
	min-width: 1500px;
}

.info-error {
	padding: 8px 16px;
	border-radius: 4px;
	background: rgb(254, 103, 103);
	text-align:center;
}

.form-info {
	height: 24px;
	width: 100%;
	text-align:center;
}

.form-error {
	border-radius: 4px;
	background: rgb(254, 103, 103);
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	width:100%;
	height:100%;
}

.form-message {
	border-radius: 4px;
	background: rgb(89, 160, 81);
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	width:100%;
	height:100%;
}

.depense-actions {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 16px 24px;
	justify-content: space-between;
}

.depense-action {
	width: fit-content;
}

#contenu h3 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-bottom: 0px;
} 

.depense-action input[type="submit"], h3 input[type="submit"] {
    background-color: #4B576A; /* Couleur de fond */
    color: white; /* Couleur du texte */
    padding: 12px 20px; /* Espacement intérieur */
    border: none; /* Bordure */
    border-radius: 4px; /* Arrondi des bords */
    cursor: pointer; /* Curseur au survol */
}

.depense-action input[type="submit"]:hover, h3 input[type="submit"]:hover {
    background-color: #394654; /* Couleur de fond au survol */
}

.depense-action  input[type="submit"]:active, h3  input[type="submit"]:active {
    background-color: #2B333F; /* Couleur de fond lors de l'appui */
}
.test {

}
/* thead
{
	position: absolute;
}

tbody
{
    position: absolute;

    top: 60px;
	left:0;
	right:0;
} */
#top
{
	text-align:center;
	background-color:white;
	height:20px;
	color:black;
	border-top:2px groove orange;
	border-bottom:2px inset orange;
	padding:5px;
	box-shadow: 1px 1px 13px #999;
	min-width: 1500px;
}
.inputd tr{
	background:none;
}

select {max-width: 250px; height: 1.5em; color:black;}
	/*option {max-width: 300px; white-space:normal;}*/

.inputd table {
	background-color:#cad0d8;
}
.inputd td{
	background :none;
	-moz-border-radius:10px;
	-webkit-border-radius:10px;
	border-radius:10px;
	padding:20px;
	text-align:left;
}
.btab tr{
	background:none;

}
.btab th{
	background:none;
	padding:5px;
	text-align:center;
	color:black;
	border-bottom:2px solid black;
}
.btab td{
	background:none;
	background-color:#ddd;
	box-shadow: 1px 1px 8px white;
	padding:5px;
	text-align:center;
	color:black;
}
.inputd th{
	background:none;
	padding:20px;
	text-align:center;
	color:black;
}
/* table {
	max-width: 100vw;
} */
.bloc1 {
	width:300px;
	float:left;
	margin:10px;
	border:1px solid black;
	height:320px;
	box-shadow: 1px 1px 13px #999;
	-moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
	background-color:#b1cfd7;
}
.contenu {
	min-width:1500px;
	margin:auto;
	padding:15px;
	width: 100vw;
	overflow-x: hidden;
}

.rotate {
   /* margin: 0;
    padding: 0;
    -webkit-transform-origin: 0 0;
       -moz-transform-origin: 0 0;
        -ms-transform-origin: 0 0;
         -o-transform-origin: 0 0;
            transform-origin: 0 0;*/
    -webkit-transform: rotate(270deg);
       -moz-transform: rotate(270deg);
        -ms-transform: rotate(270deg);
         -o-transform: rotate(270deg);
            transform: rotate(270deg);
}

.synth {

	width:1400px;
	text-align:center;
	background-color:white;
	margin:auto;
}

.synth table {
	border-collapse:collapse;
}

.synth tr {
	background-color:white;
	text-align:center;
}

.synth td {
	box-shadow: 0px 0px 0px #999;
	text-align:center;
	background-image:none;
	background-color:white;
	border:1px solid black;
}

.synth th {
	box-shadow: 0px 0px 0px #999;
	border:1px solid black;
	background:none;
	background-color:#00cccc;
	padding:10px;
}

.contenu table th {
	width:260px;
}

.message {
	text-align:center;
	background-color:#ebeade;
}
a
{
	color:black;
	text-decoration:none;
}

a:hover{
	color:black;
	text-decoration:none;
}
#top a {
	padding-left:5px;
	padding-right:5px;
	color:black;
}
#top a:hover {
	padding-left:5px;
	padding-right:5px;
	color:red;
	text-shadow: 1px 1px 13px black;
	-moz-border-radius:10px;
	-webkit-border-radius:10px;
	border-radius:10px;
}
th{
	background-color:#ccc;
	color:#222;
}
.contenu th {
	text-align:center;
	background-color:#4b576a;
}

td {
	border-bottom:1px solid black;
}

.view_member {
	display: flex;
	flex-direction: column;
	width: calc(100vw - 40px);
	padding: 20px;
}

.view_member_left_block {
	width: 200px;
	font-size: 16px;
	font-weight: 600;
}
/* .blocA {
table-layout:fixed;
text-align:center;
display:block;border-spacing:0;
border:solid 1px;
}
 thead,tfoot , tr ,caption{display:table;width:100%;table-layout:fixed;}
thead,tfoot {box-sizing:border-box;padding-right:0.85em;position:relative;}
.blocB {display:block;overflow:auto;height:400px;width:100%;}
.blocA td, .blocA th {
	width:7%;
	padding:1%;
} */
#copTab2 {
	position:absolute;
	top:-100px;
	z-index:10;
	/* width:100%; */
	min-width:1580px;
	overflow:auto;
	width: calc(100vw - 2rem);
}
#copTab2 table {
	margin-right: 2rem;
}
#copTab2::-webkit-scrollbar{
	opacity: 0%; 
}
#copTab2 th{
	color:white;
	background-color:#282c34;
	/* width:6vw; */
	text-align:center;
}
#copTab1 th {
	/* width:6vw; */
}
#copTab1 {
	min-width:1580px;
	width: calc(100vw - 2rem);
	overflow: auto;
	max-height: calc(100vh - 80px);
}
/* #copTab1 th, #copTab1 td, #copTab2 th, #copTab2 td {
	padding:2px;
	font-size:90%;
} */
.fiche {
	width: 100vw;
}

.copTabs {
	/* position: relative; */
}

.default-button {
	width: fit-content;
	padding:16px 32px;
	background: #00b074;
	border: 1px solid #eefaf6;
	margin:8px;color:white;
}

.default-button:hover {
	filter:brightness(120%);
	transition:0.2s;
}

.axe {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.axe h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Style du formulaire d'ajout */
.axe form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.axe label {
    font-weight: bold;
	margin-bottom: 0;
}

.axe input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
	margin-bottom: 0;
}

.axe button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.axe button:hover {
    background-color: #2980b9;
}

.axe button.danger {
    padding: 10px 20px;
    background-color: #d3666d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.axe button.danger:hover {
    background-color: #d3666d;
}

/* Style du tableau */
.axe table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.axe thead {
    background-color: #3498db;
    color: white;
}

.axe th, .axe td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}


.axe tr:hover {
    background-color: #f1f1f1;
}

/* Style des switches (activation/désactivation) */
.axe .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.axe .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.axe .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.axe .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.axe input:checked + .slider {
    background-color: #2ecc71;
}

.axe input:checked + .slider:before {
    transform: translateX(24px);
}

/* Style des notifications */
.axe .notification {
    background-color: #2ecc71;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
	height: 40px;
    transition: 0.25s opacity;
}

.axe .error {
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Style pour les messages d'erreur et de succès */
.axe .notification, .axe .error {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.axe th.switch-column,
.axe td.switch-column {
    width: 80px;
    text-align: center;
}
.axe th.actions-column,
.axe td.actions-column {
    width: 140px;
    text-align: center; 
}

.notification.success {
    background-color: #28a745; /* Vert pour succès */
}

/* Classe pour les notifications d'erreur */
.notification.error {
    background-color: #dc3545; /* Rouge pour erreur */
}

.axe td.no-data-message, .no-data-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background-color: #f9f9f9;
    border-top: 2px solid #ddd;
}

.search-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.search-container input[type="text"] {
	padding: 8px;
	border-radius: 4px;
	margin: 0;
	font-size: 18px;
	border: 1px solid #ccc;
	max-width: 600px;
}

.search-container button, #filterModal button {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	background-color: #4B576A;
	color: white;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s ease;
	display: flex;
	align-items: center;
}
.search-container button.danger, #filterModal button.danger {
	background-color: #d3666d;
}
.search-container button:hover {
	filter: brightness(90%);
}

.search-container button i {
	margin-right: 5px;
}

.modalf {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	padding: 60px;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: flex-start;
	z-index: 1000;
}

.close-button {
	/* position: fixed;
	top:4px;
	right: 20px; */
	font-size: 20px;
	color: #d3666d;
}
#closeResultsModal {
	font-size: 40px;
	color: #891820;
	font-weight: 900;
	opacity: 1;
}

.modalf h3 {
	margin: 0;
	padding: 0;
	padding-bottom: 8px;
	border-bottom: 1px solid #c2c2c2;
	margin-bottom: 8px;
}

.modalf .modal_footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 8px;
	border-top: 1px solid #c2c2c2;
	margin-top: 8px;
}

.modal-content {
	position: relative;
	min-width: 600px;
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	max-width: calc(100vw - 120px);
	max-height: calc(100vh - 120px);
	overflow: auto;
}

.modal-content thead th {
	position: sticky;
	top: -20px;
	background: #4B576A; /* Garder les en-têtes visibles lors du scroll */
	color: white;
	padding: 4px 4px;
	text-align: center;
}

.results-modal {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
}

.results-modal-content {
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	max-height: 80vh;
	overflow-y: auto;
}

.modal-filter-content {
	margin: 8px 0;
}

.global-search table {
	width: 100%;
	border-collapse: collapse;
}

.global-search .global-search table th, table td {
	border: 1px solid #ddd;
	padding: 8px;
}

.global-search table th {
	background-color: #f2f2f2;
}

.global-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.filter-buttons {
    margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}


/* Conteneur des checkboxes */
#exerciceContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Chaque checkbox et son label */
#exerciceContainer div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
	gap: 8px;
}

#exerciceContainer div:hover {
    background-color: #e6e6e6;
}

/* Style pour la checkbox elle-même */
#exerciceContainer input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
	padding: 0;
	margin-top: 0;
}

/* Style pour le label */
#exerciceContainer label {
    cursor: pointer;
    font-size: 16px;
    color: #333;
	padding:0;
    margin:0;
	line-height: normal;
	user-select: none;
}

/* Améliorer l'apparence des boutons dans la modal */
#applyFilterBtn, #closeFilterModal {
    background-color: #4B576A;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#applyFilterBtn:hover, #closeFilterModal:hover {
    background-color: #0056b3;
}

#closeFilterModal {
    background-color: #6c757d;
}

#closeFilterModal:hover {
    background-color: #5a6268;
}

/* Amélioration des formulaires de création/modification avec color picker */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    gap: 10px;
}
.form-label {
    font-weight: 500;
    margin-right: 8px;
}
.form-inline-flex {
	display: flex;
	align-items: center;
	gap: 10px;
}
.color-picker-large {
	padding: 0;
    width: 48px;
	min-width: 48px;
    height: 36px;
    border: none;
    border-radius: 6px;
    margin-right: 8px;
    margin-left: 10px;
    cursor: pointer;
    box-shadow: none;
}
.color-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    box-shadow: none;
    vertical-align: middle;
    margin: 0 4px;
}
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .color-picker-large {
        width: 40px;
        height: 32px;
    }
    .color-indicator {
        width: 16px;
        height: 16px;
    }
}

/* Styles pour le modal de recherche globale moderne */
#resultsModal .modal-content {
    max-width: 95% !important;
    width: 1800px !important;
    max-height: 90vh;
    overflow: hidden;
}

#resultsModal table {
    width: 100%;
    min-width: 1600px;
    border-collapse: collapse;
}

#resultsModal thead {
    background: #f8f9fa !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

#resultsModal thead th {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    padding: 12px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    background: #f8f9fa !important;
}

#resultsModal tbody td {
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

#resultsModal tbody tr {
    transition: all 0.3s ease;
}

#resultsModal tbody tr:hover {
    background-color: #f8f9fa;
}

/* Bordure colorée pour les lignes avec couleur hiérarchique */
#resultsModal tbody tr[style*="border-left"]:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Styles pour les boutons d'action */
#resultsModal .action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#resultsModal .action-buttons button {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    color: white;
    transition: background-color 0.2s ease;
}

#resultsModal .action-buttons button:hover {
    opacity: 0.8;
}

/* Styles pour les casiers */
#resultsModal .casiers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

#resultsModal .casier-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

#resultsModal .casier-point {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
}

/* Styles pour les annotations */
#resultsModal .annotation-flag {
    flex-shrink: 0;
}

/* Styles pour les informations de résultats */
#resultsInfo {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
}

#limitWarning {
    color: #dc3545;
    margin-left: 12px;
}

/* Responsive pour le modal */
@media (max-width: 1400px) {
    #resultsModal .modal-content {
        width: 95% !important;
    }
}

@media (max-width: 768px) {
    #resultsModal table {
        font-size: 11px;
    }
    
    #resultsModal thead th,
    #resultsModal tbody td {
        padding: 8px 4px !important;
    }
    
    #resultsModal .action-buttons button {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    #resultsModal .casier-badge {
        font-size: 10px;
        padding: 1px 4px;
    }
}