/* Working hours, days off, and lead appetite. */

.av-now { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: var(--radius);
  margin-bottom: 14px; border: 1px solid; }
.av-now svg { width: 19px; height: 19px; flex: none; }
.av-now b { display: block; font-size: 14px; }
.av-now span { font-size: 12.5px; opacity: .85; }
.av-now.on { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.av-now.off { background: #fffbeb; border-color: #fde68a; color: #78350f; }

.av-card { margin-bottom: 12px; }
.av-enforce { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-size: 13.5px; }
.av-enforce input { width: 16px; height: 16px; }

.av-week { display: grid; gap: 6px; }
.av-day { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.av-day.off { opacity: .5; }
.av-dayname { display: flex; align-items: center; gap: 8px; width: 140px; flex: none; font-size: 13.5px; }
.av-dayname input { width: 15px; height: 15px; }
.av-day input[type=time] { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; }

.av-vac { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.av-vac input[type=date] { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; }
.av-vac input[type=text] { flex: 1; min-width: 140px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px; }

.av-leadmodes { display: flex; flex-wrap: wrap; gap: 8px; }
.av-lead { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--border);
  border-radius: 9px; cursor: pointer; font-size: 13px; }
.av-lead.on { border-color: var(--blue); background: #eff6ff; color: #1e40af; font-weight: 600; }
.av-lead input { width: 14px; height: 14px; }

.av-tip { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700;
  cursor: help; margin-left: 6px; }

/* ---- The admin roster ---- */
.av-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.av-person { padding: 12px 14px; }
.av-person-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; flex-wrap: wrap; }
.av-leadpill { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px;
  background: var(--bg); color: var(--muted); white-space: nowrap; }
.av-leadpill.av-more { background: #ecfdf5; color: #047857; }
.av-leadpill.av-fewer { background: #fffbeb; color: #92400e; }
.av-leadpill.av-none { background: #fef2f2; color: #b91c1c; }

.av-weekline { display: flex; gap: 4px; margin-top: 8px; }
.av-weekline span { font-size: 10.5px; font-weight: 700; width: 24px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; background: #ecfdf5; color: #047857; }
.av-weekline span.off { background: var(--bg); color: var(--muted); font-weight: 400; }

.av-vacs-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 7px;
  font-size: 12px; color: var(--muted); }
.av-vacs-line svg { width: 13px; height: 13px; }

@media (max-width: 640px) {
  .av-dayname { width: 110px; }
  .av-roster { grid-template-columns: 1fr; }
}
