.ens-table-wrap { width: 100%; overflow-x: auto; }
.ens-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.ens-table th, .ens-table td { border: 1px solid #e2e3df; padding: 9px 12px; text-align: left; }
.ens-table thead th { background: #1f4e5f; color: #fff; font-weight: 600; }
.ens-table tbody tr:nth-child(even) td { background: #f7f8f7; }
.ens-card { max-width: 640px; background: #fff; border: 1px solid #e2e3df; border-radius: 10px; padding: 18px 20px; }
.ens-card h3 { margin: 0 0 12px; color: #1f4e5f; }
.ens-profile { width: 100%; border-collapse: collapse; }
.ens-profile th { text-align: left; width: 38%; vertical-align: top; padding: 8px 10px; color: #555; font-weight: 600; border-bottom: 1px solid #eef0ee; }
.ens-profile td { padding: 8px 10px; border-bottom: 1px solid #eef0ee; }

/* Trang cá nhân nhân sự */
.ens-account { max-width: 640px; }
.ens-account .ens-card { margin-bottom: 16px; }
.ens-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ens-card-head h3 { margin: 0; }
.ens-btn { display: inline-block; background: #1f4e5f; color: #fff !important; text-decoration: none; border: 0; border-radius: 6px; padding: 9px 16px; font-size: 14px; cursor: pointer; }
.ens-btn:hover { background: #163a47; }
.ens-btn-ghost { background: transparent; color: #1f4e5f !important; border: 1px solid #1f4e5f; padding: 7px 14px; }
.ens-btn-ghost:hover { background: #eef3f4; }
.ens-field { margin: 0 0 12px; }
.ens-field > label { display: block; font-weight: 600; color: #555; margin-bottom: 4px; }
.ens-field input[type=text], .ens-field input[type=email], .ens-field input[type=password], .ens-field select { width: 100%; max-width: 360px; padding: 7px 9px; border: 1px solid #ccd0ce; border-radius: 6px; }
.ens-field input[name*="[bank]"], .ens-field input[name*="[stk]"], .ens-field input[name*="[owner]"], .ens-field input[name*="[qr]"] { margin-bottom: 6px; }
.ens-check { display: inline-block; margin: 0 14px 6px 0; font-weight: 400; }
.ens-note { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.ens-note-ok { background: #e6f4ea; border: 1px solid #b7e1c4; color: #14622f; }
.ens-note-err { background: #fce8e8; border: 1px solid #f0bcbc; color: #8a1f1f; }

/* Phần ẩn sau nút bấm ở trang cá nhân */
details.ens-disc { padding: 0; margin-top: 6px; }
details.ens-disc > summary { list-style: none; cursor: pointer; display: inline-block; color: #111; font-size: 14px; font-weight: 600; text-decoration: underline; padding: 6px 0; }
details.ens-disc > summary::-webkit-details-marker { display: none; }
details.ens-disc > summary::before { content: "✎ "; }
details.ens-disc[open] > summary::before { content: "▾ "; }
details.ens-disc > summary:hover { color: #1f4e5f; }
.ens-disc-body { margin-top: 12px; }

.ens-link { color: #1f4e5f; text-decoration: underline; cursor: pointer; font-size: 14px; }

/* Avatar nổi ở góc màn hình + menu tài khoản */
.ens-portal { position: fixed; top: 14px; right: 16px; z-index: 99999; }
.ens-portal-btn { border: 0; background: none; padding: 0; cursor: pointer; line-height: 0; border-radius: 50%; }
.ens-portal-btn img { display: block; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.28); }
.ens-portal-ph { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #1f4e5f; color: #fff; font-weight: 700; font-size: 18px; box-shadow: 0 1px 5px rgba(0,0,0,.28); }
.ens-portal-menu { position: absolute; right: 0; top: 52px; min-width: 190px; background: #fff; border: 1px solid #e2e3df; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 6px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
/* Cầu nối trong suốt phủ khe hở giữa avatar và menu, để rê chuột xuống không bị mất */
.ens-portal-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
/* Giữ menu khi hover vào avatar HOẶC vào chính menu (nhờ cầu nối), hoặc khi đã bấm mở */
.ens-portal:hover .ens-portal-menu, .ens-portal:focus-within .ens-portal-menu, .ens-portal-menu:hover, .ens-portal.ens-open .ens-portal-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.ens-portal-name { padding: 8px 12px; color: #777; font-size: 12px; border-bottom: 1px solid #eef0ee; margin-bottom: 4px; }
.ens-portal-menu a { display: block; padding: 9px 12px; color: #1f2d33; text-decoration: none; border-radius: 6px; font-size: 14px; }
.ens-portal-menu a:hover { background: #eef3f4; }

/* Avatar trong form sửa thông tin cá nhân */
.ens-av-row { display: flex; align-items: center; gap: 14px; }
.ens-av-row img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ens-av-ctl { display: flex; flex-direction: column; gap: 6px; }
.ens-av-rm { font-weight: 400; font-size: 13px; color: #555; }

/* Avatar hồ sơ + placeholder chữ cái */
.ens-prof-avatar { text-align: center; margin: 6px 0 16px; }
.ens-avatar-ph { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #1f4e5f; color: #fff; font-weight: 700; }

/* Cửa sổ popup */
.ens-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100000; }
.ens-modal.is-open { display: block; }
.ens-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); }
.ens-modal-box { position: relative; max-width: 520px; margin: 6vh auto; background: #fff; border-radius: 12px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 86vh; overflow: auto; }
.ens-modal-box h3 { margin: 0 0 16px; color: #1f4e5f; }
.ens-modal-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #888; }
.ens-modal-x:hover { color: #333; }
.ens-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }

.ens-note-wait { background: #fff6e5; border: 1px solid #f3dca3; color: #8a5a00; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.ens-modal-hint { color: #777; font-size: 13px; margin: -6px 0 14px; }

/* Tránh bị thanh công cụ WordPress (admin bar) che mất avatar */
.admin-bar .ens-portal { top: 46px; }
@media screen and (max-width: 782px) { .admin-bar .ens-portal { top: 56px; } }

/* Tabs trong trang "Thông tin của tôi" (Egova Nhân sự) */
.ens-tabs{display:flex;gap:6px;border-bottom:1px solid #e6e8e6;margin-bottom:14px}
.ens-tab{appearance:none;background:none;border:none;border-bottom:2px solid transparent;padding:10px 14px;font-size:15px;font-weight:600;color:#777;cursor:pointer}
.ens-tab:hover{color:#333}
.ens-tab.is-active{color:#1d7a3a;border-bottom-color:#1d7a3a}
.ens-pane{display:none}
.ens-pane.is-active{display:block}
