/* 0.45.0 · «Επόμενη συνεδρία» ως αναδυόμενο παράθυρο κάτω από το εικονίδιο στην κεφαλίδα (next-popover.js) */
#therapy-flow .heading {
  position: relative;
}
#therapy-flow .np-mobile-line {
  display: none;
}
html.m-mobile #therapy-flow .np-mobile-line {
  display: block;
  order: 0;
  margin: 0 0 12px;
}
#therapy-flow :is(.heading, .np-mobile-line) button.chip {
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  min-height: auto;
}
#therapy-flow :is(.heading, .np-mobile-line) button.chip:hover {
  filter: brightness(0.97);
  text-decoration: underline;
}
#therapy-flow .chip.chip-next.is-empty {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}
#therapy-flow .next-pop {
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  left: 0;
  width: min(560px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 32px #16283a2e;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#therapy-flow .next-pop .np-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 8px;
}
#therapy-flow .next-pop h3 {
  margin: 0;
  font-size: 16px;
}
#therapy-flow .next-pop .np-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  min-height: 32px;
  min-width: 32px;
  color: var(--muted);
}
#therapy-flow .next-pop .np-row,
#therapy-flow .next-pop .np-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
#therapy-flow .next-pop .np-row input {
  width: auto;
}
#therapy-flow .next-pop .np-actions .hbtn {
  min-height: 36px;
  font-size: 14px;
}
#therapy-flow .next-pop .np-cal,
#therapy-flow .next-pop .np-counts {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
#therapy-flow .next-pop .cancel-list {
  border-top: 1px solid var(--line-2);
  padding-top: 8px;
}
#therapy-flow .next-pop .cancel-list > summary {
  font-weight: 600;
  cursor: pointer;
}
#therapy-flow .cancel-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#therapy-flow .cancel-list .cx-actions {
  display: inline-flex;
  gap: 4px;
}
#therapy-flow .cancel-list .cx-charged {
  color: var(--warning-ink);
}
/* Παράθυρο έκβασης ραντεβού (cancellations.js) */
.cx-dialog .cx-opts,
.cx-dialog .cx-charge {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cx-dialog .cx-charge {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warning-tint);
}
.cx-dialog .cx-charge legend {
  float: left;
  width: 100%;
  font-weight: 600;
  margin-bottom: 4px;
}
.cx-dialog .cx-move {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 12px;
}
.cx-dialog .cx-move[hidden] {
  display: none;
}
.cx-dialog .cx-move .small {
  flex-basis: 100%;
  margin: 0;
}
/* Κεφαλίδα: αναζήτηση στον φάκελο στην ίδια γραμμή και ίδιο ύψος με «+ Νέα συνεδρία», «⚙ Πεδία συνεδρίας» από κάτω */
#therapy-flow .heading .file-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
#therapy-flow .heading .fa-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
#therapy-flow .heading .fa-row .file-search-field {
  height: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
#therapy-flow .heading .fa-row > .primary {
  min-height: 44px;
  margin: 0;
}
#therapy-flow .heading .file-actions .session-config-link {
  font-size: 13px;
  color: var(--muted);
  padding: 2px 4px;
  min-height: auto;
  border: 0;
  background: transparent;
}
html.m-mobile #therapy-flow .next-pop {
  position: fixed;
  left: 8px;
  right: 8px;
  top: auto;
  bottom: 72px;
  width: auto;
  max-height: 70vh;
  overflow: auto;
}
