/* =========================================================
   Sastanci: mesečni kalendar, spisak, izbor učesnika
   ========================================================= */
.meet-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.meet-side { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Kalendar ---------- */
.meet-cal-head { flex-wrap: wrap; }
.meet-cal-head h3 { min-width: 150px; text-align: center; text-transform: capitalize; font-size: 16px; }
.meet-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.meet-wd { background: var(--surface-2); padding: 8px 6px; text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.meet-day {
  position: relative; min-height: 96px; display: flex; flex-direction: column; gap: 4px; padding: 6px;
  background: var(--surface); border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.meet-day:hover { background: var(--surface-2); }
.meet-day:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; z-index: 1; }
.meet-day.out { background: var(--surface-2); color: var(--muted); }
.meet-day.out .meet-chip { opacity: .7; }
.meet-num { font-size: 13px; font-weight: 700; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.meet-day.today .meet-num { background: var(--primary); color: #fff; }
.meet-day.sel { box-shadow: inset 0 0 0 2px var(--primary); }
.meet-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.meet-chip {
  display: block; padding: 3px 6px; border-radius: 6px; background: var(--primary-soft); color: var(--primary);
  font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.meet-chip b { font-weight: 800; }
.meet-chip:hover { background: var(--primary); color: #fff; }
.meet-more { font-size: 11px; font-weight: 700; color: var(--muted); padding-left: 4px; }
.meet-dotm { display: none; }

/* ---------- Spisak sastanaka ---------- */
.meet-list { display: flex; flex-direction: column; }
.meet-item {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 16px; text-align: left;
  border: 0; border-bottom: 1px solid var(--border); background: transparent; font: inherit; color: inherit; cursor: pointer;
}
.meet-item:last-child { border-bottom: 0; }
.meet-item:hover { background: var(--surface-3); }
.meet-time { flex: none; min-width: 84px; font-size: 12.5px; font-weight: 800; color: var(--primary); line-height: 1.35; }
.meet-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meet-txt b { font-size: 14px; }
.meet-txt span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.meet-none { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 20px; color: var(--muted); font-size: 13px; }

/* ---------- Detalji i obrazac ---------- */
.meet-people { display: flex; flex-wrap: wrap; gap: 6px; }
.meet-person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-3); font-size: 13px; font-weight: 600; }
.meet-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); max-height: 300px; overflow-y: auto; }
.meet-pick-group { display: flex; flex-direction: column; gap: 8px; }
.meet-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.meet-pick .check { font-weight: 500; font-size: 13.5px; }

@media (max-width: 1100px) {
  .meet-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  /* na telefonu: u ćeliji samo broj dana i tačka sa brojem sastanaka, spisak ispod kalendara */
  .meet-day { min-height: 52px; align-items: center; padding: 4px 2px; }
  .meet-chips { display: none; }
  .meet-dotm {
    display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
    background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 800;
  }
  .meet-cal-head { gap: 6px; padding: 12px; }
  /* naziv meseca u svom redu, ispod njega strelice, „Danas” i novi sastanak */
  .meet-cal-head h3 { order: -1; flex-basis: 100%; min-width: 0; text-align: left; font-size: 16px; }
  #mNew span { display: none; }
}
