/* employee-green.css — BAN SAO NGUYEN VAN employee-green/style.css
   (chi doi tien to duong dan font ./fonts/ -> ../fonts/plus-jakarta-sans/
   cho khop vi tri moi; KHONG sua bat ky rule nao). Lab xanh la la
   chuan giao dien duy nhat cua toan project. */
/* Plus Jakarta Sans self-host (offline 100%): vietnamese + latin, 500/600/700/800 */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap;
    src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-vietnamese-500.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap;
    src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap;
    src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-vietnamese-600.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap;
    src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap;
    src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-vietnamese-700.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap;
    src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap;
    src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-vietnamese-800.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap;
    src: url(../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Lab xanh la — Soft UI theo reference: Plus Jakarta Sans + emerald + pastel + bong 2 lop.
   Layout + icon FA + API that giu nguyen. */
:root {
    --f: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --bg: #eef2ee; --card: #ffffff; --text: #2C3E2D; --muted: #7A8E7C;
    --line: #C2DFD0; --acc: #10B981; --acc2: #34D399; --soft: #E8F4EE;
    --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
    --glow: rgba(16, 185, 129, 0.12);
    --brandA: #0b7a55; --brandB: #34d399; --brandSA: #059669; --brandSB: #6ee7b7;
    --ease: cubic-bezier(.22, 1, .36, 1);
}
html.dark {
    --bg: #000000; --card: #0B120C; --text: #DCE9E0; --muted: #8AA392;
    --line: #1E3A28; --acc: #4ade80; --acc2: #A7F3D0; --soft: #0E1A12;
    --ok: #4ade80; --warn: #FBBF24; --bad: #F87171;
    --glow: rgba(74, 222, 128, 0.12);
    --brandA: #4ade80; --brandB: #d1fae5; --brandSA: #86efac; --brandSB: #f0fdf4;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f); font-size: 13px; }
.egl { margin: 0 auto;     padding: 10px 10px 0px; animation: in .25s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .egl { animation: none; } .egl * { transition: none !important; animation: none !important; } }

.egl-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.egl-titlewrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.egl-titleicon { width: 44px; height: 44px; border-radius: 6px; background: var(--soft); color: var(--acc);
    border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; flex: none; }
.egl-titleicon i { line-height: 1; }
.egl-titletx { min-width: 0; }
.egl-title { margin: 0; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--acc); }
.egl-sub { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.egl-sub code { font-size: 11px; }
.egl-theme { margin-left: auto; border: 1px solid var(--line); background: var(--card); color: var(--text);
    border-radius: 6px; padding: 9px 14px; cursor: pointer; min-height: 38px;
    transition: transform .18s var(--ease), background .18s; }
.egl-theme:hover { transform: translateY(-1px); background: var(--soft); }

.egl-stats { margin-bottom: 12px; display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    padding: 14px 16px; background: linear-gradient(135deg, var(--card), var(--bg));
    border: 1px solid rgba(16, 185, 129, .08); border-radius: 6px;
    box-shadow: 0 8px 24px rgba(21, 128, 61, .04), 0 2px 8px rgba(21, 128, 61, .02); }
html.dark .egl-stats { border-color: var(--line); box-shadow: none; }
/* Dai tong quan thang kieu hr */
.egl-monthbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; flex-wrap: wrap; }
.egl-mbtn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
    font-size: 11px; font-weight: 600; color: var(--text); background: var(--bg);
    border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-family: inherit;
    transition: all .2s; white-space: nowrap; }
.egl-mbtn:hover { color: var(--acc); border-color: var(--acc); }
.egl-mbtn:active { transform: scale(.95); }
.egl-month { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.egl-month .sic { display: inline-flex; }
.egl-month .sic i { font-size: 15px; }
.egl-month b { font-size: 11px; font-weight: 600; color: var(--acc); background: rgba(74,222,128,.12);
    padding: 2px 10px; border-radius: 6px; }
.egl-statgrid { display: grid; grid-template-columns: repeat(6, 1fr); }
.egl-stat { padding: 8px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.egl-stat + .egl-stat { border-left: 1px solid var(--line); }
.egl-stat .sl { font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.egl-stat .sv { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.2; }
.egl-stat .sv.is-ok { color: var(--ok); } .egl-stat .sv.is-warn { color: var(--warn); } .egl-stat .sv.is-bad { color: var(--bad); }
.egl-nav .nic, .egl-foot .fic { display: inline-flex; }
.egl-nav .nic i { font-size: 17px; width: 20px; text-align: center; }
.egl-foot .fic i { font-size: 19px; }
.egl-view i { font-size: 15px; }
.egl-act { display: inline-flex; gap: 6px; align-items: center; }
/* Tooltip chi hien tren thiet bi co hover (PC/tablet), an tren cam ung */
@media (hover: hover) and (pointer: fine) {
    .egl-act [data-tip], .egx-ufile [data-tip], .egx-img [data-tip] { position: relative; }
    /* Nang CA HANG dang hover len tren de khong bi dong sau de len */
    .egl-table tbody tr:has([data-tip]:hover) { position: relative; z-index: 30; }
    .egl-act [data-tip]:hover::after, .egx-ufile [data-tip]:hover::after, .egx-img [data-tip]:hover::after {
        content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
        background: var(--card); color: var(--text); border: 1px solid var(--line);
        font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 8px; white-space: nowrap;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .18); z-index: 999; pointer-events: none; }
    /* Hang cuoi: lat tooltip len tren, tranh bi card (overflow hidden) cat */
    .egl-table tbody tr:last-child .egl-act [data-tip]:hover::after { top: auto; bottom: calc(100% + 8px); }
}
.egl-search .sic { display: inline-flex; color: var(--muted); }
.egl-search .sic i { font-size: 15px; }
@media (max-width: 1024px) {
    .egl-statgrid { grid-template-columns: repeat(3, 1fr); }
    .egl-stat:nth-child(n+4) { border-top: 1px solid var(--line); }
    .egl-stat:nth-child(3n+1) { border-left: 0; }
}
@media (max-width: 640px) {
    .egl-statgrid { grid-template-columns: repeat(2, 1fr); }
    .egl-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    /* Reset ca rule goc .egl-stat + .egl-stat (0,2,0) de cot trai khong dinh vien */
    .egl-stat,
    .egl-stat + .egl-stat { border-left: 0; }
    .egl-stat:nth-child(2n) { border-left: 1px solid var(--line); }
}

/* Search chim kieu Soft UI + glow khi focus */
.egl-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; background: var(--card);
    border: 1px solid rgba(16, 185, 129, .08); border-radius: 6px; padding: 16px;
    box-shadow: 0 8px 24px rgba(21, 128, 61, .04), 0 2px 8px rgba(21, 128, 61, .02); }
html.dark .egl-toolbar { border-color: var(--line); box-shadow: none; }
.egl-search { flex: 1 1 200px; display: flex; gap: 12px; align-items: center;
    background: var(--bg); border: 1px solid rgba(16, 185, 129, .1); border-radius: 6px;
    padding: 0 16px; min-height: 44px; box-shadow: inset 0 2px 4px rgba(21, 128, 61, .04);
    transition: all .3s var(--ease); }
html.dark .egl-search { border-color: var(--line); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35); }
.egl-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-size: 13px; font-weight: 600; font-family: inherit; }
.egl-search input::placeholder { color: var(--muted); font-weight: 500; }
.egl-search:focus-within { background: var(--card); border-color: var(--line); box-shadow: 0 0 0 4px var(--glow); }
.egl-goldbtn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 25px; background: var(--acc);
    color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 13px; font-family: inherit;
    box-shadow: 0 8px 24px rgba(16, 185, 129, .25); transition: all .3s var(--ease); white-space: nowrap; }
html.dark .egl-goldbtn { box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.egl-goldbtn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.egl-goldbtn i { font-size: 15px; }
/* Hang filter pill kieu hr .active-bar + Soft UI */
.egl-chipsrow { background: var(--card); border: 1px solid rgba(16, 185, 129, .08); border-radius: 6px;
    padding: 15px 12px; margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(21, 128, 61, .04), 0 2px 8px rgba(21, 128, 61, .02); }
html.dark .egl-chipsrow { border-color: var(--line); box-shadow: none; }
.egl-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.egl-chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* ===== Pills kieu hr .active-bar-item ===== */
.egl-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.egl-chipbtn { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--muted);
    font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; font-family: inherit;
    transition: all .3s ease; }
.egl-chipbtn:hover { border-color: var(--acc); color: var(--text); }
.egl-chipbtn.active { background: var(--acc); color: #fff; border-color: var(--acc); font-weight: 700;
    box-shadow: 0 8px 20px rgba(16, 185, 129, .3); }
.egl-chipbtn .nic { display: inline-flex; }
.egl-chipbtn .nic i { font-size: 13px; }
.egl-chipbtn .cbadge { display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 50px;
    background: var(--line); color: inherit; font-size: 10px; font-weight: 700; line-height: 1; }
.egl-chipbtn.active .cbadge { background: rgba(255,255,255,.25); color: inherit; }

.egl-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(21, 128, 61, .04), 0 2px 8px rgba(21, 128, 61, .02); }
html.dark .egl-card { border-color: var(--line); box-shadow: none; }
.egl-skel { padding: 14px; display: grid; gap: 8px; }
.egl-skel span { height: 14px; border-radius: 6px;
    background: linear-gradient(90deg, rgba(128,128,128,.15), rgba(128,128,128,.32), rgba(128,128,128,.15));
    background-size: 200% 100%; animation: sweep 1.2s infinite; }
@keyframes sweep { to { background-position: -200% 0; } }

.egl-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.egl-table th { font-size: 10px; color: var(--muted); font-weight: 600; text-align: left; padding: 14px 14px;
    text-transform: uppercase; letter-spacing: .05em; background: var(--soft); white-space: nowrap; }
.egl-table th:last-child, .egl-table td:last-child { border-top-right-radius: 10px; }
.egl-table td { font-size: 12px; color: var(--text); padding: 5px 7px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; word-break: normal; }
.egl-table tbody tr { cursor: pointer; transition: background .15s; }
.egl-table tbody tr:hover { background: var(--soft); }
.egl-user { font-size: 12px; }
.egl-id { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); white-space: nowrap; }
.egl-table .c-stt { text-align: center; white-space: nowrap; }
/* Cot thao tac: can phai, khong xuong dong (mau trang template dung
   class .c-act — bo sung vao lab CSS, xem rules/UI-Components.md). */
.egl-table th.c-act, .egl-table td.c-act { text-align: right; white-space: nowrap; }
.egl-view { width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(16, 185, 129, .2); background: var(--soft);
    color: var(--acc); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: all .3s var(--ease); }
html.dark .egl-view { border-color: var(--line); }
.egl-view:hover { background: var(--acc); color: #fff; border-color: var(--acc);
    box-shadow: 0 8px 20px rgba(16, 185, 129, .3); }
.egl-brandtx b { color: var(--acc); }
/* Khoi cuoi sidebar kieu hr: ngon ngu + theme */
.egl-sidebot { flex: none; padding: 12px 14px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--card); }
.egl-side { display: flex; flex-direction: column; }
.egl-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px; }
.egl-sidelbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.egl-langrow { display: flex; gap: 0; justify-content: center; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px; width: fit-content; max-width: 100%; justify-self: center; }
.egl-lang { flex: 0 0 auto; border: 0; background: none; color: var(--muted); border-radius: 6px;
    padding: 7px 18px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s; }
.egl-lang.active { background: var(--acc); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(16, 185, 129, .3); }
html.dark .egl-lang.active { color: #04120a; }
.egl-themerow { display: flex; gap: 0; justify-content: center; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px; width: fit-content; max-width: 100%; justify-self: center; }
.egl-themeopt { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; background: none; color: var(--muted); border-radius: 6px;
    padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s; }
.egl-themeopt i { font-size: 13px; }
.egl-themeopt.active { background: var(--acc); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(16, 185, 129, .3); }
html.dark .egl-themeopt.active { color: #04120a; }
.egl-copy { text-align: center; font-size: 10px; color: var(--muted); }
.egl-empty { text-align: center; color: var(--muted); padding: 22px; }
.egl-pager { display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; padding: 20px 14px 14px; font-size: 12px; color: var(--muted); }
.egl-pages { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.egl-nums { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.egl-page { padding: 8px 15px; background: var(--soft); border: 1px solid var(--line); color: var(--text);
    border-radius: 5px; cursor: pointer; font-size: 12px; font-family: inherit; transition: all .3s; }
.egl-page:hover:not(:disabled) { filter: brightness(1.1); }
.egl-page.active { background: var(--acc); color: #fff; border-color: var(--acc); font-weight: 700;
    box-shadow: 0 6px 16px rgba(16, 185, 129, .3); }
.egl-page:disabled { opacity: .45; cursor: default; }
.egl-page i { font-size: 11px; }
.egl-ellipsis { color: var(--muted); padding: 0 2px; user-select: none; }
.egl-perpage { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.egl-ppsel { position: relative; display: inline-flex; }
.egl-pptrig { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
    background: var(--soft); border: 1px solid var(--line); color: var(--text); border-radius: 6px;
    cursor: pointer; font-size: 12px; font-weight: 700; font-family: inherit; min-width: 64px; justify-content: center; }
.egl-pptrig:hover { border-color: var(--acc); }
.egl-pptrig i { font-size: 10px; color: var(--muted); transition: transform .2s; }
.egl-pptrig[aria-expanded="true"] i { transform: rotate(180deg); }
.egl-ppdrop { position: absolute; left: 0; bottom: calc(100% + 6px); min-width: 64px;
    background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 5px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25); z-index: 40; }
.egl-ppopt { display: block; width: 100%; text-align: left; padding: 9px 12px; font-size: 12px;
    background: none; border: 0; border-radius: 6px; color: var(--text); cursor: pointer; font-family: inherit; white-space: nowrap; }
.egl-ppopt:hover { background: var(--soft); color: var(--acc); }
.egl-ppopt.is-sel { background: var(--soft); color: var(--acc); font-weight: 700; }
/* Dropdown so dong/trang: an mac dinh. Hien khi:
   - .egl-ppsel.open (company/category: toggle class bang JS), HOAC
   - bo thuoc tinh hidden (gallery template: toggle hidden + role=listbox).
   Truoc day chi ho tro .open nen dropdown cua trang template khong bao gio
   hien (bam "Hien thi" khong thay gi). */
.egl-ppsel .egl-ppdrop { display: none; }
.egl-ppsel.open .egl-ppdrop,
.egl-ppsel .egl-ppdrop:not([hidden]) { display: block; }

@media (max-width: 1024px) { .egl-table .c-phone, .egl-table .c-birth { display: none; } }
@media (max-width: 768px) {
    .egl-table thead { display: none; }
    .egl-table, .egl-table tbody { display: block; width: 100%; }
    .egl-table tr { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 6px; margin: 10px; width: auto; }
    .egl-table td { border-bottom: 1px dashed var(--line); text-align: center; }
    .egl-table td::before { content: attr(data-l); display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; text-align: left; }
    .egl-table td[data-label]::before { content: attr(data-label); }
    .egl-table td[data-l="Họ tên"] { order: 1; grid-column: 1 / -1; }
    .egl-table td[data-l="STT"] { order: 2; }
    .egl-table td[data-l="Mã NV"] { order: 3; border-left: 1px dashed var(--line); }
    .egl-table td[data-l="Bộ phận"] { order: 4; }
    .egl-table td[data-l="Chức vụ"] { order: 5; border-left: 1px dashed var(--line); }
    .egl-table td[data-l="Điện thoại"] { order: 6; }
    .egl-table td[data-l="Ngày sinh"] { order: 7; border-left: 1px dashed var(--line); }
    .egl-table td[data-l="Thao tác"] { order: 8; grid-column: 1 / -1; border-bottom: 0; }
    .egl-table .c-phone, .egl-table .c-birth { display: block; }
}

.egl-modal[hidden], .egl-toast[hidden] { display: none; }
.egl-modal { position: fixed; inset: 0; z-index: 50; }
/* Khoa cuon trang nen khi co popup modal mo (JS toggle .egl-lock theo hidden cua modal) */
html.egl-lock, html.egl-lock body { overflow: hidden; }
html.egl-lock body { overscroll-behavior: none; }
.egl-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); animation: fade .2s ease-out; }
.egl-panel { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); width: min(760px, calc(100% - 24px));
    background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; animation: pop .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(16px) scale(.97); } }
/* Hieu ung vao nhe cho noi dung popup: avatar phong nhe + cac section noi tiep nhau */
.elb-vavatar { animation: elb-av .35s var(--ease) .05s both; }
@keyframes elb-av { from { opacity: 0; transform: scale(.7); } }
.elb-vsec { animation: elb-sec .35s var(--ease) both; }
.elb-vsec:nth-child(2) { animation-delay: .06s; }
.elb-vsec:nth-child(3) { animation-delay: .12s; }
.elb-vsec:nth-child(4) { animation-delay: .18s; }
.elb-vsec:nth-child(5) { animation-delay: .24s; }
@keyframes elb-sec { from { opacity: 0; transform: translateY(10px); } }
/* Ton trong giam chuyen dong: tat ca hieu ung popup */
@media (prefers-reduced-motion: reduce) { .egl-modal, .egl-modal * { animation: none !important; } }
.egl-phead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.egl-phead h2 { margin: 0; font-size: 13px; text-transform: uppercase; }
.egl-x { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; transition: all .25s ease; display: inline-flex; align-items: center; justify-content: center; }
.egl-x:hover { color: var(--acc); border-color: var(--acc); background: var(--soft); transform: scale(1.1); }
.egl-x i { font-size: 12px; }
.egl-pbody { padding: 0; }
/* Popup Chi tiet kieu project: side avatar + hero | main sections (Soft UI lab) */
.elb-view-detail { display: flex; }
.elb-view-side { flex: 0 0 22%; max-width: 210px; padding: 18px 14px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; gap: 8px; border-right: 1px solid var(--line); background: var(--soft); }
.elb-vavatar { width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--acc), #0b7a55); flex: none;
    box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--acc), 0 8px 20px rgba(16, 185, 129, .3); }
html.dark .elb-vavatar { color: #04120a; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--acc), 0 8px 20px rgba(0, 0, 0, .4); }
.elb-vavatar-img { background-size: cover; background-position: center; font-size: 0; }
.elb-vhero { font-size: 15px; font-weight: 800; }
.elb-vid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; width: 100%; }
.elb-vrule { width: 100%; height: 1px; background: var(--line); margin: 2px 0; }
.elb-vcode { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.elb-vpill { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor; }
.elb-vpill.is-ok { color: var(--ok); }
.elb-vpill.is-warn { color: var(--warn); }
.elb-vpill.is-bad { color: var(--bad); }
.elb-view-split { flex: 1; min-width: 0; display: flex; }
.elb-view-main { flex: 1; min-width: 0; max-height: min(62vh, 540px); overflow-y: auto; padding: 14px; }
.elb-vsec { margin-bottom: 14px; }
.elb-vsec:last-child { margin-bottom: 0; }
.elb-vsech { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; color: var(--text); }
.elb-vsech i { color: var(--acc); font-size: 13px; }
.elb-vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.elb-vcard { border: 1px dashed var(--line); border-radius: 6px; padding: 10px; background: var(--card); min-width: 0; }
.elb-vkey { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elb-vkey i { font-size: 11px; flex: none; }
.elb-vval { font-size: 13px; overflow-wrap: break-word; word-break: normal; }
/* Quy tac ngat dong chung cho lab: chi ngat theo RANH GIOI TU (khoang trang),
   khong bao gio cat doi ky tu giua chu (vd "sang hoi an" -> "sang hoi" / "an") */
.egl-table td, .elb-vval, .elb-vhero, .egl-title, .egl-sub, .egl-utx b, .egl-utx small,
.egl-moremenu a, .egl-moremenu button, .egl-toast, .egl-fsubitem { overflow-wrap: break-word; word-break: normal; }
.egl-pfoot { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
    .egl-panel { top: 12px; bottom: 12px; max-height: none; display: flex; flex-direction: column; }
    .egl-pbody { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
    .elb-view-detail { display: flex; flex-direction: column; flex: 1; min-height: 0; }
    .elb-view-side { flex: none; max-width: none; border-right: 0; border-bottom: 1px solid var(--line);
        flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 12px 14px; background: var(--card); }
    .elb-vavatar { width: 52px; height: 52px; font-size: 18px; }
    .elb-vid { flex: 1; min-width: 0; width: auto; align-items: flex-start; text-align: left; }
    .elb-vrule { width: 100%; }
    .elb-view-split { flex: 1; min-height: 0; overflow-y: auto; display: block; }
    .elb-view-main { overflow: visible; max-height: none; padding: 12px 14px; }
    .elb-vgrid { grid-template-columns: 1fr; gap: 0; }
    .elb-vsec { margin-bottom: 10px; }
    .elb-vsech { font-size: 12px; margin: 0 0 4px; }
    /* Mobile: card thanh hang gon — nhan trai, gia tri phai, line manh ngan cach */
    .elb-vcard { display: flex; align-items: baseline; gap: 10px; border: 0; border-bottom: 1px solid var(--line);
        border-radius: 0; background: none; padding: 8px 2px; }
    .elb-vgrid .elb-vcard:last-child { border-bottom: 0; }
    .elb-vkey { flex: none; max-width: 42%; margin: 0; font-size: 11px; }
    .elb-vkey i { display: none; }
    .elb-vval { flex: 1; min-width: 0; font-size: 12px; text-align: right; }
}

.egl-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--card);
    border: 1px solid var(--acc); color: var(--text); border-radius: 999px; padding: 10px 16px; font-size: 12px; z-index: 60; }

/* ===== Vo app: sidebar + header + footer (lab doc lap) ===== */
.egl-shell { display: flex; min-height: 100vh; }
.egl-side { width: 250px; flex: none; background: var(--card); border-right: 1px solid var(--line);
    position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 40;
    display: flex; flex-direction: column; transition: width .3s ease; }
/* Logo kieu hr-manager: card vien + icon canh quat 4 la xoay + ten 2 dong */
.egl-brand { display: flex; gap: 10px; align-items: center; flex-shrink: 0;
    margin: 12px 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px;
    background: var(--card); box-shadow: 0 4px 14px rgba(16, 185, 129, .09),
        inset 0 1px 0 rgba(255, 255, 255, .8); }
html.dark .egl-brand { box-shadow: 0 4px 14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .04); }
.egl-brandtx { min-width: 0; flex: 1; line-height: 1.2; overflow: hidden; text-align: left; }
.egl-brandtx b { display: block; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background-image: linear-gradient(to right, var(--brandA) 10%, var(--brandB) 50%, var(--brandA) 60%);
    background-size: 200% auto; background-clip: text; -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; animation: egl-brand-shift 3s linear infinite; }
.egl-brandtx small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background-image: linear-gradient(to right, var(--brandSA) 10%, var(--brandSB) 50%, var(--brandSA) 90%);
    background-size: 200% auto; background-clip: text; -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; animation: egl-brand-shift 3s linear infinite; }
@keyframes egl-brand-shift { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
/* An shimmer khi nguoi dung bat giam chuyen dong */
@media (prefers-reduced-motion: reduce) { .egl-brandtx b, .egl-brandtx small { animation: none; } }
/* Fan logo port tu hr-manager, doi mau sang xanh la cua lab */
.egl-logo { flex: none; }
.egl-fan .canvas { display: block; overflow: hidden; position: relative; width: 52px; height: 52px; }
.egl-fan .icon-wrapper { position: absolute; left: 4%; top: 0; transform: translate(-50%, -50%) scale(.25); transform-origin: center; }
.egl-fan .icon { width: 198px; height: 198px; animation: egl-logo-rotate 6s ease-in-out infinite; }
.egl-fan .icon, .egl-fan .icon * { display: block; position: absolute; }
.egl-fan .icon * { border-radius: 50%; height: 138px; width: 142px; }
.egl-fan .curve1 { left: 54px; top: 20px; }
.egl-fan .icon .curve1 * { left: -5px; top: 35px; transform: rotate(90deg); }
.egl-fan .curve1, .egl-fan .curve3 { box-shadow: 0 27px 0 var(--acc); }
.egl-fan .curve2, .egl-fan .curve4 { box-shadow: 0 27px 0 var(--acc2); animation: egl-curve-color 3s ease-in-out infinite alternate; }
@keyframes egl-logo-rotate { 0%, 100% { transform: rotate(45deg) scale(1); } 50% { transform: rotate(55deg) scale(1.05); } }
@keyframes egl-curve-color { 0% { box-shadow: 0 27px 0 #0b7a55; } 50% { box-shadow: 0 27px 0 #6ee7b7; } 100% { box-shadow: 0 27px 0 var(--acc); } }
@media (prefers-reduced-motion: reduce) { .egl-fan .icon, .egl-fan .curve2, .egl-fan .curve4 { animation: none; } }
.egl-nav { padding: 8px; }
.egl-nav > a, .egl-grp { display: flex; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 6px;
    color: var(--muted); text-decoration: none; font-size: 13px; border: 1px solid var(--line); background: none;
    cursor: pointer; width: 100%; text-align: left; font-family: inherit; margin: 5px 0; position: relative;
    transition: all .3s; }
.egl-nav > a span.tx, .egl-grp span.tx { flex: 1; }
.egl-nav > a:hover, .egl-grp:hover { background: var(--soft); color: var(--text); }
.egl-nav > a.active, .egl-grp.open { background: var(--soft); color: var(--acc); border-right: 3px solid var(--acc); }
.egl-grp small { margin-left: auto; color: var(--muted); display: inline-flex; line-height: 1; transition: transform .3s; }
.egl-grp small i { font-size: 14px; }
.egl-grp.open small { transform: rotate(180deg); }
/* Submenu bay kieu hr (desktop): panel fixed canh sidebar */
.egl-fly { position: fixed; left: 255px; z-index: 60; width: 232px;
    max-height: calc(100vh - 16px); overflow-x: hidden; overflow-y: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 0;
    display: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
html.side-collapsed .egl-fly { left: 95px; }
.egl-fly.open { display: block; }
.egl-fly a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 5px;
    color: var(--muted); text-decoration: none; font-size: 12px; border: 1px solid var(--line);
    border-radius: 6px; transition: all .3s; }
.egl-fly a:hover { background: var(--soft); color: var(--acc); }
.egl-fly a.active { background: var(--soft); color: var(--acc); border-left: 3px solid var(--acc); }
.egl-fly a .nic { display: inline-flex; }
.egl-fly a .nic i { font-size: 14px; width: 16px; text-align: center; }
.egl-main { flex: 1; min-width: 0; }
.egl-header { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
    background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
/* Logo trong header: an tren desktop, chi hien tren mobile (giong lunasoft .header-logo) */
.egl-hlogo { display: none; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; color: inherit; }
.egl-fan-sm .canvas { width: 32px; height: 32px; }
.egl-fan-sm .icon-wrapper { transform: translate(-50%, -50%) scale(.15); }
.egl-hbrandtx { display: flex; flex-direction: column; line-height: 1.15; }
.egl-hbrandtx b { font-size: 13px; font-weight: 700;
    background-image: linear-gradient(to right, var(--brandA) 10%, var(--brandB) 50%, var(--brandA) 60%);
    background-size: 200% auto; background-clip: text; -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; animation: egl-brand-shift 3s linear infinite; }
.egl-hbrandtx small { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .2px;
    background-image: linear-gradient(to right, var(--brandSA) 10%, var(--brandSB) 50%, var(--brandSA) 90%);
    background-size: 200% auto; background-clip: text; -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; animation: egl-brand-shift 3s linear infinite; }
.egl-hbtn { width: 38px; height: 38px; border-radius: 6px; border: 1px solid var(--line); background: none;
    color: var(--text); cursor: pointer; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.egl-hbtn:hover { background: var(--soft); }
/* Cum user kieu lunasoft .user-info: pill vien + avatar + ten/quyen */
.egl-uwrap { position: relative; }
.egl-uinfo { display: flex; gap: 10px; align-items: center; padding: 4px 14px 4px 5px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--text);
    font-family: inherit; font-size: 13px; text-align: left; cursor: pointer; }
/* Popup tai khoan duoi avatar: noi dung + bo cuc y het lunasoft .user-popup */
.egl-upopup[hidden] { display: none; }
.egl-upopup { position: absolute; top: calc(100% + 8px); right: 0; z-index: 55; min-width: 220px;
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: 6px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35); animation: pop .22s var(--ease); }
.egl-uav.lg { width: 56px; height: 56px; font-size: 20px; margin-bottom: 4px; flex: none; }
.egl-upopup strong { font-size: 14px; color: var(--text); text-align: center; }
.egl-upopup small { font-size: 12px; color: var(--muted); text-align: center; }
.egl-uprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.egl-uprow .mono { color: var(--text); font-weight: 700; font-family: ui-monospace, monospace; }
@media (min-width: 769px) { .egl-upopup { display: none !important; } }
.egl-uav { width: 36px; height: 36px; border-radius: 50%; background: var(--acc); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background-size: cover; }
.egl-uavwrap { position: relative; display: inline-flex; }
.egl-online { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px;
    background: var(--acc); border: 2px solid var(--card); border-radius: 50%; animation: egl-pulse 2s infinite; }
@keyframes egl-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.egl-utx b { display: block; font-size: 13px; }
.egl-utx small { color: var(--muted); font-size: 11px; }
.egl-hright { margin-left: auto; display: flex; gap: 8px; align-items: center; position: relative; }
.egl-moremenu { position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line);
    border-radius: 6px; padding: 10px; display: grid; gap: 0; min-width: 220px; z-index: 55;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35); animation: pop .22s var(--ease); }
.egl-moremenu[hidden] { display: none; }
.egl-mmhead { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px;
    border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.egl-mmhead span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.egl-mmhead button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center; padding: 2px; transition: color .3s; }
.egl-mmhead button:hover { color: var(--acc); }
.egl-mmitem { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--muted);
    text-decoration: none; font-size: 12px; font-weight: 500; border: 1px solid var(--line); border-radius: 4px;
    margin-bottom: 5px; background: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
    transition: all .3s; box-sizing: border-box; }
.egl-moremenu .egl-mmitem:last-child { margin-bottom: 0; }
.egl-mmitem:hover { background: var(--soft); color: var(--acc); }
.egl-mmitem .nic { display: inline-flex; }
.egl-mmitem .nic i { font-size: 16px; width: 20px; text-align: center; }
.egl-mmitem.is-logout { color: var(--bad); }
.egl-mmitem.is-logout:hover { background: rgba(185, 28, 28, .1); color: var(--bad); }
.egl-loginbar { margin: 12px 16px 0; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 6px;
    color: var(--muted); font-size: 12px; }
.egl-veilside { display: none; }
.egl-foot { display: none; }
html.side-collapsed .egl-side, .egl-side.is-collapsed { width: 90px; }
html.side-collapsed .egl-brandtx, html.side-collapsed .egl-grp small { display: none; }
html.side-collapsed .egl-nav > a, html.side-collapsed .egl-nav > .egl-grp { flex-direction: column; gap: 3px; padding: 10px 5px; text-align: center; justify-content: center; }
html.side-collapsed .egl-nav > a span.tx, html.side-collapsed .egl-nav > .egl-grp span.tx { font-size: 10px; flex: none; }
html.side-collapsed .egl-brand { justify-content: center; padding: 16px 8px; margin: 12px 8px 0; }
html.side-collapsed .egl-sidebot { padding: 10px 5px; gap: 8px; }
html.side-collapsed .egl-sidelbl { display: block; font-size: 9px; }
html.side-collapsed .egl-copy { display: none; }
html.side-collapsed .egl-langrow, html.side-collapsed .egl-themerow { width: auto; justify-self: stretch; }
html.side-collapsed .egl-lang { flex: 1; padding: 6px 0; font-size: 10px; }
html.side-collapsed .egl-themerow { gap: 6px; align-items: stretch; }
html.side-collapsed .egl-themeopt { flex: 1; font-size: 0; justify-content: center; padding: 7px 4px; gap: 0; }
html.side-collapsed .egl-themeopt i { font-size: 15px; }

@media (max-width: 768px) {
    .egl-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s var(--ease); }
    html.side-open .egl-side { transform: none; }
    html.side-open .egl-veilside { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 39; }
    html.side-collapsed .egl-side { width: 250px; }
    html.side-collapsed .egl-brandtx, html.side-collapsed .egl-nav > a span.tx, html.side-collapsed .egl-nav > .egl-grp span.tx, html.side-collapsed .egl-grp small { display: block; }
    html.side-collapsed .egl-nav > a span.tx, html.side-collapsed .egl-nav > .egl-grp span.tx { font-size: 13px; }
    html.side-collapsed .egl-nav > a, html.side-collapsed .egl-nav > .egl-grp { flex-direction: row; gap: 12px; padding: 12px 10px; text-align: left; }
    html.side-collapsed .egl-sidebot { padding: 12px 14px 16px; gap: 10px; }
    html.side-collapsed .egl-sidelbl, html.side-collapsed .egl-copy { display: block; font-size: 10px; }
    html.side-collapsed .egl-langrow, html.side-collapsed .egl-themerow { width: auto; justify-self: stretch; }
    html.side-collapsed .egl-lang { flex: 1; padding: 7px 0; font-size: 12px; }
    html.side-collapsed .egl-themerow { flex-direction: row; gap: 8px; align-items: center; }
    html.side-collapsed .egl-themeopt { flex: 1; font-size: 12px; justify-content: center; padding: 8px 4px; gap: 6px; }
    html.side-collapsed .egl-themeopt i { font-size: 13px; }
    /* Mobile: flyout thanh mo rong inline */
    .egl-fly { position: static; width: auto; box-shadow: none; border: 0; border-left: 1px solid var(--line);
        border-radius: 0; margin: 0 0 0 18px; padding: 0 0 0 8px; min-width: 0; max-height: none; }
    html.side-collapsed .egl-fly { left: auto; }
    /* Mobile: giong lunasoft — an nut mo sidebar (dieu huong bang footer),
       logo trai, cum chuong + avatar tron + more hep phai */
    [data-collapse] { display: none; }
    .egl-hlogo { display: flex; order: 1; }
    [data-notif] { order: 2; margin-left: auto; }
    .egl-uwrap { order: 3; }
    .egl-uinfo { padding: 5px; }
    .egl-hright { order: 4; margin-left: 0; }
    [data-theme] { display: none; }
    [data-morebtn] { width: 28px; }
    .egl-online { display: none; }
    .egl-uav { width: 32px; height: 32px; }
    .egl-utx { display: none; }
    .egl-header { padding: 10px 15px; }
    .egl-foot { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
        background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
    .egl-foot > a, .egl-foot > button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        font-size: 10px; color: var(--muted); text-decoration: none; background: var(--soft); border: 1px solid var(--line);
        cursor: pointer; padding: 7px 2px; border-radius: 6px; font-family: inherit; }
    .egl-foot > a.active, .egl-foot > button.active { color: var(--acc); border-color: var(--acc); }
    .egl-foot .fic { font-size: 18px; }
    .egl-main { padding-bottom: 70px; }
    .egl-fsub { position: fixed; left: 5px; right: 5px; bottom: 70px; z-index: 36; background: var(--card);
        border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: grid; gap: 0; max-height: 50vh; overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .35); animation: egl-footup .25s ease; }
    @keyframes egl-footup { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
    .egl-fsub[hidden] { display: none; }
    .egl-fsubhead { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px;
        border-bottom: 1px solid var(--line); margin-bottom: 10px; }
    .egl-fsubhead span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text); }
    .egl-fsubhead button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px;
        display: inline-flex; align-items: center; justify-content: center; padding: 2px; transition: color .3s; }
    .egl-fsubhead button:hover { color: var(--acc); }
    .egl-fsubitem { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--muted);
        text-decoration: none; font-size: 12px; font-weight: 500; border: 1px solid var(--line); border-radius: 4px;
        margin-bottom: 5px; background: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
        transition: all .3s; }
    .egl-fsubitem:last-child { margin-bottom: 0; }
    .egl-fsubitem:hover { background: var(--soft); color: var(--acc); }
    .egl-fsubitem.active { background: var(--soft); color: var(--acc); border-color: var(--acc); font-weight: 700; }
    .egl-fsubitem .nic { display: inline-flex; }
    .egl-fsubitem .nic i { font-size: 16px; width: 20px; text-align: center; }
}

/* ===== Dark: accent xanh la nhat (nen den giu nguyen) ===== */
html.dark .egl-chipbtn.active { box-shadow: 0 8px 20px rgba(74, 222, 128, .25); color: #04120a; }
html.dark .egl-goldbtn { color: #04120a; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
html.dark .egl-view:hover { color: #04120a; box-shadow: 0 8px 20px rgba(74, 222, 128, .25); }
html.dark .egl-page.active { color: #04120a; box-shadow: 0 6px 16px rgba(74, 222, 128, .25); }
html.dark .egl-month b { background: rgba(74, 222, 128, .14); }

/* ===== Custom scrollbar theo theme lab (WebKit + Firefox) ===== */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background-color: var(--line); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background-color: var(--acc); border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-corner { background: transparent; }

/* ===== Company overlay centering + motion (chi trang company) =====
   Khong sua rule lab ben tren; khoi nay chi GHIM lai cho overlay
   rieng company ([data-co-modal]/[data-co-view] + nut trong
   [data-company-root]): veil phu viewport, panel giua ngang
   (lab neo tren top:6% theo thiet ke), tuong tac dung var(--ease)
   cubic-bezier(.22,1,.36,1) va <=0.5s. Logo ring giu nguyen. */
[data-co-modal], [data-co-view] { position: fixed; inset: 0; }
[data-co-modal] > .egl-veil, [data-co-view] > .egl-veil { position: absolute; inset: 0; }
[data-co-modal] > .egl-panel, [data-co-view] > .egl-panel { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); }
[data-company-root] .egl-page, [data-co-modal] .egl-page, [data-co-view] .egl-page,
[data-co-modal] .egl-x, [data-co-view] .egl-x,
[data-co-modal] .egx-fbox { transition-timing-function: var(--ease); }
@media (max-width: 640px) {
    [data-co-modal] > .egl-panel, [data-co-view] > .egl-panel { top: 12px; bottom: 12px; }
}

/* ===== Category overlay centering + motion (chi trang category) =====
   COPY y khoi company: overlay co dinh full viewport, veil phu kin,
   panel giua ngang (lab neo tren top:6% theo thiet ke). Quy tac can
   giua doc (top:50% + translate) nam trong egx-demo.css scope
   [data-ca-modal]/[data-ca-view] nhu company. */
[data-ca-modal], [data-ca-view] { position: fixed; inset: 0; }
[data-ca-modal] > .egl-veil, [data-ca-view] > .egl-veil { position: absolute; inset: 0; }
[data-ca-modal] > .egl-panel, [data-ca-view] > .egl-panel { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); }
[data-category-root] .egl-page, [data-ca-modal] .egl-page, [data-ca-view] .egl-page,
[data-ca-modal] .egl-x, [data-ca-view] .egl-x,
[data-ca-modal] .egx-fbox { transition-timing-function: var(--ease); }
@media (max-width: 640px) {
    [data-ca-modal] > .egl-panel, [data-ca-view] > .egl-panel { top: 12px; bottom: 12px; }
}
