body {
    padding: 60px 20px 0 20px !important;
}
.container {
    max-width: 100% !important;
}

.action-buttons{
	display: inline-block;
	width: 23px;
	margin-right: 4px;
}

.disabled-link{
	pointer-events: none;
	opacity: 50%;
}

.active-nav-tab {
	color: #FFF !important;
}

/* Pour l'éditeur de filières */
.nav-tabs > li {
    position:relative;
}

.nav-tabs > li > a {
    display:inline-block;
}

.nav-tabs > li > span {
    display:none;
    cursor:pointer;
    position:absolute;
    right: 6px;
    top: 8px;
    color: red;
}

.nav-tabs > li:hover > span {
    display: inline-block;
}

/* Modifs accordion bootstrap */
.accordion-button:not(.collapsed){
	color: black !important;
	background-color: white !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

/* Filières */
.delete-section{
	color: #0d6efd !important;
	margin-left: 15px !important;
	margin-top: 5px !important;
}

.edit-page-name, .save-page-name{
	color: #0d6efd !important;
	margin-left: 10px !important;
	margin-top: 1px !important;
}

.delete-page, .cancel-page-name{
	color: #0d6efd !important;
	margin-left: 10px !important;
}

.move-section{
	margin-right: 15px !important;
	margin-top: 10px !important;
}

.error-code{
	width: 100%;
	position: fixed;
	font-size: 46rem;
	color: rgba(0,0,0,.04);
	top: -335px;
	left: -81px;
	z-index:0;
}

/* Images/Annexes */
.file-conditions{
	margin-top: -6px !important;
}

.up-arrow{
	width: 0;
	border-right: 5px solid transparent;
	border-bottom: 5px solid;
	border-left: 5px solid transparent;
	margin-bottom: 5px;
	cursor: pointer;
}

.down-arrow{
	width: 0;
	border-right: 5px solid transparent;
	border-top: 5px solid;
	border-left: 5px solid transparent;
	cursor: pointer;
}

/* Classe à appliquer sur les doublons d'anomalies */
.hide-doubles{
	display: none !important;
}

/* Lien disabled */
a.disabled {
  pointer-events: none;
  cursor: default;
}

/* Tableaux Summernote */
.clean-pasted-table {
  width: 100%;
  border-collapse: collapse;
}

.clean-pasted-table th,
.clean-pasted-table td {
  border: 1px solid #ccc;
  padding: 1px;
  text-align: left;
  margin-bottom: 1rem !important;
}

.clean-pasted-table th {
  background-color: #f0f0f0;
  font-weight: bold;
}

.clean-pasted-table p {
  margin-bottom: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #212529;
}

.btn-enhanced {
  border-radius: 50rem;
  font-weight: 600;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: transform 0.2s ease-in-out;
}

/* CSS custom pour DataTables */
table.dataTable thead .sorting_asc {
    background-image: url("images/sort_asc.png") !important;
}

table.dataTable thead .sorting_desc {
    background-image: url("images/sort_desc.png") !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: #f8f9fa;
  color: #333;
  text-align: left;
}

thead th {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f1f1;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

table.responsive-table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

table.compact td, table.compact th {
  padding: 8px 12px;
}

th.sortable:after {
  content: " ⇅";
  font-size: 12px;
  color: #aaa;
}

.dataTables_filter {
  margin-bottom: 1rem;
}
.dataTables_filter label {
  font-weight: 500;
}

.collectivites-table .collectivite-users-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.collectivites-table .collectivite-user-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef7fb 0%, #dceef8 100%);
  border: 1px solid #bfdced;
  color: #1f546d;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.collectivites-table .collectivite-users-empty {
  display: inline-block;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: #f3f5f7;
  color: #6c757d;
  font-size: 0.74rem;
  font-style: italic;
}

.collectivites-table td:nth-child(3) {
  white-space: normal;
}

table.dataTable thead tr.datatable-column-filters th {
  padding: 6px 8px 10px;
  background: #f8fbfd;
  border-bottom: 1px solid #d9e3ea;
  background-image: none !important;
  cursor: default;
}

table.dataTable thead tr.datatable-column-filters th.datatable-column-filter-cell-empty {
  background: #f8fbfd;
}

.datatable-column-input {
  min-width: 0;
  width: 100%;
  padding: 0.28rem 0.5rem;
  font-size: 0.82rem;
  border-radius: 0.4rem;
}

.datatable-column-input::placeholder {
  color: #6c757d;
  opacity: 1;
}

.datatable-column-date-filter {
  position: relative;
}

.datatable-column-date-filter .datatable-column-input {
  padding-right: 2.2rem;
}

.datatable-column-picker-button {
  position: absolute;
  top: 50%;
  right: 0.28rem;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  padding: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #5c7585;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.datatable-column-picker-button:hover {
  background-color: #e6f0f5;
  color: #1d5873;
}

.datatable-column-picker-button:focus {
  outline: none;
  box-shadow: 0 0 0 0.16rem rgba(13, 110, 253, 0.16);
}

#ui-datepicker-div.datatable-column-datepicker {
  z-index: 1600 !important;
  font-size: 0.9rem;
}

.bilan-field-info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #e6f4f8;
  color: #0b7894;
  font-size: 0.7rem;
  line-height: 1;
  vertical-align: middle;
  cursor: help;
}

.bilan-field-info-tooltip:hover,
.bilan-field-info-tooltip:focus {
  background: #d4edf5;
  color: #075a70;
  outline: none;
}

.bilan-multi-type-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.bilan-multi-type-label {
  margin: 0;
}

.bilan-multi-type-label-placeholder {
  display: inline-block;
  min-width: 1rem;
}

.bilan-multi-type-select {
  width: auto;
  min-width: 12rem;
  max-width: 100%;
}

input[type="number"].bilan-field-control {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"].bilan-field-control::-webkit-inner-spin-button,
input[type="number"].bilan-field-control::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.bilan-field-arrow {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 4.75rem;
}

.bilan-form-arrow {
  padding-bottom: 0.35rem;
  color: #173f55;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.bilan-form-block-title {
  padding: 0.3rem 0 0.45rem;
  border-bottom: 2px solid #0b7894;
  color: #123f55;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
}

.bilan-form-block-title-h1 {
  font-size: 1.45rem;
  border-bottom-width: 3px;
}

.bilan-form-block-title-h2 {
  font-size: 1.3rem;
  border-bottom-width: 2px;
}

.bilan-form-block-title-h3 {
  font-size: 1.18rem;
  border-bottom-width: 2px;
}

.bilan-notation {
  padding: 0.85rem;
  border: 1px solid #d7e7ef;
  border-radius: 0.75rem;
  background: #fbfdfe;
}

.bilan-notation-tabs .nav-link {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: #173f55;
  font-weight: 700;
}

.bilan-notation-tabs .nav-link.active {
  background: #0b9abd;
  color: #fff;
}

.bilan-notation-criterion {
  padding: 0.75rem;
  border: 1px solid #e1edf3;
  border-radius: 0.65rem;
  background: #fff;
}

.bilan-notation-criterion-label {
  color: #123f55;
  font-weight: 800;
}

.bilan-notation-choice-wrapper + .bilan-notation-choice-wrapper {
  margin-top: 0.35rem;
}

.bilan-notation-total {
  color: #123f55;
}
