.pagination{
	margin:0px 0;
}
    fieldset 
	{
		border: 1px solid #ddd !important;
		margin: 0;
		xmin-width: 0;
		padding: 10px;       
		position: relative;
		border-radius:4px;
		background-color:#f5f5f5;
		padding-left:10px!important;
		width : 90%; 
	}	
	
		legend
		{
			font-size:14px;
			font-weight:bold;
			margin-bottom: 0px; 
			width: 35%; 
			border: 1px solid #ddd;
			border-radius: 4px; 
			padding: 5px 5px 5px 10px; 
			background-color: #ffffff;
		}
body{
 /* background-color: #999999;
  font-size: 14px;*/
}

*{
  box-sizing: border-box;
}

.config-panel{
  background-color: #3A3A3A;
  height: 100vh;
  width: 400px;
  float: left;
}

.filter-bar{
  height: 50px;
  border-bottom: 1px solid #454545;
  padding: 16px;
  margin-left: 400px;
}

i{
  margin-left: 8px;
  margin-right: 8px;
}

.filter-dropdown{
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
  cursor: pointer;
  margin-right: 16px;
}

.filter-dropdown:hover{
  color: rgba(255,255,255,0.5);
}

.filter{
  padding: 8px 8px 8px 16px;
  background-color: #3A3A3A;
  border-radius: 50px 0 0 50px;
  color: rgba(255,255,255,0.8);
  margin: 8px 0;
  transition: all 0.2s ease;
}

.filter-remove{
  padding: 8px 16px 8px 8px;
  background-color: #3A3A3A;
  border-radius: 0 50px 50px 0;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s ease;
}

.filter:hover, .filter-remove:hover{
  color: #000000;
  background-color: #585858;
}

.operator{
  color: rgba(255,255,255,0.5);
}

.filter-remove{
  color: rgba(255,255,255,0.5);
  cursor: pointer;
}

.remove:hover{
  color: white;
  
}

.edit-filter-modal{
  background-color: #F2F3F5;
  width: 260px;
  position: absolute;
  left: 416px;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.3);
  transition: transform 0.1s ease, opacity 0.1s ease;
  transform-origin: 0 0;
  padding: 16px;
}

select{
  width: 100%;
  height: 32px;
  background-color: white;
  border: 1px solid rgba(0,0,0,0.125);
  margin-bottom: 16px;
}

input{
  width: 100%;
  height: 32px;
  border-radius: 3px;
  border: none;
  margin-bottom: 16px;
  background-color: white;
  border: 1px solid rgba(0,0,0,0.125);
}

button{
  background-color: #80B636;
  color: white;
  padding: 8px 16px;
  border:none;
  border-radius: 3px;
  float: right;
}

button:hover{
  opacity: 0.8;
}

.text-button{
  background-color: transparent;
  color: #24272A;
}

.hidden{
  transform:scale(0.5);
  opacity: 0;

}

.filter-hidden{
  display:none;
}

.dropdown.dropdown-lg .dropdown-menu {
    margin-top: -1px;
    padding: 6px 20px;
}
.input-group-btn .btn-group {
    display: flex !important;
}
.btn-group .btn {
    border-radius: 0;
    margin-left: -1px;
}
.btn-group .btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.btn-group .form-horizontal .btn[type="submit"] {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.form-horizontal .form-group {
    margin-left: 0;
    margin-right: 0;
}
.form-group .form-control:last-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

@media screen and (min-width: 768px) {
    #adv-search {
        width: 500px;
        margin: 0 auto;
    }
    .dropdown.dropdown-lg {
        position: static !important;
    }
    .dropdown.dropdown-lg .dropdown-menu {
        min-width: 500px;
    }
}

/* --- Index / liste électeurs : responsive & cases à cocher WhatsApp --- */
.table-responsive-electeurs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

.table-electeurs {
    margin-bottom: 0;
    min-width: 720px;
}

.table-electeurs .col-cb,
.table-electeurs th.col-cb,
.table-electeurs td.col-cb {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    text-align: center;
    vertical-align: middle;
    padding: 10px 6px !important;
}

.table-electeurs thead .col-cb {
    background-color: #337ab7;
}

.table-electeurs tbody .col-cb {
    background-color: #fff;
}

.table-electeurs tbody tr:nth-child(odd) .col-cb {
    background-color: #f9f9f9;
}

.table-electeurs .whatsapp-electeur-cb,
.table-electeurs #whatsapp_select_all {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
    display: inline-block;
}

/* Case à cocher modal WhatsApp (tous écrans) */
.whatsapp-checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.45;
    width: 100%;
}

.whatsapp-checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 2px 0 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

@media (max-width: 991px) {
    .table-electeurs .col-cb,
    .table-electeurs th.col-cb,
    .table-electeurs td.col-cb {
        position: sticky;
        left: 0;
        z-index: 3;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
    }

    .table-electeurs thead .col-cb {
        z-index: 4;
    }
}

/* Filtre index : empiler les champs sur mobile */
.filtre-electeurs-form fieldset {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.filtre-electeurs-form table {
    width: 100%;
}

@media (max-width: 767px) {
    .filtre-electeurs-form table,
    .filtre-electeurs-form tbody,
    .filtre-electeurs-form tr,
    .filtre-electeurs-form td {
        display: block;
        width: 100% !important;
    }

    .filtre-electeurs-form tr {
        margin-bottom: 8px;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 8px;
    }

    .filtre-electeurs-form td {
        padding: 6px 0 !important;
        border: none;
    }

    .filtre-electeurs-form select,
    .filtre-electeurs-form input[type="text"],
    .filtre-electeurs-form input[type="date"] {
        width: 100% !important;
        max-width: 100%;
        height: 40px;
        font-size: 16px;
    }

    .filtre-electeurs-form button[type="submit"] {
        width: 100%;
        margin-top: 8px;
    }

    fieldset legend {
        width: auto;
        max-width: 90%;
    }

    .pagination-row-top .col-sm-6,
    .pagination-row-bottom .col-sm-6 {
        width: 100%;
        text-align: center !important;
        float: none !important;
        margin-bottom: 10px;
    }

    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-actions-electeurs {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px !important;
    }

    .btn-actions-electeurs .btn,
    .btn-actions-electeurs a.btn {
        width: 100%;
        display: block;
        text-align: center;
        white-space: normal;
        padding: 12px 15px;
        font-size: 15px;
    }

    #modalWhatsappEnvoyer .modal-dialog {
        margin: 10px;
        width: auto;
        max-width: calc(100% - 20px);
    }

    .whatsapp-checkbox-option input[type="checkbox"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
    }

    .table-electeurs .whatsapp-electeur-cb,
    .table-electeurs #whatsapp_select_all {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }

    .table-electeurs .col-cb,
    .table-electeurs th.col-cb,
    .table-electeurs td.col-cb {
        width: 56px;
        min-width: 56px;
        max-width: 56px;
    }
}

/* --- Gestion utilisateurs : formulaire & table responsive --- */
.utilisateurs-page .form-utilisateurs .form-group {
    margin-bottom: 14px;
}

.utilisateurs-page .form-utilisateurs .help-block {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 12px;
    color: #777;
}

.utilisateurs-page .form-utilisateurs code {
    font-size: 11px;
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 3px;
}

.table-responsive-utilisateurs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.table-utilisateurs {
    margin-bottom: 0;
    min-width: 760px;
}

.table-utilisateurs .col-wa {
    white-space: nowrap;
}

.table-utilisateurs .col-actions {
    white-space: nowrap;
    text-align: center;
    width: 80px;
}

.wa-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #128C7E;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.wa-phone-link:hover,
.wa-phone-link:focus {
    color: #075E54;
    text-decoration: underline;
}

.wa-phone-link .glyphicon {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 767px) {
    .utilisateurs-page h2 {
        font-size: 22px;
    }

    .utilisateurs-page .form-utilisateurs .btn {
        width: 100%;
    }

    .table-utilisateurs {
        min-width: 680px;
        font-size: 13px;
    }

    .table-utilisateurs > thead > tr > th,
    .table-utilisateurs > tbody > tr > td {
        padding: 8px 6px;
    }
}

