@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap);

:root {
  --sidebar-width-expanded: 250px;
  --sidebar-width-collapsed: 60px;
  --primary-color: #0076bf;
  --text-color: #25313f;
  --sidebar-bg: #f7faff;
  --sidebar-shadow: 0 2px 8px rgba(16, 40, 90, 0.08);
}

body {
  color: #25313f;
  font-size: 16px;
  margin: 0;
  line-height: 1.65;
  font-family: Roboto, Arial, sans-serif;
}

.btn-close,
.main-navbar,
.nav-tabs {
  position: relative;
}

.coeff-modal .table th,
.details-modal-table th,
th {
  text-transform: uppercase;
}

.nav-sidebar-link,
.nav-tabs,
.tooltip-inner {
  font-family: Roboto, Arial, sans-serif;
}

.lab-nonrenseigne {
  background: #fff3cd !important;
  color: #b08900 !important;
}

.excel-filter-row input {
  min-width: 40px;
  max-width: 140px;
}

.smaller-text {
  font-size: 0.7rem;
}

.main-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #eaf6ff 0, #e7ecf8 100%);
  padding: 0 36px 0 24px;
  min-height: 66px;
  box-shadow: 0 3px 16px 0 rgba(30, 70, 130, 0.06);
  z-index: 1100;
}

.navbar-logo-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-links,
.navbar-links li {
  display: flex;
  align-items: center;
}

.navbar-title {
  font-size: 1.44rem;
  font-weight: 700;
  color: #184874;
  letter-spacing: 0.02em;
}

.navbar-meta {
  color: #7c889e;
  font-size: 0.8rem;
}

.navbar-links {
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-link {
  color: #1b304c;
  font-weight: 500;
  font-size: 1.04rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.14s, color 0.18s;
}

.navbar-link.active,
.navbar-link:hover {
  background: #e7f5ff;
  color: #0076bf;
  text-decoration: none;
}

.btn-navbar {
  background: linear-gradient(90deg, #0098d7 0, #00b9b0 100%);
  color: #fff !important;
  font-weight: 600;
  border: none;
  padding: 10px 24px 10px 18px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-left: 22px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(40, 120, 200, 0.12);
  transition: background 0.18s, box-shadow 0.14s;
  text-decoration: none;
}

.btn-navbar:hover {
  background: linear-gradient(90deg, #0371ae 0, #0da587 100%);
  box-shadow: 0 3px 16px 0 rgba(30, 120, 170, 0.1);
  text-decoration: none;
}

.navbar-burger {
  display: none;
  background: 0 0;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: 24px;
}

.navbar-burger span {
  display: block;
  width: 28px;
  height: 3.3px;
  border-radius: 2px;
  background: #0076bf;
  transition: 0.19s;
}

.navbar-burger.open span:first-child {
  transform: rotate(44deg) translateY(8px);
}

.navbar-burger.open span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.open span:nth-child(3) {
  transform: rotate(-44deg) translateY(-8px);
}

.nav-tabs {
  border: none;
  background: 0 0;
  border-radius: 13px 13px 0 0;
  margin-top: 10px;
  box-shadow: none;
  overflow-x: visible;
  padding-left: 0;
  min-height: 41px;
}

.nav-tabs .nav-link {
  border: none !important;
  border-radius: 12px 12px 0 0 !important;
  background: #eef3fa !important;
  color: #2183c6 !important;
  font-weight: 500;
  padding: 7px 18px 6px;
  font-size: 14.5px;
  margin-right: 1px;
  min-width: 0;
  opacity: 0.95;
  outline: 0 !important;
  position: relative;
  z-index: 1;
  transition: background 0.16s, color 0.16s, font-weight 0.15s;
  white-space: nowrap;
}

.nav-tabs .nav-link.active {
  color: #fff !important;
  background: linear-gradient(90deg, #0095e6 0, #0076bf 100%) !important;
  font-weight: 700;
  box-shadow: 0 4px 18px 0 rgba(0, 80, 180, 0.1);
  z-index: 2;
  opacity: 1;
}

.nav-tabs .nav-link:focus:not(.active),
.nav-tabs .nav-link:hover:not(.active) {
  background: #dbe7fa !important;
  color: #1773ac !important;
  font-weight: 600;
  opacity: 1;
}

.tab-content {
  font-size: 1rem;
}

.btn,
button {
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.17s, box-shadow 0.18s;
}

.btn:disabled,
button:disabled {
  background: #c2c8cf !important;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:hover,
button:hover {
  box-shadow: 0 4px 14px rgba(70, 180, 250, 0.15);
}

.btn-close {
  width: 32px;
  height: 32px;
  padding: 0;
  background: 0 0;
  border: none;
  border-radius: 50%;
  opacity: 1 !important;
  transition: background 0.14s, box-shadow 0.17s;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 5px;
  right: 14px;
}

.btn-close::after,
.btn-close::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2.5px;
  background: #2773ac;
  border-radius: 2px;
  transform-origin: center;
  transition: background 0.2s;
}

.btn-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.btn-close:focus,
.btn-close:hover {
  background: #eaf3fb;
  box-shadow: 0 1.5px 7px rgba(16, 120, 188, 0.1) inset;
  outline: 0;
}

.btn-close:focus::after,
.btn-close:focus::before,
.btn-close:hover::after,
.btn-close:hover::before {
  background: #0b8ddb;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: auto !important;
}

td,
th {
  border: none;
  text-align: center;
  vertical-align: middle;
}

th {
  font-weight: 700;
}

.average,
.average td,
.average th {
  background: #FFE6BA;
  color: #856000;
  font-weight: 700;
}

.total,
.sous-total,
.total td,
.total-action,
.total-row td,
.total-row th {
  color: #fff!important;
  background: #0086a8!important;
  font-weight: 700;
}

.progress-label {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 12.5px;
  text-align: left;
}

.progress {
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f1f1;
}

.progress-bar-prepa {
  background: #0d6efd;
  color: #fff;
}

.progress-bar-retour {
  background: #198754;
  color: #fff;
}

.progress-bar-total {
  background: #ffc107;
  color: #333;
}

.type {
  background: #e7eef9;
}

.action-prepa,
.action-prepa-col,
.action-prepa-header,
.action-col-prepa-labo {
  background: #e5f1fc !important;
  color: #1976d2;
  font-weight: 700;
}

.action-retour,
.action-retour-col,
.action-retour-header,
.action-col-retour-labo {
  background: #e6fbe8 !important;
  color: #219653;
  font-weight: 700;
}

.action-cell,
.technicien-cell,
.type-cell,
.action-cell,
.technicien-cell,
.type-cell {
  font-weight: 700 !important;
  color: #1c3367 !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.compte-copy-cell,
.copy-cell,
.detaillees-copy-cell,
.famille-copy-cell,
.labo-copy-cell,
.stats-copy-cell,
.comptes-modal-clickable,
.clickable {
  cursor: pointer;
  transition: background 0.12s;
}

#familleGroupedTableContainer table thead,
.details-modal-table thead {
  position: sticky !important;
  top: 0 !important;
  z-index: 1800 !important;
  background: #fafdff;
}

.table-detailed-stats-container td,
.table-detailed-stats-container th {
  text-align: center !important;
  vertical-align: middle !important;
}

.table-detailed-stats-container td.text-start {
  text-align: center !important;
}

.details-modal .modal-content {
  font-size: 13px;
  background: #f7faff;
  border-radius: 15px;
  box-shadow: 0 4px 24px rgba(16, 32, 64, 0.14);
  padding: 0;
}

.details-modal-body {
  overflow-y: auto;
  max-height: 80vh;
  padding: 0 12px 8px;
}

.details-modal-table {
  font-size: 12.3px;
  background: #fff;
  border-radius: 9px;
  margin-bottom: 0;
}

.details-modal-table td,
.details-modal-table th {
  padding: 6px 10px;
  text-align: center;
  vertical-align: middle;
}

.details-modal-table th {
  background: #eaf1fc !important;
  font-weight: 700;
  color: #1976d2;
  font-size: 12.6px;
  letter-spacing: 0.01em;
}

.details-modal-table td {
  color: #232f41;
  background: #f9fbfd;
  font-size: 12.4px;
}

.details-modal-table a {
  color: #1976d2;
  text-decoration: underline dotted;
  font-weight: 500;
}

.details-modal .modal-title,
.details-modal-table .modal-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1976d2;
  letter-spacing: 0.01em;
  margin: 0;
  padding-right: 40px;
  line-height: 1.2;
}

.coeff-modal .modal-content {
  font-size: 13px;
  background: #fafdff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(20, 55, 105, 0.11);
  padding: 10px 8px 8px;
  max-width: 740px;
  margin: auto;
}

.coeff-modal .modal-footer,
.coeff-modal .modal-header {
  padding: 9px 13px;
  border-radius: 10px 10px 0 0;
  background: #eaf4fb;
}

.coeff-modal .modal-footer {
  border-bottom: none;
  border-radius: 0 0 10px 10px;
  background: #f3fafd;
}

.coeff-modal .modal-title {
  font-size: 1.03rem;
  font-weight: 600;
  color: #1565a2;
  margin: 0;
}

.coeff-modal .table td,
.coeff-modal .table th {
  padding: 5px 6px;
  text-align: center;
  vertical-align: middle;
}

.coeff-modal .table th {
  background: #e9f3fb !important;
  color: #17528a;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.coeff-modal .table tbody tr:hover td {
  background: #e3f2fd !important;
}

.coeff-modal .table td {
  color: #233145;
  background: #f7fafd;
}

.coeff-modal .table td[data-original-seconds] {
  font-size: 12.1px;
  font-family: "Roboto Mono", monospace;
  letter-spacing: 0.01em;
}

.coeff-modal .btn {
  padding: 7px 17px;
  font-size: 12.3px;
  border-radius: 5px;
  font-weight: 500;
  background: linear-gradient(90deg, #0098d7 0, #00b9b0 100%);
}

.coeff-modal .btn-close {
  width: 26px;
  height: 26px;
  top: 2px;
  right: 4px;
}

.modal {
  z-index: 2000 !important;
  position: fixed;
}

.modal-backdrop,
.modal-backdrop.show {
  z-index: 1990 !important;
  position: fixed;
}

#title-page {
  font-size: 2.1rem;
  font-weight: 700;
  color: #234268;
  margin: 28px 0 24px;
  letter-spacing: 0.012em;
}

#text-export {
  font-size: 12px;
  margin-left: 18px;
  padding: 6px 13px;
  background: #0dcaf0;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 120, 188, 0.09);
}

#cumulativeChart,
#dailyChart,
#targetChart,
#teamChart,
#timeChart,
#typeWeeklyChart {
  padding: 10px;
}

.clickable,
.compte-modal-clickable,
.famille-clickable,
.labo-modal-clickable,
.spare-clickable,
.spare-grand-total-clickable,
.spare-total-assign-clickable,
.spare-total-spare-clickable {
  cursor: pointer;
  transition: color 0.22s, font-weight 0.17s;
}

.clickable:hover,
.compte-modal-clickable:hover,
.famille-clickable:hover,
.labo-modal-clickable:hover,
.spare-clickable:hover,
.spare-grand-total-clickable:hover,
.comptes-modal-clickable:hover,
.spare-total-assign-clickable:hover,
.spare-total-spare-clickable:hover {
  color: #ffb400 !important;
  font-weight: 700;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px 18px;
  background: 0 0;
}

.copy-flash {
  background: #ffe082 !important;
}

.accordion-body {
  padding: 0.5rem 1rem;
}

.accordion-button {
  font-size: 0.9rem;
}

.accordion-item {
  margin-bottom: 0.5rem;
}

.accordion .level-0 .accordion-button {
  background-color: var(--bs-primary);
  color: #fff;
}

.accordion .level-0 .accordion-button.collapsed {
  background-color: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
}

.accordion .level-1 .accordion-button {
  background-color: var(--bs-info);
  color: #fff;
}

.accordion .level-1 .accordion-button.collapsed {
  background-color: var(--bs-info-bg-subtle);
  color: var(--bs-info);
}

.accordion .level-2 .accordion-button {
  background-color: var(--bs-success);
  color: #fff;
}

.accordion .level-2 .accordion-button.collapsed {
  background-color: var(--bs-success-bg-subtle);
  color: var(--bs-success);
}

.accordion .level-3 .accordion-button {
  background-color: var(--bs-warning);
  color: var(--bs-dark);
}

.accordion .level-3 .accordion-button.collapsed {
  background-color: var(--bs-warning-bg-subtle);
  color: var(--bs-warning);
}

.accordion .level-4 .accordion-button {
  background-color: var(--bs-danger);
  color: #fff;
}

.accordion .level-4 .accordion-button.collapsed {
  background-color: var(--bs-danger-bg-subtle);
  color: var(--bs-danger);
}

.nav-sidebar-toggle,
.tooltip-inner {
  background-color: var(--primary-color);
}

.nav-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: calc(100vh);
  width: var(--sidebar-width-expanded);
  transition: width 0.3s;
  z-index: 1801;
}

.nav-sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

.nav-sidebar-toggle {
  position: absolute;
  top: 1rem;
  right: -13px;
  width: 24px;
  height: 24px;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  transform: rotate(180deg);
}

.nav-sidebar-toggle i {
  font-size: 14px;
  line-height: 1;
}

.nav-sidebar.collapsed .nav-sidebar-toggle {
  transform: rotate(0);
}

.nav-sidebar-list {
  margin-top: 3rem;
}

.nav-sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
  text-decoration: none;
}

.nav-sidebar-link i {
  font-size: 1.25rem;
  width: 2rem;
  text-align: center;
}

.nav-sidebar-link .nav-sidebar-label {
  transition: opacity 0.3s;
}

.nav-sidebar.collapsed .nav-sidebar-link .nav-sidebar-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
  margin: 0;
}

.nav-sidebar-link:hover {
  background-color: #e7f5ff;
  color: var(--primary-color);
}

.nav-sidebar-link.active {
  color: #fff;
  background: linear-gradient(90deg, #0095e6 0, #0076bf 100%);
  font-weight: 700;
}

.main {
  margin-left: var(--sidebar-width-expanded);
  transition: margin-left 0.3s;
}

.nav-sidebar.collapsed ~ .main {
  margin-left: var(--sidebar-width-collapsed);
}

.nav-sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tooltip-inner {
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: var(--primary-color);
}

.tooltip {
  z-index: 2000;
}

.navbar-logo {
  object-fit: contain;
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

.nav-sidebar.collapsed .navbar-logo {
  display: block;
}

.entete-stats {
  margin-left: 10px;
  background-color: var(--primary-color);
  color: #fff;
}

@keyframes flashCopy {
  0% {
    background-color: #c7f6de;
  }
  100% {
    background-color: transparent;
  }
}

/* Toolbar */
.aic-toolbar .nav-tabs{margin-bottom:0}
.nav-scroll{overflow:auto; white-space:nowrap; -webkit-overflow-scrolling:touch}

/* ✅ Alignement propre du checkbox + label */
.aic-toolbar .form-check{
  display:inline-flex;           /* met input + label sur la même ligne */
  align-items:center;            /* centre verticalement */
  gap:.45rem;                    /* espace régulier entre case et texte */
  margin:0;                      /* pas de marge parasite */
}
.aic-toolbar .form-check-input{
  margin:0;                      /* annule la marge-top par défaut de Bootstrap */
  float:none;                    /* évite les décalages */
}
.aic-toolbar .form-check-label{
  margin:0;
  line-height:1.1;               /* évite le décalage optique avec l’icône */
}