.jvm-zoom-btn.jvm-zoomin,
.jvm-zoom-btn.jvm-zoomout {
  top: 10px;
  background: #d1d5db;
  color: #111827;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
}

.slick-dots {
  display: flex !important;
}

.fc-toolbar-title {
  font-size: 24px !important;
  font-weight: 600;
}

.fc-button {
  border-color: var(--primary-600) !important;
  background: #fff !important;
  color: var(--primary-600) !important;
  font-weight: 600 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 80px !important;
}

.fc-button:hover {
  background-color: var(--primary-50) !important;
}

.fc-button-active {
  color: #fff !important;
  background-color: var(--primary-600) !important;
}

.fc-button-active:hover {
  color: #fff !important;
  background-color: var(--primary-600) !important;
}

.fc-button-active:focus,
.fc .fc-button-primary:not(:disabled):active:focus {
  box-shadow: none !important;
}

.fc-toolbar-chunk {
  display: flex !important;
}

.fc .fc-button-primary:focus {
  box-shadow: none !important;
}

.fc-h-event {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-h-event .fc-event-main {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-v-event .fc-event-main {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: var(--primary-50) !important;
  color: var(--primary-600) !important;
}

.fc-daygrid-day-number {
  transition: background-color 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  border-radius: 50%;
}

.fc-daygrid-day:hover .fc-daygrid-day-number {
  background-color: var(--primary-100) !important;
  color: var(--primary-600) !important;
  transition: background-color 0.2s;
}

.slider-progress .active {
  transition: all 0.3s linear;
}

.slick-list {
  margin: 0 -7px;
}

.slick-slide > div {
  padding: 0 10px;
}

.center-gap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-grid {
  display: inline-grid;
}

.image-upload__boxInner.custom {
  display: flex;
  justify-content: center;
  align-items: center;
}

table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
  text-align: unset !important;
}

/* Hide all submenus by default */
.sidebar-submenu {
  /* display: none; */
  list-style: none;
  padding-left: 20px;
  /* Adjust as needed */
}

.sidebar-menu .sidebar-submenu {
  display: block;
}

/* Optional: Add transition for smooth toggle */
.sidebar-menu .dropdown .sidebar-submenu {
  transition: max-height 0.3s linear;
  overflow: hidden;
  max-height: 0px;
}

/* .sidebar-menu .dropdown.open .sidebar-submenu {
  max-height: 1000px;
} */

.sidebar-menu li > a > i {
  margin-inline-end: 0;
}

.mr-10 {
  margin-right: 10px !important;
}

.sidebar-menu .sidebar-submenu li a {
  gap: 12px;
}

.sidebar-menu .sidebar-submenu li > .active-page {
  background-color: var(--button-secondary);
  color: var(--text-primary-light);
}

.sidebar-menu li > a.active-page:hover {
  color: var(--text-primary-light);
}
.me-8 {
  margin-right: 8px;
}

.gap-10 {
  display: flex;
  gap: 8px;
}

.w-33 {
  width: 33.33%;
}

.overlay::after {
  position: absolute;
  content: "";
  top: 0;
  inset-inline-start: 0;
  width: 0;
  height: 100%;
  background-color: #000;
  opacity: 0.65;
  transition: all 0.3s;
  z-index: 2;
}

.overlay.active::after {
  width: 100%;
}

/* Portail interne */
.portal-home__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portal-home__subtitle {
  color: var(--text-secondary-light, #6b7280);
  max-width: 42rem;
}

.portal-module-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--neutral-200, #e5e7eb);
  background: var(--white, #fff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.portal-module-card--active:hover {
  border-color: var(--primary-600, #487fff);
  box-shadow: 0 8px 24px rgba(72, 127, 255, 0.12);
  transform: translateY(-2px);
  color: inherit;
}

.portal-module-card--disabled {
  opacity: 0.65;
  cursor: default;
}

.portal-module-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.portal-module-card__icon--orange {
  background: #fff0e6;
  color: #f86624;
}

.bg-orange-50 {
  background-color: #fff0e6 !important;
}

.portal-module-card__icon--danger {
  background: #fee2e2;
  color: #dc2626;
}

.portal-module-card__icon--pink {
  background: #fce7f8;
  color: #de3ace;
}

.portal-module-card__icon--primary {
  background: var(--primary-50, #ecf1ff);
  color: var(--primary-600, #487fff);
}

.portal-module-card__icon--warning {
  background: #fff8e6;
  color: #ff9f29;
}

.portal-module-card__icon--success {
  background: #e6f9ef;
  color: #16a34a;
}

.portal-module-card__icon--info {
  background: #e8f4fd;
  color: #0891b2;
}

.portal-module-card__title {
  font-size: 0.95rem;
  font-weight: 600;
}

.portal-module-card__body {
  flex: 1;
  min-width: 0;
}

.portal-module-card__subtitle {
  font-size: 0.8125rem;
  color: var(--primary-600, #487fff);
  font-weight: 500;
}

.portal-module-card__description {
  font-size: 0.8125rem;
  color: var(--text-secondary-light, #6b7280);
  min-height: 2.5rem;
}

.portal-module-card__action {
  margin-left: auto;
  align-self: center;
  color: var(--primary-600, #487fff);
}

.portal-upcoming-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px dashed var(--neutral-300, #d1d5db);
  background: var(--neutral-50, #f9fafb);
  height: 100%;
}

.portal-upcoming-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-200, #e5e7eb);
  color: var(--text-secondary-light, #6b7280);
  font-size: 1.25rem;
}

.sidebar-portal-label {
  letter-spacing: 0.02em;
}

.sidebar-menu-disabled__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary-light, #9ca3af);
  opacity: 0.7;
  cursor: not-allowed;
  user-select: none;
}

.sidebar-menu-disabled__lock {
  margin-left: auto;
  font-size: 1rem;
  opacity: 0.6;
}

.kkp-inline-display-cell {
  cursor: cell;
}

.kkp-inline-edit-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.kkp-inline-edit-wrap .form-control,
.kkp-inline-edit-wrap .form-select {
  min-width: 0;
  flex: 1;
}

.kkp-inline-edit-periode-annee {
  flex: 0 0 4.5rem;
  max-width: 4.5rem;
}

.kkp-inline-edit-confirm,
.kkp-inline-edit-cancel {
  flex-shrink: 0;
  padding: 0.15rem 0.4rem;
  line-height: 1;
}

.kkp-admin-nav-card .list-group-item {
  padding: 0.85rem 1rem;
  border-radius: 0;
}

.kkp-admin-nav-card .list-group-item.active {
  background-color: var(--primary-600, #dc2626);
  border-color: transparent;
  color: #fff;
}

.kkp-admin-nav-card .list-group-item.active small {
  color: rgba(255, 255, 255, 0.85) !important;
}

.kkp-admin-nav-card .list-group-item:not(.active):hover {
  background-color: var(--neutral-50, #f9fafb);
}

.kkp-planning-table tbody tr.kkp-planning-week-anchor {
  scroll-margin-top: calc(var(--kkp-navbar-height, 4.5rem) + 10rem);
}

.kkp-planning-table-sticky-wrap.is-stuck .kkp-planning-table thead {
  visibility: hidden;
}

.kkp-planning-table-sticky-head {
  position: fixed;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--neutral-50, #f9fafb);
  box-shadow: 0 1px 0 var(--neutral-200, #e5e7eb);
  visibility: hidden;
  opacity: 0;
}

.kkp-planning-table-sticky-head.is-visible {
  visibility: visible;
  opacity: 1;
}

.kkp-planning-table-sticky-head__inner {
  will-change: transform;
}

.kkp-planning-table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.kkp-planning-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

.kkp-planning-table--mag {
  min-width: 48rem;
}

.kkp-planning-table--set {
  min-width: 44rem;
}

.kkp-planning-table--newsletter {
  min-width: 64rem;
}

.kkp-planning-table--web {
  min-width: 72rem;
}

@media (max-width: 991.98px) {
  .kkp-planning-filters > [class*="col-md-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .kkp-planning-card-header-actions {
    flex-wrap: wrap;
    justify-content: flex-start !important;
  }
}

@media (max-width: 575.98px) {
  .kkp-planning-filters > [class*="col-md-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .kkp-planning-table {
    font-size: 0.8125rem;
  }

  .kkp-planning-table th,
  .kkp-planning-table td {
    padding: 0.35rem 0.45rem;
  }

  .kkp-planning-table .kkp-col-actions,
  .kkp-planning-table th.kkp-col-actions,
  .kkp-planning-table td.kkp-col-actions {
    width: 3.75rem;
    max-width: 4.25rem;
  }

  .kkp-planning-table td.kkp-col-actions .kkp-actions-toolbar .btn {
    padding: 0.15rem 0.25rem;
  }
}

.kkp-planning-table th,
.kkp-planning-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  vertical-align: top;
  line-height: 1.35;
  box-sizing: border-box;
}

.kkp-planning-table thead {
  background-color: var(--neutral-50, #f9fafb);
}

.kkp-planning-table thead th {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  font-size: 0.8125rem;
  line-height: 1.25;
  vertical-align: middle;
  font-weight: 600;
  text-align: left;
  position: static;
  z-index: auto;
  background-color: var(--neutral-50, #f9fafb);
  background-clip: padding-box;
  border-bottom: 1px solid var(--neutral-200, #e5e7eb);
  box-shadow: none;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.kkp-planning-table thead th.text-end {
  text-align: right;
}

.kkp-planning-table .kkp-col-actions,
.kkp-planning-table th.kkp-col-actions,
.kkp-planning-table td.kkp-col-actions {
  width: 4.5rem;
  max-width: 5rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
}

.kkp-planning-table thead th.kkp-col-actions {
  vertical-align: middle;
  font-size: 0.8125rem;
  text-align: right;
}

.kkp-planning-table td.kkp-col-actions {
  vertical-align: top;
  font-size: 0.75rem;
}

.kkp-planning-table td.kkp-col-actions .kkp-actions-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
  max-width: 100%;
}

.kkp-planning-table td.kkp-col-actions .kkp-actions-toolbar .btn {
  padding: 0.25rem 0.45rem;
  line-height: 1;
  min-width: 1.75rem;
  min-height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kkp-planning-table td.kkp-col-actions .kkp-actions-toolbar .btn svg,
.kkp-planning-table td.kkp-col-actions .kkp-actions-toolbar .btn iconify-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.kkp-actions-hint {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.kkp-planning-table .kkp-col-num,
.kkp-planning-table th.kkp-col-num,
.kkp-planning-table td.kkp-col-num {
  width: 4.5rem;
  max-width: 5rem;
  white-space: nowrap;
}

/* MAG : période | commercial | client | format | contenu | statut | commentaire | actions */
.kkp-planning-table--mag th:nth-child(1),
.kkp-planning-table--mag td:nth-child(1) { width: 5.5rem; max-width: 6rem; }
.kkp-planning-table--mag th:nth-child(2),
.kkp-planning-table--mag td:nth-child(2) { width: 7rem; max-width: 8rem; }
.kkp-planning-table--mag th:nth-child(3),
.kkp-planning-table--mag td:nth-child(3) { width: 9rem; max-width: 11rem; }
.kkp-planning-table--mag th:nth-child(4),
.kkp-planning-table--mag td:nth-child(4) { width: 7rem; max-width: 9rem; }
.kkp-planning-table--mag th:nth-child(5),
.kkp-planning-table--mag td:nth-child(5) { width: 7rem; max-width: 9rem; }
.kkp-planning-table--mag th:nth-child(6),
.kkp-planning-table--mag td:nth-child(6) { width: 6.5rem; max-width: 8rem; }
.kkp-planning-table--mag th:nth-child(7),
.kkp-planning-table--mag td:nth-child(7) { width: 10rem; max-width: 14rem; }

/* SET : période | commercial | client | format | statut | commentaire | actions */
.kkp-planning-table--set th:nth-child(1),
.kkp-planning-table--set td:nth-child(1) { width: 5.5rem; max-width: 6rem; }
.kkp-planning-table--set th:nth-child(2),
.kkp-planning-table--set td:nth-child(2) { width: 7rem; max-width: 8rem; }
.kkp-planning-table--set th:nth-child(3),
.kkp-planning-table--set td:nth-child(3) { width: 9rem; max-width: 11rem; }
.kkp-planning-table--set th:nth-child(4),
.kkp-planning-table--set td:nth-child(4) { width: 7.5rem; max-width: 9rem; }
.kkp-planning-table--set th:nth-child(5),
.kkp-planning-table--set td:nth-child(5) { width: 6.5rem; max-width: 8rem; }
.kkp-planning-table--set th:nth-child(6),
.kkp-planning-table--set td:nth-child(6) { width: 10rem; max-width: 14rem; }

/* Newsletter */
.kkp-planning-table--newsletter th:nth-child(1),
.kkp-planning-table--newsletter td:nth-child(1) { width: 5.5rem; max-width: 6rem; }
.kkp-planning-table--newsletter th:nth-child(2),
.kkp-planning-table--newsletter td:nth-child(2) { width: 5.5rem; max-width: 6.5rem; }
.kkp-planning-table--newsletter th:nth-child(3),
.kkp-planning-table--newsletter td:nth-child(3) { width: 7rem; max-width: 8rem; }
.kkp-planning-table--newsletter th:nth-child(4),
.kkp-planning-table--newsletter td:nth-child(4) { width: 9rem; max-width: 11rem; }
.kkp-planning-table--newsletter th:nth-child(5),
.kkp-planning-table--newsletter td:nth-child(5) { width: 10rem; max-width: 13rem; }
.kkp-planning-table--newsletter th:nth-child(6),
.kkp-planning-table--newsletter td:nth-child(6) { width: 6.5rem; max-width: 8rem; }
.kkp-planning-table--newsletter th:nth-child(7),
.kkp-planning-table--newsletter th:nth-child(8),
.kkp-planning-table--newsletter th:nth-child(9),
.kkp-planning-table--newsletter th:nth-child(10),
.kkp-planning-table--newsletter td:nth-child(7),
.kkp-planning-table--newsletter td:nth-child(8),
.kkp-planning-table--newsletter td:nth-child(9),
.kkp-planning-table--newsletter td:nth-child(10) {
  width: 4.25rem;
  max-width: 5.25rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}
.kkp-planning-table--newsletter th:nth-child(11),
.kkp-planning-table--newsletter td:nth-child(11) { width: 7rem; max-width: 9rem; }

/* WEB : période | semaine | commercial | client | emplacement | statut | affichage | clics desk | clics mob | taux | actions */
.kkp-planning-table--web th:nth-child(1),
.kkp-planning-table--web td:nth-child(1) { width: 5.5rem; max-width: 6rem; }
.kkp-planning-table--web th:nth-child(2),
.kkp-planning-table--web td:nth-child(2) { width: 6.5rem; max-width: 8rem; }
.kkp-planning-table--web th:nth-child(3),
.kkp-planning-table--web td:nth-child(3) { width: 7rem; max-width: 8.5rem; }
.kkp-planning-table--web th:nth-child(4),
.kkp-planning-table--web td:nth-child(4) { width: 9rem; max-width: 11rem; }
.kkp-planning-table--web th:nth-child(5),
.kkp-planning-table--web td:nth-child(5) { width: 8rem; max-width: 10rem; }
.kkp-planning-table--web th:nth-child(6),
.kkp-planning-table--web td:nth-child(6) { width: 6.5rem; max-width: 8rem; }
.kkp-planning-table--web th:nth-child(7),
.kkp-planning-table--web td:nth-child(7) {
  width: 5rem;
  max-width: 6rem;
  white-space: nowrap;
}
.kkp-planning-table--web th:nth-child(8),
.kkp-planning-table--web td:nth-child(8),
.kkp-planning-table--web th:nth-child(9),
.kkp-planning-table--web td:nth-child(9) {
  width: 5.75rem;
  max-width: 6.75rem;
  white-space: normal;
  line-height: 1.2;
}
.kkp-planning-table--web th:nth-child(10),
.kkp-planning-table--web td:nth-child(10) {
  width: 5rem;
  max-width: 6rem;
  white-space: nowrap;
}
.kkp-planning-table--web th:nth-child(7),
.kkp-planning-table--web th:nth-child(8),
.kkp-planning-table--web th:nth-child(9),
.kkp-planning-table--web th:nth-child(10),
.kkp-planning-table--web td:nth-child(7),
.kkp-planning-table--web td:nth-child(8),
.kkp-planning-table--web td:nth-child(9),
.kkp-planning-table--web td:nth-child(10) {
  text-align: right;
}

.kkp-table-comment {
  max-width: 14rem;
  min-width: 7rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  vertical-align: top;
  line-height: 1.35;
}

/* Planning semaine — fond alterné par bloc (Newsletters, WEB) */
.kkp-planning-table--newsletter td.kkp-week-semaine-cell--0,
.kkp-planning-table--web td.kkp-week-semaine-cell--0 {
  background-color: #fef9c3;
}

.kkp-planning-table--newsletter td.kkp-week-semaine-cell--1,
.kkp-planning-table--web td.kkp-week-semaine-cell--1 {
  background-color: #dbeafe;
}

.kkp-planning-table--newsletter td.kkp-inline-edit-cell.kkp-week-semaine-cell--0,
.kkp-planning-table--web td.kkp-inline-edit-cell.kkp-week-semaine-cell--0 {
  background-color: #fef9c3;
}

.kkp-planning-table--newsletter td.kkp-inline-edit-cell.kkp-week-semaine-cell--1,
.kkp-planning-table--web td.kkp-inline-edit-cell.kkp-week-semaine-cell--1 {
  background-color: #dbeafe;
}
