/* ===================================
   RESET ET STYLES GÉNÉRAUX
   =================================== */

/* Titres */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #82B1FF !important;
}

h1 {
    font-size: 1.5em !important;
}

h2 {
    font-size: 1.4em !important;
}

h3 {
    font-size: 1.3em !important;
}

h4 {
    font-size: 1.2em !important;
}

h5 {
    font-size: 1.1em !important;
}

h6 {
    font-size: 1.0em !important;
}

/* Liens */
a {
    color: #82B1FF !important;
}

a:hover,
a:focus,
a:active {
    color: #044CD0 !important;
}

/* ===================================
   FORMULAIRES ET CHAMPS DE SAISIE
   =================================== */

input,
select,
textarea {
    font-weight: bold !important;
    padding: 2px !important;
    border: 1px solid #82B1FF !important;
    border-radius: 4px !important;
}

div.tab-content div.fabrikElement input,
tr.fabrikFilterContainer div.listfilter input {
    padding: 0 0 0 2px !important;
}

th.fabrik_ordercell div.listfilter select {
    height: auto !important;
    padding: 0px !important;
    width: fit-content !important;
    max-width: 300px !important;
}

input.readonly {
    background-color: transparent !important;
}

/* Labels */
div#ajax_links label,
div.tab-content label {
    color: #0c0b0b !important;
}

div.listfilter label {
    color: #fff !important;
}

div.listfilter span {
    color: #fff !important;
}

/* ===================================
   BOUTONS
   =================================== */

button.btn {
    background: #FFAE75 !important;
    border-color: black !important;
    color: black !important;
}

button.btn.button,
span.input-group-addon {
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.6),
        0 4px 6px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to bottom, #ffa02e, #e67d00);
    margin-right: 5px;
}

button.btn:hover,
button.btn:focus {
    background: #FFCAA5 !important;
}

a.btn.btn-small {
    padding: 2px !important;
    border-radius: 8px !important;
}

label.btn.btn-outline-secondary {
    padding: 5px !important;
}

label.btn.btn-outline-secondary:hover {
    background-color: #FFAE75 !important;
}

.btn-check:checked+.btn-outline-secondary {
    background-color: #FFAE75 !important;
    border-color: black !important;
}

/* ===================================
   NAVIGATION ET MENUS
   =================================== */

.burger-icon>span {
    background-color: #82B1FF !important;
}

.burger-icon>span:hover {
    background-color: #044CD0 !important;
}

.dropdown-menu,
.sp-profile-wrapper .sp-profile-dropdown {
    background-color: #2c3e50 !important;
    color: #A0A0A0 !important;
    padding-left: 3px !important;
}

#select_annee,
.fabrikNav select,
.fabrikNav nav li.page-item a {
    background-color: #2c3e50 !important;
    color: #82B1FF !important;
    border-color: #82B1FF !important;
    border-radius: 5px !important;
    padding: 3px !important;
}

li.sp-menu-item a {
    margin-left: 5px !important;
}

/* ===================================
   ONGLETS ET NAVIGATION
   =================================== */

.nav-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

div#ajax_links button.nav-link {
    display: block !important;
}

button.nav-link.active {
    font-weight: bold !important;
    color: #000 !important;
}

div#ajax_links ul.nav {
    display: inline-flex !important;
}

ul.nav.nav-tabs {
    width: 100% !important;
}

ul.nav.nav-tabs button.nav-link {
    color: #fff;
}

div#ajax_links div.row-fluid.nav {
    clear: both !important;
}

/* ===================================
   ONGLETS ET MODALES (AJAX_LINKS)
   =================================== */

div#ajax_links,
div[id^="add."] {
    background-color: #2c3e50 !important;
    color: #A0A0A0 !important;
    border: 1px solid #82B1FF !important;
    border-radius: 6px;
    min-height: 600px !important;
}

div#ajax_links div.itemContent {
    overflow-x: hidden !important;
}

div.tab-content {
    background-color: lightgrey !important;
    padding-left: 5px;
    padding-right: 5px;
}

/* ===================================
   MODALES
   =================================== */

div.modal-header {
    padding: 0 !important;
    background-color: #82B1FF !important;
    color: #000 !important;
    display: block !important;
    padding: 0 0 0 5px !important;
}

div.modal-header h3 {
    color: #000 !important;
    padding-left: 10px;
    line-height: 20px;
}

div#ajax_links div.modal-header a {
    color: black !important;
}

div#ajax_links div.modal-header a.expand,
div#ajax_links div.modal-header a.closeFabWin {
    top: 0px !important;
}

a.closeFabWin {
    color: black !important;
    top: 5px !important;
}

div.bottomBar,
div.modal-footer {
    border: none !important;
}

/* ===================================
   TABLEAUX ET LISTES
   =================================== */

table.table-condensed.table-sm {
    background-color: #2c3e50 !important;
    color: #E0E0E0 !important;
    font-size: 0.9em !important;
}

thead {
    background-color: #2c3e50 !important;
    color: #A0A0A0 !important;
}

tbody.fabrik_groupdata td {
    color: #E0E0E0 !important;
}


tr.fabrik___heading th.heading {
    color: #82B1FF !important;
}

div.entetes-groupes,
th.heading.fabrik_ordercell {
    background-color: #2c3e50 !important;
    color: #A0A0A0 !important;
}

th.heading {
    vertical-align: bottom;
    position: relative;
    padding-top: 25px;
}

th.heading span {
    display: block;
}

th.heading span,
th.heading a.fabrikorder,
th.heading a.fabrikorder-asc,
th.heading a.fabrikorder-desc {
    bottom: 5px;
    left: 5px;
}

th.heading a.fabrikorder span.fa,
th.heading a.fabrikorder-asc span.fa,
th.heading a.fabrikorder-desc span.fa {
    margin-right: 3px;
}

th.heading a.fabrikorder span.fa {
    display: none;
}

th.heading a.fabrikorder-asc span.fa,
th.heading a.fabrikorder-desc span.fa {
    display: inline;
}

div.list-footer.container {
    margin: unset !important;
}

/* ===================================
   FORMULAIRES FABRIK
   =================================== */

form.fabrikForm {
    margin-left: 10px;
    margin-right: 10px;
}

fieldset.fabrikGroup {
    padding-bottom: 20px !important;
}

div.fabrikElementContainer.plg-textarea.fb_el_admin3_salaries___cv.form-group {
    width: 100% !important;
}

div.fabrikGroupRepeater.text-end.btn-group-sm {
    position: absolute;
    right: 20px;
    margin-top: 20px;
}

div [role="tabpanel"] {
    width: 95% !important;
}

select br,
div.fabrikElement br {
    display: none !important;
}

span.fa.icon-calendar {
    color: #000 !important;
}

.sp-dropdown-inner {
    padding: 0px !important;
}

/* ===================================
   IMAGES ET MÉDIAS
   =================================== */

td.admin3_salaries___tof img {
    height: 80px !important;
}

div.fabrikElementContainer.plg-fileupload.fb_el_admin3_salaries___tof img {
    display: none !important;
}

/* ===================================
   AUTRES
   =================================== */

#group15>div.groupintro {
    width: fit-content !important;
    margin-left: 150px;
    position: absolute;
}

.timer-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.timer-box {
    background-color: rgb(30, 30, 30);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 350px;
}

.timer-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.timer-display {
    font-size: 2.5em;
    font-weight: bold;
    color: #007bff;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.timer-text {
    font-size: 1.2em;
    color: white;
    margin: 10px 0;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

.pulse-animation {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.month-selector {
    background: #2c3e50;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.month-selector h3 {
    color: #ecf0f1;
}

h3 {
    color: #2c3e50;
}

.month-option {
    display: inline-block;
    margin: 8px;
}

.month-option input[type="radio"] {
    display: none;
}

.month-option label {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #fdfdfd;
}

.month-option label:hover {

    border-color: #adb5bd;
}

.month-option input[type="radio"]:checked+label {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.alert-custom {
    padding: 15px 40px 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #34495e;
    color: #ecf0f1;
}

.alert-success-custom {
    background: #2c3e50;
    border-left: 4px solid #1e8449;
    color: #ffffff;
}

.alert-danger-custom {
    background: #c0392b;
    border-left: 4px solid #a93226;
    color: #ffffff;
}

.alert-info-custom {
    background: #2c3e50;
    border-left: 4px solid #1f618d;
    color: #ffffff;
}

.alert-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    line-height: 1;
    padding: 0;
    width: 25px;
    height: 25px;
}

.alert-close-btn:hover {
    opacity: 1;
}

.prof-list {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    color: #ffffff;
}

.month-selector {
    text-align: center;
    margin-bottom: 15px;
}

.month-option {
    display: inline-block;
    margin: 8px;
}

.month-option input[type="radio"] {
    display: none;
}

.month-option label {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #fdfdfd;
    background: #2c3e50;
}

.month-option label:hover {
    border-color: #adb5bd;
}

.month-option input[type="radio"]:checked+label {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.alert-info-custom {
    background: #2c3e50;
    border-left: 4px solid #1f618d;
    color: #ffffff;
}

.alert-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    line-height: 1;
    padding: 0;
    width: 25px;
    height: 25px;
}

.alert-close-btn:hover {
    opacity: 1;
}

select,
.form-control {
    background: #2c3e50;
    color: #ffffff;
    border-color: #1f2a36;
}

select.form-select-sm.fabrik_filter {
    max-height: 100px !important;

}

th.fabrik_ordercell {
    vertical-align: bottom !important;
}

th,
td {
    border-color: #82B1FF !important;
    border-left: 1px solid #82B1FF !important;
    border-right: 1px solid #82B1FF !important;
    border-top: 1px solid #82B1FF !important;
    border-bottom: 1px solid #82B1FF !important;
}

th.heading.fabrik_ordercell {
    background: #121212 !important;
    border: none !important;
}

tr.fabrik___heading {
    border: none !important;
    background-color: #121212 !important;
}

.fabrikNav .list-footer.container {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
}

/* S'assure que le conteneur global ne wrap pas (ne passe pas à la ligne) */
.fabrikButtonsContainer,
.fabrikNav {
    display: inline-block;
    vertical-align: middle;
}

/* Ajustement optionnel pour l'alignement vertical */
.fabrikNav .pagination {
    margin-bottom: 0;
}

tr.oddRow1 {
    background-color: #1B3147 !important;
}

th.fabrik_ordercell {
    border: none !important;
    background: #121212 !important;
    border-right: #1B3147 solid 1px !important;
}

body.devis h2 {
    color: white !important;
    text-transform: uppercase !important;
}

body.devis {


    background-color: #2c3e50;
    font-family: Arial, Helvetica, sans-serif !important;
}

div#devis_eleve {
    margin: 0;
    /* Enlève les marges par défaut */

    display: flex;
    /* Active Flexbox */
    justify-content: center;
    /* Centre horizontalement */
    align-items: center;
    /* Centre verticalement */

}

body.devis tr:nth-child(1) {
    display: none !important;
}

body.devis tr:nth-child(2) {
    background-color: white !important;
}

fieldset#group33 {
    background-color: white !important;
}

body.devis {
    margin: 0 auto !important;
    width: 600px !important;
}

body.devis button {
    font-size: 1.5rem;
    padding: 5px;
}

body.devis input {
    background-color: white;
    color: black;
}

body.devis form.fabrikForm {
    margin: 0 !important;
}

body.devis div.text_devis {
    display: none !important;
}
form#form_annee {
    margin-top: 10px !important;
    margin-right: 10px !important;
}