/* Leaves & Time Off product page (/leave-management) — this page's own mock-ups,
   prefix lv-. Shared kit: static/css/product.css. */
.lv-bal, .lv-req, .lv-cal, .lv-trail, .lv-rules, .lv-half { width: 270px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 14px 34px rgba(16, 24, 40, .1); font-size: .8rem; color: #1d2433; }

/* 1 — balances */
.lv-bal { display: grid; gap: 10px; }
.lv-bal-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: #f7f8fb; }
.lv-bal-card svg { width: 54px; height: 54px; transform: rotate(-90deg); flex: none; }
.lv-bal-card circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.lv-bal-card .trk { stroke: #e3e7f1; }
.lv-bal-card .arc { stroke: var(--c); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1) .3s; }
.pp-card.in .lv-bal-card .arc { stroke-dashoffset: calc(100 - var(--p)); }
.lv-bal-card b { font-size: 1.35rem; display: block; line-height: 1; }
.lv-bal-card small { color: #8a93a4; font-size: .7rem; }
.lv-bal-card span { display: block; font-weight: 600; margin-top: 3px; }
.lv-bal-card em { display: inline-block; font-style: normal; font-size: .66rem; font-weight: 600; color: #b45309; background: #fff4e0; padding: 2px 7px; border-radius: 999px; margin-top: 4px; }
.lv-bal-foot { display: flex; justify-content: space-between; color: #8a93a4; font-size: .74rem; padding: 0 4px; }
.lv-bal-foot b { color: #1d2433; }

/* 2 — the request */
.lv-req-type { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lv-dot { width: 10px; height: 10px; border-radius: 3px; background: #0c64ae; }
.lv-req-dates { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.lv-req-dates > div { flex: 1; padding: 9px 10px; border: 1px solid #e3e7ee; border-radius: 9px; background: #fafbfd; }
.lv-req-dates small { display: block; color: #8a93a4; font-size: .66rem; } .lv-req-dates > span { color: #a0a8b6; }
.lv-req-count { padding: 10px 12px; border-radius: 10px; background: #eaf2fb; }
.lv-req-count b { display: block; color: #0c64ae; font-size: .95rem; } .lv-req-count span { color: #4b5568; font-size: .72rem; }
.lv-req-after { margin-top: 10px; font-size: .74rem; color: #15803d; font-weight: 600; }

/* 3 — team calendar */
.lv-cal-head { display: flex; justify-content: space-between; margin-bottom: 10px; } .lv-cal-head span { color: #8a93a4; }
.lv-cal-days { display: grid; grid-template-columns: 30px repeat(5, 1fr); gap: 4px; margin-bottom: 6px; }
.lv-cal-days::before { content: ""; }
.lv-cal-days span { text-align: center; color: #a0a8b6; font-size: .68rem; font-weight: 600; }
.lv-cal-grid { display: grid; gap: 8px; }
.lv-cal-row { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 4px; }
.lv-cal-row .pp-av { width: 26px; height: 26px; font-size: .6rem; }
.lv-cal-track { position: relative; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, #f1f3f7 0, #f1f3f7 calc(20% - 4px), transparent calc(20% - 4px), transparent 20%); }
.lv-cal-track i { position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 20%); width: calc(var(--l) * 20% - 4px); border-radius: 6px; background: var(--c);
  transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 150ms + .3s); }
.pp-card.in .lv-cal-track i { transform: scaleX(1); }

/* 4 — approval trail */
.lv-trail-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lv-level { font-size: .66rem; font-weight: 700; color: #0c64ae; background: #eaf2fb; padding: 3px 8px; border-radius: 999px; }
.lv-step { display: flex; gap: 10px; align-items: center; padding: 8px 0; position: relative; }
.lv-step > i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c8cfdc; flex: none; }
.lv-step.done > i { background: #16a34a; border-color: #16a34a; }
.lv-step.now > i { border-color: #0c64ae; box-shadow: 0 0 0 4px rgba(12, 100, 174, .15); }
.lv-step:first-of-type::after { content: ""; position: absolute; left: 6px; top: 26px; height: 18px; width: 2px; background: #d9f2e3; }
.lv-step span { display: flex; flex-direction: column; } .lv-step small { color: #8a93a4; font-size: .72rem; }
.lv-btns { display: flex; gap: 8px; margin-top: 12px; }
.lv-btns span { flex: 1; text-align: center; padding: 8px; border-radius: 9px; font-weight: 600; font-size: .78rem; }
.lv-btns .no { background: #f1f3f7; color: #4b5568; } .lv-btns .yes { background: #16a34a; color: #fff; }
.pp-card.in .lv-btns .yes { animation: ppPulse 1.6s ease-in-out 1s 3; }

/* 5 — rules */
.lv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lv-chips span { padding: 5px 9px; border-radius: 999px; background: #f1f4fa; border: 1px solid #e3e7ee; font-size: .7rem; color: #3c4557;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; transition-delay: calc(var(--i) * 70ms + .3s); }
.pp-card.in .lv-chips span { opacity: 1; transform: none; }
.lv-rules-2 { display: block; margin-top: 14px; }

/* 6 — half days */
.lv-half small { color: #8a93a4; }
.lv-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; margin: 10px 0 12px; border-radius: 10px; background: #f1f3f7; }
.lv-seg span { text-align: center; padding: 7px 2px; border-radius: 8px; font-size: .7rem; color: #6b7487; white-space: nowrap; }
.lv-seg span.on { background: #fff; color: #0c64ae; font-weight: 700; box-shadow: 0 2px 6px rgba(16, 24, 40, .1); }
.lv-attach { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border: 1px dashed #c8cfdc; border-radius: 9px; color: #4b5568; font-size: .74rem; }
.lv-attach em { margin-left: auto; font-style: normal; color: #0c64ae; }
.lv-half-count { margin-top: 12px; text-align: right; font-weight: 700; color: #0c64ae; }

/* walkthrough step 4 — the month */
.lv-month-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .8rem; }
.lv-month-head span { display: inline-flex; align-items: center; gap: 6px; color: #4b5568; font-size: .74rem; }
.lv-month-head span i { width: 10px; height: 10px; border-radius: 3px; background: #0c64ae; }
.lv-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.lv-month-grid span { text-align: center; padding: 6px 0; border-radius: 7px; font-size: .74rem; background: #f7f8fb; color: #3c4557; }
.lv-month-grid span.h { background: none; color: #a0a8b6; font-size: .66rem; font-weight: 600; }
.lv-month-grid span.we { color: #b0b7c4; background: #fbfbfd; }
.lv-month-grid span.hol { background: #fff4e0; color: #b45309; font-weight: 600; }
.lv-month-grid span.off { background: #f7f8fb; color: #3c4557; }
.pp-scene.on .lv-month-grid span.off { animation: lvOff .4s both; animation-delay: .6s; }
@keyframes lvOff { to { background: #0c64ae; color: #fff; font-weight: 700; } }
.pp-scene .pp-sent { margin-top: 14px; }

@media (max-width: 640px) {
  .lv-month-grid span { padding: 4px 0; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-cal-track i, .lv-chips span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lv-bal-card .arc { transition: none; stroke-dashoffset: calc(100 - var(--p)); }
}
