/* =========================================================================
   Events -- HR's page for the Dashboard (2026-12-04).

   Built on leave.css (.lv: tabs, cards, table, buttons, fields, pills) and
   employees.css (stat buttons, avatars, switch, close button). Only what this
   page adds is here, scoped under .eva.
   ========================================================================= */

.eva .eva-head { align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.eva .eva-head .lv-help { margin-top: 4px; }
.eva-head-acts { display: flex; gap: 10px; margin-top: 6px; }

.eva-warn {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
	margin: 14px 0 0; padding: 10px 14px; border-radius: 6px;
	background: #fff4e5; border-left: 3px solid #f0a020; font-size: 13.5px; color: #5e4300;
}
.eva-warn.is-soft { background: #f1f6fb; border-left-color: #9cc8f0; color: #24527a; }
.eva-warn a { font-weight: 600; color: var(--lv-fill); }

.eva .eva-stats { margin: 16px 0 0; }
.eva .lv-tabs { margin-top: 18px; }

/* tables */
.eva-toolbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
	padding: 14px 22px; border-bottom: 1px solid var(--lv-rule-lt);
}
.eva-toolbar .lv-seg button { height: 34px; }
.eva-spacer { flex: 1 1 auto; }
.eva-table td { vertical-align: middle; }
.eva-row { cursor: pointer; }
.eva-row:hover td { background: var(--lv-tint) !important; }
.eva-row.is-past td { color: var(--lv-muted); }
.eva-row.is-past .eva-date { opacity: .6; }
.eva-nowrap { white-space: nowrap; }
.eva-acts { text-align: right; }
.eva-acts .lv-btn + .lv-btn { margin-left: 14px; }
.eva-ann b { color: var(--lv-ink); font-weight: 600; }
.eva-clip { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eva-link { display: inline-block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--lv-fill); }
.eva-pin {
	display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px;
	background: #e6f2fd; color: #035fa5; font-size: 11.5px; font-weight: 600;
}

.eva-date {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-right: 10px; vertical-align: middle;
	border-radius: 6px; background: #fdecec; border: 1px solid #f6cdc9;
}
.eva-date b { font-size: 16px; font-weight: 700; color: #b3261e; line-height: 1.05; }
.eva-date small { font-size: 10.5px; font-weight: 600; color: #b3261e; text-transform: uppercase; }
.eva-day { color: var(--lv-body); }
.eva-thumb { width: 120px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--lv-rule); }
.eva-nopic { font-size: 12.5px; color: var(--lv-muted); font-style: italic; }

/* celebrations */
.eva-cel-help { margin: 0 0 14px; }
.eva-cel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.eva-cel-card { padding: 16px 18px; }
.eva-cel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.eva-cel-head .lv-card-title { font-size: 15px; }
.eva-cel-list { list-style: none; margin: 0; padding: 0; }
.eva-cel-list li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; margin: 0 -6px; border-radius: 6px; }
.eva-cel-list li + li { border-top: 1px solid var(--lv-rule-lt); }
.eva-cel-list li.is-today { background: #fff8ec; }
.eva-cel-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.eva-cel-t b { font-size: 13.5px; font-weight: 600; color: var(--lv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eva-cel-t small { font-size: 12px; color: var(--lv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eva-cel-d { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: var(--lv-ink); white-space: nowrap; }
.eva-cel-list li.is-today .eva-cel-d { color: #8a5300; }
.eva-cel-more { margin: 6px 0 0; font-size: 12.5px; color: var(--lv-muted); }
.eva-cel-none { margin: 4px 0 0; font-size: 13px; color: var(--lv-muted); }

/* side panel */
.eva-scrim { position: fixed; inset: 0; z-index: 1040; background: rgba(19, 30, 45, .35); }
.eva-panel {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 1041;
	width: 560px; max-width: 100vw; display: flex; flex-direction: column;
	background: #fff; box-shadow: -12px 0 32px rgba(19, 19, 19, .18);
}
.eva-panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--lv-rule-lt); }
.eva-panel-head h3 { flex: 1 1 auto; margin: 0; font-size: 18px; font-weight: 600; color: var(--lv-ink); }
.eva-panel-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 22px; }
.eva-panel-body .lv-field { margin-bottom: 16px; }
.eva-panel-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--lv-rule); }
.eva-pinopt { margin-bottom: 18px; }

/* dashboard preview -- same colours as the Dashboard's announcements box */
.eva-preview { margin-top: 6px; }
.eva-preview-k { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lv-muted); }
.eva-preview-card { padding: 14px 16px; border: 1px solid #dee2e6; border-radius: 4px; background: #fff; font-family: 'roboto', 'sans-serif'; }
.eva-preview-card h4 { margin: 0 0 8px; font-size: 16px; font-weight: 500; color: #000; }
.eva-prev-item { display: flex; gap: 12px; padding: 10px 0; }
.eva-prev-item.is-pinned { background: #F0F8FF; border-radius: 6px; padding: 10px; }
.eva-prev-item img { flex: 0 0 45px; width: 45px; height: 45px; }
.eva-prev-top { display: flex; align-items: center; gap: 8px; }
.eva-prev-top h5 { margin: 0; font-size: 15px; font-weight: 500; color: #0091FF; }
.eva-prev-pin { padding: 1px 8px; border-radius: 10px; background: #0091FF; color: #fff; font-size: 11px; font-weight: 500; }
.eva-prev-text { margin: 4px 0 0; font-size: 14px; color: #000; line-height: 1.45; white-space: pre-line; }
.eva-prev-link { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 500; color: #0091FF; }
.eva-prev-meta { margin: 4px 0 0; font-size: 12px; color: #7f7f7f; }

/* holiday picture */
.eva-pic { position: relative; width: 100%; max-width: 388px; aspect-ratio: 388 / 155; border-radius: 8px; overflow: hidden; border: 1px solid var(--lv-rule); background: var(--lv-ground); }
.eva-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eva-pic-tag { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11.5px; }
.eva-pic-acts { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.eva-file { position: relative; overflow: hidden; margin: 0; }
.eva-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

@media (max-width: 1199px) { .eva-cel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.eva-cel { grid-template-columns: 1fr; }
	.eva-head-acts { width: 100%; }
	.eva-head-acts .lv-btn { flex: 1 1 0; }
	.eva-toolbar { padding: 12px 14px; }
	.eva-table th:nth-child(3), .eva-table td:nth-child(3) { display: none; }
	.eva-clip { max-width: 60vw; }
	.eva-panel { width: 100vw; }
}
