:root {
    --rcs-primary: #003366;
    --rcs-accent:  #0A84FF;
    --rcs-bg:      #F5F7FA;
}

*{font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";}

.boxHeight300 {height: 300px; overflow: auto;}
.boxHeight400 {height: 400px; overflow: auto;}
.boxHeight500 {height: 500px; overflow: auto;}

.width-10{width: 10px; : }
.width-50{width: 50px;}
.width-80{width: 80px;}
.width-100{width: 100px;}
.width-150{width: 150px;}
.width-200{width: 200px;}
.width-250{width: 250px;}
.width-300{width: 300px;}
.width-350{width: 350px;}

body{background-color: #f5f7fa;}

a:hover{text-decoration: none;}
p{margin: 0;}
.small{font-size: 11px;}

table.table-sm tr th,
table.table-sm tr td{font-size: 12px;}

.btn-sm{line-height: 15px;}

.progress{height: 6px;}

.bg-soft-success{background-color: rgba(75, 191, 115, .175);}

.rounded-16{border-radius: 16px;}

.lineHeight-15{line-height: 15px;}

div.alert{display: flex; justify-content: center; border-radius: 0;}

.pill {font-size: 11px; padding: .18rem .6rem; border-radius: 9999px;border: 1px solid #e5e7eb;white-space: nowrap;}

.form-label span{color: #d0211c;}

fieldset.scheduler-border {border: solid 1px #e0eafc; border-radius: 5px; padding:0 10px 10px; margin-bottom: 30px;}
legend.scheduler-border {font-size: 14px; color: #3f80ea; float: none; width: auto;}

.card{border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow: hidden;}
.card .card-header{padding: 12px;}
.card .card-body{padding: 12px;}
.card h2.kpi{font-size: 30px;}

.nav-pills{}
.nav-pills .nav-link{text-transform: uppercase; color: #495057; border-radius: 0;}
.nav-pills .active{}


/*
    login
 */
header .boxLangue{width: 50px; margin: 0 auto;}
header a.boxLogo{display: flex; justify-content: center; align-items: center; padding: 10px 0 10px 0; text-decoration: none;}
header a.boxLogo img {height: 40px;}
header a.boxLogo svg {fill: #4a88eb; height: 24px; width: 24px;}

div.showPasswordInput{display: flex; justify-content: space-between; align-items: center; background-color: #ffffff;     border: 1px solid #ced4da;    border-radius: .2rem;}
div.showPasswordInput input{flex: auto; border: none;}
div.showPasswordInput span.icon{flex: none; padding: 0 5px; cursor: pointer;}

/*

 */

/* ── Icon Rail ─────────────────────────────────────────────────────── */
#icon-rail {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 56px;
    background: #faf9f7;
    border-right: 1px solid #e2e2e2;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1030;
    padding: 10px 0;
}
.rail-top {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e2e2;
    margin-bottom: 10px;
}
.rail-top img { width: 30px; height: 30px; object-fit: contain; }
.rail-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    padding: 0 6px;
    overflow-y: auto;
}
.rail-nav::-webkit-scrollbar { display: none; }
.rail-item {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none !important;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.rail-item:hover { background: #ebebeb; color: #1e293b; }
.rail-item.active { background: #e0e7ff; color: #3730a3; }
.rail-item svg { width: 18px; height: 18px; stroke-width: 1.8; }
/* ── Tooltip du rail (div#rail-tip injecté dans body par JS) ── */
#rail-tip {
    position: fixed;
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity .15s ease;
    transform: translateY(-50%);
}
.rail-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e2e2e2;
    gap: 4px;
}
.rail-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}
/* Décale tout le contenu pour laisser la place au rail */
.wrapperxx { margin-left: 56px; }

/*

 */

.boxHeader{background: #fff; padding: 10px 20px 0;}
.boxHeader nav.navbar{border-top: solid 1px #eff2f6;}
.boxHeader nav.navbar .nav-link{border-bottom: solid 2px #fff;}
.boxHeader nav.navbar .nav-link:hover,
.boxHeader nav.navbar .active{border-bottom: solid 2px #3f80ea;}

.boxBody { display: flex; flex-flow: row nowrap; }
.boxBody .content { flex: auto; padding: 20px; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.boxBody .siderbar {
    flex: none;
    min-height: 85vh;
    overflow-y: auto;
    background-color: #faf9f7;
    border-right: 1px solid #e5e7eb;

    scrollbar-width: none;
}
.boxBody .siderbar::-webkit-scrollbar { display: none; }
.boxBody .siderbar .sidebar-nav {width: 215px; list-style: none; padding: 16px 10px; margin: 0;}

/* ── En-tête de section ─────────────────────────────────────────────────── */
.boxBody .siderbar li.sidebar-header {padding: 18px 8px 6px;font-size: 10px;font-weight: 700;text-transform: uppercase;letter-spacing: .1em;color: #94a3b8;user-select: none;}
.boxBody .siderbar .sidebar-nav > li.sidebar-header:first-child { padding-top: 4px; }

/* ── Item générique ─────────────────────────────────────────────────────── */
.boxBody .siderbar .sidebar-item { margin-bottom: 2px; }

/* ── Lien ───────────────────────────────────────────────────────────────── */
.boxBody .siderbar a.sidebar-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border-radius: 9px;
    text-decoration: none !important;
    line-height: 1.35;
    transition: background .14s, color .14s;
    cursor: pointer;
}
.boxBody .siderbar a.sidebar-link:hover {
    background: #eff6ff;
    color: #2563eb;
}

/* ── État actif ─────────────────────────────────────────────────────────── */
.boxBody .siderbar .sidebar-item.active > a.sidebar-link {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}
.boxBody .siderbar .sidebar-item.active > a.sidebar-link .icon { opacity: 1; }

/* ── Icône Feather — items principaux ───────────────────────────────────── */
.boxBody .siderbar a.sidebar-link .sidebar-icon {
    width: 15px; height: 15px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: color .14s;
    stroke-width: 1.8;
}
.boxBody .siderbar a.sidebar-link:hover .sidebar-icon,
.boxBody .siderbar .sidebar-item.active > a.sidebar-link .sidebar-icon {
    color: #2563eb;
}
/* Sous-items pilotage : icône légèrement plus petite */
.boxBody .siderbar .sidebar-dropdown a.sidebar-link .sidebar-icon {
    width: 13px; height: 13px;
    color: #b0bec5;
}
.boxBody .siderbar .sidebar-dropdown a.sidebar-link:hover .sidebar-icon,
.boxBody .siderbar .sidebar-dropdown .sidebar-item.active > a.sidebar-link .sidebar-icon {
    color: #2563eb;
}

/* ── Chevron collapse ───────────────────────────────────────────────────── */
.boxBody .siderbar a.sidebar-link .sidebar-chevron {
    width: 14px; height: 14px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform .2s, color .14s;
    margin-left: auto;
    stroke-width: 1.8;
}
.boxBody .siderbar a.sidebar-link:not(.collapsed) .sidebar-chevron {
    transform: rotate(90deg);
    color: #3f80ea;
}
.boxBody .siderbar a.sidebar-link:hover .sidebar-chevron { color: #3f80ea; }

/* ── Sous-menu (dropdown) ───────────────────────────────────────────────── */
.boxBody .siderbar .sidebar-dropdown {
    list-style: none;
    margin: 3px 0 4px 18px;
    padding: 0 0 0 12px;
    border-left: 2px solid #e2e8f0;
}
.boxBody .siderbar .sidebar-dropdown .sidebar-item { margin-bottom: 1px; }
.boxBody .siderbar .sidebar-dropdown a.sidebar-link {
    font-size: 12px;
    padding: 6px 8px;
    color: #64748b;
    border-radius: 7px;
}
.boxBody .siderbar .sidebar-dropdown a.sidebar-link:hover {
    background: #eff6ff;
    color: #2563eb;
}
.boxBody .siderbar .sidebar-dropdown .sidebar-item.active > a.sidebar-link {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

/*

 */
.boxForm{}
.boxForm .form-label{margin: 0;}

/*

 */

.boxFiltre .form-label{font-size: 12px;}
.boxFiltre .form-select{font-size: 12px; border-radius: 12px;}
.boxIndicateur{}


/*
boxQuestionnaire
*/
.boxSurvey{height: 100vh; display: flex; flex-flow: column nowrap;}
.boxSurvey .boxHeaderSurvey{}
.boxSurvey .boxBodySurvey{flex-grow: 1 !important; overflow-y: scroll;}
.boxSurvey .boxBodySurvey .boxTitre{display: flex; justify-content: space-between; align-items: center;}
.boxQuestionnaire h2{display: flex; justify-content: space-between; font-size: 16px; background-color: #edf2f5; color: #3f80ea; padding:10px 10px; cursor: pointer; margin: 0; border-bottom: 1px solid #ffffff;}
.boxQuestionnaire h3{display: flex; justify-content: space-between; font-size: 16px; color: #3f80ea; padding:10px 10px; cursor: pointer; margin: 0; border-bottom: 1px solid #ffffff;}
.boxQuestionnaire h4{display: flex; justify-content: space-between; font-size: 16px; color: #3f80ea; padding:10px 10px; cursor: pointer; margin: 0; border-bottom: 1px solid #ffffff;}
.boxQuestionnaire h5{display: flex; justify-content: space-between; font-size: 14px; color: #3f80ea; padding:10px 10px; cursor: pointer; margin: 0; border-bottom: 1px solid #ffffff;}
.boxQuestionnaire h2:hover,
.boxQuestionnaire h3:hover,
.boxQuestionnaire h4:hover,
.boxQuestionnaire h5:hover{background-color: #e0eafc;}
.boxQuestionnaire .boxMulti1{padding: 20px; background-color: #edf2f5;}
.boxQuestionnaire .boxTitreQuestion{min-height: 40px; line-height: 18px;}
.boxQuestionnaire .boxBtnRevue{flex: none; width: 150px;}

ul.navQuestionnaire .sidebar-link{color: #333333; padding-left: 0;}
ul.navQuestionnaire .sidebar-dropdown .sidebar-dropdown .sidebar-link{padding-left: 0;}

/* page souscription */
.boxRechercheDate{display: flex; flex-flow: row wrap; justify-content: center; align-items: center; padding: 10px 0 10px;}
.boxRechercheDate select,
.boxRechercheDate input{max-width: 150px; padding-left: 8px; border: solid 1px #eeeeee; height: 26px; color: #777777; font-size: 12px;}
.boxRechercheDate .formGroup{height:100%; display: flex; flex-flow: column wrap; justify-content: flex-end; align-items: flex-start; padding-right: 10px;}
.boxRechercheDate .formGroup label{padding: 0; margin: 0; font-size: 12px;}
.boxRechercheDate p{padding: 0; margin: 0;}

.boxRecherche{border: solid 1px #eeeeee; padding: 10px;}
.boxRecherche label{margin: 0; padding: 0; font-size: 12px; }

/*
    boxCalendrier
 */
.boxCalendrier{width: 100%; display: flex; flex-flow: row wrap}
.boxCalendrier div.boxMois{flex: none; width: 25%; height: 200px; border: solid 1px #eeeeee; padding: 5px;}
.boxCalendrier div.boxMois span.labelMois{display: block; text-align: right; font-size: 14px; font-weight: bold;}
.boxCalendrier div.boxMois div.boxOperation{font-size: 10px; padding: 2px 0;}
.boxCalendrier div.class_operation{background-color: rgba(255,220,40,.04);}
.boxCalendrier div.class_operation svg{width: 10px; height: 10px; color: #3f80ea;}
.boxCalendrier div.class_operation a{color: inherit;}
.boxCalendrierNav{display: flex; align-items: center;}
.boxCalendrierNav div.y{font-weight: bold; color: #3f80ea; font-size: 20px;}
.boxCalendrierNav a:hover{color: #3f80ea;}

/*

 */


/*
    boxAideEnLigne
 */


.boxAideEnLigne{display: flex;}
.boxAideEnLigne .boxTitre{flex: none; width: 250px; margin-right: 40px;}
.boxAideEnLigne .boxTitre .scroll{position: fixed; top: 0; width: 250px;}
.boxAideEnLigne .boxTitre .nav{display: block; height: 100vh; overflow-y: auto; padding:10px;}
.boxAideEnLigne .boxTitre .nav-link{display: block; padding: 5px 0; margin: 0;}
.boxAideEnLigne .boxTitre .active{color: #3f80ea;}
.boxAideEnLigne .boxTitre .h1{font-size: 12px; padding-left: 0;}
.boxAideEnLigne .boxTitre .h2{font-size: 12px; padding-left: 10px;}
.boxAideEnLigne .boxTitre .h3{font-size: 12px; padding-left: 20px; font-weight: normal;}
.boxAideEnLigne .boxContenu{}
.boxAideEnLigne .boxContenu .card{padding:20px 40px;}
.boxAideEnLigne .boxContenu h2{padding-top: 20px;}
.boxAideEnLigne .boxContenu p{text-align: justify;}
.boxAideEnLigne .boxContenu div.img{border:dashed 2px #eeeeee; border-radius: 4px; padding-top: 16px; margin-bottom: 1rem;}
.boxAideEnLigne .boxContenu div.img img{display: block; margin: 0 auto;}
.boxAideEnLigne .boxContenu div.img img.width100{width: 90%;}
.boxAideEnLigne .boxContenu div.img img.width50{width: 50%;}
.boxAideEnLigne .boxContenu div.img p{text-align: center; font-size: 12px; font-weight: bold; padding-top: 10px;}
.boxAideEnLigne .boxContenu div.code{padding: 16px; border-radius: 8px; background-color: #eeeeee; margin-bottom: 1rem;}
.boxAideEnLigne .boxContenu table{width: 100%;}
.boxAideEnLigne .boxContenu table tr th{border: solid 1px #1b1e21; padding: 5px; font-size: 12px; background-color: #1b1e21; color: #ffffff; font-weight: normal;}
.boxAideEnLigne .boxContenu table tr td{border: solid 1px #eeeeee; padding: 5px; font-size: 12px;}
.boxAideEnLigne .boxContenu table tr:nth-child(even) {background-color: #f2f2f2;}

/*

 */
.boxRapport{background-color: #ffffff; border: solid 1px #eeeeee; padding: 20px;}
.boxRapport .headerRapport{}
.boxRapport .headerRapport div.logo{padding: 40px 0;}
.boxRapport .headerRapport div.logo img{width: 180px;}
.boxRapport .headerRapport div.titre{background-color: #3f80ea; text-align: center; padding: 40px 0; border-radius: 10px;}
.boxRapport .headerRapport div.titre h1{font-size: 32px; color: #ffffff;}
.boxRapport .headerRapport div.titre h2{font-size: 16px; color: #ffffff;}
.boxRapport .headerRapport div.titre p{font-size: 14px; color: #ffffff;}
.boxRapport .headerRapport div.titre p b{color: #ffffff;}
.boxRapport .headerRapport div.recapitulatif{padding-top: 40px;}
.boxRapport .headerRapport div.organisation {padding: 40px 0; text-align: right;}
.boxRapport .headerRapport div.organisation img{height: 50px; margin-bottom: 10px;}
.boxRapport .headerRapport div.organisation p{font-size: 14px; padding: 0; margin: 0;}
.boxRapport .headerRapport div.operation{padding: 40px 0;}
.boxRapport .bodyRapport h4{margin: 0; padding: 20px 0 10px;}
.boxRapport .bodyRapport h5{margin: 0; padding: 20px 0 10px;}
.boxRapport .bodyRapport p{font-size: 12px; text-align: justify;}
.boxRapport .bodyRapport ul li{font-size: 12px; text-align: justify;}
.boxRapport .boxRepondant{}
.boxRapport .boxRepondant .header{display: flex; justify-content: space-between; align-items: center;}
.boxRapport .boxRepondant .body{}
.boxRapport .boxRepondant .body .section{margin-bottom: 20px; border: solid 1px #eeeeee;}
.boxRapport .boxRepondant .body .section .titre{}
.boxRapport .boxRepondant .body .section .titre h2{font-size: 12px; padding: 16px 16px 10px 16px; margin: 0;}
.boxRapport .footerRapport{}

/*

 */


table.mydatatables tr th,
table.mydatatablesxx tr th{border-right: solid 1px #49505720; background-color: #eeeeee; font-size: 10px;  text-transform: uppercase; padding: 8px 5px 8px;}
table.mydatatables tr td,
table.mydatatablesxx tr td{font-size: 12px; padding: 5px;}

/*

 */
div.boxDashboard{}
div.boxDashboard .rcs-card {background: #fff; color:#1f2937; border: 1px solid #e5e7eb;border-radius: 16px;box-shadow: 0 1px 2px rgba(15,23,42,.04);}
div.boxDashboard .fs-7 { font-size: 14px; }
div.boxDashboard .fs-8 { font-size: 12px; }
div.boxDashboard .inner-panel { border: 1px solid #e2e8f0; border-radius: 12px; }
div.boxDashboard .dashed-card { border: 1px dashed #cbd5e1; border-radius: 12px; }

@media print {
    /*@page { margin: 0; }
    body { margin-top: 40px; } */
    @page {margin-top: 30px;}

    div.boxRapport{border: none; padding: 0;}
    div.titre{background-color: #3f80ea; text-align: center; padding: 40px 0;}
}


