/* === Conteneur principal du tableau avec scroll === */
.table-container {
    /* height: 55vh !important;    */
    overflow-y: auto;
    overflow-x: auto;
}

/* === Table avec largeur 100% et layout fixe pour alignement stable === */
.table-container .table-calculator {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* Fixe la largeur des colonnes */
}

/* === Sticky header === */
.table-container .table-calculator th {
    position: sticky !important;
    top: 0;
    z-index: 20;
    background-color: #375d77 !important;
    /* même que .custom-th */
    color: white !important;
    font-size: 9px !important;
    padding: 5px;
    border: 1px solid #ccc;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Cellules du corps === */
.table-container .table-calculator td {
    padding: 5px;
    border: 1px solid #ccc;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Largeur fixe par colonne (ajuster selon besoin) === */
.table-container .table-calculator th.hr-header-table,
td.hr-header-table {
    width: 100px;
    min-width: 100px;
    /* max-width: 80px; */
}

.table-container .table-calculator th.custom-th,
td.custom-th {
    width: 10vw;
    min-width: 10vw;
    max-width: 10vw;
}

/* Largeur pour la colonne EXTRA */
.extra-header {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    padding: 0 !important;
}

.extra-data-cell {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    padding: 0 !important;
}

/* === Masquage des colonnes === */
.d-none {
    display: none !important;
}

/* === Couleurs solde === */
.balance-positive {
    background-color: #007e3a !important;
    color: white;
}

.balance-negative {
    background-color: rgb(231, 66, 66);
    color: white;
}

.balance-zero {
    background-color: white;
    color: black;
}

/* === Styles header-content === */
.header-content {
    text-align: center;
    font-size: 9px !important;
    height: 30px;
    background-color: #375d77 !important;
}

/* === Styles .custom-th === */
.custom-th {
    padding: 0 !important;
    background-color: #375d77 !important;
    color: white !important;
    font-size: 9px !important;
    max-width: 10vw !important;
    min-width: 10vw;
}

/* === Styles pour EXTRA (colonnes groupées) === */
.extra-header .extra-container {
    width: 100%;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
    font-size: 9px !important;
}

.extra-header .extra-title {
    padding-bottom: 10px;
    border-bottom: 1px solid white;
    width: 100%;
    text-align: center;
}

.extra-header .extra-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.extra-header .extra-column {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 33%;
    padding: 3px;
    border-right: 1px solid white;
}

.last-column {
    border-right: none !important;
}

.extra-data-cell {
    padding: 0 !important;
}

.extra-container {
    width: 100%;
}

.extra-columns {
    display: flex;
    width: 100%;
}

.extra-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.bordered-cell {
    border: 1px solid black;
    border-right: none;
    margin: -1px 0 -1px -1px;
}

.last-column {
    border-right: 1px solid transparent !important;
    border-top: 1px solid transparent !important;
    border-bottom: 1px solid transparent !important;
    border-left: 1px solid rgb(218, 218, 218) !important;
}

.extra-columns .extra-column:first-child {
    margin-left: 0;
}

.total-extra {
    border: none !important;
    border-right: 1px solid rgb(218, 218, 218) !important;
}

/* === Styles pour select et contrôles === */
.select-calculator {
    height: 20px !important;
    min-width: 90px !important;
    border-radius: 3px;
}

.select-calculator-chart {
    height: 20px !important;
    min-width: 90px !important;
    border-radius: 1px;
    font-size: 9px !important;
}

/* === Styles pour les contrôles de colonnes === */
.column-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1vh;
    color: black;
    font-weight: bold;
}

.column-control-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bg-modal-section {
    background-color: rgba(0, 0, 0, 0.8) !important;
    width: 100% !important;
}

.modal-section {
    width: 100% !important;
}
.modal-container-choose {
  position: relative;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  padding: 30px;
}

.modal-content {
  text-align: center;
}

.modal-content h2 {
  margin-top: 0;
  color: #333;
  font-size: 24px;
}

.modal-content p {
  color: #666;
  font-size: 16px;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}
.bg-light-blue-mhm {
    background-color: #0093d7 !important;
}

.border-grey {
    border: 1px solid #cdcdcd !important;
}

.border-top-grey {
    border: 1px solid #cdcdcd !important;
}

.border-bottom-grey {
    border: 1px solid #cdcdcd !important;
}

.border-left-grey {
    border: 1px solid #cdcdcd !important;
}

.form-control-color {
    display: block;
    width: 100%;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
    color: #6e6b7b;
    background-clip: padding-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding-right: 0px !important;
}

.custom-button-group {
    display: inline-flex;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    overflow: hidden;
    background-color: #d9dbdd;
}

.custom-button {
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
    border: none;
    background: #d9dbdd;
    cursor: pointer;
    outline: none;
    position: relative;
    animation: none !important;
    transition: none !important;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.05);
}

.btn-primary-group {
    background-color: #375d77 !important;
    color: white !important;
}

.pattern-item:hover {
    background-color: #375d77 !important;
    color: white;
    font-family: "ubuntu", sans-serif;
    padding-left: 5px;
}

.custom-select-container {
    background-color: #fff !important;
    border: 1px solid rgb(155, 152, 152);
    overflow-y: auto;
    max-height: 300px;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 10;
}



.nav-tabs-uses {
    border-bottom: 1px solid #e3dfdf;
}

.nav-tabs-uses .navs-links {
    color: #6c757d;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 0.5rem 1rem;
}

.nav-tabs-uses .navs-links:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs-uses .navs-links.active {
    color: #0093d7;
    background-color: #f3f2f7;
    border-color: #e3dfdf #e3dfdf transparent;
    font-weight: 500;
    border-bottom: none !important;
}

.nav-tabs-uses .nav-item.show .navs-links,
.nav-tabs-uses .navs-links.active {
    border-bottom-color: transparent !important;
}

.tab-content {
    padding: 15px 0;
}


.table-responsive-participant {
    overflow-x: auto;
    max-height: 65vh;
}

.project-table-participant {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-top: none !important;
}

.project-table-participant th,
.project-table-participant td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.project-table-participant th {
    background-color: #375d77;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    font-size: 11px;
}

.project-table-participant tr:hover {
    background-color: #f9f9f9;
}

.date-grid-participant {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.date-badge-participant {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;

}

.no-dates-participant {
    color: #666;
    font-style: italic;
}

.no-data-participant {
    background: #e9e7e7;
    padding: 13px 0px 1px 10px;
    border-radius: 5px;
}



/******************************************Check by missions table*************************************/
.table-section-check-mission {
    margin-bottom: 2rem;
}

.table-section-check-mission h2 {
    color: #375d77;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #375d77;
}

.table-container-check-mission {
    width: 100%;
    overflow-x: auto;
    border-radius: 4px;
}

.simple-table-check-mission {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.cha-table {
    min-width: 600px;
}

.simple-table-check-mission th,
.simple-table-check-mission td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.simple-table-check-mission th {
    background-color: #375d77 !important;
    color: white !important;
    font-size: 0.8rem;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.problem-dates-cell-check-mission {
    min-width: 300px;
}

.problem-dates-horizontal-check-mission {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.problem-date-horizontal-check-mission {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;

}

.no-problems-check-mission {
    text-align: center;
    color: #388e3c;
    font-weight: bold;
    padding: 8px;
    background-color: #e8f5e9;
    border-radius: 4px;
}

/* Styles pour MM */
.status-insufficient {
    background-color: #ffebee;
    color: #c62828;
    font-weight: bold;
    text-align: center;
}

.status-overstaffed {
    background-color: #fff8e1;
    color: #f57f17;
    font-weight: bold;
    text-align: center;
}

.status-complete {
    background-color: #e8f5e8;
    color: #2e7d32;
    font-weight: bold;
    text-align: center;
}

.status-normal {
    background-color: #e3f2fd;
    color: #1565c0;
    text-align: center;
}

.no-data-check-missions {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}


/******************************************Check by missions table*************************************/

.no-focus-border:focus {
    border-color: #dee2e6 !important;
    box-shadow: none !important;
    outline: none !important;
}

.text-primary-mhm-dark {
    color: #375d77 !important;
}

.input-holder::placeholder {
    color: #1390c6 !important;
    opacity: 1 !important;
}

.border-left-white {
    border-left: 1px solid white !important;
}

.dropdown-extra-popu {
    position: relative;
    display: inline-block;
}

.dropdown-extra-popu-btn {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.dropdown-extra-popu-content {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-extra-popu:hover .dropdown-extra-popu-content {
    display: block;
}

.selected-staff-container-extra-popu {
    background-color: #f8f9fa;
    max-height: 150px;
    overflow-y: auto;
}

.badge-extra-popu {
    font-size: 0.9rem;
    font-weight: normal;
}


.date-filter-plan {
    height: 23px !important;
    border: 1px solid #999595 !important;
    padding: 0 5px !important;
    width: 108px !important;
    margin: 0 0 0 5px !important;
}
/* in MFS */
.editable-cell {
    /* green border, doesn't affect layout like a real border would */
    cursor: cell;
    position: relative;
    transition: background-color 0.15s ease;
}
.editable-cell:hover {
    background-color: #d0e7d2;
} 
.editable-cell::before {
    content: "\270E"; 
    font-family: inherit;
    font-weight: normal; 
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 15px; 
    line-height: 1;
    color: #3f8bee; 
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
}
.blink-add {
    animation: blink-bg 1.4s ease-in-out infinite;
}

.blink-add:hover {
    animation: none;
    background: #2c4a5f !important;
}

@keyframes blink-bg {
    0%, 100% {
        background: #375d77;
        box-shadow: 0 0 0 0 rgba(55, 93, 119, 0.5);
    }
    50% {
        background: #5b8fb0;
        box-shadow: 0 0 0 6px rgba(55, 93, 119, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blink-add { animation: none; }
}
 

