﻿/*
 * General
 */
body {
    min-height: 100vh;
    margin: 0;
}

.so-h-min-100vh {
    min-height: 100vh;
}

/* Main View Arrangment */
.so-view {
    padding-top: 3.5rem;
}

.so-main {
    padding-left: 7rem;
}

.so-view,
.so-main,
.so-content {
    min-height: calc(100vh - 3.5rem);
}


.so-main-height {
    height: calc(100vh - 58px); /* 58px c'est la hauteur de la navbar */
}

.sidebar {
    width: 7rem;
}

/* Headers Classes */
.so-header {
    height: 3.5rem;
    z-index: 250;
    padding : 0px;
}

.so-header-logo {
    height: 2.5rem;
    width: 80px;
    margin-right: 8px !important;
    margin-left: -8px;
}

.so-header-title {
    text-transform: uppercase;
}

.so-header-title-highlight {
    font-weight: 500;
    color: darkorange;
}

.so-nav-left {
    z-index: 249;
}

/* SideBar arrangement */
.so-menu-header-title {
    font-weight: bold;
    font-size: 1rem;
    text-transform: none;
}

.so-menu-header-content {
    font-weight: lighter;
    font-size: 0.8rem;
    text-transform: none;
}

hr.so-menu {
    background-color: azure;
    width: 100%;
    margin-bottom: 0;
}

hr.so-menu-top {
    margin-bottom: 4px;
}

hr.so-menu-top,
hr.so-menu-bottom {
    margin-top: 4px;
}
/*#beneficiariesView {
    width: calc(100% - 32px);
}*/

.marginContainer {
    margin-left: 15px;
    margin-top: 15px;
}

.v-align {
    display: flex;
    align-items: center
}

.alert {
    border-radius: 5px;
}

.page-item.active .page-link {
    background-color: #48CFC0;
    border-color: #48CFC0;
}

.page-link {
    color: #48CFC0;
    border-radius: 0px;
}

a {
    color: #48CFC0;
}

/* FAB */
.btn-validate {
    color: #fff;
    background-color: #416b80;
    border-color: #416b80;
    margin: 15px;
}

.btn-validate-secondary {
    color: #fff;
    background-color: #88a5c2;
    border-color: #88a5c2;
    margin: 15px;
}

.btn-delete {
    color: #fff;
    background-color: #E66F6B;
    border-color: #48CFC0;
    margin: 15px;
}

.btn-validate-subtitle {
    margin: 0px;
    transform: translateX(-50%) translateY(-1px);
}

.btn-validate:hover,
.btn-validate:focus,
.btn-validate:active {
    background-color: #3c5968 !important;
    color: #fff;
}



.btn-cancel {
    color: #fff;
    background-color: #D8D8D8;
    border-color: #D8D8D8;
    margin: 15px;
}

.btn-decline {
    color: #fff;
    background-color: #E75113;
    border-color: #E75113;
    margin: 15px;
}

.btn-action,
.btn-action-bis {
    color: #fff;
    background-color: #48cfc0;
    border-color: #48cfc0;
}

.btn-action {
    margin: 15px;
}

.btn-info {
    margin: 15px;
}

.btn-action-subtitle {
    margin: 0px;
    transform: translateX(-50%) translateY(-1px);
}

.btn-action:hover,
.btn-action:focus,
.btn-action:active {
    background-color: #4ea9b6 !important;
    color: #fff;
}
.btn-link {
    color: #646464;
    cursor: pointer;
}

.btn-link-subtitle {
    margin-left: -20px;
}

.bmd-btn-fab-login {
    width: 5.5rem !important;
    height: 5.5rem !important;
    min-height: 5.5rem !important;
}

.btn-sso-login {
    background-color: #e55021;
    border-color: #e55021;
    color: white;
}
.btn-sso-login-entity {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    background: white;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}
    .btn-sso-login-entity:hover {
        border-color: var(--so-bouygues-orange) !important;
        box-shadow: 0 4px 12px rgba(0, 170, 255, 0.2);
        transform: translateY(-2px);
    }


/*Désactivation des evenement sur les bouton disabled*/
.btn-link:disabled {
    pointer-events: none;
}
.btn:disabled {
    pointer-events: none;
}
.isDisabled {
    pointer-events: none;
    opacity: 0.5;
}

.alert-tertiary {
    min-width: 420px;
}

.s72 {
    font-size: 72px !important;
}

/* MODALE */
.so-modal-header {
    background-color: #F8F8F8;
    color: #646464;
    padding: 24px 24px 0;
    border-bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.so-modal-footer {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #dee2e6;
}


/* POUR LE BREADCRUMB */

.breadcrumb-text {
    font-size: 14px;
    font-weight: normal;
}

.breadcrumb-text-active {
    font-size: 14px;
    font-weight: bold;
}

.breadcrumb-dot {
    height: 10px;
    width: 10px;
    background-color: #C8C8C8;
    border-radius: 50%;
    display: inline-block;
}

.breadcrumb-dot-active {
    height: 10px;
    width: 10px;
    background-color: #4C768A;
    border-radius: 50%;
    display: inline-block;
}

.breadcrumbTable {
    position: relative;
}

    .breadcrumbTable:after {
        content: "";
        height: 1px;
        border-bottom: dotted;
        border-bottom-width: thin;
        position: absolute;
        z-index: -1;
        width: 100%;
        transform: translateY(-14px);
    }


/* Pour DatePicker */

.dtp > .dtp-content > .dtp-date-view > header.dtp-header {
    background: #48CFC0;
    color: #fff;
    text-align: center;
    padding: 0.3em;
}

.dtp div.dtp-date, .dtp div.dtp-time {
    background: #48CFC0;
    text-align: center;
    color: #fff;
    padding: 10px;
}

.dtp table.dtp-picker-days tr > td > a.selected {
    background: #48CFC0;
    color: #fff;
}

.dtp .p10 > a {
    color: #646464;
    text-decoration: none;
}

.dtp div.dtp-actual-year {
    font-size: 1.5em;
    color: white;
}

.v-hidden {
    visibility: hidden;
}
/* TABS */

.tabs-primary {
    background-color: #48CFC0 !important;
}

.nav-tabs.tabs-primary .nav-link.active {
    color: #fff;
    border-color: #fff;
}

.nav-tabs.tabs-primary .nav-link {
    color: rgba(255, 255, 255, 0.54);
}

/* INPUTS */
input.numeric {
    text-align: right;
}

input.decimal {
    text-align: right;
}

input.date {
    text-align: center;
    cursor: pointer;
}

.material-icons.date {
    cursor: pointer;
}


.circle {
    position: relative;
    top: 5px;
    left: 5px;
    text-align: center;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    background-color: #fafafa;
}

.circle-border {
    position: relative;
    text-align: center;
    width: 110px;
    height: 110px;
    margin-left: 30%;
    border-radius: 100%;
    background-color: #E53B3B;
    background: linear-gradient(270deg, red 50%, transparent 50%), linear-gradient(0deg, black 50%, lightgray 50%)
}

.so-gradient {
    height: 15px;
    background: linear-gradient(to right, yellow,gold);
    min-width: 250px;
    margin-left: 15px;
    margin-right: 15px;
}

.so-pointer {
    border-left: solid;
    height: 15px;
    width: 1px;
}

.labelFrise {
    color: gold;
    font-weight: bold;
    font-size: 20px;
}

table.dataTable tbody > tr.selected, table.dataTable tbody > tr > .selected {
    background-color: #416b80;
}

table.dataTable tr.selected td.select-checkbox:after, table.dataTable tr.selected th.select-checkbox:after {
    content: '\2714';
    margin-top: -11px;
    margin-left: -4px;
    text-align: center;
    text-shadow: none;
}

/* Datatable icone de tri */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc_disabled:before {
    right: 0 !important;
    content: "" !important;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
    right: 0 !important;
    content: "" !important;
}

table.dataTable thead th {
    position: relative;
    background-image: none !important;
    color: #416b80 !important;
    font-weight: 700;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    position: absolute !important;
    color: #416b80 !important;
    font-weight: 700;
    font-size: 1em !important;
    top: 12px !important;
    right: 8px !important;
    display: block !important;
    font-family: 'Font Awesome 5 Free' !important;
    opacity: unset;
}

table.dataTable thead th.sorting:after {
    content: "\f0dc" !important;
    padding-top: 0.12em !important;
}

table.dataTable thead th.sorting_asc:after {
    content: "\f0de" !important;
}

table.dataTable thead th.sorting_desc:after {
    content: "\f0dd" !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #F4F4F4;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #FFF;
}

/*Idem que pour les td avec la classe select-checkbox dans select.bootstrap4.css*/
table.dataTable.withCheckboxInThead thead th.select-checkbox {
    position: relative;
}


    table.dataTable.withCheckboxInThead thead th.select-checkbox:before,
    table.dataTable.withCheckboxInThead thead th.select-checkbox:after {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 12px;
        height: 12px;
        box-sizing: border-box;
    }

    table.dataTable.withCheckboxInThead thead th.select-checkbox:before {
        content: ' ';
        margin-top: -6px;
        margin-left: -6px;
        border: 1px solid black;
        border-radius: 3px;
    }

.no-before::before {
    display: none !important;
}

/* ============================================================
   Classes utilitaires — remplacent des attributs style= inline
   (retirés pour se conformer à la CSP : style-src sans 'unsafe-inline').
   Les valeurs correspondant à des utilitaires Bootstrap 4 existants
   (mb-0, ml-auto, w-100, text-center, d-none, text-danger…) utilisent
   directement ces classes dans les vues ; ci-dessous uniquement les
   valeurs spécifiques à l'application.
   ============================================================ */
.so-font-12 { font-size: 12px; }
.so-w-40 { width: 40%; }
.so-w-50 { width: 50%; }
.so-mt-50 { margin-top: 50px; }
.so-fw-lighter { font-weight: lighter; }

/* Largeurs / dimensions récurrentes */
.so-w-40-h-lg { width: 40%; height: 3.5rem; }
.so-w-75-h-lg { width: 75%; height: 3.5rem; }
.so-w-120 { width: 120px; }
.so-w-150 { width: 150px; }
.so-w-250 { width: 250px; }
.so-h-55 { height: 55px; }
.so-h-200 { height: 200px; }

/* Alignements / mise en page */
.so-align-content-center { align-content: center; }
.so-ml-auto-mb-auto { margin-left: auto; margin-bottom: auto; }
.so-ml-35 { margin-left: 35px; }
.so-ml-50 { margin-left: 50px; }
.so-mr-8 { margin-right: 8px; }
.so-mr-15 { margin-right: 15px; }

/* Tailles de police récurrentes */
.so-font-20 { font-size: 20px; }
.so-font-45 { font-size: 45px; }

/* Couleurs spécifiques (statuts) */
.so-text-green { color: #40A719; }
.so-text-red-soft { color: #E66F6B; }
.so-text-orange { color: orange; }
.so-text-muted-dark { color: #666; }

/* Panneau de connexion / sélection d'entité */
.so-login-panel { width: 600px; background-color: rgba(255, 255, 255, 0.98); }
.so-entity-panel { width: 100%; max-width: 1200px; background-color: rgba(255, 255, 255, 0.98); padding: 40px; }

/* Boutons "icône nue" (choix) */
.so-btn-bare { border: none; background-color: transparent; }

/* Jauges circulaires (reporting / import) — conteneurs et décalages du texte central.
   Valeurs figées reprises telles quelles des anciens style= inline. */
.so-gauge { height: 270px; width: 270px; }
.so-gauge-centered { height: 270px; width: 270px; margin: auto; }
.so-gauge-shift { height: 270px; width: 270px; transform: translateY(-255px); }
.so-gauge-sm { height: 135px; width: 135px; }
/* Icônes Material : sélecteur scopé (.material-icons.so-*) pour l'emporter sur la
   règle de base .material-icons { font-size: 24px } de fonts.css, chargée après so.css.
   Auparavant ces tailles étaient en style= inline (priorité maximale) ; en classe simple
   elles étaient écrasées, d'où des icônes rétrécies. */
.material-icons.so-gauge-sm-text { font-size: 55px; text-align: center; height: 135px; width: 135px; transform: translateY(-100px); }
.material-icons.so-gauge-text-92 { font-size: 92px; }
.material-icons.so-font-80 { font-size: 80px; }
.so-shift-up-50 { transform: translateY(-50px); }
.so-shift-up-40 { font-size: 50px; transform: translateY(-40px); }
.so-shift-up-70 { font-size: 22px; transform: translateY(-70px); }

/* Divers one-offs repris des anciens style= inline */
.so-w-40-mt-30 { width: 40%; margin-top: 30px; }
.so-w-40-mb-0 { width: 40%; margin-bottom: 0; }
.so-w-80-mt-15 { width: 80%; margin-top: 15px; }
.so-w-100-h-55 { width: 100%; height: 55px; }
.so-w-250-center { width: 250px; text-align: center; }
.so-h-30 { height: 30px; }
.so-mt-20 { margin-top: 20px; }
.so-mt-15-ml-25 { margin-top: 15px; margin-left: 25px; }
.so-my-15 { margin-top: 15px; margin-bottom: 15px; }
.so-mb-30 { margin-bottom: 30px; }
.so-mb-40 { margin-bottom: 40px; }
.so-mt-50-mb-50 { margin-top: 50px; margin-bottom: 50px; }
.so-auto-mb-16 { margin: auto; margin-bottom: 16px; }
.so-m-25-15 { margin: 0 25px 15px 25px; }
.so-fw-lighter-20-mt-30 { font-weight: lighter; font-size: 20px; margin-top: 30px; }
.so-entity-title { font-weight: 300; margin: 0; font-size: 28px; }
.so-fw-lighter-mb-0-ml-35 { font-weight: lighter; margin-bottom: 0; margin-left: 35px; }
.so-fw-lighter-mb-0 { font-weight: lighter; margin-bottom: 0; }
.so-w-40-hidden { width: 40%; display: none; }

/* Indentation de l'arbre des structures — remplace le style inline dynamique
   style="padding-left: @(currentLevel * 40)px" (retiré pour la CSP : style-src-attr).
   Le niveau est borné à 20 côté vue (Math.Min) ; 20 niveaux couvrent largement
   toute hiérarchie d'organisation réaliste. */
.so-indent-0  { padding-left: 0; }
.so-indent-1  { padding-left: 40px; }
.so-indent-2  { padding-left: 80px; }
.so-indent-3  { padding-left: 120px; }
.so-indent-4  { padding-left: 160px; }
.so-indent-5  { padding-left: 200px; }
.so-indent-6  { padding-left: 240px; }
.so-indent-7  { padding-left: 280px; }
.so-indent-8  { padding-left: 320px; }
.so-indent-9  { padding-left: 360px; }
.so-indent-10 { padding-left: 400px; }
.so-indent-11 { padding-left: 440px; }
.so-indent-12 { padding-left: 480px; }
.so-indent-13 { padding-left: 520px; }
.so-indent-14 { padding-left: 560px; }
.so-indent-15 { padding-left: 600px; }
.so-indent-16 { padding-left: 640px; }
.so-indent-17 { padding-left: 680px; }
.so-indent-18 { padding-left: 720px; }
.so-indent-19 { padding-left: 760px; }
.so-indent-20 { padding-left: 800px; }

/* Classes utilitaires pour les fragments HTML générés en JS (remplacent des style= inline
   qui violeraient style-src). */
.so-w-75px { width: 75px; }
.so-w-130 { width: 130px; }
.so-va-middle { vertical-align: middle; }