/**
 * Kapela — Style : Planning : barre d'outils, répartition automatique et demandes
 * Auteur : Jacks Ngalangala
 */

/* Planning : barre d'outils et répartition automatique */
.ptools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.ptool {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 16px 0 7px;
  border: 1.5px solid color-mix(in srgb, var(--c) 45%, var(--line));
  border-radius: var(--r-ui);
  background: color-mix(in srgb, var(--c) 9%, var(--surf));
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    border-color 0.12s;
}
.ptool i {
  width: 32px;
  height: 32px;
  border-radius: calc(var(--r-ui) - 2px);
  display: grid;
  place-items: center;
  background: var(--c);
  color: #fff;
  font-style: normal;
}
.ptool:hover:not(:disabled) {
  border-color: var(--c);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px var(--c);
}
.ptool:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ptool.pmain {
  background: var(--c);
  border-color: var(--c);
  color: #fff;
}
.ptool.pmain i {
  background: rgba(255, 255, 255, 0.2);
}
.pwork {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 10px;
  text-align: center;
}
.pwork small {
  max-width: 440px;
}
.pspin {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2f5e8a;
  color: #fff;
  animation: pspin 1.6s ease-in-out infinite;
}
@keyframes pspin {
  0% {
    transform: rotate(0) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
.pbar {
  width: min(360px, 80%);
  height: 6px;
  border-radius: 99px;
  background: var(--line2);
  overflow: hidden;
  position: relative;
}
.pbar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: 99px;
  background: #2f5e8a;
  animation: pbar 1.1s ease-in-out infinite;
}
@keyframes pbar {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}
.pdone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 6px;
}
.pdonei {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok);
  color: #fff;
  animation: ppop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes ppop {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.pchip.fresh {
  animation: pfresh 1.2s ease-in-out 5;
  border-color: #2f5e8a;
  box-shadow: 0 0 0 2px #2f5e8a55;
}
@keyframes pfresh {
  50% {
    background: #dce8f4;
  }
}
@media print {
  .ptools {
    display: none !important;
  }
}

/* Planning : demandes, heures sup. */
.pcount {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: #b3261e;
  color: #fff;
  font-size: 11.5px;
  display: inline-grid;
  place-items: center;
  margin-left: 2px;
}
.psup {
  color: #b8902f;
}
