:root {
    /* make the backend contents as wide as the browser window */
    --body-max-width: 100%;
    --text-primary-color: #01377f;
    /*--bs-primary-rgb: 92, 112, 214;*/
    --bs-primary-rgb: 1, 55, 127;
    --badge-primary-bg: #01377f;
    --primary-color: #01377f;
    --bs-primary: #01377f;
    --bs-nav-link-color: #01377f;
    --button-primary-bg: #01377f;
    --link-color: #01377f;
    --badge-primary-color: white;
    --sidebar-menu-active-item-color: #01377f;
    --text-on-primary: white;
    --link-color: #01377f;
    --link-hover-color: #1355ac;
    --bs-link-color: #01377f;
    --color-primary: #01377f;
    --form-switch-checked-bg: #01377f;
    --dropdown-icon-color: inherit;
    --dropdown-link-color: inherit;
}

.has-error .CodeMirror, .has-error .btn.input-file-container, .has-error .ea-fileupload .input-group, .has-error .ea-text-editor-wrapper, .has-error .form-widget .form-select, .has-error .form-widget input.form-control, .has-error .form-widget textarea.form-control{
    --form-input-error-shadow: 0 0 0 3px var(--red-400);
}

.fa-spinner:before {
    content: "\f110" !important;
}

.ts-control .item{
    overflow: hidden;
}


span.required:after,
.form-fieldset.required > fieldset > .form-fieldset-header > .form-fieldset-title > .form-fieldset-title-content:after,
.form-label.required:after,
td.required:after {
    background: var(--color-danger);
    border-radius: 50%;
    content: "";
    display: inline-block;
    filter: opacity(75%);
    height: 4px;
    position: relative;
    right: -2px;
    top: -8px;
    width: 4px;
    z-index: var(--zindex-700)
}

.ea-detail .field-group.field-boolean.noswitch{
    flex-direction: row;
}

.ea-detail .field-group.field-boolean.noswitch .field-label {
    flex: unset;
    margin: 0;
    min-width: 130px;
    text-align: right;
}

.ea-detail .field-group.field-boolean.noswitch .field-value {
    flex: 1;
    min-width: 0;
    text-align: left;
    width: 66%;
    margin-left: 15px;
}

.ea-detail .field-image img{
    max-width: 200px;
    max-height: 200px;
}

/** RGPD **/

#body_rgpd{
    position: relative;
    text-align: center;
}

#body_rgpd .container{
    position: relative;
    display: inline-block;
    width: 50%;
    margin-top: 50px;
}

#body_rgpd h1{
    position: relative;
}

#body_rgpd .logo{
    background: url('../img/logo-sgc.png');
    background-size: 100% 100%;
    width: 80px;
    height: 73px;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

#body_rgpd .container .text_rgpd{
    text-align: left;
    font-size: 18px;
    line-height: 1.5;
    margin-top: 50px;
}

#body_rgpd .container .form-check{
    text-align: left;
    margin: 0 0 50px 0;
    padding: 0;
}

#body_rgpd .container .form-check-label{
    width: 90%;
}

#body_rgpd .container .subcontent{
    border: 1px solid black;
    padding: 5px;
    margin-bottom: 1rem;
}

#body_rgpd .container .subcontent p:last-child{
    margin-bottom: 0;
}

#body_rgpd .container form{
    font-size: 16px;
    padding-bottom: 150px;
}

#body_rgpd .container form button{
    font-size: 18px;
}

/** Reset password **/

#body_reset_request label{
    margin: 50px 0 15px 0;
    font-size: 18px;
}

#body_reset_request input{
    margin: 0 0 30px 0;
}

#body_reset_password form{
    margin-top: 50px;
}

#body_reset_password label{
    font-size: 18px;
}

#body_reset_password input{
    margin: 0 0 30px 0;
}

#body_reset_password ul{
    color: red;
}

/** Breadcrumb **/

.breadcrumb a, .breadcrumb span{
    margin: 0 5px;
}

.breadcrumb span:first{
    margin: 0 5px 0 0;
}

/*
.ChapterElection_offices_comments {
    display: none;
}
*/

/**  Chapter header **/

.chapter_header select{
    height: 50px;
    line-height: 50px;
    width: auto;
    padding: 0 20px 0 5px;
}

.chapter_header select option.office{
    color: blue;
}

.chapter_header .chapter-logo{
    height: 50px;
    width: auto;
}

.chapter_header .chapter-name{
    vertical-align: middle;
}

/***  Modal form ***/

.action_button, .close_button{
    display: inline-block;
    margin-right: 20px;
    float: right;
}

.idle_button{
    margin-right: 10px;
}

/*.form-control:invalid{
    color: orange;
}*/

.tomselect input{
    font-size: 14px;
}

#ea-index-ChapterElection .actions a{
    display: block;
    margin: 10px;
}

#error-messages{
    color: red;
    margin-bottom: 15px;
}

.custom-fieldset fieldset{
    position: relative;
}

.custom-fieldset .form-fieldset-header{
    padding: 0 15px;
    position: absolute;
    transform: translateY(-50%);
    left: 50%;
    background: #fff;
}

.custom-fieldset .form-fieldset-body{
    padding-top: 25px;
}

/* --- Structure générale du tableau --- */
.fundcall-table {
  width: 100%;
  border-collapse: separate; /* pour permettre un espacement entre lignes */
  border-spacing: 0 6px; /* espace vertical entre lignes */
}

/* --- Entêtes --- */
.fundcall-table th {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: center;
  font-weight: 600;
}

/* --- Cellules --- */
.fundcall-table td {
  border: 1px solid #e2e2e2;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top; /* 👈 Alignement en haut */
  background-color: #fff;
}

/* --- Lignes alternées --- */
.fundcall-table tr:nth-child(odd) td {
  background-color: #fafafa;
}

/* --- Effet au survol --- */
.fundcall-table tr:hover td {
  background-color: #eef4ff;
}

/* --- Cellules montant/commentaire --- */
.fundcall-table .pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- Montants --- */
.input-euro {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.input-euro input {
  width: 100%;
  padding-right: 1.4em;
  text-align: right;
}

.input-euro .euro {
  position: absolute;
  right: 0.4em;
  color: #555;
  font-weight: 500;
  pointer-events: none;
}

/* --- Colonnes compactes --- */
.fundcall-table .amount-n1,
.fundcall-table .amount-paid {
  width: 150px;
  min-width: 100px;
  text-align: right;
}

/* --- Select désactivé : rendu neutre, sans bordures ni ombres --- */
.fundcall-table select:disabled {
  background: transparent !important;
  color: #222;                /* couleur texte normale */
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: default;
  pointer-events: none;       /* empêche les hover/clicks */
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  padding-left: 0;
  padding-right: 0;
  width: auto;
}

/* supprime la flèche native */
.fundcall-table select:disabled::-ms-expand {
  display: none;
}

/* pour Safari/Webkit : supprime l’icône native */
.fundcall-table select:disabled::-webkit-inner-spin-button,
.fundcall-table select:disabled::-webkit-outer-spin-button,
.fundcall-table select:disabled::-webkit-calendar-picker-indicator {
  display: none !important;
}

/* --- Petits ajustements visuels --- */
.fundcall-table .actions-cell {
  width: 60px;
  text-align: center;
}

body.ea-detail .fundcall-table td {
  color: #222;
}

body.ea-detail .fundcall-table .comment {
  font-size: 0.85em;
  color: #666;
}

.file.file-pending, .fundcallFile.file-pending, .chapter-cell .pdf-file {
    color: var(--link-color);
}

.ea-new-FundCall .form-check, .ea-edit-FundCall .form-check {
    padding-top: 2rem; /* ajuste selon la hauteur de tes champs texte */
}


/* Décale légèrement la case à cocher (switch) vers la gauche */
#FundCall_dueOnReception {
    margin-left: -108px;
}


/* --- Responsive --- */
@media (max-width: 1200px) {
  .fundcall-table {
    display: block;
    overflow-x: auto;
  }
}

