/* =========================================================================
   Leave -- component styles.

   Built on portal-tokens.css, so type, colour and spacing match the rest of
   SmartTalent instead of being chosen per screen. Every rule is scoped under
   .lv, the Leave page's root, so nothing here can reach another page.

   WHY THIS FILE EXISTS. The portal loads Bootstrap 3.4.1, but the Leave
   screens were written with Bootstrap 4 class names -- btn-outline-secondary,
   form-control-sm, table-sm, badge-warning. None of those are defined in any
   stylesheet the portal loads, so every button, compact input and table on
   the page rendered as an unstyled browser default: the flat grey boxes,
   the primary action that looked disabled, the active filter that looked
   like every other. Section 9 below restores that contract for markup that
   still uses those names; everything else uses the .lv- components.
   ========================================================================= */

.lv {
	--lv-primary:      var(--pt-primary, #0091ff);
	--lv-fill:         var(--pt-primary-dark, #035fa5);   /* carries white text at AA */
	--lv-fill-hover:   #024b83;
	--lv-ink:          var(--pt-ink, #131313);
	--lv-body:         var(--pt-body, #495057);
	--lv-muted:        var(--pt-muted, #6c757d);
	--lv-rule:         #e3e7eb;
	--lv-rule-lt:      var(--pt-rule-lt, #f2f4f6);
	--lv-field-border: #ced4da;
	--lv-ground:       var(--pt-ground, #f7f9fb);
	--lv-tint:         var(--pt-tint, #f0f8ff);
	--lv-radius:       var(--pt-radius-lg, 6px);
	--lv-shadow:       0 1px 3px rgba(19, 19, 19, .06), 0 1px 2px rgba(19, 19, 19, .04);
	--lv-focus:        0 0 0 3px rgba(0, 145, 255, .18);

	font-family: var(--pt-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
	font-size: 14px;
	line-height: 1.5;
	color: var(--lv-body);
}
.lv *, .lv *::before, .lv *::after { box-sizing: border-box; }

/* ------------------------------------------------------------ 1. layout */

/* Side gutters come from main.css's .page-container, like every other page;
   only the bottom breathing room is added here. */
.lv .page-container.lv-page { padding-bottom: 32px; }

.lv-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 4px; }
.lv-head .page_title { margin-bottom: 0; }
.lv-help { font-size: 13px; color: var(--lv-muted); margin: 6px 0 0; }

.lv-grid-kpi {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

/* History leads and takes the width; the calendar is a glance. */
.lv-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 20px;
	align-items: start;
}

/* Form on the left, a live consequence of it on the right. Full width, like
   every other tab -- a capped form left a dead band down the right of a wide
   screen. */
.lv-apply {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 480px;
	gap: 24px;
	align-items: start;
}

.lv-stack > * + * { margin-top: 20px; }

@media (max-width: 1440px) {
	.lv-apply { grid-template-columns: minmax(0, 1fr) 420px; }
}
@media (max-width: 1199px) {
	.lv-split { grid-template-columns: minmax(0, 1fr) 320px; }
	.lv-apply { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 991px) {
	.lv-split, .lv-apply { grid-template-columns: 1fr; }
	.lv-summary { position: static !important; }
}

/* -------------------------------------------------------------- 2. tabs */

.lv-tabs {
	display: flex;
	gap: 4px;
	/* The rule is an inset shadow, not a border: shadows paint beneath the
	   children, so the active tab's underline covers it without the -1px
	   overlap that used to overflow the box. overflow-y must be stated --
	   overflow-x:auto alone silently makes it auto too, and the 1px overflow
	   drew a vertical scrollbar at the end of the bar. */
	box-shadow: inset 0 -1px 0 var(--lv-rule);
	margin: 18px 0 22px;
	overflow-x: auto;
	overflow-y: hidden;
}
.lv-tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	padding: 10px 16px 9px;
	font: 500 14px/1.4 inherit;
	font-family: inherit;
	color: var(--lv-body);
	white-space: nowrap;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color .15s, border-color .15s;
}
.lv-tab:hover { color: var(--lv-ink); }
.lv-tab:focus-visible { outline: none; box-shadow: var(--lv-focus); border-radius: 4px 4px 0 0; }
/* Same 3px brand underline as the page title above it. */
.lv-tab.is-active { color: var(--lv-fill); border-bottom-color: var(--lv-primary); font-weight: 600; }
.lv-tab .lv-count {
	min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: 10px; background: #fff4e5; color: #8a5300;
	font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
}

/* ------------------------------------------------------------ 3. cards */

.lv-card {
	background: #fff;
	border: 1px solid var(--lv-rule);
	border-radius: var(--lv-radius);
	box-shadow: var(--lv-shadow);
	padding: 20px 22px;
}
.lv-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.lv-card-title { font-size: 16px; font-weight: 600; color: var(--lv-ink); margin: 0; line-height: 1.3; }
.lv-card-sub   { font-size: 13px; color: var(--lv-muted); }
.lv-card-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lv-card-flush { padding: 0; }
.lv-card-flush > .lv-card-head { padding: 18px 22px 0; margin-bottom: 12px; }

.lv-section + .lv-section { border-top: 1px solid var(--lv-rule-lt); margin-top: 22px; padding-top: 22px; }
.lv-section-title {
	font-size: 13px; font-weight: 600; color: var(--lv-ink);
	text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px;
	display: flex; align-items: center; gap: 8px;
}
.lv-step {
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--lv-tint); color: var(--lv-fill);
	font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}

/* ------------------------------------------------------- 4. balance KPI */

.lv-kpi { display: flex; flex-direction: column; }
.lv-kpi-top { display: flex; align-items: center; gap: 8px; }
.lv-kpi-name { font-size: 14px; font-weight: 600; color: var(--lv-ink); }
.lv-kpi-value { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 12px; }
.lv-kpi-value b { font-size: 32px; font-weight: 600; color: var(--lv-ink); line-height: 1; letter-spacing: -.01em; }
.lv-kpi-value span { font-size: 13px; color: var(--lv-muted); }

.lv-bar { height: 6px; background: var(--lv-rule-lt); border-radius: 3px; overflow: hidden; }
.lv-bar > i { display: block; height: 100%; background: var(--lv-fill); border-radius: 3px; transition: width .3s; }
.lv-bar.is-high > i { background: #c0392b; }

.lv-ledger { width: 100%; margin-top: 14px; font-size: 13px; border-collapse: collapse; }
.lv-ledger td { padding: 3px 0; color: var(--lv-body); }
.lv-ledger td + td { text-align: right; font-variant-numeric: tabular-nums; color: var(--lv-ink); }
.lv-ledger .is-warn td { color: #8a5300; }
.lv-ledger .is-bad td  { color: #b3261e; }
.lv-ledger .is-total td { border-top: 1px solid var(--lv-rule); padding-top: 7px; font-weight: 600; color: var(--lv-ink); }

/* ------------------------------------------------------- 5. pills/badges */

.lv-pill {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px 10px; border-radius: 999px;
	font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap;
	text-transform: capitalize;
}
.lv-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.lv-pill.is-approved  { background: #e6f4ea; color: #176c2c; }
.lv-pill.is-pending   { background: #fff4e5; color: #8a5300; }
.lv-pill.is-rejected  { background: #fdecec; color: #b3261e; }
.lv-pill.is-cancelled { background: #f1f3f5; color: #5c636a; }

.lv-tag {
	display: inline-block; padding: 1px 8px; border-radius: 4px;
	font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.lv-tag.is-paid   { background: #e6f4ea; color: #176c2c; }
.lv-tag.is-unpaid { background: #f1f3f5; color: #5c636a; }

/* ----------------------------------------------------------- 6. buttons */

.lv-btn {
	appearance: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 38px; padding: 0 18px;
	border: 1px solid transparent; border-radius: 4px;
	font: 600 14px/1 inherit; font-family: inherit;
	cursor: pointer; text-decoration: none !important; white-space: nowrap;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.lv-btn:focus-visible { outline: none; box-shadow: var(--lv-focus); }
.lv-btn[disabled], .lv-btn.is-disabled { opacity: .45; cursor: not-allowed; }

.lv-btn-primary { background: var(--lv-fill); color: #fff !important; }
.lv-btn-primary:not([disabled]):hover { background: var(--lv-fill-hover); }

.lv-btn-secondary { background: #fff; border-color: var(--lv-field-border); color: var(--lv-ink) !important; }
.lv-btn-secondary:not([disabled]):hover { background: var(--lv-ground); border-color: #adb5bd; }

.lv-btn-success { background: #1e7e34; color: #fff !important; }
.lv-btn-success:not([disabled]):hover { background: #176c2c; }
.lv-btn-danger  { background: #fff; border-color: #e3a9a4; color: #b3261e !important; }
.lv-btn-danger:not([disabled]):hover { background: #fdecec; }

.lv-btn-link {
	background: none; border: 0; padding: 0; height: auto;
	color: var(--lv-fill) !important; font-weight: 600;
}
.lv-btn-link:hover { text-decoration: underline !important; }
.lv-btn-link.is-danger { color: #b3261e !important; }

.lv-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.lv-btn-block { width: 100%; }

/* Segmented control: date ranges, half-day choice. The active segment is a
   solid fill, not a shade of grey, so which one is in force is unmistakable. */
.lv-seg {
	display: inline-flex; flex-wrap: wrap;
	border: 1px solid var(--lv-field-border); border-radius: 4px; overflow: hidden;
	background: #fff;
}
.lv-seg button {
	appearance: none; border: 0; border-right: 1px solid var(--lv-field-border);
	background: transparent; height: 34px; padding: 0 14px;
	font: 500 13px/1 inherit; font-family: inherit; color: var(--lv-body);
	cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.lv-seg button:last-child { border-right: 0; }
.lv-seg button:hover:not([disabled]) { background: var(--lv-ground); color: var(--lv-ink); }
.lv-seg button:focus-visible { outline: none; box-shadow: inset var(--lv-focus); }
.lv-seg button.is-active { background: var(--lv-fill); color: #fff; font-weight: 600; }
.lv-seg button[disabled] { color: #adb5bd; cursor: not-allowed; }

/* ------------------------------------------------------------ 7. fields */

.lv-field { margin-bottom: 18px; }
.lv-field:last-child { margin-bottom: 0; }
.lv-label {
	display: block; margin: 0 0 6px;
	font-size: 13px; font-weight: 600; color: var(--lv-ink);
}
.lv-label .lv-opt { font-weight: 400; color: var(--lv-muted); }
.lv-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--lv-muted); line-height: 1.45; }
.lv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 575px) { .lv-row { grid-template-columns: 1fr; } }

.lv-input, .lv-select, .lv-textarea {
	display: block; width: 100%;
	height: 40px; padding: 0 12px;
	border: 1px solid var(--lv-field-border); border-radius: 4px;
	background: #fff; color: var(--lv-ink);
	font: 400 14px/1.4 inherit; font-family: inherit;
	transition: border-color .15s, box-shadow .15s;
	box-shadow: none;
}
.lv-select {
	-webkit-appearance: none; appearance: none; padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%236c757d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
.lv-textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; }
.lv-input:focus, .lv-select:focus, .lv-textarea:focus {
	outline: none; border-color: var(--lv-primary); box-shadow: var(--lv-focus);
}
.lv-input::placeholder, .lv-textarea::placeholder { color: #8a939b; }
.lv-input-sm, .lv-select.lv-input-sm { height: 34px; font-size: 13px; }

/* ----------------------------------------------------- 8. leave-type tiles */

.lv-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.lv-type {
	appearance: none; text-align: left; cursor: pointer;
	position: relative; display: flex; flex-direction: column; gap: 2px;
	padding: 14px 16px; min-height: 104px;
	background: #fff; border: 1px solid var(--lv-field-border); border-radius: var(--lv-radius);
	font-family: inherit; color: var(--lv-body);
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.lv-type:hover { border-color: #9fb3c8; }
.lv-type:focus-visible { outline: none; box-shadow: var(--lv-focus); }
.lv-type-name { font-size: 14px; font-weight: 600; color: var(--lv-ink); padding-right: 26px; }
.lv-type-num  { font-size: 24px; font-weight: 600; color: var(--lv-ink); line-height: 1.2; margin-top: 6px; font-variant-numeric: tabular-nums; }
.lv-type-unit { font-size: 12.5px; color: var(--lv-muted); }
.lv-type.is-empty .lv-type-num { color: var(--lv-muted); }
.lv-type.is-active {
	border-color: var(--lv-fill); background: var(--lv-tint);
	box-shadow: 0 0 0 1px var(--lv-fill) inset;
}
.lv-type .lv-check {
	position: absolute; top: 12px; right: 12px;
	width: 20px; height: 20px; border-radius: 50%;
	border: 1.5px solid var(--lv-field-border); background: #fff;
}
.lv-type.is-active .lv-check {
	border-color: var(--lv-fill); background: var(--lv-fill);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center;
}

/* ---------------------------------------------------------- 9. CC chips */

.lv-chips {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	min-height: 40px; padding: 4px 8px;
	border: 1px solid var(--lv-field-border); border-radius: 4px; background: #fff;
	cursor: text; transition: border-color .15s, box-shadow .15s;
}
.lv-chips.is-focus { border-color: var(--lv-primary); box-shadow: var(--lv-focus); }
.lv-chips input {
	flex: 1 1 180px; min-width: 140px; height: 30px;
	border: 0; outline: none; padding: 0 4px; background: transparent;
	font: 400 14px/1 inherit; font-family: inherit; color: var(--lv-ink);
}
.lv-chip {
	display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
	height: 28px; padding: 0 4px 0 10px;
	background: var(--lv-tint); border: 1px solid #cfe5fb; border-radius: 14px;
	font-size: 13px; color: var(--lv-ink);
}
.lv-chip small { color: var(--lv-muted); font-size: 12px; }
.lv-chip button {
	appearance: none; border: 0; background: transparent; cursor: pointer;
	width: 20px; height: 20px; border-radius: 50%;
	font-size: 15px; line-height: 20px; color: var(--lv-muted); padding: 0;
}
.lv-chip button:hover { background: rgba(0, 0, 0, .08); color: var(--lv-ink); }
.lv-chip.is-invalid { background: #fdecec; border-color: #f1b9b4; color: #b3261e; }

.lv-suggest {
	position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
	max-height: 240px; overflow-y: auto;
	background: #fff; border: 1px solid var(--lv-rule); border-radius: var(--lv-radius);
	box-shadow: 0 8px 24px rgba(19, 19, 19, .12); padding: 4px 0;
}
.lv-suggest button {
	appearance: none; display: flex; flex-direction: column; align-items: flex-start;
	width: 100%; border: 0; background: none; text-align: left; cursor: pointer;
	padding: 7px 12px; font-family: inherit;
}
.lv-suggest button:hover, .lv-suggest button.is-hot { background: var(--lv-tint); }
.lv-suggest b { font-size: 13.5px; font-weight: 600; color: var(--lv-ink); }
.lv-suggest small { font-size: 12px; color: var(--lv-muted); }

/* ---------------------------------------------------------- 10. summary */

/* The scroller is .page-wrapper, which already starts below the nav, so the
   offset is measured from its top edge, not the window's. */
.lv-summary { position: sticky; top: 16px; }
.lv-sum-row {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	padding: 9px 0; border-bottom: 1px solid var(--lv-rule-lt); font-size: 13.5px;
}
.lv-sum-row:last-of-type { border-bottom: 0; }
.lv-sum-row dt { font-weight: 400; color: var(--lv-muted); margin: 0; }
.lv-sum-row dd { margin: 0; text-align: right; color: var(--lv-ink); font-weight: 500; }
.lv-sum-big {
	display: flex; align-items: baseline; gap: 8px;
	background: var(--lv-ground); border-radius: var(--lv-radius);
	padding: 14px 16px; margin: 4px 0 14px;
}
.lv-sum-big b { font-size: 30px; font-weight: 600; color: var(--lv-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.lv-sum-big span { font-size: 13px; color: var(--lv-muted); }
.lv-sum-after { font-size: 12.5px; color: var(--lv-muted); margin: 8px 0 0; }
.lv-sum-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.lv-people { margin: 6px 0 0; padding: 0; list-style: none; }
.lv-people li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--lv-ink); }
.lv-people li small { color: var(--lv-muted); }
.lv-avatar {
	flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
	background: #e7eef6; color: var(--lv-fill);
	font-size: 11px; font-weight: 700; line-height: 26px; text-align: center;
}

/* ---------------------------------------------------------- 11. callout */

.lv-callout {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 10px 12px; border-radius: var(--lv-radius);
	font-size: 13px; line-height: 1.45; margin-top: 12px;
}
.lv-callout svg { flex: 0 0 16px; margin-top: 1px; }
.lv-callout.is-warn   { background: #fff8eb; border: 1px solid #f6dfae; color: #6b4400; }
.lv-callout.is-info   { background: var(--lv-tint); border: 1px solid #cfe5fb; color: #0b4a7a; }
.lv-callout.is-danger { background: #fdecec; border: 1px solid #f1b9b4; color: #8c1d16; }
.lv-callout.is-ok     { background: #e6f4ea; border: 1px solid #bfe0c9; color: #145a25; }

.lv-alert { margin-bottom: 16px; }

/* ------------------------------------------------------------ 12. table */

.lv-table-wrap { overflow-x: auto; }
.lv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lv-table th {
	position: sticky; top: 0; z-index: 1;
	background: var(--lv-ground); color: var(--lv-muted);
	font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
	text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--lv-rule); white-space: nowrap;
}
.lv-table td { padding: 12px 14px; border-bottom: 1px solid var(--lv-rule-lt); color: var(--lv-ink); vertical-align: middle; }
.lv-table tbody tr:hover td { background: #fafcfe; }
.lv-table tbody tr:last-child td { border-bottom: 0; }
.lv-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.lv-table .is-muted { color: var(--lv-muted); }
.lv-table .lv-sub { display: block; font-size: 12.5px; color: var(--lv-muted); margin-top: 1px; }
.lv-table .lv-clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-card-flush .lv-table th:first-child, .lv-card-flush .lv-table td:first-child { padding-left: 22px; }
.lv-card-flush .lv-table th:last-child,  .lv-card-flush .lv-table td:last-child  { padding-right: 22px; }
.lv-scroll { max-height: 560px; overflow-y: auto; }

/* --------------------------------------------------------- 13. toolbar */

.lv-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.lv-toolbar .lv-field { margin: 0; }
.lv-toolbar .lv-select { min-width: 190px; }
.lv-meta { font-size: 13px; color: var(--lv-muted); }
.lv-meta b { color: var(--lv-ink); font-weight: 600; }
.lv-divider { height: 1px; background: var(--lv-rule-lt); margin: 16px 0; }

/* -------------------------------------------------------- 14. calendar */

.lv-cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.lv-cal-head .lv-card-title { font-size: 15px; margin-right: auto; }
.lv-icon-btn {
	appearance: none; width: 30px; height: 30px; padding: 0;
	border: 1px solid var(--lv-field-border); border-radius: 4px; background: #fff;
	color: var(--lv-body); cursor: pointer; font-size: 16px; line-height: 28px;
}
.lv-icon-btn:hover { background: var(--lv-ground); }
.lv-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.lv-cal-dow { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--lv-muted); padding-bottom: 4px; }
.lv-day {
	position: relative; height: 40px; border-radius: 5px;
	border: 1px solid var(--lv-rule-lt); background: #fff;
	font-size: 12.5px; font-weight: 500; color: var(--lv-ink);
	padding: 3px 5px; overflow: hidden;
}
.lv-day.is-blank   { border: 0; background: transparent; }
.lv-day.is-off     { background: var(--lv-ground); color: #9aa3ab; }
.lv-day.is-holiday { background: #fdecec; border-color: #f6cdc9; }
.lv-day.is-mine-approved { background: #e6f4ea; border-color: #bfe0c9; }
.lv-day.is-mine-pending  { background: #fff4e5; border-color: #f6dfae; }
.lv-day.is-today { box-shadow: 0 0 0 2px var(--lv-primary) inset; font-weight: 700; color: var(--lv-fill); }
.lv-day .lv-dots { position: absolute; left: 5px; bottom: 4px; display: flex; gap: 3px; }
.lv-day .lv-dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.lv-day .lv-away { position: absolute; right: 4px; bottom: 2px; font-size: 10px; font-weight: 600; color: var(--lv-muted); }
.lv-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--lv-muted); }
.lv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lv-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.lv-upcoming { list-style: none; margin: 0; padding: 0; }
.lv-upcoming li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--lv-rule-lt); }
.lv-upcoming li:last-child { border-bottom: 0; padding-bottom: 0; }
.lv-date-chip {
	flex: 0 0 46px; text-align: center; border-radius: 6px; padding: 4px 0;
	background: var(--lv-ground); border: 1px solid var(--lv-rule);
}
.lv-date-chip b { display: block; font-size: 16px; font-weight: 700; color: var(--lv-ink); line-height: 1.1; }
.lv-date-chip small { display: block; font-size: 10.5px; font-weight: 600; color: var(--lv-muted); text-transform: uppercase; }
.lv-date-chip.is-holiday { background: #fdecec; border-color: #f6cdc9; }
.lv-date-chip.is-holiday b { color: #b3261e; }
.lv-upcoming .lv-what { font-size: 13.5px; font-weight: 600; color: var(--lv-ink); }
.lv-upcoming .lv-when { font-size: 12.5px; color: var(--lv-muted); }

/* ----------------------------------------------------------- 15. empty */

.lv-empty { text-align: center; padding: 36px 16px; color: var(--lv-muted); }
.lv-empty svg { margin-bottom: 10px; }
.lv-empty h5 { font-size: 15px; font-weight: 600; color: var(--lv-ink); margin: 0 0 4px; }
.lv-empty p { font-size: 13.5px; margin: 0 0 14px; }

/* ===================================================================
   16. The class contract, restored.

   Markup elsewhere on this page -- the HR Administration tab is included
   from its own template -- still uses Bootstrap 4 names that the portal's
   Bootstrap 3 never defined. Rather than leave those as browser defaults,
   they are given the .lv- look here, scoped to the Leave page only.
   =================================================================== */

.lv .custom_btn_blue,
.lv .btn.btn-sm.custom_btn_blue {
	background: var(--lv-fill); border: 1px solid var(--lv-fill); color: #fff;
	border-radius: 4px; font-weight: 600; font-size: 13px; padding: 6px 14px; line-height: 1.4;
}
.lv .custom_btn_blue:hover:not([disabled]) { background: var(--lv-fill-hover); color: #fff; }
.lv .custom_btn_blue[disabled] { opacity: .45; }

.lv .btn-outline-secondary {
	background: #fff; border: 1px solid var(--lv-field-border); color: var(--lv-ink);
	border-radius: 4px; font-size: 13px; padding: 5px 12px; line-height: 1.4;
}
.lv .btn-outline-secondary:hover { background: var(--lv-ground); }

.lv .form-control.form-control-sm {
	height: 34px; padding: 4px 10px; font-size: 13px; border-radius: 4px;
	border-color: var(--lv-field-border); box-shadow: none; color: var(--lv-ink);
}
.lv .form-control.form-control-sm:focus { border-color: var(--lv-primary); box-shadow: var(--lv-focus); }

.lv .table.table-sm { font-size: 13.5px; }
.lv .table.table-sm > thead > tr > th {
	background: var(--lv-ground); color: var(--lv-muted);
	font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
	border-bottom: 1px solid var(--lv-rule); padding: 9px 10px; white-space: nowrap;
}
.lv .table.table-sm > tbody > tr > td { padding: 9px 10px; border-top: 1px solid var(--lv-rule-lt); vertical-align: middle; }

.lv .badge.badge-warning { background: #fff4e5; color: #8a5300; }

/* The HR tab's own cards used inline 15px #345675 headings; bring them to
   the same title style as every other card on the page. */
.lv .lv-hr h4 { font-size: 16px !important; font-weight: 600; color: var(--lv-ink) !important; }
.lv .lv-hr > div > .row > div > div[style*="border:1px solid #e6e6e6"],
.lv .lv-hr div[style*="border:1px solid #e6e6e6"] {
	border-color: var(--lv-rule) !important; box-shadow: var(--lv-shadow);
	border-radius: var(--lv-radius) !important; padding: 20px 22px !important;
}

/* ------------------------------------------------ 17. apply: dates row */

.lv-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; }
.lv-dates .lv-field { margin-bottom: 0; }
.lv-date { width: 190px; }
.lv-dates-arrow { color: var(--lv-muted); font-size: 18px; padding-bottom: 8px; }
.lv-dates-dur { margin-left: 18px; }
.lv-dates-dur .lv-seg button { height: 40px; }

/* ----------------------------------------- 18. apply: a roomier summary
   The summary is what people check before pressing Submit, so it reads at
   body size and above, not as fine print. */

.lv-summary.lv-card { padding: 24px 26px; }
.lv-summary .lv-card-title { font-size: 17px; }
.lv-summary .lv-sum-big { padding: 18px 20px; }
.lv-summary .lv-sum-big b { font-size: 40px; }
.lv-summary .lv-sum-big span { font-size: 13.5px; line-height: 1.4; }
.lv-summary .lv-sum-row { font-size: 14.5px; padding: 11px 0; }
.lv-summary .lv-people li { font-size: 14px; padding: 6px 0; }
.lv-summary .lv-avatar { flex-basis: 30px; width: 30px; height: 30px; line-height: 30px; font-size: 12px; }
.lv-summary .lv-btn { height: 44px; font-size: 15px; }
.lv-summary .lv-sum-after { font-size: 13px; }

/* ------------------------------------------- 19. rows that open a record */

.lv-table tr.lv-row-link { cursor: pointer; }
.lv-table tr.lv-row-link:hover td { background: var(--lv-tint); }
.lv-table tr.lv-row-link .lv-name-link { color: var(--lv-fill); font-weight: 600; }
.lv-table tr.lv-row-link:hover .lv-name-link { text-decoration: underline; }
