/* Nexora IMS - Leave management. .lv-* is the admin page (leave.js), .lm-* is "My leave" for a faculty login (myleave.js). */

/* ---------- admin ---------- */
.lv-tabs { margin-bottom: 16px; }
.lv-av { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.lv-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lv-who b { display: block; font-weight: 700; }
.lv-who small { display: block; color: var(--muted); font-size: 12.5px; }
.lv-who .lv-id { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; opacity: .85; }
.lv-sub { margin-top: 3px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lv-rs { max-width: 260px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.lv-pd { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.lv-pd.p { color: #12805C; background: #DDF3E8; }
.lv-pd.u { color: #A15F08; background: #FDEBC8; }
.lv-ok { color: var(--green); }
.lv-chip { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 8px 8px 8px 12px; width: fit-content; max-width: calc(100% - 32px); border-radius: 999px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--navy-700); font-size: 13px; }
.lv-chip .i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lv-chip button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(11, 42, 107, .1); color: inherit; cursor: pointer; }
.lv-chip button:hover { background: rgba(11, 42, 107, .2); }
.lv-chip button .i { width: 12px; height: 12px; }
.lv-dl { display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.lv-dr { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.lv-dr:first-child { border-top: 0; }
.lv-dr span { color: var(--muted); font-weight: 600; }
.lv-dr b { font-weight: 600; word-break: break-word; }
.lv-prev, .lm-prev { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; padding: 9px 12px; min-height: 38px; border-radius: 10px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--navy-700); font-size: 13.5px; }
.lv-prev:empty, .lm-prev:empty { display: none; }
.lv-prev .i, .lm-prev .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lv-prev span, .lm-prev span { color: var(--muted); font-size: 12.5px; }
.lv-prev.bad, .lm-prev.bad { background: var(--red-bg); border-color: #F5C2C4; color: #B3262B; }
.lv-bal th small { display: block; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.lv-bal td.num small { display: block; font-size: 11.5px; color: var(--muted); }
.lv-bal tbody tr { cursor: pointer; }
.lv-bal .lv-of { color: var(--muted); }
.lv-bal .lv-no { color: var(--red); }
.lv-bal .lv-w { color: var(--amber); font-weight: 600; }
.lv-rb { padding: 6px 22px 22px; }
.lv-rb .field { margin-bottom: 12px; }

/* ---------- faculty: My leave ---------- */
.lm { max-width: 600px; margin: 0 auto; display: grid; gap: 14px; padding-bottom: 8px; }
.lm-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 20px 18px; border-radius: 26px; color: #fff; background: var(--grad-navy); position: relative; overflow: hidden; isolation: isolate; }
.lm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(80% 70% at 85% 15%, #000, transparent); mask-image: radial-gradient(80% 70% at 85% 15%, #000, transparent); }
.lm-hero small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.lm-hero h2 { margin: 2px 0 2px; font-size: 22px; color: #fff; }
.lm-hero span { font-size: 13px; opacity: .8; }
.lm-add { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 16px; background: var(--grad-accent); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(255, 106, 0, .8); }
.lm-add:disabled { opacity: .5; cursor: not-allowed; }
.lm-add .i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lm-t { position: relative; display: grid; gap: 2px; padding: 14px 14px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 22px -20px rgba(16, 41, 74, .55); }
.lm-t:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lm-t small { font-size: 12.5px; font-weight: 700; color: var(--muted); padding-right: 52px; }
.lm-t b { font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.lm-t.out b { color: var(--red); }
.lm-t span { font-size: 12px; color: var(--muted); }
.lm-t i { position: absolute; top: 12px; right: 12px; font-style: normal; }
.lm-pd { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.lm-pd.p { color: #12805C; background: #DDF3E8; }
.lm-pd.u { color: #A15F08; background: #FDEBC8; }
.lm-card { padding: 16px 14px 8px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(16, 41, 74, .07); }
.lm-card h4 { margin: 0 0 8px 4px; font-size: 15px; color: var(--navy-800); }
.lm-list { list-style: none; margin: 0; padding: 0; }
.lm-it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line-2); }
.lm-it:first-child { border-top: 0; }
.lm-dt { width: 46px; padding: 6px 0; text-align: center; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.lm-dt b { display: block; font-size: 18px; line-height: 1.1; color: var(--navy-800); }
.lm-dt small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lm-bd { min-width: 0; display: grid; gap: 2px; }
.lm-bd b { font-size: 14px; }
.lm-bd small { color: var(--muted); font-size: 12.5px; }
.lm-bd .lm-rs { color: var(--ink-2); }
.lm-bd em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.lm-rt { display: grid; justify-items: end; gap: 6px; }
.lm-st { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.lm-st.pending { color: #A15F08; background: #FDEBC8; }
.lm-st.approved { color: #12805C; background: #DDF3E8; }
.lm-st.rejected { color: #B3262B; background: #FBDADA; }
.lm-st.cancelled { color: #5B6680; background: #EEF1F7; }
.lm-x { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--red); cursor: pointer; }
.lm-empty { display: grid; justify-items: center; gap: 4px; padding: 26px 12px; text-align: center; color: var(--muted); }
.lm-empty .i { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--blue-500); }
.lm-empty b { color: var(--ink); }
.lm-empty small { font-size: 13px; }
.lm-form .field { margin-bottom: 12px; }
.lm-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lm-half { margin: 2px 0 8px; }
@media (max-width: 420px) { .lm-g2 { grid-template-columns: 1fr; gap: 0; } .lv-dr { grid-template-columns: 1fr; gap: 2px; } }
