/* Thème YOUSS TIME.NET (AdminLTE 3) */
:root {
  --sigrh: #1d4e70;
  --sigrh-fonce: #173f5b;
  --sigrh-clair: #8bd2f3;
  --sigrh-texte-actif: #12344d;
  --sigrh-lien: #1f5fa6;
}

body { font-family: "Source Sans Pro", -apple-system, "Segoe UI", Roboto, sans-serif; }
.content-wrapper { background: #f4f6f9; }

/* Barre supérieure */
.main-header.navbar { background: var(--sigrh); border-bottom: 0; }
.main-header .nav-link, .main-header .navbar-nav .nav-link { color: #fff !important; }
.main-header .nav-link:hover { color: #d7ecf8 !important; }
.main-header .role-badge { font-size: .95rem; }
.main-header .user-image { width: 30px; height: 30px; margin-top: -4px; }
.main-header .user-name { text-transform: uppercase; font-size: .95rem; }

/* Barre latérale */
.main-sidebar, .main-sidebar .sidebar { background: var(--sigrh); }
.main-sidebar .brand-link { background: var(--sigrh); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); height: 50px; padding: .55rem .9rem; }
.main-sidebar .brand-link .brand-image { float: none; margin: -4px .55rem 0 .2rem; max-height: 30px; opacity: 1; box-shadow: none; border-radius: 3px; background: #fff; padding: 1px; }
.main-sidebar .brand-text { font-size: 1.2rem; font-weight: 400 !important; }
.sidebar .user-panel { border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: .8rem !important; }
.sidebar .user-panel .info a { color: #fff; font-size: .9rem; text-transform: uppercase; white-space: normal; line-height: 1.15; }
.sidebar .user-panel .info small { color: #a9c4d8; font-size: .75rem; display: block; margin-top: .3rem; }
.sidebar .user-panel .image .avatar, .sidebar .user-panel .image img { width: 2.1rem; height: 2.1rem; }
.sidebar .form-control-sidebar, .sidebar .btn-sidebar { background: #24597d !important; border: 1px solid #33698f !important; color: #fff !important; }
.sidebar .form-control-sidebar::placeholder { color: #a9c4d8; }
.sidebar .form-control-sidebar:focus { background: #2a6188 !important; }
.nav-sidebar .nav-header { color: #fff !important; font-size: .82rem; text-transform: uppercase; padding: .9rem .9rem .45rem; font-weight: 500; }
.nav-sidebar .nav-link { color: #fff !important; font-size: .93rem; }
.nav-sidebar .nav-link p { white-space: normal; }
.nav-sidebar > .nav-item > .nav-link.active, .nav-sidebar > .nav-item > .nav-link.active:hover {
  background: var(--sigrh-clair) !important; color: var(--sigrh-texte-actif) !important; box-shadow: none;
}
.nav-sidebar .nav-link:hover { background: rgba(255,255,255,.08) !important; }
.nav-treeview > .nav-item > .nav-link { font-size: .88rem; padding-left: 1.6rem; }
.nav-treeview > .nav-item > .nav-link.active { background: rgba(139,210,243,.25) !important; color: #fff !important; }
.nav-sidebar .nav-icon { font-size: 1rem !important; }
.sidebar-search-results .list-group-item { background: var(--sigrh-fonce); color: #fff; }

/* En-tête de page */
.content-header h1 { font-size: 1.75rem; color: #212529; }
.content-header .breadcrumb { background: transparent; font-size: .95rem; }
.content-header .breadcrumb a { color: var(--sigrh-lien); }

/* Avatars */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #6c8aa3; color: #fff; font-weight: 600; overflow: hidden; vertical-align: middle; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-48 { width: 48px; height: 48px; font-size: 1.05rem; }
.avatar-64 { width: 50px; height: 50px; font-size: 1.1rem; }
.avatar-96 { width: 96px; height: 96px; font-size: 2rem; }
.avatar-32 { width: 32px; height: 32px; font-size: .8rem; }

/* Carte profil (tableau de bord) */
.carte-profil { border-radius: .25rem; }
.carte-profil .nom { color: var(--sigrh-lien); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .01em; }
.carte-profil .meta { font-size: .72rem; color: var(--sigrh-lien); }
.carte-profil .meta i { margin-right: 2px; }
.profil-renseigne { font-size: .78rem; color: var(--sigrh-lien); font-weight: 700; }
.profil-renseigne .progress { height: 6px; margin: 4px 0 6px; }
.profil-renseigne a { font-weight: 400; color: var(--sigrh-lien); }

.bandeau-annonce { display: flex; align-items: stretch; border: 1px solid #f1d78a; border-radius: .25rem; background: #fff8d9; margin-bottom: 1.25rem; overflow: hidden; }
.bandeau-annonce .icone { background: #1c7fc1; color: #fff; width: 40px; display: flex; align-items: center; justify-content: center; }
.bandeau-annonce .texte { padding: .4rem 1rem .4rem 4.5rem; font-weight: 700; color: #b8211d; font-size: .9rem; }
.bandeau-annonce .texte a { color: #b8211d; }

/* Bloc de pointage du jour */
.pointage-jour { border-top: 3px solid #ffc107; }
.pointage-jour .col-temps { text-align: center; padding: .6rem 0; }
.pointage-jour .col-temps + .col-temps { border-left: 1px solid #e3e6ea; }
.pointage-jour .lbl { font-size: .72rem; color: #6c757d; }
.pointage-jour .val { font-size: 1.75rem; line-height: 1.1; color: #212529; }
.pointage-jour .val-sm { font-size: 1.35rem; line-height: 1.3; }
.pointage-jour .retard { font-size: .7rem; color: #f0a500; }
.pointage-jour .btn-mon-temps { font-size: .8rem; color: #6c757d; border-color: #6c757d; }

.titre-section { font-size: 1.15rem; color: #5a6268; margin: .2rem 0 .5rem; }
.titre-dossiers { font-size: 1.15rem; color: var(--sigrh); margin: 1rem 0 .6rem; }

/* Petites boîtes */
.small-box { border-radius: .25rem; }
.small-box > .inner { padding: 10px 10px 8px; }
.small-box h3 { font-size: 1.75rem; margin-bottom: 4px; }
.small-box h3 sup, .small-box h3 small { font-size: .95rem; top: -.6em; font-weight: 700; }
.small-box p { font-size: .9rem; margin-bottom: 4px; }
.small-box .icon > i { font-size: 62px; top: 14px; right: 14px; }
.small-box.bg-sigrh { background: var(--sigrh) !important; color: #fff; }
.small-box.bg-warning .icon > i { color: rgba(214,153,0,.75); }
.small-box.bg-info .icon > i { color: rgba(0,0,0,.25); }
.small-box.bg-success .icon > i { color: rgba(0,0,0,.25); }

.callout { border-radius: .25rem; padding: .6rem 1rem; font-size: .75rem; }
.callout.callout-warning { border-left-color: #f0ad00; }

/* Cartes « Mes dossiers » */
.card-dossier { border-top: 3px solid; }
.card-dossier.vert { border-top-color: #28a745; }
.card-dossier.bleu { border-top-color: var(--sigrh); }
.card-dossier.cyan { border-top-color: #17a2b8; }
.card-dossier .card-header { padding: .55rem 1rem; border-bottom: 1px solid #e3e6ea; }
.card-dossier .card-title { font-size: 1.05rem; }
.card-dossier .grand { font-size: 1.35rem; color: #212529; }
.card-dossier .grand small { font-size: 1.05rem; color: #6c757d; }
.card-dossier .detail { font-size: .7rem; color: #6c757d; margin-bottom: .35rem; }
.card-dossier .progress { height: 4px; margin: .45rem 0 .6rem; }
.card-dossier .card-footer { background: #fff; border: 0; text-align: right; font-size: .72rem; padding-top: 0; }
.card-dossier .card-footer a { color: #343a40; }
.card-dossier .badge { font-size: .62rem; }

.card-droits { border-top: 3px solid #28a745; }
.table-sigrh thead th { background: var(--sigrh); color: #fff; border: 0; font-weight: 600; font-size: .8rem; }
.table-sigrh td { font-size: .85rem; }

.btn-sigrh { background: var(--sigrh); color: #fff; }
.btn-sigrh:hover { background: var(--sigrh-fonce); color: #fff; }
.btn-xs-outline { font-size: .7rem; padding: .1rem .4rem; border: 1px solid #adb5bd; color: #495057; background: #fff; }

/* Tableaux & divers */
.table td, .table th { vertical-align: middle; }
.table-sm td { font-size: .87rem; }
.etat-terminal { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.etat-terminal.on { background: #28a745; box-shadow: 0 0 0 3px rgba(40,167,69,.2); }
.etat-terminal.off { background: #dc3545; }
.code-bloc { background: #0f2a3d; color: #d6ecfa; border-radius: .25rem; padding: .75rem 1rem; font-family: SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.jour-repos td { background: #fafbfc; color: #8a949d; }
.login-page { background: linear-gradient(160deg, var(--sigrh) 0%, #0f2f45 100%); }
.login-logo a { color: #fff; }

/* En-tête / pied de page imprimés sur tous les rapports (logo de l'entreprise) */
.entete-impression, .pied-impression { display: none; }
@media print {
  @page { margin: 12mm; }
  .main-header, .main-sidebar, .no-print, .main-footer, .content-header, .btn, .pagination,
  .card-tools, form .form-control, form label, .alert-dismissible .close { display: none !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .content-wrapper { margin-left: 0 !important; background: #fff; min-height: 0 !important; }
  .table.table-sigrh thead th { background: #fff !important; color: var(--sigrh) !important; border-bottom: 2px solid var(--sigrh) !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .entete-impression { display: flex !important; align-items: center; gap: 12px; border-bottom: 3px solid var(--sigrh); padding-bottom: 8px; margin-bottom: 14px; }
  .entete-impression img { max-height: 60px; max-width: 160px; }
  .entete-impression .nom { font-size: 1.15rem; font-weight: 700; color: var(--sigrh); }
  .entete-impression .titre { font-size: 1rem; }
  .entete-impression .date { margin-left: auto; text-align: right; font-size: .75rem; color: #5a6b79; }
  .pied-impression { display: block !important; border-top: 1px solid var(--sigrh); margin-top: 18px; padding-top: 4px; font-size: .7rem; color: #5a6b79; text-align: center; }
  .card { box-shadow: none !important; break-inside: avoid; }
  .small-box, .table-sigrh thead th, .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
