/* Global Text Enhancement (Darker & Clearer) */
.oxd-text, .oxd-label, .oxd-input, .oxd-select-text, .oxd-table-cell,
.oxd-topbar-body-nav-tab-item, .oxd-topbar-body-nav-tab-link,
.oxd-dropdown-menu li, .oxd-dropdown-menu a,
.oxd-select-dropdown, .oxd-select-dropdown *, .oxd-select-option {
    color: #000000 !important; /* Pure Black */
    font-weight: 600 !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Hide profile sections that do not have a persistent data source yet. */
[data-action="profile-assets"],
[data-action="profile-incidents"] {
    display: none !important;
}

/* WHITE TEXT: Sidebar & Top Profile Name */
.oxd-sidepanel .oxd-main-menu-item .oxd-main-menu-item--name,
.oxd-sidepanel .oxd-main-menu-item .oxd-icon,
.oxd-sidepanel .oxd-main-menu-search input,
.oxd-userdropdown-name,
.oxd-userdropdown-tab .oxd-icon,
.oxd-userdropdown-tab i {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Sidebar Spacing */
.oxd-main-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Dashboard & Fingerprint Spacing */
.orangehrm-attendance-card-state i,
.orangehrm-attendance-card-bar i,
.orangehrm-dashboard-widget-header i,
.orangehrm-quick-launch-card i {
    margin-left: 10px !important;
}

/* Center Dashboard Attendance Button Icon */
.orangehrm-attendance-card-action button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background-color: #001529 !important;
    border-color: #001529 !important;
}
.orangehrm-attendance-card-action button:hover {
    background-color: #002347 !important;
    border-color: #002347 !important;
}
/* Desktop attendance avatar and punch button alignment */
.orangehrm-attendance-card-profile {
    align-items: center !important;
    gap: 10px !important;
    min-height: 52px !important;
}
.orangehrm-attendance-card-profile-image {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #00509e, #002347) !important;
}
.orangehrm-attendance-card-profile-image img,
.orangehrm-attendance-card-profile-image .employee-image {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    border: 2px solid #001529 !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}
.employee-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
.orangehrm-attendance-card-action {
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}
.orangehrm-attendance-card-action button,
.orangehrm-attendance-card-action .oxd-icon-button {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.orangehrm-attendance-card-action button .oxd-icon,
.orangehrm-attendance-card-action button svg,
.orangehrm-attendance-card-action button i {
    width: 22px !important;
    height: 22px !important;
    font-size: 22px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    display: block !important;
}

/* Directory Card Fix (Arabic Text Clipping - Aggressive) */
.orangehrm-directory-card {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
.orangehrm-directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
    border-color: var(--blh-accent) !important;
}
.orangehrm-directory-card-description,
.orangehrm-directory-card-description *,
.orangehrm-directory-card-body {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    line-height: 2.2 !important;
    padding-bottom: 12px !important;
    display: block !important;
}

.oxd-main-menu-item.active .oxd-icon,
.oxd-main-menu-item.active .oxd-main-menu-item--name {
    color: #ffffff !important;
}

.oxd-table-header-cell, .oxd-label, .oxd-text--h6 {
    color: #000000 !important;
    font-weight: 800 !important;
}

::placeholder { color: #555 !important; opacity: 1; }
.oxd-main-menu-search input::placeholder { color: #fff !important; }

/* LEO assistant shell: scoped to its floating control and conversation panel. */
#blh-ai-widget {
  position: fixed !important;
  inset-inline-start: max(20px, env(safe-area-inset-left, 0px)) !important;
  inset-inline-end: auto !important;
  left: max(20px, env(safe-area-inset-left, 0px)) !important;
  right: auto !important;
  bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
  z-index: 10020 !important;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px;
  min-height: 62px;
  padding: 0 !important;
  overflow: visible;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: 0 8px 24px rgba(0, 32, 76, .28), 0 2px 8px rgba(0, 32, 76, .18);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease !important;
  animation: none !important;
}
#blh-ai-widget:hover { transform: translateY(-2px) scale(1.035) !important; box-shadow: 0 12px 28px rgba(0, 32, 76, .34); }
#blh-ai-widget:focus-visible { outline: 3px solid #69c8ff; outline-offset: 4px; }
#blh-ai-widget .blh-leo-avatar { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
#blh-ai-widget[data-state="listening"] { animation: leo-listen-glow 1.65s ease-in-out infinite !important; }
#blh-ai-widget[data-state="executing"] { animation: leo-work-ring 1.8s linear infinite !important; }
#blh-ai-widget[data-state="complete"]::after,
#blh-ai-widget[data-state="awaiting_approval"]::after,
#blh-ai-widget[data-state="error"]::after {
  content: ""; position: absolute; width: 13px; height: 13px; inset-inline-end: 0; bottom: 1px;
  border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.22);
}
#blh-ai-widget[data-state="complete"]::after { background: #20b879; }
#blh-ai-widget[data-state="awaiting_approval"]::after { background: #f0a526; }
#blh-ai-widget[data-state="error"]::after { background: #dc4b54; }
body.blh-ai-chat-open #blh-ai-widget { visibility: hidden; pointer-events: none; }
#blh-ai-container {
  position: fixed !important;
  left: max(12px, env(safe-area-inset-left, 0px)) !important;
  right: auto !important;
  top: auto !important;
  bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
  width: min(360px, calc(100vw - 32px)) !important;
  height: auto !important;
  min-height: min(540px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  z-index: 10019 !important;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce7f3;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(8, 30, 58, .2);
  transform: translateX(-12px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  font-family: 'Cairo', sans-serif;
  color: #12253a;
  text-align: right;
  direction: rtl;
}
#blh-ai-container[aria-hidden="false"] { display: flex; }
#blh-ai-container .blh-ai-header {
  display: flex; position: relative; flex: 0 0 auto; min-height: 82px; padding: 12px; gap: 10px;
  flex-direction: row; align-items: center; justify-content: space-between; background: #fff; color: #10243c;
}
#blh-ai-container .blh-ai-identity { display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
#blh-ai-container .blh-ai-header-avatar { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; }
#blh-ai-container .blh-ai-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; text-align: right; line-height: 1.55; }
#blh-ai-container .blh-ai-heading strong { font-size: 16px; font-weight: 700; }
#blh-ai-container .blh-ai-heading > span:nth-child(2) { color: #62758a; font-size: 12px; }
#blh-ai-container .blh-ai-state { display: inline-flex; align-items: center; gap: 6px; color: #6b7c90; font-size: 11px; }
#blh-ai-container .blh-ai-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #62d49b; }
#blh-ai-container .blh-ai-state[data-state="listening"]::before,
#blh-ai-container .blh-ai-state[data-state="executing"]::before { background: #55bdff; }
#blh-ai-container .blh-ai-state[data-state="awaiting_approval"]::before { background: #ffc45a; }
#blh-ai-container .blh-ai-state[data-state="complete"]::before { background: #42d391; }
#blh-ai-container .blh-ai-state[data-state="error"]::before { background: #ff6b73; }
#blh-ai-container .blh-ai-header-actions { position: static; display: flex; align-items: center; justify-content: flex-start; flex: 0 0 auto; flex-direction: row; gap: 6px; direction: rtl; }
#blh-ai-container .blh-ai-tool-btn { width: 36px; height: 36px; border: 1px solid #e7edf4; border-radius: 11px; background: #f7f9fc; color: #193653; font-family: inherit; }
#blh-ai-container #close-blh-ai { margin: 0; background: #fff; }
#blh-ai-container .blh-ai-messages { display: flex; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; gap: 12px; flex-direction: column; direction: rtl; }
#blh-ai-container .blh-ai-suggestions { display: flex; flex: 0 0 auto; flex-direction: column; align-self: stretch; gap: 7px; width: 100%; max-width: 100%; padding: 4px 0; }
#blh-ai-container .blh-ai-suggestion { min-height: 38px; padding: 8px 12px; border: 1px solid #dce8f5; border-radius: 12px; background: #f7faff; color: #174a7b; font: inherit; font-size: 12px; line-height: 1.5; text-align: right; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
#blh-ai-container .blh-ai-suggestion:hover { border-color: #86baf0; background: #edf5ff; }
#blh-ai-container .blh-msg { max-width: 88%; padding: 11px 14px; border-radius: 15px; font-family: inherit; font-size: 14px; color: #334155 !important; line-height: 1.8; text-align: right; overflow-wrap: anywhere; }
#blh-ai-container .blh-msg.bot { align-self: flex-start; border: 1px solid #e7edf5; border-bottom-right-radius: 4px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.05); }
#blh-ai-container .blh-msg.user { align-self: flex-end; border-bottom-left-radius: 4px; background: #00509e; color: #fff !important; }
#blh-ai-container .blh-msg.bot .blh-chat-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: #00509e; color: #fff !important; font-weight: 800; text-decoration: none; box-shadow: 0 6px 14px rgba(0,80,158,.18); }
#blh-ai-container .blh-msg.bot .blh-chat-link:hover { background: #003f7d; }
#blh-ai-container .blh-msg.bot .blh-chat-text { white-space: pre-wrap; }
#blh-ai-container .blh-requisition-card { width: min(96%, 440px); max-width: 96%; padding: 14px; }
#blh-ai-container .blh-requisition-card form { display: grid; gap: 10px; width: 100%; color: #173454; text-align: start; }
#blh-ai-container .blh-requisition-card strong { color: #0d2d49; font-size: 14px; }
#blh-ai-container .blh-requisition-card p, #blh-ai-container .blh-requisition-card small { margin: 0; color: #62758a !important; font-size: 11px; line-height: 1.7; }
#blh-ai-container .blh-requisition-card label { display: grid; gap: 5px; color: #3d5269; font-size: 11px; font-weight: 700; text-align: start; }
#blh-ai-container .blh-requisition-card input, #blh-ai-container .blh-requisition-card select, #blh-ai-container .blh-requisition-card textarea { min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid #d8e4ef; border-radius: 8px; background: #fff; color: #173454; font: inherit; font-size: 12px; text-align: start; }
#blh-ai-container .blh-requisition-card textarea { resize: vertical; line-height: 1.7; }
#blh-ai-container .blh-requisition-manager-results { display: grid; gap: 5px; }
#blh-ai-container .blh-requisition-manager-results button { justify-content: flex-start; min-height: 36px; padding: 6px 9px; border: 1px solid #d8e4ef; border-radius: 7px; background: #f8fbfe; color: #23496e; font: inherit; font-size: 11px; cursor: pointer; }
#blh-ai-container .blh-requisition-manager-results span { color: #62758a; font-size: 11px; }
#blh-ai-container .blh-requisition-form-status { color: #12613c; font-size: 11px; line-height: 1.6; }
#blh-ai-container .blh-requisition-card button[type="submit"] { min-height: 40px; border: 0; border-radius: 8px; background: #1769d2; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
#blh-ai-container .blh-requisition-card button[type="submit"]:disabled { background: #a9bfd4; cursor: not-allowed; }
#blh-ai-container .blh-ai-history-panel { display: none; flex-direction: column; gap: 8px; padding: 10px; border-bottom: 1px solid #e5edf5; background: #fff; }
#blh-ai-container .blh-ai-history-panel.active { display: flex; }
#blh-ai-container .blh-ai-history-item { width: 100%; padding: 9px 10px; border: 1px solid #e5edf5; border-radius: 10px; background: #f8fafc; text-align: right; font-family: inherit; cursor: pointer; }
#blh-ai-container .blh-ai-history-item strong, #blh-ai-container .blh-ai-history-item span { display: block; }
#blh-ai-container .blh-ai-history-item strong { margin-bottom: 3px; color: #0f172a; font-size: 12px; }
#blh-ai-container .blh-ai-history-item span, #blh-ai-container .blh-ai-history-empty { color: #64748b; font-size: 11px; }
#blh-ai-container .blh-ai-history-empty { padding: 8px; text-align: center; }
#blh-ai-container .blh-ai-voice-status { display: none; flex: 0 0 auto; padding: 8px 12px; border-bottom: 1px solid #dbeafe; background: #eef6ff; color: #0f3f6e; font-size: 12px; text-align: right; }
#blh-ai-container .blh-ai-voice-status.active { display: block; }
#blh-ai-container .blh-ai-voice-status.error { border-bottom-color: #fecdd3; background: #fff1f2; color: #9f1239; }
#blh-ai-container .blh-typing { display: none; padding: 0 16px 8px; color: #64748b; font-size: 12px; text-align: right; }
#blh-ai-container .blh-ai-input-area { display: flex; flex: 0 0 auto; align-items: center; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); gap: 8px; background: #fff; }
#blh-ai-container .blh-ai-input { min-width: 0; min-height: 46px; flex: 1 1 auto; border: 1px solid #dce5ef; border-radius: 14px; background: #f8fafc; color: #12253a; text-align: right; font-family: inherit; }
#blh-ai-container .blh-ai-send,
#blh-ai-container .blh-ai-voice { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 1px solid #dce8f5; border-radius: 50%; background: #f7faff; color: #07539c; }
#blh-ai-container .blh-ai-voice.is-listening { background: #1677d2; border-color: #1677d2; color: #fff; animation: leo-listen-glow 1.65s ease-in-out infinite; }
#blh-ai-container .blh-ai-voice.is-processing { background: #07559b; border-color: #07559b; color: #fff; }
#blh-ai-container button { display: inline-flex; align-items: center; justify-content: center; }
#blh-ai-container button:focus-visible { outline: 3px solid #69c8ff; outline-offset: 2px; }
#blh-ai-container[dir="ltr"] { direction: ltr; text-align: left; }
#blh-ai-container[dir="ltr"] .blh-ai-heading { align-items: flex-start; text-align: left; }
@keyframes leo-listen-glow { 50% { box-shadow: 0 0 0 7px rgba(50, 160, 255, .18), 0 8px 24px rgba(0, 32, 76, .28); } }
@keyframes leo-work-ring { to { box-shadow: 0 0 0 3px rgba(50, 160, 255, .45), 0 8px 24px rgba(0, 32, 76, .28); } }
@media (max-width: 600px) {
  #blh-ai-widget { left: max(14px, env(safe-area-inset-left, 0px)) !important; bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; width: 62px !important; height: 62px !important; }
  #blh-ai-container { inset: 10px 10px max(10px, env(safe-area-inset-bottom, 0px)) 10px !important; width: auto !important; height: auto !important; min-height: 0; max-height: none; border-radius: 20px; }
  #blh-ai-container .blh-ai-header { min-height: 76px; padding: 10px 12px; gap: 8px; }
  #blh-ai-container .blh-ai-header-avatar { width: 46px; height: 46px; flex-basis: 46px; }
  #blh-ai-container .blh-ai-header-actions { gap: 4px; }
  #blh-ai-container .blh-ai-tool-btn { width: 36px; height: 36px; }
  #blh-ai-container .blh-ai-messages { padding: 12px; }
  #blh-ai-container .blh-ai-heading strong { font-size: 15px; }
  #blh-ai-container .blh-ai-input-area { gap: 7px; padding: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  #blh-ai-container .blh-ai-send, #blh-ai-container .blh-ai-voice { flex-basis: 40px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  #blh-ai-widget, #blh-ai-container, #blh-ai-container * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* ⚠️•⚠️•⚠️• Dashboard Widgets v12 ⚠️•⚠️•⚠️• */
.blh-dashboard-widgets { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1rem !important; max-width: calc(350px * 3) !important; width: 100% !important; margin: 0 auto 1rem !important; direction: rtl !important; box-sizing: border-box !important; align-items: stretch !important; }
.blh-widget-card { background: white; border-radius: 1.2rem; padding: 0.75rem; box-shadow: 0 10px 26px rgba(24, 49, 83, 0.08); border: 1px solid #e8eef5; width: 100%; height: 100%; min-height: 280px; margin: 0; box-sizing: border-box; overflow: hidden; transition: all 0.2s ease; display: flex; flex-direction: column; }
.blh-widget-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(24, 49, 83, 0.1); }
.blh-widget-title { font-size: 14px; font-weight: 700; color: #001529 !important; padding-bottom: 0.75rem; margin-bottom: 0.75rem; border-bottom: 1px solid #e8eef5; display: flex; align-items: center; justify-content: flex-start; gap: 0.5rem; font-family: 'Cairo', sans-serif !important; }
.blh-widget-title .oxd-icon { width: 15px !important; height: 15px !important; margin: 0 !important; color: #64748b !important; }
.blh-widget-body { min-height: 92px; font-size: 13px; color: #333 !important; font-family: 'Cairo', sans-serif !important; line-height: 1.8; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; overflow: auto; }
.blh-widget-row { display:flex; justify-content:space-between; align-items:center; gap: 0.75rem; padding: 0.3rem 0; border-bottom: 1px solid #f1f5f9; }
.blh-widget-row:last-child { border-bottom: 0; }
.blh-widget-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.blh-dashboard-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem; }
.blh-dashboard-links a { display: inline-flex; align-items: center; border: 1px solid #d6e5f3; border-radius: 0.65rem; background: #f2f7fc; color: #003a70 !important; padding: 0.35rem 0.6rem; font-size: 11px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.blh-dashboard-links a:hover, .blh-dashboard-links a:focus-visible { background: #e5f0fa; border-color: #9fc1df; outline: none; }
.blh-badge-pending { background: #fff3cd; color: #856404 !important; }
.blh-badge-approved { background: #d4edda; color: #155724 !important; }
.blh-badge-rejected { background: #f8d7da; color: #721c24 !important; }
.blh-badge-active { background: #cce5ff; color: #004085 !important; }
.blh-stmt-btn { background: #00509e; color: white !important; border: none; padding: 9px 16px; border-radius: 0.75rem; cursor: pointer; font-family: 'Cairo', sans-serif !important; font-weight: 700; font-size: 13px; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; align-self: flex-start; }
.blh-stmt-btn .oxd-icon { width: 14px !important; height: 14px !important; margin: 0 !important; color: #ffffff !important; }
.blh-stmt-btn:hover { background: #003a70; box-shadow: 0 6px 16px rgba(0,80,158,0.25); }
.blh-desktop-quick-card { cursor: pointer !important; }
.blh-loan-details-btn { background: #eaf2fa; color: #003a70 !important; border: 1px solid #cfe0f1; }
.blh-loan-details-btn .oxd-icon { color: #003a70 !important; }
.blh-loan-details-btn:hover { background: #dceaf7; box-shadow: 0 6px 16px rgba(0,58,112,0.12); }
.blh-payroll-period { color: #64748b; font-size: 11px; font-weight: 700; }
.blh-payroll-net { color: #003a70 !important; }
.blh-payroll-unavailable { color: #64748b; background: #f5f8fc; border-radius: 0.75rem; padding: 0.65rem; }
.blh-loan-report-popup { max-width: 780px; }
.blh-loan-report-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.blh-loan-report-summary > div { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.8rem; background: #f4f8fc; border: 1px solid #e5edf5; border-radius: 0.85rem; }
.blh-loan-report-summary span, .blh-loan-report-card small { color: #64748b; font-size: 11px; }
.blh-loan-report-summary strong { color: #003a70; font-size: 15px; }
.blh-loan-report-list { display: grid; gap: 0.75rem; }
.blh-loan-report-card { border: 1px solid #e5edf5; border-radius: 0.9rem; padding: 0.9rem; background: #fff; }
.blh-loan-report-card-head, .blh-loan-report-meta, .blh-loan-report-stage { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.blh-loan-report-card-head > div, .blh-loan-report-stage > span:nth-child(2), .blh-loan-stage-amount { display: flex; flex-direction: column; gap: 0.15rem; }
.blh-loan-report-card-head > div > strong { color: #001529; font-size: 15px; }
.blh-loan-report-meta { justify-content: flex-start; flex-wrap: wrap; margin-top: 0.55rem; color: #64748b; font-size: 12px; }
.blh-loan-report-progress-label { margin: 0.8rem 0 0.35rem; color: #003a70; font-size: 12px; font-weight: 700; }
.blh-loan-report-stages { display: grid; gap: 0.35rem; }
.blh-loan-report-stage { justify-content: flex-start; padding: 0.5rem 0.65rem; border-radius: 0.7rem; background: #f7f9fc; color: #334155; font-size: 12px; }
.blh-loan-stage-dot { width: 0.55rem; height: 0.55rem; flex: 0 0 0.55rem; border: 2px solid #9aaabd; border-radius: 50%; }
.blh-loan-report-stage.is-paid { background: #eff8f3; }
.blh-loan-report-stage.is-paid .blh-loan-stage-dot { border-color: #24845a; background: #24845a; }
.blh-loan-stage-amount { margin-inline-start: auto; text-align: end; color: #001529; font-weight: 700; }
.blh-loan-stage-amount small { font-weight: 400; }
.blh-loan-report-note, .blh-loan-report-empty { color: #64748b; background: #f4f8fc; border-radius: 0.7rem; padding: 0.75rem; margin-top: 0.65rem; font-size: 12px; line-height: 1.7; }
.blh-loan-report-empty.compact { margin-top: 0.65rem; }
@media (max-width: 600px) {
    .blh-loan-report-summary { grid-template-columns: 1fr; }
    .blh-loan-report-popup { width: 94%; max-height: 88vh; }
}
@media (min-width: 769px) and (max-width: 1050px) {
    .blh-dashboard-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: 760px !important; }
    .blh-dashboard-widgets > .blh-widget-card:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .blh-dashboard-widgets { grid-template-columns: 1fr !important; max-width: 100% !important; }
    .blh-dashboard-widgets > .blh-widget-card:nth-child(3) { grid-column: auto; }
    .blh-widget-card { min-height: 0; }
}

/* Manager workspace: first approved administration surface. */
body.blh-manager-workspace-active .blh-manager-native-hidden { display: none !important; }
body.blh-employee-workspace-active .blh-manager-native-hidden { display: none !important; }
body.blh-employee-workspace-active .oxd-sidepanel ul.oxd-main-menu > .oxd-main-menu-item-wrapper:not(.blh-employee-menu-item) { display: none !important; }
body.blh-employee-workspace-active .blh-employee-menu-item .oxd-main-menu-item { direction: rtl !important; justify-content: flex-start !important; }
body.blh-employee-workspace-active .blh-employee-menu-item .oxd-main-menu-item--name { text-align: right !important; }
body.blh-manager-workspace-active .oxd-main-menu-item--icon { display: none !important; }
body.blh-manager-workspace-active .oxd-main-menu-item { direction: rtl !important; justify-content: flex-start !important; }
body.blh-manager-workspace-active .oxd-main-menu-item--name { text-align: right !important; }
.blh-manager-workspace { --blh-mw-card-bg: #fff; width: 100%; direction: rtl; color: #142b45; font-family: inherit; padding: 24px 18px 36px; }
.blh-employee-workspace { width: 100%; direction: rtl; color: #142b45; font-family: inherit; padding: 20px 4px 30px; }
.blh-ew-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: 17px; align-items: start; }
.blh-mw-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 2px 20px; }
.blh-mw-heading small { color: #718198; font-size: 13px; }
.blh-mw-heading h1 { position: relative; width: max-content; max-width: 100%; margin: 7px 0 6px; padding-bottom: 8px; color: #102b4c; font-size: 28px; line-height: 1.35; font-weight: 700; }
.blh-mw-heading h1::after { position: absolute; inset-inline-start: 0; bottom: 0; width: 90px; height: 2px; background: #168bd2; content: ''; }
.blh-mw-heading p { margin: 0; color: #718198; font-size: 14px; }
.blh-mw-primary, .blh-mw-review, .blh-mw-quick, .blh-mw-detail button { display: inline-flex; align-items: center; justify-content: center; text-align: center; font: inherit; cursor: pointer; }
.blh-mw-primary { min-height: 45px; padding: 0 20px; border: 1px solid #1769d2; border-radius: 9px; color: #fff; background: #1971e8; font-weight: 700; }
.blh-mw-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .85fr); gap: 17px; align-items: start; }
.blh-mw-main-column, .blh-mw-side-column { display: grid; gap: 16px; }
.blh-mw-card { min-width: 0; padding: 18px; border: 1px solid #d9e8f0; border-radius: 14px; background: var(--blh-mw-card-bg, #f4f9fc); box-shadow: 0 4px 16px rgba(16,43,76,.04); }
.blh-mw-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.blh-mw-section-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: #142f4d; font-size: 17px; }
.blh-mw-section-head a { color: #1769d2; font-size: 12px; text-decoration: none; }
.blh-mw-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 23px; padding: 0 6px; border-radius: 20px; background: #eaf2ff; color: #1769d2; font-size: 12px; }
.blh-mw-tabs { display: flex; gap: 5px; margin-bottom: 12px; padding: 4px; border: 1px solid #deebf2; border-radius: 9px; background: #edf5f9; }
.blh-mw-tabs button { flex: 1; min-height: 36px; padding: 5px 9px; border: 0; border-radius: 7px; background: transparent; color: #667990; font: inherit; font-size: 12px; cursor: pointer; }
.blh-mw-tabs button.is-active { background: #fff; color: #1769d2; box-shadow: 0 1px 5px rgba(16,43,76,.12); font-weight: 700; }
.blh-mw-request-list { display: grid; gap: 9px; }
.blh-mw-task { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid #dceaf1; border-radius: 11px; background: #fff; }
.blh-mw-task-title { color: #173454; font-size: 14px; font-weight: 700; }
.blh-mw-task-title span { margin-inline-start: 7px; font-weight: 600; }
.blh-mw-task p { margin: 6px 0 8px; color: #718198; font-size: 12px; line-height: 1.65; }
.blh-mw-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; color: #77879a; font-size: 11px; }
.blh-mw-status { padding: 4px 8px; border-radius: 20px; background: #fff4df; color: #9a5c08; font-weight: 700; }
.blh-mw-review { display: inline-flex; align-items: center; justify-content: center; min-width: 83px; min-height: 36px; padding: 0 12px; border: 1px solid #99bbed; border-radius: 7px; background: #fff; color: #1769d2; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.blh-mw-empty { padding: 20px 12px; border: 1px dashed #dce5ef; border-radius: 9px; color: #718198; font-size: 13px; text-align: center; line-height: 1.7; }
.blh-mw-quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.blh-mw-quick { min-height: 76px; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #d8e8f0; border-radius: 10px; background: #f7fbfd; color: #142b45; text-decoration: none; }
.blh-mw-quick strong { font-size: 13px; }
.blh-mw-quick span { color: #77879a; font-size: 11px; }
.blh-mw-quick:hover, .blh-mw-review:hover { border-color: #8bb5ed; background: #f8fbff; }
.blh-mw-all-approvals { padding: 5px 2px; border: 0; background: transparent; color: #1769d2; font: inherit; font-size: 12px; cursor: pointer; }
.blh-mw-note { margin: 0; color: #8291a2; font-size: 11px; line-height: 1.7; }
.blh-ac-overlay { position: fixed; inset: 0; z-index: 100005; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(9,28,49,.42); direction: rtl; }
.blh-ac-overlay.active { display: flex; }
.blh-ac-panel { display: flex; flex-direction: column; width: min(1060px,100%); height: auto; max-height: min(850px,calc(100dvh - 44px)); overflow: hidden; border: 1px solid #dce6f2; border-radius: 16px; background: #f6f8fb; box-shadow: 0 20px 60px rgba(10,35,62,.26); }
.blh-ac-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid #e3eaf2; background: #fff; }
.blh-ac-header small { color: #718198; font-size: 11px; }
.blh-ac-header h1 { margin: 4px 0; color: #102b4c; font-size: 21px; }
.blh-ac-header p { margin: 0; color: #718198; font-size: 12px; }
.blh-ac-header > button { min-width: 72px; min-height: 36px; border: 1px solid #dce6f2; border-radius: 8px; background: #f7f9fc; color: #173454; font: inherit; cursor: pointer; }
.blh-ac-controls { display: grid; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e3eaf2; background: #fff; }
.blh-ac-tabs { display: flex; gap: 5px; padding: 4px; border: 1px solid #e7edf4; border-radius: 9px; background: #f7f9fc; }
.blh-ac-tabs button { flex: 1; min-height: 36px; border: 0; border-radius: 7px; background: transparent; color: #667990; font: inherit; font-size: 12px; cursor: pointer; }
.blh-ac-tabs button.is-active { background: #fff; color: #1769d2; box-shadow: 0 1px 5px rgba(16,43,76,.12); font-weight: 700; }
.blh-ac-filters { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 9px; }
.blh-ac-filters input, .blh-ac-filters select { min-height: 40px; min-width: 0; padding: 0 12px; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; color: #173454; font: inherit; font-size: 12px; text-align: right; }
.blh-ac-task-management { justify-self: start; min-height: 36px; padding: 0 14px; border: 1px solid #c8dcf5; border-radius: 8px; background: #f3f8ff; color: #1769d2; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.blh-ac-task-management:hover { border-color: #8bb5ed; background: #eaf3ff; }
.blh-ac-list { flex: 0 1 auto; min-height: 140px; overflow: auto; display: grid; align-content: start; gap: 9px; padding: 15px 18px 20px; }
.blh-ac-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e3eaf2; border-radius: 11px; background: #fff; }
.blh-ac-title { color: #173454; font-size: 14px; font-weight: 700; }
.blh-ac-title span { margin-inline-start: 7px; }
.blh-ac-row p { margin: 6px 0 8px; color: #718198; font-size: 12px; line-height: 1.7; }
@media (max-width: 700px) { .blh-ac-overlay { padding: 0; } .blh-ac-panel { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; } .blh-ac-header { padding: 13px; } .blh-ac-controls { padding: 10px; } .blh-ac-filters { grid-template-columns: 1fr; } .blh-ac-list { padding: 10px; } .blh-ac-row { grid-template-columns: 1fr; } .blh-ac-row .blh-mw-review { width: 100%; } }
#blh-mw-detail-overlay { position: fixed; inset: 0; z-index: 100010; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(12,31,53,.42); direction: rtl; }
.blh-mw-detail { width: min(530px,100%); overflow: hidden; border: 1px solid #dce6f2; border-radius: 15px; background: #fff; box-shadow: 0 18px 50px rgba(10,35,62,.25); }
.blh-mw-detail > header, .blh-mw-detail > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 17px; border-bottom: 1px solid #e8eef5; }
.blh-mw-detail > header div { display: grid; gap: 5px; }
.blh-mw-detail > header span { color: #718198; font-size: 12px; }
.blh-mw-detail > header button { padding: 8px 12px; border: 1px solid #e2eaf3; border-radius: 7px; background: #f7f9fc; color: #173454; }
.blh-mw-detail-content { padding: 17px; }
.blh-mw-detail-content p { color: #52677e; font-size: 13px; line-height: 1.8; }
.blh-mw-loan-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.blh-mw-loan-facts div { min-width: 0; padding: 10px 12px; border: 1px solid #e5edf6; border-radius: 9px; background: #fbfdff; }
.blh-mw-loan-facts dt { color: #718198; font-size: 11px; }
.blh-mw-loan-facts dd { margin: 3px 0 0; color: #173454; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.blh-mw-readiness { margin: 0 0 12px; padding: 12px; border: 1px solid #dce7f1; border-radius: 10px; background: #f8fbfe; }
.blh-mw-readiness > b { color: #173454; font-size: 13px; }
.blh-mw-readiness ul { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
.blh-mw-readiness li { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid #e5edf6; border-radius: 8px; background: #fff; color: #354e68; font-size: 12px; line-height: 1.6; }
.blh-mw-readiness small { color: #718198; font-size: 11px; }
.blh-mw-loan-next { display: grid; gap: 5px; margin: 0 0 12px; padding: 12px; border: 1px solid #d9e8f8; border-radius: 9px; background: #f2f7fd; color: #244d78; font-size: 12px; line-height: 1.7; }
.blh-mw-loan-next span { color: #52677e; }
.blh-mw-timeline { display: grid; gap: 7px; padding: 12px; border-radius: 9px; background: #f5f8fc; color: #536981; font-size: 12px; }
.blh-mw-detail > footer { justify-content: flex-start; border-top: 1px solid #e8eef5; border-bottom: 0; }
.blh-mw-detail > footer button { min-width: 100px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; font-weight: 700; }
.blh-mw-reject { background: #fff0f0; color: #b4232f; }
.blh-mw-approve { background: #1971e8; color: #fff; }
@media (max-width: 1050px) { .blh-mw-grid, .blh-ew-grid { grid-template-columns: 1fr; } .blh-mw-side-column { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 700px) { .blh-manager-workspace, .blh-employee-workspace { padding: 12px 0 24px; } .blh-mw-heading { align-items: flex-start; } .blh-mw-heading h1 { font-size: 23px; } .blh-mw-heading p { font-size: 12px; } .blh-mw-primary { min-height: 40px; padding: 0 12px; font-size: 12px; } .blh-mw-side-column { display: grid; grid-template-columns: 1fr; } .blh-mw-card { padding: 13px; } .blh-mw-task { grid-template-columns: 1fr; } .blh-mw-review { width: 100%; } .blh-mw-tabs button { padding-inline: 4px; font-size: 11px; } }
@media (max-width: 520px) { .blh-mw-loan-facts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .blh-manager-workspace *, .blh-employee-workspace *, #blh-mw-detail-overlay * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Statement Popup */
.blh-stmt-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100000; display: none; align-items: center; justify-content: center; }
.blh-stmt-popup { background: white; border-radius: 16px; width: 90%; max-width: 850px; max-height: 85vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); direction: rtl; }
.blh-stmt-header { background: #001529; color: white !important; padding: 18px 24px; border-radius: 16px 16px 0 0; display: flex; justify-content: space-between; align-items: center; }
.blh-stmt-header h3 { margin: 0; font-family: 'Cairo', sans-serif !important; color: white !important; font-size: 16px; }
.blh-stmt-close { background: none; border: none; color: white !important; font-size: 24px; cursor: pointer; }
.blh-stmt-content { padding: 20px 24px; }
.blh-stmt-table { width: 100%; border-collapse: collapse; font-family: 'Cairo', sans-serif !important; font-size: 12px; }
.blh-stmt-table th { background: #f0f4f8; padding: 10px 12px; text-align: right; font-weight: 700; color: #001529 !important; border-bottom: 2px solid #dee2e6; }
.blh-stmt-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; color: #333 !important; }
.blh-stmt-table tr:hover { background: #f8f9ff; }
.blh-stmt-table .credit { color: #28a745 !important; font-weight: 700; }
.blh-stmt-table .debit { color: #dc3545 !important; font-weight: 700; }
.blh-stmt-table .balance-pos { color: #28a745 !important; font-weight: 700; }
.blh-stmt-table .balance-neg { color: #dc3545 !important; font-weight: 700; }
.blh-stmt-summary { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.blh-stmt-summary-card { flex: 1; min-width: 150px; background: #f8f9fa; border-radius: 10px; padding: 14px; text-align: center; }
.blh-stmt-summary-card .label { font-size: 11px; color: #666 !important; font-family: 'Cairo', sans-serif !important; }
.blh-stmt-summary-card .value { font-size: 20px; font-weight: 800; font-family: 'Cairo', sans-serif !important; }
.blh-stmt-payroll-breakdown { flex: 1 0 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 0.5rem; margin-top: 0.25rem; padding: 0.9rem; border: 1px solid #e5edf5; border-radius: 0.85rem; background: #f7f9fc; }
.blh-stmt-payroll-breakdown h4 { grid-column: 1 / -1; margin: 0 0 0.25rem; color: #003a70 !important; font-size: 13px; font-family: 'Cairo', sans-serif !important; }
.blh-stmt-payroll-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.65rem; border-radius: 0.6rem; background: #fff; font-size: 12px; }
.blh-stmt-payroll-breakdown > div span { color: #64748b !important; }
.blh-stmt-payroll-breakdown > div strong { color: #001529 !important; white-space: nowrap; }
.blh-stmt-period { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.blh-stmt-period input { border: 1px solid #ddd; padding: 6px 12px; border-radius: 8px; font-family: 'Cairo', sans-serif !important; color: #333 !important; }
.blh-stmt-period label { font-weight: 600; color: #333 !important; font-family: 'Cairo', sans-serif !important; font-size: 13px; }

.blh-stmt-demo { margin-top: 0.75rem; padding: 1rem; border: 1px solid #cbdced; border-radius: 0.9rem; background: #f8fbff; color: #19324a; font-family: 'Cairo', sans-serif !important; }
.blh-stmt-demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem; }
.blh-stmt-demo-heading h4 { margin: 0.35rem 0 0; color: #001529 !important; font-size: 1rem; }
.blh-stmt-demo-badge { display: inline-block; border-radius: 999px; padding: 0.2rem 0.65rem; background: #e4f1ff; color: #07559b !important; font-size: 0.75rem; font-weight: 700; }
.blh-stmt-demo-period { color: #52677c !important; font-size: 0.85rem; white-space: nowrap; }
.blh-stmt-demo-table-wrap { overflow-x: auto; border: 1px solid #e1e9f1; border-radius: 0.65rem; background: #fff; }
.blh-stmt-demo-table { min-width: 600px; }
.blh-stmt-demo-table caption { padding: 0.65rem; color: #52677c !important; text-align: right; font-weight: 700; }
.blh-stmt-demo-table td:nth-child(2) { color: #52677c !important; }
.blh-stmt-demo-table th[scope="row"] { padding: 0.55rem 0.75rem; border-bottom: 1px solid #f0f0f0; color: #333 !important; text-align: right; font-weight: 600; }
.blh-stmt-demo-total { background: #f6f9fc; font-weight: 700; }
.blh-stmt-demo-net { background: #eaf4ff; }
.blh-stmt-demo-net th, .blh-stmt-demo-net td { font-weight: 800; }
.blh-stmt-demo-employer { margin: 0.8rem 0 0; padding: 0.7rem 0.8rem; border-radius: 0.6rem; background: #fff; color: #334b62 !important; font-size: 0.82rem; line-height: 1.8; }
.blh-stmt-demo-note { margin: 0.7rem 0 0; padding: 0.75rem 0.85rem; border-right: 3px solid #5596d1; border-radius: 0.45rem; background: #edf5fc; color: #334b62 !important; font-size: 0.78rem; line-height: 1.9; }
@media (max-width: 600px) {
    .blh-stmt-demo { padding: 0.7rem; }
    .blh-stmt-demo-heading { align-items: flex-start; }
    .blh-stmt-demo-heading h4 { font-size: 0.9rem; }
}

/* Broken Profile Avatar Fix */
.orangehrm-attendance-card-profile-image img,
.employee-image {
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -10000px !important;
    overflow: hidden !important;
}
.orangehrm-attendance-card-profile-image img[src=""],
.orangehrm-attendance-card-profile-image img:not([src]),
.orangehrm-attendance-card-profile-image img[src*="undefined"] {
    display: none !important;
}
