/* STARMED Workspace — bright, accessible employee experience. */
:root {
  --blue: #2563eb;
  --navy: #16345e;
  --page: #fff;
  --text: #203352;
  --muted: #61718b;
  --line: #e5ebf4;
  --shadow: 0 4px 22px #24477706;
}
body { font: 14px/1.6 'Segoe UI', Arial, sans-serif; background: #fff; }
h1,h2,h3,p { overflow-wrap: anywhere; }
a,button,input,select { transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
a,button,select { cursor: pointer; }
:focus-visible { outline: 3px solid #3b82f6; outline-offset: 4px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 15px; z-index: 100; padding: 12px; background: #fff; }
.skip-link:focus { top: 10px; }
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.sidebar { position: relative; top: auto; height: auto; min-height: 88px; flex-direction: row; align-items: center; gap: 25px; padding: 0 max(30px,calc((100vw - 1390px)/2)); background: #fff; color: var(--muted); border-bottom: 1px solid var(--line); z-index: 40; }
.brand { min-height: 88px; padding: 0; gap: 11px; border: 0; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; background: #2465e9; color: #fff; border-radius: 12px; font-size: 30px; box-shadow: 0 4px 12px #2563eb25; }
.brand b { font-size: 23px; letter-spacing: .8px; color: #173d72; line-height: 1; }
.brand-dot { color: #26b8c6; }
.brand small { display: block; margin-top: 5px; font-size: 9px; color: #61718b; letter-spacing: 3px; }
.nav-heading { display: none; }
.nav-list { display: flex; align-items: center; gap: 5px; padding: 0; }
.nav-list a { min-height: 44px; padding: 10px 15px; font-size: 13px; font-weight: 550; gap: 9px; border-radius: 8px; white-space: nowrap; }
.nav-list .icon { width: 19px; height: 19px; }
.nav-list a.active { background: #eef4ff; color: #215ccd; }
.nav-list a:hover { background: #f1f5fc; color: #215ccd; }
.nav-list[aria-label='Quản trị'] a { font-size: 12px; }
.user-panel { margin: 0 0 0 auto; padding: 0; min-height: 50px; border: 0; gap: 10px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex-basis: 36px; background: #e9efff; border-radius: 50%; color: #3265c8; font-weight: 650; font-size: 14px; }
.user-meta strong { color: #243b5c; font-size: 12px; max-width: 125px; }
.user-meta small { color: #687a96; font-size: 10px; }
.logout-button { background: transparent; color: #637694; font-size: 23px; min-width: 36px; min-height: 44px; }
.user-menu { position: relative; }
.user-menu-toggle { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 4px 0 4px 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; }
.user-menu-toggle:hover,.user-menu-toggle[aria-expanded='true'] { background: #f3f6fb; }
.user-menu-toggle .user-meta { display: grid; min-width: 0; flex: 1; }
.user-menu-more { display: grid; place-items: center; width: 30px; height: 36px; border-radius: 7px; color: #61718b; font-size: 23px; line-height: 1; }
.user-menu-toggle:hover .user-menu-more,.user-menu-toggle[aria-expanded='true'] .user-menu-more { background: #e7eef9; color: #245a91; }
.account-menu { position: absolute; top: calc(100% + 11px); right: 0; z-index: 70; width: 238px; max-height: min(360px,calc(100vh - 24px)); overflow-y: auto; padding: 7px; border: 1px solid #e1e8f2; border-radius: 12px; background: #fff; box-shadow: 0 16px 38px #19365b24; transform-origin: top right; }
.account-menu a,.account-menu button { display: flex; align-items: center; width: 100%; min-height: 45px; gap: 12px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #243b5c; font-size: 14px; text-align: left; }
.account-menu a:hover,.account-menu button:hover,.account-menu a:focus-visible,.account-menu button:focus-visible { background: #f2f6fc; color: #215ccd; outline: 0; }
.account-menu .icon { width: 20px; height: 20px; color: #243b5c; }
.account-menu a:hover .icon,.account-menu button:hover .icon { color: #215ccd; }
.account-menu form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid #edf1f7; }
.account-menu .account-menu-logout { color: #dc2626; }
.account-menu .account-menu-logout .icon { color: #dc2626; }
.account-menu .account-menu-logout:hover { background: #fff1f1; color: #c51f2c; }
.account-menu[hidden] { display: none; }
.account-unlinked-card { display: flex; align-items: flex-start; gap: 16px; max-width: 680px; }
.account-unlinked-card h2 { margin: 0 0 6px; color: #1b3050; font-size: 20px; }
.account-unlinked-card p { margin: 5px 0; color: #61718b; }
.account-unlinked-icon,.success-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: #eaf1ff; color: #2563eb; font-weight: 700; }
.password-card { max-width: 660px; }
.password-form { display: grid; gap: 17px; }
.password-form label { display: grid; gap: 7px; color: #3c506e; font-size: 12px; font-weight: 650; }
.password-form input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #d7e1ef; border-radius: 8px; background: #fff; color: #203352; font: inherit; }
.password-form input:focus { border-color: #3978e9; box-shadow: 0 0 0 3px #3978e91c; outline: 0; }
.password-form label small { color: #71819a; font-size: 11px; font-weight: 400; }
.form-error { color: #c62835; font-size: 11px; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 16px; border: 1px solid #d7e1ef; border-radius: 8px; background: #fff; color: #516580; font-size: 12px; font-weight: 650; }
.secondary-button:hover { border-color: #a9c1e8; background: #f4f7fc; }
.password-success-card { display: flex; align-items: flex-start; gap: 16px; max-width: 660px; }
.password-success-card h2 { margin: 0 0 5px; color: #1b3050; font-size: 19px; }
.password-success-card p { margin: 0 0 17px; color: #61718b; }
.content-shell { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.topbar { position: sticky; top: 0; z-index: 20; height: 49px; padding: 0 max(32px,calc((100vw - 1330px)/2)); border: 0; background: #fff; }
.breadcrumb,.topbar-right { display: flex; align-items: center; gap: 15px; font-size: 12px; }
.breadcrumb .icon { width: 16px; color: #8291a9; }
.breadcrumb>span { color: #b0bccd; }
.breadcrumb strong { font-weight: 500; color: #61718b; }
.topbar-right .avatar,.header-date { display: none; }
.internal-label { font-size: 9px; color: #6c7e99; letter-spacing: 1.5px; }
.content { width: 100%; max-width: 1394px; margin: 0 auto; padding: 20px 32px 32px; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { font-size: 29px; font-weight: 650; letter-spacing: -.7px; color: #1b3050; }
.page-heading p { font-size: 13px; color: #63728b; margin: 6px 0 0; }
.page-heading .eyebrow { font-size: 10px; font-weight: 650; color: #2563eb; letter-spacing: 1.6px; margin: 0 0 6px; }
.home-heading-actions { display:flex; align-items:center; gap:10px; }
.home-heading-actions form { margin:0; }
.home-heading-actions .secondary-button[disabled] { cursor:wait; opacity:.7; }
.date-chip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 10px 13px; background: #fff; border-radius: 8px; color: #526582; font-size: 12px; white-space: nowrap; }
.date-chip .icon { width: 17px; height: 17px; color: #4477ce; }
.welcome-grid { display: grid; grid-template-columns: 1.85fr 1fr; gap: 22px; }
.hero-banner { position: relative; display: flex; min-height: 267px; overflow: hidden; border-radius: 15px; background: linear-gradient(112deg,#2161d8 0%,#367eea 65%,#51a0f3 100%); color: #fff; }
.hero-copy { padding: 29px 33px; position: relative; z-index: 2; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid #ffffff45; border-radius: 5px; color: #fff; font-size: 8px; letter-spacing: 1.2px; }
.hero-tag>span { width: 5px; height: 5px; background: #91f2da; border-radius: 50%; }
.hero-copy h2 { color: #fff; font-size: 30px; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; margin: 12px 0 9px; }
.hero-copy p { font-size: 11px; color: #eef5ff; line-height: 1.85; margin: 0; }
.hero-button { display: inline-flex; gap: 18px; align-items: center; border-radius: 7px; background: #fff; color: #2054b1; padding: 10px 15px; font-size: 11px; font-weight: 650; margin-top: 18px; box-shadow: 0 3px 12px #1147ac15; }
.hero-button:hover { background: #e8f3ff; }
.hero-button .icon { width: 17px; height: 17px; }
.workspace-art { position: absolute; width: 290px; height: 265px; top: 7px; right: 10px; }
.art-ring { position: absolute; width: 245px; height: 245px; left: 33px; top: 4px; border: 1px solid #ffffff26; border-radius: 50%; box-shadow: 0 0 0 32px #ffffff06,0 0 0 64px #ffffff05; }
.art-tile { position: absolute; display: flex; background: #fff; border-radius: 12px; box-shadow: 0 14px 25px #10449822; color: #3069d1; }
.tile-clock { top: 34px; left: 26px; width: 62px; height: 62px; align-items: center; justify-content: center; transform: rotate(-12deg); background: #dff6ff; }
.tile-clock .icon { width: 32px; height: 32px; }
.tile-people { top: 30px; right: 20px; width: 152px; height: 117px; flex-direction: column; align-items: flex-start; padding: 15px; transform: rotate(8deg); }
.tile-people>span,.tile-doc>span { font-size: 10px; font-weight: 650; margin-top: 5px; }
.art-avatars { display: flex; padding-left: 4px; margin-top: 9px; }
.art-avatars i { display: grid; place-items: center; width: 25px; height: 25px; font-size: 9px; font-style: normal; font-weight: 600; background: #e3ecff; border: 2px solid #fff; border-radius: 50%; margin-left: -4px; }
.art-avatars i:nth-child(2) { background: #ffe6d1; color: #ba602c; }
.art-avatars i:nth-child(3) { background: #d8f6ef; color: #11876f; }
.art-avatars i:nth-child(4) { background: #3477e6; color: #fff; }
.tile-doc { top: 139px; left: 54px; width: 148px; height: 104px; flex-direction: column; align-items: flex-start; padding: 13px 16px; transform: rotate(-7deg); background: #fff8e7; color: #ab7717; }
.tile-doc b { width: 92px; height: 4px; border-radius: 3px; margin-top: 8px; background: #efdcb1; }
.tile-doc b:last-child { width: 65px; margin-top: 5px; }
.art-spark { position: absolute; color: #9ae6f2; font-size: 25px; }
.spark-one { top: 2px; left: 98px; }.spark-two { right: 13px; bottom: 33px; color: #ffe4a3; }
.today-panel { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 25px; }
.today-label { font-size: 9px; color: #6c7e99; letter-spacing: 1.3px; font-weight: 600; }
.today-panel h2 { font-size: 18px; margin: 9px 0 5px; color: #263e61; }
.today-panel>p { font-size: 12px; color: #687a96; margin: 0 0 15px; }
.quick-search { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 5px 4px 11px; border: 1px solid #dfe6f1; background: #f9fbff; border-radius: 8px; }
.quick-search>.icon { width: 17px; color: #7c8daa; }
.quick-search input { width: 100%; min-width: 0; border: 0; background: transparent; font-size: 11px; padding: 8px 0; color: var(--text); }
.quick-search button { border: 0; background: #edf3ff; color: #2563eb; border-radius: 5px; min-width: 36px; min-height: 36px; display: grid; place-items: center; }
.quick-search button .icon { width: 17px; }
.workspace-counts { display: grid; grid-template-columns: 1fr 1.2fr; margin: 19px 0 14px; }
.workspace-counts a { display: flex; flex-direction: column; }
.workspace-counts a+a { border-left: 1px solid var(--line); padding-left: 22px; }
.workspace-counts strong { color: #2466d9; font-size: 25px; font-weight: 650; line-height: 1.2; }
.workspace-counts span { font-size: 11px; color: #61718b; margin-top: 4px; }
.today-footnote { margin-top: auto; font-size: 10px; color: #6b7e9a; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 17px; }
h2,.section-title-row h2 { font-size: 17px; font-weight: 650; margin: 0; color: #243b5c; }
.subtle { font-size: 11px; color: #6c7c94; }
.quick-access { margin-top: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.feature-card { display: flex; gap: 17px; padding: 23px 21px 18px; border: 1px solid; border-radius: 12px; }
.attendance-feature { background: #eef5ff; border-color: #dce8ff; color: #245fc9; }
.people-feature { background: #eaf9f5; border-color: #d3eee6; color: #137962; }
.documents-feature { background: #fff5e9; border-color: #f7e7d1; color: #a56516; }
.feature-card:hover { box-shadow: 0 5px 17px #27497c12; border-color: currentColor; }
.feature-icon { width: 43px; height: 43px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: #fff; box-shadow: 0 3px 10px #27477708; }
.feature-icon .icon { width: 23px; height: 23px; }
.feature-kicker { font-size: 8px; font-weight: 650; letter-spacing: 1px; }
.feature-card h3 { color: #203b5c; font-size: 18px; margin: 4px 0 6px; line-height: 1.3; font-weight: 650; }
.feature-card p { color: #5a6d88; font-size: 11px; line-height: 1.65; margin: 0; }
.feature-link { display: inline-flex; align-items: center; gap: 19px; margin-top: 16px; font-size: 11px; font-weight: 600; }
.feature-link .icon { width: 16px; height: 16px; }
.dashboard-bottom { display: grid; grid-template-columns: 1.08fr 1fr; gap: 22px; margin-top: 25px; align-items: stretch; }
.panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.overview { margin: 0; }
.panel-caption { font-size: 11px; color: #697b94; margin: 4px 0 0; }
.text-link { font-size: 11px; font-weight: 600; color: #2563d9; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }.text-link>span { margin-left: 6px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.stat-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-height: 92px; padding: 13px; border: 1px solid #eaf0f7; border-radius: 9px; background: #fafcff; box-shadow: none; }
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 5px; }
.stat-top small { font-size: 10px; color: #596c88; margin: 0; line-height: 1.5; }
.stat-top .icon { width: 15px; height: 15px; color: #6b92dd; }
.stat-card strong { font-size: 26px; color: #285fc0; line-height: 1.2; font-weight: 650; }
.stat-card.green strong,.stat-card.green .icon { color: #1b8870; }
.stat-card.yellow strong,.stat-card.amber strong,.stat-card.yellow .icon,.stat-card.amber .icon { color: #a86c1c; }
.stat-card.red strong,.stat-card.rose strong,.stat-card.red .icon,.stat-card.rose .icon { color: #ca5b67; }
.connection-note { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #6b7b92; margin: 13px 0 0; }
.connection-note .icon { width: 13px; height: 13px; }
.recent-panel { display: flex; flex-direction: column; }
.document-row { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #edf1f7; }
.document-row>span:nth-child(2) { flex: 1; min-width: 0; }
.document-row strong { display: block; font-size: 12px; color: #304563; font-weight: 600; line-height: 1.5; }
.document-row small { display: block; margin-top: 3px; color: #6f7f96; font-size: 10px; }
.document-row time { color: #6e7d93; font-size: 10px; white-space: nowrap; }
.document-row:hover strong { color: #2464d9; }
.row-arrow { width: 14px; height: 14px; color: #8ca0bd; }
.file-icon { flex-shrink: 0; width: 35px; height: 40px; display: inline-grid; place-items: center; border-radius: 7px; background: #eef4ff; color: #4d7ed0; }
.file-icon .icon { width: 20px; height: 20px; }
.library-footer { display: flex; justify-content: center; align-items: center; gap: 13px; margin-top: auto; padding-top: 17px; font-size: 11px; color: #386bcc; font-weight: 550; }
.library-footer .icon { width: 15px; height: 15px; }
.birthday-panel { display: flex; align-items: center; gap: 32px; margin-top: 23px; padding: 20px 24px; background: linear-gradient(105deg,#fff8f5,#fffdfc); border-color: #f3e6e1; }
.birthday-heading { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.birthday-symbol { display: grid; place-items: center; width: 44px; height: 44px; background: #ffe9df; color: #d98154; border-radius: 13px; font-size: 32px; }
.birthday-heading h2 { font-size: 15px; }
.birthday-month { font-size: 9px; color: #a45e3b; padding: 4px 8px; border: 1px solid #f1dacb; background: #fff6ef; border-radius: 5px; white-space: nowrap; }
.birthday-list { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; flex: 1; border-left: 1px solid #efdfd7; padding-left: 30px; }
.birthday-person { border: 0; min-width: 220px; padding: 0; gap: 9px; }
.person-initial { background: #fce7dd; color: #a96346; width: 34px; height: 34px; }
.person-info strong { font-size: 11px; }.person-info small { color: #796e6b; font-size: 10px; }
.birthday-date { font-size: 10px; color: #a2654a; }
.empty-state { margin: 0; font-size: 12px; color: #806b63; font-style: normal; }.empty-state span { font-size: 10px; color: #88756f; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; max-width: 1330px; width: calc(100% - 64px); margin: 0 auto; padding: 18px 0; border-top: 1px solid var(--line); font-size: 10px; color: #6f7f95; }
.online-dot { display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; background: #29ab8b; }
.directory-toolbar { position: sticky; top: 49px; z-index: 15; margin: -20px -32px 0; padding: 20px 32px 0; background: #fff; }
.directory-result-row.directory-sticky-summary { margin: 14px 2px 0; padding: 0 0 13px; }
@media (min-width: 761px) {
  body.directory-page .sidebar { position: sticky; top: 0; }
  body.directory-page .topbar { top: var(--directory-navigation-height,88px); z-index: 30; }
  body.directory-page .directory-toolbar {
    top: calc(var(--directory-navigation-height,88px) + 49px);
    z-index: 25;
    border-bottom: 1px solid #edf1f7;
    box-shadow: 0 9px 18px #2447770b;
  }
}
.approval-sticky-region { margin: -20px -32px 0; padding: 20px 32px 12px; background: #fff; }
.approval-sticky-region .approval-heading { margin-bottom: 0; }
.approval-sticky-region .approval-results-heading { margin-bottom: 0; }
.attendance-work-legend { margin-top: 18px; }
.document-folder-nav { margin: 2px 0 18px; }
.document-folder-title { margin: 0 0 9px; color: #334d70; font-size: 12px; font-weight: 650; }
.document-folder-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.document-folder-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 13px; border: 1px solid #d9e3f0; border-radius: 9px; background: #fff; color: #35577e; font-size: 12px; line-height: 1.25; transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease; }
.document-folder-chip:hover { border-color: #8eb3ec; background: #f7faff; color: #245a91; }
.document-folder-chip.is-active { border-color: #245a91; background: #245a91; color: #fff; box-shadow: 0 5px 12px #245a9122; }
.document-folder-chip b { min-width: 22px; padding: 3px 6px; border-radius: 6px; background: #e9eef5; color: #526b8d; font-size: 10px; font-weight: 700; text-align: center; }
.document-folder-chip.is-active b { background: #f1f5fa; color: #245a91; }
.directory-filters { padding: 23px; border-radius: 12px; gap: 16px; background: #fff; border-color: var(--line); }
.directory-filters label>span { font-size: 12px; color: #536682; margin-bottom: 6px; }
.directory-filters input,.directory-filters select { height: 44px; border-radius: 7px; border-color: #dce4f0; color: #344c6c; background: #fbfcff; font-size: 13px; }
.directory-filters button,.primary-button { display: inline-block; min-height: 44px; padding: 11px 18px; background: #2563eb; border: 0; border-radius: 7px; color: #fff; font-weight: 600; font-size: 12px; }
.directory-filters button:hover,.primary-button:hover { background: #1c4fbd; }
.filter-reset { color: #3e6dbe; font-size: 12px; }
.directory-search-control { position: relative; }
.directory-search-suggestions { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; left: 0; overflow: hidden; border: 1px solid #d5e0f0; border-radius: 10px; background: #fff; box-shadow: 0 14px 30px #24477720; }
.directory-suggestion { display: flex; align-items: center; width: 100%; gap: 10px; padding: 10px 12px; border: 0; background: #fff; color: #243b5c; text-align: left; cursor: pointer; }
.directory-filters .directory-suggestion { background: #fff !important; color: #243b5c; }
.directory-filters .directory-suggestion:hover,.directory-filters .directory-suggestion:focus-visible { background: #f1f6ff !important; }
.directory-suggestion:hover,.directory-suggestion:focus-visible { background: #f1f6ff; outline: 0; }
.directory-suggestion-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #e9f1ff; color: #3a6cc4; font-size: 11px; font-weight: 700; }
.directory-suggestion-details { display: flex; min-width: 0; flex-direction: column; }
.directory-suggestion-details strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.directory-suggestion-details small { margin-top: 2px; color: #71819a; font-size: 10px; }
.directory-suggestion-empty { margin: 0; padding: 16px 12px; color: #6d7e97; font-size: 11px; text-align: center; }
.directory-result-row { font-size: 13px; margin: 24px 0 18px; }
.employee-grid { gap: 19px; }
.employee-card { padding: 23px 19px; min-height: 120px; border-color: var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.employee-card:hover { border-color: #a5bee9; background: #fdfdff; }
.employee-card-button { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.employee-card-button:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; }
.directory-profile-modal { width: min(680px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 32px)); padding: 0; overflow: hidden; border: 0; border-radius: 14px; box-shadow: 0 24px 70px rgba(15, 42, 75, .28); }
.directory-profile-modal::backdrop { background: rgba(15, 31, 54, .54); backdrop-filter: blur(2px); }
.directory-profile-modal article { background: #fff; }
.directory-profile-modal-header { display: flex; align-items: center; gap: 14px; padding: 19px 22px; background: #205784; color: #fff; }
.directory-profile-modal-avatar { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 50%; background: #fff; color: #205784; font-size: 1.1rem; font-weight: 750; }
.directory-profile-modal-heading { min-width: 0; flex: 1; }.directory-profile-modal-heading h2 { margin: 0; color: inherit; font-size: 1.1rem; }.directory-profile-modal-heading p { margin: 3px 0 0; color: rgba(255, 255, 255, .88); font-size: .83rem; }
.directory-profile-modal-close { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .55); border-radius: 7px; background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; }
.directory-profile-modal-tabs { display: flex; gap: 22px; padding: 0 22px; border-bottom: 1px solid #dce5f0; }.directory-profile-modal-tabs button { padding: 13px 2px 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #5d6d84; font: inherit; font-size: .86rem; cursor: pointer; }.directory-profile-modal-tabs .is-active { border-bottom-color: #2368ad; color: #174f84; font-weight: 700; }
.directory-profile-modal-body { max-height: calc(min(760px, 100dvh - 32px) - 142px); padding: 20px 22px 22px; overflow: auto; }.directory-profile-modal-body section + section { margin-top: 21px; }.directory-profile-modal-body h3 { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid #dce5f0; color: #174f84; font-size: .9rem; }
.directory-modal-fields,.directory-modal-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 30px; margin: 0; }.directory-modal-fields div,.directory-modal-contact div { min-width: 0; }.directory-modal-fields dt,.directory-modal-contact dt { margin-bottom: 4px; color: #60718a; font-size: .74rem; }.directory-modal-fields dd,.directory-modal-contact dd { margin: 0; color: #172b4d; font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }
.directory-modal-contact p { margin: 0; min-width: 0; }.directory-modal-contact strong { display: block; margin-bottom: 4px; color: #60718a; font-size: .74rem; font-weight: 500; }.directory-modal-contact a { color: #205784; font-size: .88rem; overflow-wrap: anywhere; }
.directory-modal-contact[hidden] { display: none !important; }
.leave-tabs { display:flex; gap:24px; margin:0 0 18px; border-bottom:1px solid var(--line); }.leave-tabs a { padding:11px 2px; color:#536682; font-size:13px; font-weight:650; border-bottom:2px solid transparent; }.leave-tabs a.is-active { color:#245a91; border-bottom-color:#245a91; }
.leave-form,.leave-list { padding:24px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow); }.leave-form h2,.leave-list h2 { margin:0 0 20px; font-size:16px; }.leave-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }.leave-form label { display:flex; flex-direction:column; gap:6px; color:#536682; font-size:12px; font-weight:650; }.leave-form input,.leave-form textarea { width:100%; box-sizing:border-box; min-height:42px; padding:9px 11px; border:1px solid #cfdbea; border-radius:7px; color:#243b5c; font:inherit; background:#fbfcff; }.leave-form textarea { min-height:92px; resize:vertical; }.leave-form>label { display:flex; margin-top:15px; }.leave-type { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0 0; padding:0; border:0; }.leave-type legend { margin-bottom:8px; color:#536682; font-size:12px; font-weight:650; }.leave-type label { flex-direction:row; align-items:center; justify-content:center; min-height:40px; border:1px solid #cfdbea; border-radius:7px; cursor:pointer; }.leave-type input { width:auto; min-height:auto; }.leave-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }.leave-list article { display:grid; grid-template-columns:180px 1fr auto; gap:8px 16px; padding:15px 0; border-top:1px solid var(--line); font-size:13px; }.leave-list article:first-of-type { border-top:0; }.leave-list article p { grid-column:2 / -1; margin:0; color:#61718b; }
.directory-modal-private { margin: 0; padding: 12px 14px; border: 1px solid #d4e0ee; border-radius: 7px; background: #f7faff; color: #53657e; font-size: .86rem; }.directory-profile-modal-footer { display: flex; justify-content: flex-end; padding-top: 21px; }
.employee-initial,.employee-profile-initial { color: #3b72ce; background: #eaf1ff; }
.employee-card-info strong { font-size: 14px; }.employee-card-info small { font-size: 11px; }.employee-card-info em { font-size: 10px; color: #617794; }.employee-state { font-size: 9px; }
.readonly-badge { font-size: 11px; padding: 7px 11px; color: #336ac3; background: #edf4ff; border-color: #d7e6fd; }
.employee-profile-card { border-color: var(--line); box-shadow: var(--shadow); }.employee-profile-header { background: #f0f5ff; padding: 28px; }.employee-profile-body { padding: 28px; }
.employee-profile-avatar { width: 58px; height: 58px; flex: 0 0 58px; object-fit: cover; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 12px #24477720; }
.employee-profile-tabs { display: flex; gap: 8px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #fff; }
.employee-profile-tabs a { position: relative; padding: 14px 8px 12px; color: #61718b; font-size: 13px; font-weight: 600; }
.employee-profile-tabs a::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; content: ""; }
.employee-profile-tabs a:hover,.employee-profile-tabs a.is-active { color: #245a91; }.employee-profile-tabs a.is-active::after { background: #245a91; }
.employee-profile-private-body { grid-template-columns: 1fr 1fr; }.employee-profile-private-body > section:last-child { grid-column: 1 / -1; }
.profile-fields dt,.profile-fields dd { font-size: 12px; }.profile-fields dd { overflow-wrap: anywhere; }
.document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.document-card { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 25px; box-shadow: var(--shadow); }
.document-card:hover { border-color: #b8ccee; }
.document-card .file-icon { background: #fff1df; color: #b67a2c; width: 43px; height: 48px; }
.category-label { display: inline-block; font-size: 10px; font-weight: 500; padding: 4px 8px; border-radius: 5px; background: #edf4ff; color: #386fc5; margin: 15px 0 8px; }
.document-drive-label { background: #eef4ff; color: #245a91; border-color: #cfe0ff; }
.document-card h2 { font-size: 17px; margin: 4px 0; line-height: 1.5; }.document-card h2 a:hover { color: #2563eb; }
.document-card p { flex: 1; font-size: 12px; color: #61718b; }.document-card small { font-size: 11px; color: #61718b; }
.document-path { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0; color: #64748b; font-size: 11px; line-height: 1.45; }
.document-path .icon { width: 14px; height: 14px; flex: 0 0 14px; color: #3978e9; margin-top: 2px; }
.document-actions { display: flex; justify-content: space-between; width: 100%; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 15px; gap: 10px; font-size: 12px; color: #486a9f; }
.document-detail { max-width: 1040px; margin-top: 15px; padding: 32px; }.document-description { color: #61718b; border-bottom: 1px solid var(--line); padding-bottom: 20px; }.document-content { line-height: 1.9; overflow-wrap: anywhere; }
.document-detail-path { display: flex; gap: 9px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border: 1px solid #e2eaf4; border-radius: 9px; background: #f7faff; color: #526582; font-size: 12px; overflow-wrap: anywhere; }
.document-detail-path .icon { width: 17px; height: 17px; flex: 0 0 17px; color: #3978e9; }
.document-drive-note { display: flex; gap: 13px; align-items: flex-start; margin-top: 22px; padding: 18px; border: 1px solid #e2eaf4; border-radius: 10px; background: #f7faff; color: #526582; }
.document-drive-note .icon { width: 22px; height: 22px; flex: 0 0 22px; color: #3978e9; }
.document-drive-note strong { color: #243b5c; font-size: 13px; }.document-drive-note p { margin: 5px 0 0; font-size: 12px; }
.attachment-note { display: flex; align-items: center; gap: 12px; padding: 18px; background: #eff5ff; color: #486a9f; border-radius: 8px; font-size: 13px; }
.directory-empty { grid-column: 1/-1; min-height: 260px; border: 1px dashed #ccd9ed; background: #fff; border-radius: 12px; padding: 40px; color: #61718b; }
.directory-empty>.icon,.soft-empty>.icon { width: 34px; height: 34px; color: #7694c6; margin-bottom: 14px; }.directory-empty p { font-size: 13px; }
.soft-empty { padding: 25px 15px; text-align: center; }.soft-empty>.icon { display: block; margin: 0 auto 14px; }.soft-empty strong { font-size: 14px; }.soft-empty p { font-size: 12px; color: #61718b; }
.month-picker { margin: 20px 0; padding: 7px; box-shadow: none; }.month-picker a { width: 40px; height: 40px; color: #2563eb; background: #eef4ff; }
.attendance-summary article { min-height: 108px; border-color: var(--line); padding: 19px 14px; box-shadow: var(--shadow); }.attendance-summary strong { font-size: 25px; }.attendance-summary small { font-size: 11px; }
.attendance-panel { margin-top: 23px; box-shadow: var(--shadow); border-color: var(--line); border-radius: 12px; }.attendance-panel-heading { padding: 23px; }.attendance-panel-heading p { font-size: 12px; margin-top: 5px; }
.attendance-table { font-size: 13px; }.attendance-table th { font-size: 10px; padding: 15px; background: #f3f6fc; }.attendance-table td { padding: 15px; }.attendance-status { font-size: 10px; }
.attendance-alert { border-color: #e3d5bc; background: #fff9ee; color: #866524; padding: 20px; }.readonly-note { font-size: 11px; margin-top: 15px; }
.attendance-employee-picker { display: flex; align-items: flex-end; gap: 14px; margin: 0 0 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.attendance-employee-picker > div { flex: 1; min-width: 0; }.attendance-employee-picker label { display: block; margin-bottom: 6px; color: #536682; font-size: 12px; font-weight: 600; }
.attendance-combobox { position: relative; }.attendance-combobox-trigger { display: flex; align-items: center; width: 100%; min-height: 48px; gap: 10px; padding: 8px 12px; border: 1px solid #cfdbea; border-radius: 8px; background: #fbfcff; color: #243b5c; text-align: left; }
.attendance-combobox-trigger:hover,.attendance-combobox-trigger[aria-expanded="true"] { border-color: #5a86db; background: #fff; box-shadow: 0 0 0 3px #2563eb12; }.attendance-combobox-trigger .icon { width: 17px; height: 17px; margin-left: auto; color: #6d83a2; }
.attendance-selected-person { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.attendance-combobox-trigger small { flex: 0 0 auto; padding: 3px 6px; border-radius: 4px; background: #eaf1ff; color: #3a6cc4; font-size: 10px; font-weight: 650; }
.attendance-combobox-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; left: 0; overflow: hidden; border: 1px solid #d5e0f0; border-radius: 10px; background: #fff; box-shadow: 0 15px 35px #24477722; }
.attendance-combobox-search { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid #e8edf5; background: #f8faff; }.attendance-combobox-search .icon { width: 17px; color: #7285a0; }.attendance-combobox-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #233b5d; font-size: 12px; }
.attendance-options { max-height: 295px; overflow-y: auto; padding: 5px; }.attendance-option { display: flex; align-items: center; width: 100%; gap: 10px; min-height: 54px; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; color: #243b5c; text-align: left; }.attendance-option.is-filtered-out { display: none !important; }.attendance-option:hover,.attendance-option:focus-visible { background: #f1f6ff; outline: 0; }.attendance-option.is-selected { background: #eaf2ff; }.attendance-option-avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; background: #e9f1ff; color: #3a6cc4; font-size: 11px; font-weight: 700; }.attendance-option-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }.attendance-option-main strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.attendance-option-main small { overflow: hidden; margin-top: 1px; color: #71819a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.attendance-option-code { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; color: #5575a6; font-size: 10px; font-weight: 650; }.attendance-option-code em { margin-top: 2px; color: #b36c39; font-size: 9px; font-style: normal; font-weight: 500; }.attendance-options-empty { padding: 20px 12px; color: #6d7e97; font-size: 11px; text-align: center; }
.attendance-scope-badge { color: #137962; background: #eaf9f5; border-color: #d3eee6; }.attendance-selection-error { margin: -8px 0 15px; color: #b04c58; font-size: 12px; }
.pagination a { padding: 10px 14px; font-size: 12px; }.back-link { font-size: 12px; }
.login-page { background: radial-gradient(ellipse at 15% 20%,#dceeff,transparent 55%),radial-gradient(ellipse at 85% 80%,#e0f6f0,transparent 55%),#f6f9ff; }
.login-card { padding: 40px; border: 1px solid #e0e9f6; border-radius: 18px; box-shadow: 0 20px 70px #3763a814; }
.login-logo { background: #2563eb; color: #fff; }.login-card button { background: #2563eb; }
.menu-toggle { display: none; }
@media (min-width: 1600px) { .welcome-grid { grid-template-columns: 2fr 1fr; }.hero-copy { padding: 31px 37px; }.workspace-art { right: 38px; } }
@media (max-width: 1250px) { .sidebar { gap: 20px; padding: 0 25px; }.nav-list a { padding: 10px; font-size: 12px; }.user-meta { display: none; }.nav-list[aria-label='Quản trị'] a { max-width: 130px; white-space: normal; line-height: 1.3; }.workspace-art { right: -12px; transform: scale(.86); transform-origin: right center; }.hero-copy { padding: 28px; }.hero-copy h2 { font-size: 28px; }.hero-copy p { max-width: 270px; }.hero-copy p br { display: none; }.feature-card { padding: 20px 17px; gap: 13px; }.feature-card h3 { font-size: 16px; }.feature-kicker { font-size: 7px; }.today-panel { padding: 23px; } }
@media (max-width: 1050px) { .sidebar { flex-wrap: wrap; gap: 0; padding: 0 25px 10px; }.brand { min-height: 70px; }.sidebar>.nav-list { order: 3; }.sidebar>.user-panel { order: 2; }.sidebar>.nav-list[aria-label='Quản trị'] { margin-left: auto; }.nav-list a { font-size: 12px; padding: 9px 13px; }.welcome-grid { grid-template-columns: 1.55fr 1fr; gap: 18px; }.workspace-art { opacity: .22; right: -10px; }.hero-copy { max-width: 100%; }.hero-copy p { max-width: 330px; }.today-panel h2 { font-size: 17px; }.feature-card { flex-direction: column; gap: 12px; }.feature-card h3 { font-size: 17px; }.feature-kicker { font-size: 8px; }.dashboard-bottom { grid-template-columns: 1fr 1fr; gap: 18px; }.panel { padding: 20px; }.stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.document-row time,.row-arrow { display: none; }.birthday-panel { flex-wrap: wrap; gap: 17px; }.birthday-list { border: 0; padding-left: 0; }.document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.attendance-summary { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) { .sidebar { position: relative; height: auto; padding: 0 20px; gap: 0; }.brand { min-height: 76px; }.brand b { font-size: 22px; }.brand-mark { width: 38px; height: 38px; }.sidebar .user-panel { display: flex; }.sidebar .nav-list { display: none; flex-direction: column; align-items: stretch; flex-basis: 100%; padding: 0 0 13px; }.sidebar .nav-list a { min-height: 45px; font-size: 13px; }.sidebar .nav-list[aria-label='Quản trị'] { margin: 0; }.sidebar .nav-list[aria-label='Quản trị'] a { max-width: none; }.menu-open .sidebar .nav-list { display: flex; }.nav-heading { display: none; }.topbar { padding: 0 20px; height: 49px; }.menu-toggle { display: grid; place-items: center; width: 38px; height: 38px; background: #e9f0fd; color: #336bc7; border: 0; border-radius: 6px; }.internal-label { font-size: 8px; letter-spacing: .5px; }.content { padding: 17px 20px 25px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 22px; }.page-heading h1 { font-size: 27px; }.page-heading p { font-size: 12px; }.home-heading-actions { width:100%; justify-content:space-between; }.date-chip { display: none; }.welcome-grid { grid-template-columns: 1fr; }.hero-banner { min-height: 262px; }.hero-copy { padding: 26px; }.workspace-art { opacity: .75; right: 5px; }.today-panel { padding: 21px; }.workspace-counts { margin-bottom: 7px; }.today-footnote { margin-top: 7px; }.feature-grid { gap: 11px; }.feature-card { padding: 18px 13px; }.feature-card h3 { font-size: 15px; }.feature-kicker { font-size: 7px; letter-spacing: .3px; }.feature-link { font-size: 10px; gap: 9px; }.feature-card p { font-size: 11px; }.dashboard-bottom { grid-template-columns: 1fr; }.stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.birthday-panel { display: block; }.birthday-heading { flex-wrap: wrap; gap: 10px; }.birthday-month { margin-left: auto; }.birthday-list { margin-top: 17px; padding-top: 15px; border-top: 1px solid #efdfd7; }.section-title-row { flex-direction: row; align-items: center; }.section-title-row h2 { font-size: 16px; }.subtle { font-size: 10px; }.document-row time { display: block; }.page-footer { width: calc(100% - 40px); font-size: 9px; }.directory-filters { flex-direction: column; align-items: stretch; padding: 20px; }.directory-filters label { width: 100%; }.directory-filters select { width: 100%; min-width: 0; }.employee-grid,.employee-profile-body { grid-template-columns: 1fr; }.employee-profile-header { flex-wrap: wrap; }.employee-status-badge { margin-left: 0; } }
@media (max-width: 540px) { .attendance-employee-picker { align-items: stretch; flex-direction: column; gap: 10px; }.attendance-employee-picker .primary-button { width: 100%; }.sidebar { padding: 0 17px; }.topbar { padding: 0 17px; }.topbar-right { display: none; }.content { padding: 15px 17px 25px; }.page-heading h1 { font-size: 25px; }.hero-copy { padding: 25px; }.hero-copy h2 { font-size: 28px; }.hero-copy p { max-width: 255px; font-size: 11px; }.workspace-art { opacity: .16; right: -60px; }.hero-tag { font-size: 7px; }.hero-button { min-height: 44px; }.today-panel { padding: 22px; }.quick-search input { font-size: 12px; }.quick-search button { min-height: 40px; min-width: 40px; }.feature-grid { grid-template-columns: 1fr; gap: 12px; }.feature-card { flex-direction: row; padding: 20px; gap: 17px; }.feature-card h3 { font-size: 18px; }.feature-kicker { font-size: 8px; letter-spacing: .8px; }.feature-card p { font-size: 12px; }.feature-link { font-size: 11px; margin-top: 12px; }.feature-icon { width: 44px; height: 44px; }.subtle { display: none; }.stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.stat-card { padding: 14px; min-height: 96px; }.stat-top small { font-size: 11px; }.panel { padding: 20px; }.document-row strong { font-size: 12px; }.document-row time { display: none; }.birthday-heading h2 { font-size: 14px; }.birthday-symbol { width: 36px; height: 36px; }.birthday-month { font-size: 8px; padding: 4px 6px; }.page-footer { font-size: 8px; gap: 15px; }.document-grid { grid-template-columns: 1fr; }.document-detail { padding: 22px; }.document-detail h1 { font-size: 23px; }.document-actions { min-height: 44px; }.attendance-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }.attendance-panel-heading { flex-direction: column; align-items: flex-start; gap: 10px; }.directory-empty { padding: 30px 20px; }.login-card { padding: 30px; }.profile-fields div { grid-template-columns: 1fr; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { *,*:before,*:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 540px) { .workspace-art { display: none; } }
@media (max-width: 760px) { .directory-toolbar { top: 49px; margin: -17px -20px 0; padding: 17px 20px 12px; } }
@media (max-width: 540px) { .directory-toolbar { margin: -15px -17px 0; padding: 15px 17px 12px; } }
@media (max-width: 760px) { .approval-sticky-region { margin: -17px -20px 0; padding: 17px 20px 12px; } }
@media (max-width: 540px) { .approval-sticky-region { margin: -15px -17px 0; padding: 15px 17px 12px; } }
@media (max-width: 760px) { .employee-profile-tabs { padding: 0 20px; }.employee-profile-private-body > section:last-child { grid-column: auto; } }
@media (max-width: 560px) { .directory-profile-modal-header,.directory-profile-modal-body { padding-right: 16px; padding-left: 16px; }.directory-profile-modal-tabs { padding: 0 16px; }.directory-modal-fields,.directory-modal-contact { grid-template-columns: 1fr; gap: 13px; } }

/* Attendance approvals */
.eyebrow { display:block; margin-bottom:8px; color:#2563eb; font-size:10px; font-weight:750; letter-spacing:1.25px; }
.secondary-button,.outline-danger-button,.success-button,.danger-text-button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:9px 14px; border:1px solid #cbd9ea; border-radius:8px; background:#fff; color:#315a8e; font-size:12px; font-weight:650; cursor:pointer; transition:background .18s ease,border-color .18s ease,color .18s ease; }
.secondary-button:hover { border-color:#82a8dd; background:#f5f9ff; }.approval-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:22px 0; }.approval-stats article { display:grid; grid-template-columns:44px 1fr; grid-template-rows:1fr 18px; column-gap:12px; min-height:96px; padding:17px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow); }.approval-stat-icon { display:grid; grid-row:1 / span 2; place-items:center; width:40px; height:40px; border-radius:10px; }.approval-stat-icon .icon { width:19px; height:19px; }.approval-stat-icon.warning { background:#fff5df; color:#c47911; }.approval-stat-icon.blue { background:#e9f2ff; color:#2769c7; }.approval-stat-icon.green { background:#e9f9f1; color:#13855e; }.approval-stats strong { align-self:end; color:#132a4a; font-size:22px; line-height:1; }.approval-stats small { align-self:start; color:#637792; font-size:11px; }.approval-tabs { display:flex; gap:4px; border-bottom:1px solid #dbe4f0; margin:0 0 12px; }.approval-tabs a { position:relative; min-height:46px; padding:14px 14px 12px; color:#61738d; font-size:13px; font-weight:650; }.approval-tabs a::after { position:absolute; right:0; bottom:-1px; left:0; height:2px; background:transparent; content:""; }.approval-tabs a.is-active { color:#245a91; }.approval-tabs a.is-active::after { background:#245a91; }.approval-tabs b { display:inline-block; min-width:20px; margin-left:5px; padding:2px 5px; border-radius:5px; background:#eaf1fb; color:#496a94; font-size:10px; text-align:center; }.approval-filters { display:grid; grid-template-columns:1.4fr repeat(3,minmax(140px,1fr)) auto; gap:12px; align-items:end; padding:18px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow); }.approval-filters label,.approval-editor label { display:flex; flex-direction:column; gap:6px; color:#536682; font-size:11px; font-weight:650; }.approval-filters input,.approval-filters select,.approval-editor input,.rollback-form input { min-height:40px; padding:8px 10px; border:1px solid #ccd9eb; border-radius:7px; outline:0; background:#fbfcff; color:#233b5d; font:inherit; }.approval-filters input:focus-visible,.approval-filters select:focus-visible,.approval-editor input:focus-visible,.rollback-form input:focus-visible { border-color:#3574d9; box-shadow:0 0 0 3px #2563eb1a; }.approval-filters .primary-button { min-height:40px; white-space:nowrap; }.approval-readonly,.approval-message { margin:13px 0; padding:11px 13px; border:1px solid #c9dff8; border-radius:8px; background:#f5f9ff; color:#41658f; font-size:12px; }.approval-message.success { border-color:#bfe8d5; background:#effbf5; color:#237353; }.approval-message.error { border-color:#f1c7c7; background:#fff6f6; color:#a43d45; }.approval-results-heading { display:flex; justify-content:space-between; gap:14px; margin:18px 0 10px; color:#526985; font-size:12px; }.approval-results-heading strong { color:#203c62; }.approval-case { overflow:hidden; margin-bottom:9px; border:1px solid #dce5f0; border-radius:10px; background:#fff; box-shadow:0 4px 14px #24477708; }.approval-case summary { display:grid; grid-template-columns:1.65fr .75fr 1.1fr 1fr 24px; align-items:center; gap:14px; min-height:74px; padding:13px 16px; cursor:pointer; list-style:none; }.approval-case summary::-webkit-details-marker { display:none; }.approval-case summary:hover { background:#fafcff; }.approval-person,.approval-date,.approval-proposed { display:flex; min-width:0; flex-direction:column; gap:4px; }.approval-person strong,.approval-date strong,.approval-proposed b { overflow:hidden; color:#172f50; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.approval-person small,.approval-date small,.approval-proposed { color:#667b96; font-size:10px; }.approval-issue { justify-self:start; padding:6px 9px; border-radius:6px; background:#fff6e5; color:#ac6810; font-size:10px; font-weight:650; }.approval-chevron { width:16px; color:#6c82a1; transition:transform .18s ease; }.approval-case[open] .approval-chevron { transform:rotate(180deg); }.approval-case-body { display:grid; grid-template-columns:.9fr 1.2fr; border-top:1px solid #dce5f0; }.approval-original,.approval-editor { padding:20px; }.approval-original { border-right:1px solid #dce5f0; background:#fbfcfe; }.approval-original h2,.approval-editor h2 { margin:0 0 14px; color:#244d7b; font-size:13px; }.approval-original dl { display:grid; grid-template-columns:1fr 1fr; gap:14px 24px; margin:0; }.approval-original dt { color:#6b7e96; font-size:10px; }.approval-original dd { margin:5px 0 0; color:#1d3556; font-size:13px; font-weight:650; }.approval-original p { margin:20px 0 0; color:#637792; font-size:11px; }.approval-editor { display:grid; gap:12px; }.approval-editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.approval-actions { display:flex; justify-content:flex-end; gap:9px; padding-top:4px; }.danger-text-button { border-color:transparent; color:#c5393d; }.danger-text-button:hover { background:#fff1f1; }.success-button { border-color:#087a59; background:#087a59; color:#fff; }.success-button:hover { border-color:#056447; background:#056447; }.approval-history-list { display:grid; gap:9px; }.approval-history-row { display:grid; grid-template-columns:1.2fr .7fr 1.4fr .9fr 1.4fr; align-items:center; gap:14px; padding:15px 16px; border:1px solid #dce5f0; border-radius:10px; background:#fff; }.approval-history-row>div { display:flex; min-width:0; flex-direction:column; gap:4px; }.approval-history-row strong { overflow:hidden; color:#203b5d; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.approval-history-row small { color:#6b7e96; font-size:10px; }.rollback-form { display:flex; gap:7px; align-items:center; }.rollback-form input { width:100%; min-width:0; min-height:36px; font-size:11px; }.outline-danger-button { min-height:36px; flex:0 0 auto; border-color:#f0c7c9; color:#bf3e46; }.outline-danger-button:hover { background:#fff3f3; }.approval-audit { margin-top:18px; border:1px solid #dce5f0; border-radius:10px; background:#fff; }.approval-audit summary { padding:14px 16px; color:#345d8c; font-size:12px; font-weight:650; cursor:pointer; }.approval-audit-table { overflow:auto; border-top:1px solid #e1e8f1; }.approval-audit table { width:100%; min-width:800px; border-collapse:collapse; color:#435d7c; font-size:11px; }.approval-audit th { padding:11px 14px; background:#f6f9fd; color:#637792; font-size:10px; text-align:left; }.approval-audit td { padding:11px 14px; border-top:1px solid #e9eef5; }.approval-audit td small { display:block; margin-top:3px; color:#71839b; }.approval-event { display:inline-block; padding:4px 7px; border-radius:5px; font-size:9px; font-weight:750; }.event-duyet { background:#e5f8ee; color:#187151; }.event-huy_duyet { background:#fff1f1; color:#bd4149; }.event-tu_choi { background:#fff5df; color:#a86c15; }.approval-export-note { margin:17px 0; color:#637792; font-size:12px; }.approval-export-list { display:grid; gap:10px; }.approval-export-list article { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px; border:1px solid #d4e0ee; border-radius:10px; background:#fff; }.approval-export-list article:first-child { border-color:#b7d2f2; background:#f0f7ff; }.approval-export-list h2 { margin:2px 0 5px; color:#193d67; font-size:16px; }.approval-export-list p { margin:0; color:#637792; font-size:11px; }
@media (max-width:1050px) { .approval-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.approval-query { grid-column:1 / -1; }.approval-case summary { grid-template-columns:1.5fr .8fr 1fr 24px; }.approval-proposed { display:none; }.approval-history-row { grid-template-columns:1.2fr .8fr 1.2fr; }.approval-history-row>div:nth-of-type(4) { display:none; }.rollback-form { grid-column:1 / -1; } }
@media (max-width:650px) { .approval-stats { grid-template-columns:1fr; }.approval-tabs { overflow-x:auto; }.approval-tabs a { flex:0 0 auto; }.approval-filters { grid-template-columns:1fr; }.approval-query { grid-column:auto; }.approval-case summary { grid-template-columns:1fr 24px; gap:8px; }.approval-date,.approval-issue { grid-column:1; }.approval-case-body { grid-template-columns:1fr; }.approval-original { border-right:0; border-bottom:1px solid #dce5f0; }.approval-history-row { grid-template-columns:1fr; }.rollback-form { flex-direction:column; align-items:stretch; }.approval-results-heading { flex-direction:column; gap:4px; }.approval-export-list article { align-items:flex-start; flex-direction:column; }.approval-export-list .secondary-button { width:100%; } }

/* Editable work units, immutable punch times, and payroll legend. */
.approval-editor textarea { width:100%; padding:10px; border:1px solid #ccd9eb; border-radius:7px; font:inherit; color:#233b5d; resize:vertical; }
.approval-editor textarea:focus-visible { outline:2px solid #3574d9; outline-offset:2px; }
.approval-editor label small { font-weight:400; color:#536682; }
.approval-proposed [hidden] { display:none !important; }
.approval-proposed [data-work-changed] { color:#2563eb; }
.work-legend-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding:16px; }
.work-legend-grid section { padding:12px; border:1px solid #dce5f0; border-top:3px solid #2563eb; border-radius:9px; }
.work-legend-grid section:nth-child(2) { border-top-color:#059669; }
.work-legend-grid section:nth-child(3) { border-top-color:#b86b00; }
.work-legend-grid section:nth-child(4) { border-top-color:#7854bf; }
.work-legend h3 { font-size:12px; margin:0 0 12px; }
.work-legend p { font-size:11px; color:#435d7c; }
.work-legend-grid p { display:flex; align-items:center; gap:10px; }
.work-legend-grid b { min-width:48px; padding:5px; background:#edf4ff; border-radius:5px; text-align:center; color:#245a91; }
.work-legend>p { padding:0 16px 12px; }
@media(max-width:1050px) { .approval-case summary { grid-template-columns:1.5fr .8fr 1fr 1fr 24px; } .approval-proposed { display:flex; } .work-legend-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .approval-case summary { grid-template-columns:1fr 24px; } .approval-proposed { grid-column:1; } .work-legend-grid { grid-template-columns:1fr; } }
.approval-page .content { padding-top: 10px; }
.approval-page .approval-sticky-region { margin-top: -10px; padding-top: 10px; padding-bottom: 7px; }
.approval-page .approval-heading { margin-bottom: 0; }
.approval-page .approval-stats { gap: 10px; margin: 12px 0; }
.approval-page .approval-stats article { min-height: 74px; padding: 12px 14px; }
.approval-page .approval-tabs { margin-bottom: 8px; }
.approval-page .approval-tabs a { min-height: 38px; padding: 10px 12px 9px; }
.approval-page .approval-filters { gap: 9px; padding: 12px; }
.approval-page .approval-filters label { gap: 4px; }
.approval-page .approval-filters input,
.approval-page .approval-filters select,
.approval-page .approval-filters .primary-button { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.approval-page .approval-readonly { margin: 8px 0; padding: 8px 10px; }
.approval-page .approval-results-heading { margin: 10px 0 7px; }
.attendance-page .attendance-panel { overflow: hidden; margin-top: 18px; border: 1px solid #d6e0ec; border-radius: 10px; box-shadow: none; }
.attendance-page .attendance-panel-heading { padding: 16px 18px; border-bottom: 1px solid #dbe4ef; background: #fff; }
.attendance-page .attendance-panel-heading h2 { color: #173b68; font-size: 17px; font-weight: 700; }
.attendance-page .attendance-panel-heading p { color: #526b89; font-size: 12px; }
.attendance-page .attendance-table-wrap { background: #fff; }
.attendance-page .attendance-table { min-width: 860px; font-size: 13px; border-collapse: separate; border-spacing: 0; white-space: normal; }
.attendance-page .attendance-table th { padding: 13px 12px; border: 0; border-right: 1px solid #2c628e; background: #225682; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; text-align: center; text-transform: none; }
.attendance-page .attendance-table th:last-child { border-right: 0; }
.attendance-page .attendance-table td { padding: 11px 12px; border-top: 0; border-right: 1px solid #d8e2ed; border-bottom: 1px solid #d8e2ed; color: #132f52; font-size: 13px; font-weight: 600; text-align: center; vertical-align: middle; }
.attendance-page .attendance-table td:last-child { border-right: 0; }
.attendance-page .attendance-table tbody tr:last-child td { border-bottom: 0; }
.attendance-page .attendance-table tbody tr:hover td { background: #f5f9ff; }
.attendance-page .attendance-table th:nth-child(1) { width: 13%; }
.attendance-page .attendance-table th:nth-child(2) { width: 8%; }
.attendance-page .attendance-table th:nth-child(3),.attendance-page .attendance-table th:nth-child(4) { width: 10%; }
.attendance-page .attendance-table th:nth-child(5),.attendance-page .attendance-table th:nth-child(6) { width: 9%; }
.attendance-page .attendance-table th:nth-child(7) { width: 15%; }
.attendance-page .attendance-table th:nth-child(8) { width: 26%; }
.attendance-page .attendance-table strong { color: #102e53; font-weight: 700; }
.attendance-page .attendance-table .attendance-sunday td { background: #f1e8ff; color: #4d2e78; }
.attendance-page .attendance-table .attendance-sunday:hover td { background: #ede0ff; }
.attendance-page .attendance-table .attendance-sunday .attendance-status { background: transparent; color: #6f42b0; }
.attendance-page .attendance-note-cell { display: table-cell; text-align: center; }
.attendance-page .attendance-note-cell > * { margin: 2px 4px; }
.attendance-page .attendance-status { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 4px 10px; border-radius: 7px; background: #e2efff; color: #1755a5; font-size: 12px; font-weight: 700; line-height: 1.25; }
.attendance-page .status-du_cong { background: #d8f8e8; color: #08734d; }
.attendance-page .status-da_duyet { background: #deecff; color: #1957aa; }
.attendance-page .status-thieu_gio,.attendance-page .status-chi_1_lan_cham,.attendance-page .status-khong_du_lieu { background: #fff1cb; color: #a8550a; }
.attendance-page .attendance-note-highlight { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid #c4dcff; border-radius: 7px; background: #e3efff; color: #174d9a; font-size: 12px; font-weight: 700; line-height: 1.3; }
.attendance-page .attendance-note-empty { color: #93a4b9; font-weight: 500; }
@media (max-width: 760px) {
  .attendance-page .attendance-table { min-width: 820px; font-size: 12px; }
  .attendance-page .attendance-table th,.attendance-page .attendance-table td { padding: 10px 9px; }
}
@media (max-width: 760px) {
  .approval-page .content { padding-top: 10px; }
  .approval-page .approval-sticky-region { margin-top: -10px; padding: 10px 20px 7px; }
}
@media (max-width: 540px) {
  .approval-page .approval-sticky-region { padding-right: 17px; padding-left: 17px; }
}

/* Portal-owned autocomplete: independent of the browser's dark datalist popup. */
.work-code-picker { position:relative; min-width:0; }
.work-code-picker input { width:100%; padding-right:40px; }
.work-code-toggle { position:absolute; right:1px; top:1px; width:38px; height:38px; display:grid; place-items:center; border:0; border-radius:6px; background:transparent; color:#496a94; cursor:pointer; }
.work-code-toggle:hover { background:#eef5ff; }
.work-code-toggle:focus-visible { outline:2px solid #2563eb; }
.work-code-toggle .icon { width:16px; height:16px; }
.approval-case.has-work-menu { overflow:visible; position:relative; z-index:10; }
.work-code-menu { position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:30; max-height:260px; overflow:auto; padding:5px; background:#fff; border:1px solid #cbdcf2; border-radius:10px; box-shadow:0 12px 28px #16345e24; }
.work-code-menu[hidden] { display:none !important; }
.approval-editor .work-code-option { width:100%; min-height:44px; display:flex; align-items:center; gap:12px; padding:9px; border:0; border-radius:7px; background:#fff; color:#203352; text-align:left; font:inherit; cursor:pointer; transition:background-color .18s ease,color .18s ease; }
.approval-editor .work-code-option:hover,.approval-editor .work-code-option[aria-selected="true"] { background:#edf4ff; }
.work-code-option b { min-width:48px; padding:5px; border:1px solid #d8e6fc; border-radius:6px; background:#edf4ff; color:#2563eb; text-align:center; }
.work-code-option[data-tone="leave"] b { border-color:#bfe8d8; background:#eaf8f2; color:#087a59; }
.work-code-option[data-tone="unpaid"] b { border-color:#f0d8ad; background:#fff7e8; color:#a65e00; }
.work-code-option[data-tone="policy"] b { border-color:#ddcff5; background:#f5f0ff; color:#7048b8; }
.work-code-option span { font-size:12px; line-height:1.5; font-weight:400; }
.work-code-menu p { padding:10px; margin:0; font-size:12px; color:#536682; }
@media (prefers-reduced-motion:reduce) { .approval-chevron,.work-code-option { transition:none; } }
.leave-form label { position:relative; }.leave-person-menu { position:absolute; z-index:40; top:100%; right:0; left:0; max-height:230px; overflow:auto; border:1px solid #bcd0ea; border-radius:7px; background:#fff; box-shadow:0 14px 28px #24477724; }.leave-person-menu button { display:block; width:100%; padding:10px 12px; border:0; border-bottom:1px solid #edf1f6; background:#fff; color:#243b5c; text-align:left; font:inherit; cursor:pointer; }.leave-person-menu button:hover,.leave-person-menu button:focus { background:#f1f6ff; outline:0; }
.leave-list .leave-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:18px; }.leave-row>div { display:grid; grid-template-columns:180px 1fr; gap:5px 16px; }.leave-row p { grid-column:2; }.leave-row form { display:flex; align-items:center; gap:8px; }.leave-row form input { width:130px; min-height:36px; padding:7px; border:1px solid #cfdbea; border-radius:7px; }


/* Bảng tin và thông báo */
.notification-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #d7e1ef; border-radius: 50%; background: #fff; color: #516580; }
.notification-bell:hover { border-color: #a9c1e8; background: #f4f7fc; }
.notification-bell .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-bell b { position: absolute; top: -5px; right: -5px; min-width: 18px; padding: 1px 5px; border-radius: 9px; background: #d62839; color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.news-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 18px; }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.news-card.is-pinned { border-color: #9db9e8; background: #f7faff; }
.news-card h2 { margin: 0; font-size: 17px; line-height: 1.45; }
.news-card p { flex: 1; margin: 0; color: #61718b; font-size: 12.5px; }
.news-cover img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 8px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #71819a; font-size: 11px; }
.news-pin { padding: 2px 8px; border-radius: 10px; background: #e6efff; color: #2554b5; font-size: 10px; font-weight: 700; }
.news-pin-warn { background: #fff1df; color: #9a5d0b; }
.news-article { max-width: 860px; margin: 0 auto; }
.news-article h1 { margin: 10px 0 6px; font-size: 26px; line-height: 1.35; }
.news-lead { color: #516580; font-size: 15px; }
.news-article-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; margin: 14px 0; }
.news-body { margin: 18px 0; font-size: 14.5px; line-height: 1.75; overflow-wrap: anywhere; }
.news-body img { max-width: 100%; height: auto; }
.news-body blockquote { margin: 14px 0; padding: 4px 16px; border-left: 3px solid #9db9e8; color: #516580; }
.news-attachments { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.news-attachments h2 { font-size: 14px; }
.news-form { max-width: 860px; }
.news-form fieldset { display: grid; gap: 12px; padding: 14px; border: 1px solid #d7e1ef; border-radius: 10px; }
.news-form legend { padding: 0 6px; color: #3c506e; font-size: 12px; font-weight: 700; }
.news-form select, .news-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d7e1ef; border-radius: 8px; font: inherit; }
.news-editor-block { display: grid; gap: 8px; }
.news-editor-label { color: #3c506e; font-size: 12px; font-weight: 650; }
.news-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.news-toolbar button { padding: 6px 10px; border: 1px solid #d7e1ef; border-radius: 6px; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.news-toolbar button:hover { background: #f4f7fc; }
.news-editor { min-height: 220px; padding: 12px; border: 1px solid #d7e1ef; border-radius: 8px; background: #fff; line-height: 1.7; overflow-wrap: anywhere; }
.news-editor:focus { border-color: #3978e9; box-shadow: 0 0 0 3px #3978e91c; outline: 0; }
.news-check { display: flex !important; align-items: center; gap: 8px; }
.news-check input { width: auto !important; min-height: 0 !important; }
.news-dates { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.news-dates label { align-content: start; }
.news-dates input { width: 100%; min-height: 43px; box-sizing: border-box; }
@media (max-width: 560px) { .news-dates { grid-template-columns: 1fr; } }
.news-manage-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-manage-row:last-child { border-bottom: 0; }
.news-manage-row h2 { margin: 0 0 4px; font-size: 15px; }
.news-manage-row p { margin: 0; color: #71819a; font-size: 11.5px; }
.news-manage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.news-manage-actions form { margin: 0; }
.news-status-chips { margin: 0 0 14px; }
.news-widget { margin: 18px 0; }
.news-widget-item { display: grid; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line); color: inherit; }
.news-widget-item:last-of-type { border-bottom: 0; }
.news-widget-item span, .news-widget-item time { color: #71819a; font-size: 11.5px; }
.notification-list { padding: 8px 0; }
.notification-item { margin: 0; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item button { display: grid; gap: 3px; width: 100%; padding: 14px 22px; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.notification-item button:hover { background: #f7faff; }
.notification-item.is-unread button { background: #f1f6ff; border-left: 3px solid #2563eb; }
.notification-item span, .notification-item time { color: #71819a; font-size: 12px; }
