@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

.lhr-wrap { font-family: 'Inter', sans-serif; direction: ltr; background: #f5f6fa; }

/* ── TOPBAR ─────────────────────────────────────────────────── */
.lhr-topbar { background: #fff; border-bottom: 0.5px solid #e5e7eb; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 58px; }
.lhr-topbar-left { display: flex; align-items: center; gap: 14px; }
.lhr-brand { display: flex; align-items: center; gap: 8px; }
.lhr-brand-icon { width: 28px; height: 28px; border-radius: 50%; background: #5a3ea1; display: flex; align-items: center; justify-content: center; }
.lhr-brand-icon svg { width: 14px; height: 14px; }
.lhr-brand-name { font-size: 14px; font-weight: 600; color: #111827; }
.lhr-divider { width: 0.5px; height: 20px; background: #e5e7eb; }
.lhr-org { display: flex; align-items: center; gap: 8px; }
.lhr-org-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; border: 0.5px solid #e5e7eb; }
.lhr-org-placeholder { width: 28px; height: 28px; border-radius: 6px; background: #5a3ea1; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.lhr-org-name { font-size: 13px; font-weight: 500; color: #6b7280; }
.lhr-topbar-right { display: flex; align-items: center; gap: 10px; }
.lhr-user-info { text-align: right; }
.lhr-user-name { font-size: 13px; font-weight: 500; color: #111827; display: block; }
.lhr-user-role { font-size: 11px; color: #9ca3af; display: block; }
.lhr-avatar { width: 34px; height: 34px; border-radius: 50%; background: #ede8f9; color: #5a3ea1; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }

/* ── TABS ────────────────────────────────────────────────────── */
.lhr-tabs { background: #fff; border-bottom: 0.5px solid #e5e7eb; padding: 0 28px; display: flex; gap: 0; }
.lhr-tab { padding: 14px 20px; font-size: 13px; font-weight: 500; color: #9ca3af; background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; font-family: 'Inter', sans-serif; }
.lhr-tab:hover { color: #5a3ea1; }
.lhr-tab.active { color: #5a3ea1; border-bottom-color: #5a3ea1; }

/* ── CONTENT ─────────────────────────────────────────────────── */
.lhr-content { padding: 28px; max-width: 1200px; }
.lhr-tab-pane { display: none; }
.lhr-tab-pane.active { display: block; }

/* ── NOTICES ─────────────────────────────────────────────────── */
.lhr-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; font-weight: 500; }
.lhr-notice-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── GREETING ────────────────────────────────────────────────── */
.lhr-greeting { margin-bottom: 24px; }
.lhr-greeting h2 { font-size: 20px; font-weight: 600; color: #111827; margin: 0 0 4px; }
.lhr-greeting p { font-size: 13px; color: #9ca3af; margin: 0; }

/* ── STATS ───────────────────────────────────────────────────── */
.lhr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.lhr-stat { background: #fff; border-radius: 10px; padding: 16px 20px; border: 0.5px solid #e5e7eb; }
.lhr-stat-label { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.lhr-stat-val { font-size: 28px; font-weight: 600; line-height: 1; }
.lhr-stat-sub { font-size: 11px; color: #9ca3af; margin-top: 4px; }
.lhr-purple { color: #5a3ea1; }
.lhr-green { color: #1d9e75; }
.lhr-amber { color: #ba7517; }

/* ── TOOLBAR ─────────────────────────────────────────────────── */
.lhr-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.lhr-search-wrap { display: flex; align-items: center; gap: 8px; background: #fff; border: 0.5px solid #e5e7eb; border-radius: 8px; padding: 8px 14px; flex: 1; min-width: 240px; }
.lhr-search { border: none; outline: none; font-size: 13px; color: #374151; width: 100%; font-family: 'Inter', sans-serif; background: transparent; }
.lhr-search-icon { color: #9ca3af; font-size: 14px; flex-shrink: 0; }
.lhr-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.lhr-wrap .lhr-btn,
.lhr-wrap button.lhr-btn,
.lhr-wrap a.lhr-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 8px 16px !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 500 !important; cursor: pointer !important; font-family: 'Inter', sans-serif !important; transition: all 0.15s !important; line-height: 1.4 !important; text-decoration: none !important; pointer-events: all !important; box-shadow: none !important; }
.lhr-wrap .lhr-btn-primary { background: #5a3ea1 !important; color: #fff !important; border: none !important; }
.lhr-wrap .lhr-btn-primary:hover { background: #4a2e91 !important; color: #fff !important; }
.lhr-wrap .lhr-btn-outline { background: #fff !important; color: #374151 !important; border: 1px solid #e5e7eb !important; }
.lhr-wrap .lhr-btn-outline:hover { background: #f9fafb !important; color: #374151 !important; }
.lhr-wrap .lhr-btn-invite { background: #eff6ff !important; color: #1d4ed8 !important; border: 1px solid #bfdbfe !important; }
.lhr-wrap .lhr-btn-invite:hover { background: #dbeafe !important; color: #1d4ed8 !important; }
.lhr-wrap .lhr-btn-sm { padding: 6px 12px !important; font-size: 12px !important; }

/* ── FORMS ───────────────────────────────────────────────────── */
.lhr-sub-form { background: #fff; border: 0.5px solid #e5e7eb; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.lhr-sub-form h3 { font-size: 14px; font-weight: 600; color: #111827; margin: 0 0 16px; }
.lhr-form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lhr-field { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 5px; }
.lhr-field label { font-size: 12px; font-weight: 500; color: #374151; }
.lhr-field input, .lhr-select { padding: 8px 12px; border: 0.5px solid #d1d5db; border-radius: 7px; font-size: 13px; color: #111827; font-family: 'Inter', sans-serif; background: #fff; width: 100%; }
.lhr-field input:focus, .lhr-select:focus { outline: none; border-color: #5a3ea1; box-shadow: 0 0 0 3px rgba(90,62,161,.1); }
.lhr-csv-info { background: #eff6ff; color: #1d4ed8; padding: 10px 14px; border-radius: 6px; font-size: 12px; margin-bottom: 14px; }

/* ── TABLE ───────────────────────────────────────────────────── */
.lhr-table-wrap { background: #fff; border-radius: 12px; border: 0.5px solid #e5e7eb; overflow: hidden; }
.lhr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lhr-table th { background: #fafafa; padding: 11px 16px; text-align: left; font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 0.5px solid #e5e7eb; }
.lhr-table td { padding: 12px 16px; border-bottom: 0.5px solid #f3f4f6; vertical-align: middle; }
.lhr-table tr:last-child td { border-bottom: none; }
.lhr-table tr:hover td { background: #fafafa; }
.lhr-cell { color: #6b7280; }

/* ── EMPLOYEE CELL ───────────────────────────────────────────── */
.lhr-emp-name-cell { display: flex; align-items: center; gap: 10px; }
.lhr-emp-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #fff; flex-shrink: 0; }
.lhr-emp-name { font-size: 13px; font-weight: 500; color: #111827; }
.lhr-emp-id { font-size: 11px; color: #9ca3af; }

/* ── BADGES ──────────────────────────────────────────────────── */
.lhr-libra-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.lhr-libra-yes { background: #f0fdf4; color: #166534; }
.lhr-libra-no { background: #fef2f2; color: #dc2626; }
.lhr-status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 500; }
.lhr-status-active { background: #f0fdf4; color: #166534; }
.lhr-status-sent { background: #fefce8; color: #854d0e; }
.lhr-status-none { background: #f9fafb; color: #9ca3af; }

/* ── ROW ACTIONS ─────────────────────────────────────────────── */
.lhr-row-actions { display: flex; gap: 6px; align-items: center; }
.lhr-row-actions form { margin: 0; }
.lhr-wrap .lhr-act-btn { display: inline-flex !important; align-items: center !important; padding: 5px 12px !important; border-radius: 7px !important; font-size: 12px !important; font-weight: 500 !important; cursor: pointer !important; font-family: 'Inter', sans-serif !important; transition: all 0.15s !important; pointer-events: all !important; text-decoration: none !important; }
.lhr-wrap .lhr-act-invite { background: #eff6ff !important; color: #1d4ed8 !important; border: 1px solid #bfdbfe !important; }
.lhr-wrap .lhr-act-invite:hover { background: #dbeafe !important; color: #1d4ed8 !important; }
.lhr-wrap .lhr-act-assign { background: #ede8f9 !important; color: #5a3ea1 !important; border: 1px solid #c4b5e8 !important; }
.lhr-wrap .lhr-act-assign:hover { background: #ddd6f3 !important; color: #5a3ea1 !important; }

/* ── ASSIGN TAB GRID ─────────────────────────────────────────── */
.lhr-assign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.lhr-assign-card { background: #fff; border: 0.5px solid #e5e7eb; border-radius: 12px; padding: 20px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lhr-assign-card .lhr-emp-av { margin: 0 auto 10px; }

/* ── MODAL ───────────────────────────────────────────────────── */
.lhr-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.lhr-modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: 500px; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.lhr-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 0.5px solid #e5e7eb; }
.lhr-modal-header h3 { font-size: 16px; font-weight: 600; color: #111827; margin: 0; }
.lhr-modal-close { background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 18px; line-height: 1; padding: 0; }
.lhr-modal-close:hover { color: #374151; }
.lhr-modal-body { padding: 20px 24px; }
.lhr-modal-sub { font-size: 13px; color: #6b7280; margin: 0 0 16px; }
.lhr-modal-footer { padding: 16px 24px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 0.5px solid #e5e7eb; }

/* ── SPINNER ─────────────────────────────────────────────────── */
.lhr-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: lhrSpin .7s linear infinite; }
@keyframes lhrSpin { to { transform: rotate(360deg); } }

/* ── EMPTY ───────────────────────────────────────────────────── */
.lhr-empty { text-align: center; padding: 40px; color: #9ca3af; font-size: 14px; background: #fff; border-radius: 12px; border: 0.5px solid #e5e7eb; }
