/*FRONT OFFICE*/

div.sentry{
  color:white;
}

div.sentry table th{
  color:#333;
}

div.sentry table{
  width:100%;

}

div.taches{
  margin-top:5px;
}

table th {
  padding: 4px;
  background-color: #CCC;
}

table td{
  padding: 4px;
}
/* Alternance de lignes */
table.row-clickable tbody tr:nth-child(even) {
    background: #EEE;
}
table.row-clickable tbody tr:nth-child(odd) {
    background: #FFF;
}

/* Style des cellules */
table.row-clickable tbody tr td {
    padding: 5px;
    color: #333;
}

/* Marges du tableau */
table.row-clickable {
    margin-top: 10px;
}

/* Survol de la ligne */
table.row-clickable tbody tr:hover {
    background: #dbeafe;      /* bleu très léger, tu peux changer */
    cursor: pointer;
    transition: background 0.15s ease;
}

table.mails{
  color:black;
}

h2, h3, h4 {
  color:white;
}



tr.success{background-color: #C5E1D4;}
tr.danger{background-color: #F6CCD0;}
tr.warning{background-color: #FFF0C0;}
tr.primary{background-color: #C2F2FB;}

.entry-header{
  display:none;
}

input[type="text"], input[type="email"], input[type="password"], input[type="url"] {
	width: 200px;
  padding:5px;
  margin : 1px;
}

/*.button{
  display: inline-block;
  color:white !important;
  padding:5px 10px;
  margin-right:10px;
  border-radius: 3px;
  text-decoration: none;
}*/

.button {
  background-color: #135E96;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  padding:5px 10px;
  margin-right:10px;
  border-radius: 3px;
  cursor: pointer;
}

.button:hover {
  background-color:#289dcc;
}

.dashicons{
  vertical-align: middle;
}

button.dashicons, a.dashicons{
  border-radius:3px;
  color:white !important;
  padding:5px !important;
  width : 30px;
  height : 30px;
  display: inline !important;
}

button.btn, a.btn, input.btn{
  border-radius:3px;
  color:black;
  padding:5px;
}

a.btn{
  padding:8px 10px;
  margin-top:5px;
}

button.danger, a.danger{
  background-color:#dc3545;
}

button.danger:hover, a.danger:hover{
  background-color:#bb2d3b;
}

button.warning, a.warning{
  background-color:#ffd259;
}

button.warning:hover, a.warning:hover{
  background-color:#33363B;
  color:white;
}

button.success, a.success{
  background-color:#198754;
}

button.success:hover, a.success:hover{
  background-color:#33363B;
  color:white;
}

button.primary, a.primary{
  background-color:#289dcc;
}

button.primary:hover, a.primary:hover{
  background-color:#33363B;
  color:white;
}

.alert{
  padding:15px 15px 0px 15px;
  border-radius: 10px;
  margin-bottom:10px;
  display:block;
}

.alert img{
  vertical-align:text-top;
  width:20px;
}

p.danger, span.danger{
  border:1px solid #f5c2c7;
  color:#842029;
  background-color:#f8d7da;
  padding:5px;
  border-radius:5px;
}

p.danger span{
  padding:3px;
}

p.warning, span.warning{
  border:1px solid #ffd259;
  color:#b78600;
  background-color:#ffebb5;
  padding:5px;
  border-radius:5px;
}

p.warning span{
  padding:3px;
}

p.info, span.info{
  border:1px solid #289dcc;
  color:#016c96;
  background-color:#93e0ff;
  padding:5px;
  border-radius:5px;
}

p.info span{
  padding:3px;
}

p.success, span.success{
  color:#0f5132;
  border:1px solid #badbcc;
  background-color:#d1e7dd;
  padding:5px;
  border-radius:5px;
}

p.success span{
  padding:3px;
}

p.primary, span.primary{
  color:#004085;
  border:1px solid #b8daff;
  background-color:#cce5ff;
  padding:5px;
  border-radius:5px;
}

p.primary span{
  padding:3px;
}

span.etat{
  display:block;
  width:90px;
  text-align: center;
  padding:1px;
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.sentry-page {
    background: #0f172a;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ========= MENU LATERAL ========= */



/* ================== LAYOUT GLOBAL ================== */

.sentry-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ================== SIDEBAR ================== */

.sentry-sidebar {
    width: 260px;
    background: #111827;
    border-right: 1px solid #1f2937;
    color: #e5e7eb;
    display: flex;
    flex-direction: column; /* pour coller le bloc user en bas */
    transition: width 0.25s ease;
}

/* Header de la sidebar */

.sentry-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #1f2937;
}

.sentry-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Bouton toggle */

.sentry-toggle-btn {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}

.sentry-toggle-btn:hover {
    background: #1f2937;
}

.sentry-toggle-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #e5e7eb;
    margin: 3px 0;
}

/* ================== MENU ================== */

.sentry-menu {
    padding: 0.75rem 0.5rem;
    flex: 1 1 auto;     /* occupe tout l’espace dispo entre header et bloc user */
    overflow-y: auto;
}

/* Racine du menu */

.sentry-menu-root {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Items */

.sentry-menu-item {
    border-bottom: 1px solid #111827;
}

/* Lien principal */

.sentry-menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
}

.sentry-menu-link:hover {
    background: #111827;
    color: #e5e7eb;
}

.sentry-menu-link.is-active {
    background: #1f2937;
    color: #ffffff;
}

/* Icône du menu */

.sentry-menu-icon {
    margin-right: 0.5rem;
    font-size: 18px;
    line-height: 1;
}

/* Texte du menu */

.sentry-menu-text {
    /* le span texte dans le lien, utile pour le mode réduit */
}

/* Indicateur de sous-menu (petite flèche ou icône) */

.sentry-submenu-toggle-indicator {
    margin-left: auto;
    font-size: 14px;
    opacity: 0.7;
}

/* Sous-menu */

.sentry-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;             /* caché par défaut */
    background: #020617;
}

.sentry-menu-item.has-children.is-open > .sentry-submenu {
    display: block;
}

/* Items de sous-menu */

.sentry-submenu .sentry-menu-link {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}

/* ================== CONTENU PRINCIPAL ================== */

.sentry-content {
    flex: 1;
    background: #222;
    overflow: auto;
}

.sentry-content-inner {
    max-width: 2400px;
    margin: 0 auto;
    padding: 1rem;
}

/* ================== MODE SIDEBAR RÉTRACTÉE ================== */

.sentry-layout.sidebar-collapsed .sentry-sidebar {
    width: 60px;
}

.sentry-layout.sidebar-collapsed .sentry-sidebar-title {
    display: none;
}

/* On masque les textes, les sous-menus et l’indicateur */

.sentry-layout.sidebar-collapsed .sentry-menu-text,
.sentry-layout.sidebar-collapsed .sentry-submenu,
.sentry-layout.sidebar-collapsed .sentry-submenu-toggle-indicator {
    display: none;
}

/* On centre les icônes */

.sentry-layout.sidebar-collapsed .sentry-menu-link {
    text-align: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sentry-layout.sidebar-collapsed .sentry-menu-icon {
    margin-right: 0;
    text-align: center;
    width: 100%;
}

/* ================== SCROLLBARS DISCRÈTES ================== */

.sentry-menu::-webkit-scrollbar,
.sentry-content::-webkit-scrollbar {
    width: 6px;
}

.sentry-menu::-webkit-scrollbar-thumb,
.sentry-content::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

/* ================== BLOC UTILISATEUR EN BAS ================== */

.sentry-sidebar-bottom {
    flex: 0 0 auto;
    border-top: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
}

/* Bloc utilisateur */

.sentry-user-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.sentry-user-avatar-img {
    border-radius: 50%;
    display: block;
}

.sentry-user-info {
    display: flex;
    flex-direction: column;
}

.sentry-user-name {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.sentry-user-actions {
    font-size: 0.8rem;
    color: #777;
}

.sentry-user-actions a {
    color: inherit;
    text-decoration: none;
}

.sentry-user-actions a:hover {
    text-decoration: underline;
}

.sentry-user-separator {
    margin: 0 0.25rem;
}

/* État non connecté */

.sentry-user-panel--logged-out {
    text-align: center;
    font-size: 0.9rem;
}

/* Mode sidebar réduite : on ne garde que l'avatar */

.sentry-layout.sidebar-collapsed .sentry-sidebar-bottom {
    padding: 0.75rem 0.5rem;
}

.sentry-layout.sidebar-collapsed .sentry-user-info {
    display: none;
}

.sentry-layout.sidebar-collapsed .sentry-user-panel {
    justify-content: center;
}

.sentry-layout.sidebar-collapsed .sentry-user-avatar-img {
    width: 32px;
    height: 32px;
}




/* FONCTIONNE AVEC LES FENETRE MODALE AJAX */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 10px;
    border: 1px solid #888;
    width: 60%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modif_tache{
margin-top:15px;
}

#modif_tache input{
  margin:7px 0;
}
/* FIN FONCTIONNE AVEC LES FENETRE MODALE AJAX */

/* #################### GRAPHIQUE STATISTIQUE ##########################*/
/* Conteneur des deux graphiques */
.sentry_stats_wrapper {
  display: flex;
  flex-wrap: wrap;       /* permet le retour à la ligne si besoin */
  justify-content: center;
  gap: 20px;             /* espace entre les deux graphes */
  margin-top: 20px;
}

/* Les blocs des graphes */
.sentry_stats_wrapper .tache_etat,
.sentry_stats_wrapper .tache_logiciel,
.sentry_stats_wrapper .tache_client {
  flex: 1 1 300px;       /* prend la place disponible, min ~300px */
  max-width: 33%;        /* côte à côte sur grands écrans */
  min-height: 280px;
}

/* Assure que le canvas prend bien la largeur du bloc */
.sentry_stats_wrapper canvas {
  width: 100% !important;
  height: auto !important;
}

/* Sur écrans plus petits : les graphes passent l'un sous l'autre */
@media (max-width: 900px) {
  .sentry_stats_wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .sentry_stats_wrapper .tache_etat,
  .sentry_stats_wrapper .tache_logiciel,
  .sentry_stats_wrapper .tache_client {
    max-width: 100%;
  }
}
