/* Clockinator Pro — Leave Requests (all roles, frontend + wp-admin). Fully scoped and sized so theme
 * typography cannot leak in; matches the administrator Leaves page. */

.btcl-lv { color: #1e293b; font-size: 14px; line-height: 1.45; text-align: left; -webkit-font-smoothing: antialiased; }
.btcl-lv *, .btcl-lv *::before, .btcl-lv *::after { box-sizing: border-box; }
.btcl-lv h2, .btcl-lv h3, .btcl-lv p { font-family: inherit; letter-spacing: normal; text-transform: none; }
.btcl-lv .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
.btcl-lv--admin { max-width: 1480px; margin: 0 auto; padding: 24px 22px 40px; }
.btcl-lv--front { padding: 0 0 24px; }

.btcl-lv .btcl-lv-card { background: #fff; border: 1px solid #e7eaf3; border-radius: 16px; box-shadow: 0 8px 24px rgba(31, 41, 55, .04); }

/* Header */
.btcl-lv .btcl-lv-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 18px; padding: 22px 24px; }
.btcl-lv .btcl-lv-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 6px; color: #6d5ce7; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.btcl-lv .btcl-lv-title { margin: 0; padding: 0; color: #172033; font-size: 26px; font-weight: 750; line-height: 1.2; }
.btcl-lv .btcl-lv-subtitle { margin: 6px 0 0; color: #667085; font-size: 13px; line-height: 1.5; }
.btcl-lv .btcl-lv-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btcl-lv .btcl-lv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; margin: 0; padding: 0 18px !important; border: 1px solid transparent !important; border-radius: 12px !important; font-size: 13px !important; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none; transition: background .15s ease, border-color .15s ease; }
.btcl-lv .btcl-lv-btn--primary { background: #6d5ce7 !important; color: #fff !important; box-shadow: 0 8px 18px rgba(109, 92, 231, .22); }
.btcl-lv .btcl-lv-btn--primary:hover, .btcl-lv .btcl-lv-btn--primary:focus { background: #5847d8 !important; }
.btcl-lv .btcl-lv-btn--ghost { background: #fff !important; border-color: #dfe3ee !important; color: #4c3fc4 !important; }
.btcl-lv .btcl-lv-btn--ghost:hover, .btcl-lv .btcl-lv-btn--ghost:focus { background: #f4f2ff !important; }
.btcl-lv .btcl-lv-btn:focus-visible, .btcl-lv .btcl-lv-act:focus-visible { outline: 3px solid rgba(109, 92, 231, .35); outline-offset: 2px; }

/* KPIs */
.btcl-lv .btcl-lv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.btcl-lv .btcl-lv-kpi { position: relative; display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 18px; overflow: hidden; }
.btcl-lv .btcl-lv-kpi::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: currentColor; opacity: .9; }
.btcl-lv .btcl-lv-kpi__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }
.btcl-lv .btcl-lv-kpi__label { display: block; color: #667085; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.btcl-lv .btcl-lv-kpi__value { display: block; margin-top: 4px; color: #172033; font-size: 26px; font-weight: 750; line-height: 1.1; }
.btcl-lv .btcl-lv-kpi__meta { display: block; margin-top: 4px; color: #98a2b3; font-size: 11.5px; line-height: 1.35; }
.btcl-lv .btcl-lv-kpi.is-purple { color: #6d5ce7; } .btcl-lv .btcl-lv-kpi.is-purple .btcl-lv-kpi__icon { background: #f0efff; color: #6d5ce7; }
.btcl-lv .btcl-lv-kpi.is-amber { color: #f59e0b; } .btcl-lv .btcl-lv-kpi.is-amber .btcl-lv-kpi__icon { background: #fff6e5; color: #d97706; }
.btcl-lv .btcl-lv-kpi.is-green { color: #16a34a; } .btcl-lv .btcl-lv-kpi.is-green .btcl-lv-kpi__icon { background: #eafaf1; color: #16a34a; }
.btcl-lv .btcl-lv-kpi.is-red { color: #ef4444; } .btcl-lv .btcl-lv-kpi.is-red .btcl-lv-kpi__icon { background: #fef0f0; color: #dc2626; }
.btcl-lv .btcl-lv-kpi.is-blue { color: #3b82f6; } .btcl-lv .btcl-lv-kpi.is-blue .btcl-lv-kpi__icon { background: #eef5ff; color: #2563eb; }

/* Panels */
.btcl-lv .btcl-lv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 18px; }
.btcl-lv .btcl-lv-panel { min-width: 0; padding: 20px 22px; }
.btcl-lv .btcl-lv-panel__head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.btcl-lv .btcl-lv-panel__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: #f0efff; color: #6d5ce7; font-size: 15px; }
.btcl-lv .btcl-lv-panel__head h3 { margin: 0; padding: 0; color: #172033; font-size: 16px; font-weight: 700; line-height: 1.3; }
.btcl-lv .btcl-lv-panel__head p { margin: 2px 0 0; color: #8992a6; font-size: 12px; line-height: 1.45; }
.btcl-lv .btcl-lv-count { margin-left: auto; flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; background: #f0efff; color: #5b4ae0; font-size: 12px; font-weight: 700; white-space: nowrap; }

.btcl-lv .btcl-lv-status { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 26px; }
.btcl-lv .btcl-lv-donut { position: relative; display: flex; align-items: center; justify-content: center; width: 140px; height: 140px; border-radius: 50%; }
.btcl-lv .btcl-lv-donut::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: #fff; }
.btcl-lv .btcl-lv-donut__inner { position: relative; text-align: center; line-height: 1.2; }
.btcl-lv .btcl-lv-donut__inner strong { display: block; color: #172033; font-size: 26px; font-weight: 750; }
.btcl-lv .btcl-lv-donut__inner span { color: #8992a6; font-size: 11px; }
.btcl-lv .btcl-lv-legend { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.btcl-lv .btcl-lv-legend li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px; align-items: center; gap: 12px; margin: 0; }
.btcl-lv .btcl-lv-legend__label { display: inline-flex; align-items: center; gap: 8px; color: #475467; font-size: 13px; }
.btcl-lv .btcl-lv-legend li strong { color: #172033; font-size: 14px; text-align: right; }
.btcl-lv .btcl-lv-legend__bar { height: 8px; overflow: hidden; border-radius: 99px; background: #eef0f6; }
.btcl-lv .btcl-lv-legend__bar span { display: block; height: 100%; border-radius: 99px; }
.btcl-lv .btcl-lv-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.btcl-lv .is-approved.btcl-lv-dot, .btcl-lv .btcl-lv-legend__bar .is-approved { background: #16a34a; }
.btcl-lv .is-pending.btcl-lv-dot, .btcl-lv .btcl-lv-legend__bar .is-pending { background: #f59e0b; }
.btcl-lv .is-cancelled.btcl-lv-dot, .btcl-lv .btcl-lv-legend__bar .is-cancelled { background: #ef4444; }

.btcl-lv .btcl-lv-upcoming { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.btcl-lv .btcl-lv-upcoming li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; border: 1px solid #eef0f6; border-radius: 12px; background: #fafbfe; }
.btcl-lv .btcl-lv-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 50px; border-radius: 11px; background: #f0efff; color: #5b4ae0; line-height: 1; }
.btcl-lv .btcl-lv-date strong { font-size: 18px; font-weight: 800; }
.btcl-lv .btcl-lv-date small { margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.btcl-lv .btcl-lv-upcoming__copy { flex: 1; min-width: 0; }
.btcl-lv .btcl-lv-upcoming__copy strong { display: block; overflow: hidden; color: #172033; font-size: 13.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.btcl-lv .btcl-lv-upcoming__copy span { display: block; margin-top: 2px; color: #8992a6; font-size: 12px; }

.btcl-lv .btcl-lv-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 150px; padding: 20px 16px; border: 1px dashed #dfe3ee; border-radius: 14px; background: #fafbfe; text-align: center; }
.btcl-lv .btcl-lv-empty i { margin-bottom: 4px; color: #8b7cf6; font-size: 22px; }
.btcl-lv .btcl-lv-empty strong { color: #172033; font-size: 14px; font-weight: 700; }
.btcl-lv .btcl-lv-empty span { color: #8992a6; font-size: 12.5px; }

/* List */
.btcl-lv .btcl-lv-note { display: flex; align-items: flex-start; gap: 9px; margin: -4px 0 16px; padding: 10px 14px; border-radius: 12px; background: #f6f5ff; color: #4c3fc4; font-size: 12.5px; line-height: 1.5; }
.btcl-lv .btcl-lv-note i { margin-top: 2px; }
.btcl-lv .btcl-lv-table-wrap { overflow-x: auto; }
.btcl-lv table.btcl-lv-table { width: 100% !important; margin: 0 !important; border: 0; border-collapse: separate; border-spacing: 0; background: #fff; }
.btcl-lv .btcl-lv-table thead th { padding: 11px 14px !important; border: 0 !important; border-bottom: 1px solid #edf0f6 !important; background: #f8f9fd !important; color: #8992a6; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.btcl-lv .btcl-lv-table thead th:first-child { border-top-left-radius: 10px; }
.btcl-lv .btcl-lv-table thead th:last-child { border-top-right-radius: 10px; }
.btcl-lv .btcl-lv-table tbody td { padding: 14px !important; border: 0 !important; border-bottom: 1px solid #f1f3f8 !important; background: #fff !important; color: #475467; font-size: 13px; line-height: 1.4; text-align: left; vertical-align: middle; }
.btcl-lv .btcl-lv-table tbody tr:last-child td { border-bottom: 0 !important; }
.btcl-lv .btcl-lv-table tbody tr:hover td { background: #fbfbff !important; }
.btcl-lv .btcl-lv-table .dataTables_empty { padding: 28px !important; color: #8992a6; text-align: center !important; }
.btcl-lv .btcl-lv-subject { display: block; color: #172033; font-size: 14px; font-weight: 700; }
.btcl-lv .btcl-lv-reason { display: block; max-width: 220px; margin-top: 2px; overflow: hidden; color: #8992a6; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.btcl-lv .btcl-lv-person { display: inline-flex; align-items: center; gap: 9px; color: #172033; font-weight: 600; white-space: nowrap; }
.btcl-lv .btcl-lv-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #ece9ff; color: #5b4ae0; font-size: 11px; font-weight: 800; }
.btcl-lv .btcl-lv-range { display: block; color: #172033; font-weight: 600; white-space: nowrap; }
.btcl-lv .btcl-lv-days { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #f1f3f9; color: #526078; font-size: 11px; font-weight: 700; }
.btcl-lv .btcl-lv-type { display: inline-flex; padding: 4px 10px; border-radius: 8px; background: #f4f2ff; color: #4c3fc4; font-size: 12px; font-weight: 700; white-space: nowrap; }
.btcl-lv .btcl-lv-muted { color: #b0b7c7; }
.btcl-lv .btcl-lv-files { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.btcl-lv .btcl-lv-file { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 30px; height: 30px; padding: 0; border: 1px solid #e7eaf3; border-radius: 8px; background: #fff; color: #475467 !important; font-size: 11.5px; text-decoration: none !important; }
.btcl-lv .btcl-lv-file span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.btcl-lv .btcl-lv-file:hover { border-color: #c9c2ff; color: #4c3fc4 !important; }
.btcl-lv .btcl-lv-more { color: #8992a6; font-size: 11.5px; font-weight: 700; }
.btcl-lv .btcl-lv-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.btcl-lv .btcl-lv-status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.btcl-lv .btcl-lv-status-pill.is-approved { background: #eafaf1; color: #15803d; }
.btcl-lv .btcl-lv-status-pill.is-pending { background: #fff6e5; color: #b45309; }
.btcl-lv .btcl-lv-status-pill.is-cancelled, .btcl-lv .btcl-lv-status-pill.is-rejected { background: #fef0f0; color: #dc2626; }
.btcl-lv .btcl-lv-col-actions { width: 1%; white-space: nowrap; }
.btcl-lv .btcl-lv-actions { display: inline-flex; align-items: center; gap: 6px; }
.btcl-lv .btcl-lv-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; margin: 0 !important; padding: 0 12px !important; border: 1px solid #e4e0ff !important; border-radius: 10px !important; background: #f6f5ff !important; color: #4c3fc4 !important; font-size: 12.5px !important; font-weight: 700; line-height: 1; text-decoration: none !important; box-shadow: none !important; cursor: pointer; transition: background .15s ease; }
.btcl-lv .btcl-lv-act:hover, .btcl-lv .btcl-lv-act:focus { background: #6d5ce7 !important; border-color: #6d5ce7 !important; color: #fff !important; }
.btcl-lv .btcl-lv-act--danger { padding: 0 !important; width: 34px; border-color: #fde0e0 !important; background: #fff5f5 !important; color: #dc2626 !important; }
.btcl-lv .btcl-lv-act--danger:hover, .btcl-lv .btcl-lv-act--danger:focus { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }

/* DataTables controls */
.btcl-lv .dataTables_wrapper { color: #8992a6; font-size: 12.5px; }
.btcl-lv .dataTables_wrapper .dataTables_length, .btcl-lv .dataTables_wrapper .dataTables_filter { margin: 0 0 12px; color: #8992a6; font-size: 12.5px; }
.btcl-lv .dataTables_wrapper .dataTables_length select { width: auto; min-width: 64px; height: 34px; margin: 0 6px; padding: 0 24px 0 10px; border: 1px solid #dfe3ee !important; border-radius: 9px !important; background-color: #fff; color: #1e293b !important; font-size: 13px; }
.btcl-lv .dataTables_wrapper .dataTables_filter input { width: 210px; max-width: 100%; height: 34px; margin: 0 0 0 8px; padding: 0 12px; border: 1px solid #dfe3ee !important; border-radius: 9px !important; background: #fff; color: #1e293b !important; font-size: 13px; box-shadow: none; }
.btcl-lv .dataTables_wrapper .dataTables_filter input:focus, .btcl-lv .dataTables_wrapper .dataTables_length select:focus { border-color: #8b7cf6 !important; outline: 0; box-shadow: 0 0 0 3px rgba(109, 92, 231, .12); }
.btcl-lv .dataTables_wrapper .dataTables_info { padding-top: 14px; color: #8992a6; font-size: 12px; }
.btcl-lv .dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
.btcl-lv .dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 32px; height: 32px; margin: 0 2px; padding: 0 10px !important; border: 1px solid #e7eaf3 !important; border-radius: 9px !important; background: #fff !important; color: #475467 !important; font-size: 12px; line-height: 30px; box-shadow: none !important; }
.btcl-lv .dataTables_wrapper .dataTables_paginate .paginate_button.current, .btcl-lv .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { border-color: #6d5ce7 !important; background: #6d5ce7 !important; color: #fff !important; }
.btcl-lv .dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .45; }
.btcl-lv table.dataTable thead .sorting::before, .btcl-lv table.dataTable thead .sorting::after,
.btcl-lv table.dataTable thead .sorting_asc::before, .btcl-lv table.dataTable thead .sorting_asc::after,
.btcl-lv table.dataTable thead .sorting_desc::before, .btcl-lv table.dataTable thead .sorting_desc::after { opacity: .3; font-size: 10px; }
.btcl-lv table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child::before { top: 50%; transform: translateY(-50%); }

@media (max-width: 1100px) {
	.btcl-lv .btcl-lv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.btcl-lv .btcl-lv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.btcl-lv--admin { padding: 16px 12px 28px; }
	.btcl-lv .btcl-lv-hero { padding: 18px; }
	.btcl-lv .btcl-lv-title { font-size: 22px; }
	.btcl-lv .btcl-lv-hero__actions, .btcl-lv .btcl-lv-hero__actions .btcl-lv-btn { width: 100%; }
	.btcl-lv .btcl-lv-kpis { grid-template-columns: 1fr; }
	.btcl-lv .btcl-lv-panel { padding: 16px; }
	.btcl-lv .btcl-lv-status { grid-template-columns: 1fr; justify-items: center; }
	.btcl-lv .btcl-lv-legend { width: 100%; }
	.btcl-lv .btcl-lv-panel__head { flex-wrap: wrap; }
	.btcl-lv .dataTables_wrapper .dataTables_filter input { width: 100%; margin: 6px 0 0; }
	.btcl-lv .dataTables_wrapper .dataTables_length, .btcl-lv .dataTables_wrapper .dataTables_filter { float: none; text-align: left; }
}

/* Read-only "Leave details" popup */
html.btcl-lv-modal-open, html.btcl-lv-modal-open body { overflow: hidden; }
.btcl-lv.btcl-lv-modal { position: fixed; inset: 0; z-index: 100050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 24, 39, .45); }
.btcl-lv.btcl-lv-modal[hidden] { display: none; }
.btcl-lv .btcl-lv-modal__box { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: hidden; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(17, 24, 39, .25); animation: btclLvPop .18s ease-out; }
.btcl-lv .btcl-lv-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid #eef0f6; }
.btcl-lv .btcl-lv-modal__title { margin: 0; padding: 0; color: #172033; font-size: 19px; font-weight: 750; line-height: 1.3; }
.btcl-lv .btcl-lv-modal__sub { margin: 3px 0 0; color: #8992a6; font-size: 13px; }
.btcl-lv .btcl-lv-modal__close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: #f4f5fa; color: #475467; font-size: 15px; cursor: pointer; }
.btcl-lv .btcl-lv-modal__close:hover, .btcl-lv .btcl-lv-modal__close:focus { background: #ece9ff; color: #4c3fc4; }
.btcl-lv .btcl-lv-modal__close:focus-visible { outline: 3px solid rgba(109, 92, 231, .35); outline-offset: 2px; }
.btcl-lv .btcl-lv-modal__body { padding: 18px 22px 22px; overflow-y: auto; }
.btcl-lv .btcl-lv-modal__status { margin: 0 0 14px; }
.btcl-lv .btcl-lv-modal__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0; }
.btcl-lv .btcl-lv-modal__facts > div { min-width: 0; padding: 11px 13px; border: 1px solid #eef0f6; border-radius: 12px; background: #fafbfe; }
.btcl-lv .btcl-lv-modal__facts dt { margin: 0 0 3px; color: #8992a6; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.btcl-lv .btcl-lv-modal__facts dd { margin: 0; color: #172033; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.btcl-lv .btcl-lv-modal__section { margin: 0 0 16px; }
.btcl-lv .btcl-lv-modal__section[hidden] { display: none; }
.btcl-lv .btcl-lv-modal__section:last-child { margin-bottom: 0; }
.btcl-lv .btcl-lv-modal__section h4 { margin: 0 0 8px; padding: 0; color: #667085; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.btcl-lv .btcl-lv-modal__section p { margin: 0; color: #344054; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.btcl-lv .btcl-lv-modal__approvers { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.btcl-lv .btcl-lv-modal__approvers li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; border: 1px solid #eef0f6; border-radius: 12px; }
.btcl-lv .btcl-lv-modal__approvers strong { flex: 1; min-width: 0; color: #172033; font-size: 13.5px; font-weight: 600; }
.btcl-lv .btcl-lv-modal__files { display: flex; flex-wrap: wrap; gap: 10px; }
.btcl-lv .btcl-lv-modal__file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px; border: 1px solid #e7eaf3; border-radius: 10px; background: #fff; color: #344054 !important; font-size: 12.5px; text-decoration: none !important; }
.btcl-lv .btcl-lv-modal__file span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.btcl-lv .btcl-lv-modal__file.is-image { padding: 3px; }
.btcl-lv .btcl-lv-modal__file img { display: block; width: 96px; height: 72px; border-radius: 8px; object-fit: cover; }
.btcl-lv .btcl-lv-modal__file:hover { border-color: #c9c2ff; }
@keyframes btclLvPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .btcl-lv .btcl-lv-modal__facts { grid-template-columns: 1fr; } }

/* Leave balances */
.btcl-lv .btcl-lb { margin: 0 0 18px; }
.btcl-lv .btcl-lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.btcl-lv .btcl-lb-item { padding: 14px 16px; border: 1px solid #eef0f6; border-radius: 14px; background: #fafbfe; }
.btcl-lv .btcl-lb-item.is-low { border-color: #fde0e0; background: #fffafa; }
.btcl-lv .btcl-lb-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btcl-lv .btcl-lb-item__top strong { color: #172033; font-size: 14px; font-weight: 700; }
.btcl-lv .btcl-lb-tag { padding: 2px 8px; border-radius: 999px; background: #f1f3f9; color: #526078; font-size: 10.5px; font-weight: 700; }
.btcl-lv .btcl-lb-big { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 10px; color: #172033; font-size: 28px; font-weight: 800; line-height: 1; }
.btcl-lv .btcl-lb-item.is-low .btcl-lb-big { color: #dc2626; }
.btcl-lv .btcl-lb-big small { color: #8992a6; font-size: 12px; font-weight: 600; }
.btcl-lv .btcl-lb-bar { height: 7px; overflow: hidden; border-radius: 99px; background: #e9ebf3; }
.btcl-lv .btcl-lb-bar span { display: block; height: 100%; border-radius: 99px; background: #6d5ce7; }
.btcl-lv .btcl-lb-item.is-low .btcl-lb-bar span { background: #ef4444; }
.btcl-lv .btcl-lb-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 8px; color: #8992a6; font-size: 11.5px; }
.btcl-lv .btcl-lb-cell { white-space: nowrap; color: #667085; }
.btcl-lv .btcl-lb-cell strong { color: #15803d; font-size: 14px; }
.btcl-lv .btcl-lb-cell.is-low strong { color: #dc2626; }
.btcl-lv .btcl-lb-switches { display: grid; gap: 10px; margin: 0 0 16px; }
.btcl-lv .btcl-lb-switches label { display: flex; align-items: center; gap: 8px; margin: 0; color: #344054; font-size: 13.5px; font-weight: 600; }
.btcl-lv .btcl-lb-input { height: 38px; min-width: 110px; padding: 0 10px; border: 1px solid #dfe3ee !important; border-radius: 10px !important; background: #fff; color: #172033 !important; font-size: 13.5px; }
.btcl-lv .btcl-lb-save { display: flex; justify-content: flex-end; margin-top: 16px; }

/* "Request leave" popup (#AddLeaves) – same look as the leave overview. */
#AddLeaves .modal-dialog { max-width: 560px; }
#AddLeaves .modal-content { border: 0 !important; border-radius: 18px !important; box-shadow: 0 24px 60px rgba(15, 23, 42, .25) !important; overflow: hidden; }
#AddLeaves .modal-header { padding: 20px 24px !important; border-bottom: 1px solid #eef0f6 !important; align-items: center; }
#AddLeaves .modal-title { font-size: 18px !important; font-weight: 800 !important; color: #17213a !important; }
#AddLeaves .modal-header .close { width: 32px; height: 32px; margin: 0 !important; padding: 0 !important; border-radius: 9px; background: #f7f8fc; opacity: 1; color: #7b84a0; text-shadow: none; }
#AddLeaves .modal-body { padding: 20px 24px 24px !important; }
#AddLeaves .form-group.row { display: block; margin: 0 0 14px !important; }
#AddLeaves .form-group.row > [class*="col-"] { width: 100%; max-width: 100%; flex: none; padding: 0 !important; }
#AddLeaves .col-form-label { display: block; padding: 0 0 6px !important; font-size: 12.5px !important; font-weight: 800 !important; color: #17213a !important; }
#AddLeaves .form-control, #AddLeaves select { width: 100% !important; height: 44px !important; min-height: 0 !important; padding: 0 14px !important; border: 1px solid #e8eaf3 !important; border-radius: 11px !important; background-color: #fff !important; box-shadow: none !important; font-size: 14px !important; color: #17213a !important; }
#AddLeaves textarea.form-control { height: auto !important; min-height: 96px !important; padding: 12px 14px !important; resize: vertical; }
#AddLeaves .form-control:focus { border-color: #635bff !important; box-shadow: 0 0 0 3px rgba(99, 91, 255, .15) !important; outline: 0; }
#AddLeaves .input-group { flex-wrap: nowrap; }
#AddLeaves .input-group .form-control { border-radius: 11px !important; padding-right: 40px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; }
#AddLeaves .input-group-addon, #AddLeaves .input-group-append { display: none !important; }
#AddLeaves input[type="file"] { display: block; width: 100%; padding: 14px; border: 1.5px dashed #d7d4ff; border-radius: 12px; background: #f6f5ff; font-size: 13px; color: #384260; cursor: pointer; }
#AddLeaves input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 9px; background: #635bff; color: #fff; font-weight: 700; cursor: pointer; }
#AddLeaves button[type="submit"], #AddLeaves .btn-primary { width: 100%; height: 44px; margin: 6px 0 0 !important; border: 0 !important; border-radius: 11px !important; background: #635bff !important; color: #fff !important; font-size: 14px !important; font-weight: 700 !important; box-shadow: 0 6px 16px rgba(99, 91, 255, .28) !important; }
#AddLeaves button[type="submit"]:hover { background: #4b44d6 !important; }
