/**
 * Kapela — Style : Planning : grille de la semaine, cases et palette
 * Auteur : Jacks Ngalangala
 */

/* Planning */
.pweek {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pweek b {
  font-size: 16px;
  min-width: 200px;
  text-align: center;
}
.plan {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ppal {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surf);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.ppal.over {
  border-color: var(--bad);
  background: var(--bad-bg);
}
.pman {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  cursor: grab;
  text-align: left;
  font: inherit;
  color: var(--ink);
  width: 100%;
}
.pman:hover {
  border-color: var(--ink);
}
.pman.on {
  border-color: var(--acc);
  box-shadow: inset 0 0 0 1px var(--acc);
  background: #f6e3d8;
}
.pman b {
  display: block;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pman small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.pdrop {
  text-align: center;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
}
.pboard {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surf);
  padding: 0 0 10px;
}
.pgrid {
  display: grid;
  min-width: 1000px;
}
.phd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  text-transform: capitalize;
}
.phd .disp {
  font-size: 24px;
  line-height: 1;
}
.phd.today {
  background: var(--dark);
  color: var(--dark-t);
}
.phd.today small {
  color: var(--dark-m);
}
.phd.past {
  opacity: 0.6;
}
.ptl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-left: 4px solid var(--line);
  border-bottom: 1px solid var(--line2);
}
.ptl.foot {
  border-left-color: transparent;
  border-bottom: 0;
}
.pcell {
  min-height: 110px;
  padding: 8px;
  border-left: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background 0.12s;
}
.pcell.today {
  background: #fbf6ee;
}
.pcell.past {
  background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0, 0, 0, 0.018) 8px 16px);
}
.pcell.over {
  background: #f6e3d8;
  box-shadow: inset 0 0 0 2px var(--acc);
}
.pcell.picking {
  cursor: copy;
}
.pcell.picking:hover {
  background: #f6e3d8;
}
.pchip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 3px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--c);
  border-radius: 999px;
  background: var(--surf);
  cursor: grab;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  text-align: left;
  width: 100%;
}
.pchip:hover {
  border-color: var(--ink);
  border-left-color: var(--c);
}
.pchip:active {
  cursor: grabbing;
}
.pchip.off {
  opacity: 0.55;
}
.pchip.off .grow {
  text-decoration: line-through;
}
.pchip .grow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.pst {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--bad);
  background: var(--bad-bg);
  padding: 1px 6px;
  border-radius: 99px;
}
.pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}
.pdot.ok {
  background: var(--ok);
}
.pdot.late {
  background: #d49b2a;
}
.pdot.miss {
  background: var(--bad);
}
.pwarn {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--bad);
}
.pplus {
  margin: auto;
  color: var(--acc);
  font-weight: 700;
  font-size: 12px;
}
.pman.over {
  border-color: var(--bad);
}
.num.bad {
  color: var(--bad);
  font-weight: 700;
}
.pgear {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
  display: inline-flex;
}
.pgear:hover {
  color: var(--ink);
  background: var(--line2);
}
