:root{font-family:Inter,system-ui,"Noto Sans Khmer",sans-serif;color:#17283d;background:#f4f6fa;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:0;border-radius:9px;padding:11px 16px;background:#2563eb;color:#fff;font-weight:650;cursor:pointer}button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:wait}.secondary{background:white;color:#23364e;border:1px solid #dbe2ed}a{color:inherit;text-decoration:none}.rail{position:fixed;width:228px;inset:0 auto 0 0;background:#15263c;color:#afbed1;padding:28px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:#e4b768;font-size:22px;font-weight:800}.brand span{font-size:11px;color:white;letter-spacing:1px}.brand small{display:block;font-size:8px;color:#afbed1;margin-top:5px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#b58535}.rail>.eyebrow{margin-top:44px}nav{display:grid;gap:8px}nav button{background:none;color:#afbed1;text-align:left;font-size:12px;padding:13px}nav button.selected{background:#263c55;color:white}.back{margin-top:35px;font-size:12px}.rail-note{margin-top:auto;font-size:11px;line-height:1.8;color:#95a9c2}main{margin-left:228px}header{background:white;border-bottom:1px solid #e1e6ef;display:flex;align-items:center;justify-content:space-between;padding:23px 32px;font-size:12px}.locked,.tag{font-size:10px;letter-spacing:1px;color:#93621b;background:#fff3d9;padding:8px 10px;border-radius:6px}.content{max-width:1480px;padding:32px;margin:auto}.hero{border-radius:20px;background:#192d46;color:white;padding:32px;display:flex;justify-content:space-between;margin-bottom:20px}.hero h1{font-size:30px;margin:12px 0}.hero p:last-child{color:#b9cbe0;line-height:1.8}.hero-symbol{font-size:50px;font-weight:750;align-self:center;color:#dcb674}.hero-symbol span{display:block;font-size:9px;letter-spacing:5px;text-align:center}.notice{padding:16px 20px;border:1px solid #e7d6b4;background:#fffbf2;border-radius:12px;color:#7c6030;line-height:1.8;margin-bottom:24px;font-size:12px}.filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.filters label{min-width:170px;margin:0}.filters>span{padding-bottom:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat{background:white;border:1px solid #e0e7f1;padding:22px;border-radius:14px}.stat strong{display:block;font-size:32px;margin:8px 0}.stat span{font-size:12px;color:#75859b}.card{background:white;border:1px solid #e0e7f1;border-radius:16px;padding:24px;min-width:0;margin-bottom:20px}.card h2{font-size:17px;margin:0 0 22px}.card-title{display:flex;justify-content:space-between;align-items:center}.card-title h2{margin-bottom:0}.split{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}label{display:block;font-size:12px;font-weight:600;margin:0 0 18px}input,select,textarea{display:block;width:100%;margin-top:8px;padding:11px;border:1px solid #d4deec;border-radius:8px;background:#fff;color:#20334c;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #c6d7ff;border-color:#5384ec}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}.muted{font-size:12px;line-height:1.8;color:#74859c}fieldset{border:1px solid #e1e6ef;border-radius:9px;margin:0 0 20px}legend{font-size:12px}.days{display:flex;flex-wrap:wrap;gap:12px}.days label{display:flex;align-items:center;gap:5px;margin:8px 0}.days input{width:auto;margin:0}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;background:#f8faff;color:#6e7f96;font-weight:600;white-space:nowrap}td,th{padding:14px 12px;border-bottom:1px solid #edf0f6}td{max-width:300px;overflow-wrap:anywhere}td small{display:block;margin-top:4px;color:#8a98aa}.list{max-height:600px;overflow:auto}.list-item{padding:17px 0;border-bottom:1px solid #edf0f6}.list-item strong{display:block}.list-item button{float:right;font-size:11px;padding:7px 11px}.pill{padding:5px 8px;border-radius:5px;background:#eaf2ff;color:#1d5ac2;white-space:nowrap}.pill.late{background:#ffeded;color:#b8313f}#message{border-radius:10px;padding:16px;background:#eaf7f0;color:#176943}#message.error{background:#ffeded;color:#a62937}.qr-box{display:grid;place-items:center;min-height:270px;border:1px dashed #d3ddec;border-radius:12px;margin-top:24px;color:#8a98aa}.qr-box svg{width:260px;height:260px;max-width:100%}footer{font-size:11px;color:#8a98aa;padding:24px 0}#hr-reader{margin:15px 0}button:focus-visible{outline:3px solid #e7bd66;outline-offset:3px}[hidden]{display:none!important}@media(max-width:1000px){.rail{width:185px;padding:22px 12px}main{margin-left:185px}.content{padding:22px}.split{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.rail{position:static;width:auto;padding:16px}.brand{margin-bottom:14px}.rail>.eyebrow,.rail-note,.back{display:none}nav{display:flex;overflow:auto;gap:5px}nav button{white-space:nowrap}main{margin-left:0}header{padding:18px;gap:12px;flex-wrap:wrap}.content{padding:16px}.hero{padding:24px}.hero-symbol{display:none}.hero h1{font-size:24px}.grid{grid-template-columns:1fr}.card{padding:18px}.stats{gap:10px}.stat{padding:16px}.filters label{flex:1}.filters>button{flex:1}}

/* Daily dashboard: compact overview, grouped attendance and operational side panels. */
body[data-hr-tab="dashboard"] .content{max-width:1780px}body[data-hr-tab="dashboard"] .hero{padding:20px 28px;margin-bottom:16px}body[data-hr-tab="dashboard"] .hero h1{font-size:24px;margin:5px 0}body[data-hr-tab="dashboard"] .hero .eyebrow{margin:0}body[data-hr-tab="dashboard"] .hero p:last-child{margin:5px 0;font-size:12px}body[data-hr-tab="dashboard"] .hero-symbol{font-size:30px}body[data-hr-tab="dashboard"] .notice{font-size:11px;padding:10px 16px;margin-bottom:22px}.dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.dashboard-heading h2{margin:0;font-size:23px}.dashboard-heading p{margin:6px 0 0}.live-indicator{font-size:11px;color:#32725d;white-space:nowrap;background:#e9f6ef;padding:8px 12px;border-radius:20px}.live-indicator i{display:inline-block;width:6px;height:6px;background:#24a874;border-radius:50%;margin-right:6px}.overview-top{display:grid;grid-template-columns:245px 1fr;gap:18px;margin-bottom:24px}.dashboard-filters{margin:0;padding:18px}.dashboard-filters label{margin-bottom:12px}.dashboard-filters .actions{gap:6px;margin:12px 0}.dashboard-filters button{font-size:11px;padding:9px 12px}.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0}.dashboard-stats .stat{display:flex;align-items:center;justify-content:space-between;border:0;box-shadow:0 4px 12px #15263c08;padding:20px;color:white;min-height:110px;overflow:hidden}.dashboard-stats .stat span{color:inherit;font-size:12px;font-weight:650}.dashboard-stats .stat strong{font-size:31px;margin:9px 0 4px;line-height:1}.dashboard-stats .stat small{font-size:10px;opacity:.84}.stat-icon{font-size:36px!important;opacity:.3;margin-left:10px}.stat-blue{background:#1768bb}.stat-green{background:#15815d}.stat-rose{background:#ca4057}.stat-amber{background:#a56b0c}.stat-slate{background:#64758c}.stat-teal{background:#217e83}.attendance-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(290px,1fr);gap:20px;align-items:start}.attendance-card{padding:0;overflow:hidden}.attendance-card>.card-title{padding:22px 22px 0}.register-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 22px}.register-toolbar label{margin:0;max-width:300px;flex:1;font-weight:400;color:#77879c;font-size:11px}.register-toolbar input{padding:9px;margin-top:5px}.attendance-register th{font-size:10px;letter-spacing:.3px;padding:14px}.attendance-register td{padding:17px 14px;vertical-align:top}.attendance-register tbody tr:nth-child(even){background:#fbfcfe}.attendance-register td:nth-child(1){width:35px;color:#95a1b2}.attendance-register td:nth-child(2){min-width:200px}.attendance-register td:nth-child(3),.attendance-register td:nth-child(4){min-width:180px}.employee-cell{display:flex;gap:10px;align-items:flex-start}.avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#edf3fe;color:#3665a6;width:32px;height:32px;border-radius:50%;font-size:13px;font-weight:750}.employee-cell strong{font-size:12px}.employee-cell small{font-size:10px}.punch{display:flex;align-items:center;gap:8px;min-height:27px;white-space:nowrap;font-size:11px}.punch-label{color:#8c99ab;width:22px;font-size:10px}.punch time{font-weight:650;font-variant-numeric:tabular-nums}.punch-status{font-size:9px;padding:3px 5px;border-radius:4px}.punch-status.good{color:#2463b2;background:#eaf2ff}.punch-status.early{color:#16825d;background:#e9f8f0}.punch-status.late{color:#b12d46;background:#ffedf1}.no-punch{color:#b4bdca}.table-note{padding:0 22px 10px;font-size:10px}.dashboard-side .card{padding:20px;margin-bottom:16px}.dashboard-side h2{font-size:15px;margin-bottom:0}.dashboard-side .muted{font-size:11px}.count-badge{background:#fff0ef;color:#ba5261;padding:4px 9px;border-radius:6px;font-size:12px;font-weight:700}.status-list{max-height:370px;overflow:auto}.pending-person{display:flex;gap:10px;align-items:center;padding:13px 0;border-top:1px solid #edf1f7}.pending-person strong{display:block;font-size:11px}.pending-person small{display:block;color:#8997aa;font-size:10px;margin-top:4px}.pending-state{display:inline-block;font-size:9px;color:#966515;background:#fff5e1;padding:4px 7px;border-radius:4px;margin-top:7px}.module-badge{font-size:8px;font-weight:700;color:#8490a2;background:#eef1f6;padding:5px 7px;border-radius:5px}.module-empty{text-align:center;color:#8c99aa;padding:22px 6px 4px}.module-empty>span{display:block;font-size:28px;color:#b5c3d6;margin-bottom:12px}.module-empty strong{display:block;font-size:11px;color:#62728a}.module-empty p{font-size:11px;line-height:1.8}.coverage strong{font-size:30px;display:block;margin:18px 0 12px}.coverage-track{height:7px;border-radius:5px;background:#eaf0f9;overflow:hidden}.coverage-track span{height:100%;display:block;background:#397ee5}.event-details{margin-top:20px}.event-details summary{cursor:pointer;font-size:12px;font-weight:650}.event-details[open] summary{margin-bottom:20px}.register-empty{text-align:center;padding:50px 18px;color:#8e9db0}.register-empty>span{font-size:33px;display:block;margin-bottom:12px}.register-empty strong{display:block;font-size:14px;color:#516580}.register-empty p{font-size:11px;line-height:1.8;max-width:360px;margin:10px auto}@media(max-width:1250px){.overview-top{grid-template-columns:210px 1fr}.attendance-layout{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dashboard-side .card{margin:0}.dashboard-side .card:last-child{grid-column:1/-1}.dashboard-stats .stat{padding:16px}}@media(max-width:800px){.overview-top{grid-template-columns:1fr}.dashboard-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.dashboard-filters label{flex:1;min-width:130px}.dashboard-filters .actions{margin:0 0 12px}.dashboard-filters #updated{width:100%}.dashboard-stats{grid-template-columns:repeat(2,1fr)}.dashboard-side{grid-template-columns:1fr}.dashboard-heading{flex-wrap:wrap}.dashboard-stats .stat{min-height:105px}.register-toolbar{flex-wrap:wrap}.register-toolbar label{max-width:none}}

/* Organisation setup and employee directory */
.setup-guide{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px 20px;background:#eaf1ff;border:1px solid #d4e1ff;border-radius:12px;color:#386090;font-size:11px}.setup-guide strong{color:#172e4a;margin-right:12px}.setup-guide span{padding:5px 8px;background:white;border-radius:5px}.employee-layout{grid-template-columns:1fr}.directory-card{grid-row:1}.directory-filters{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:18px 0}.directory-filters label{margin:0;flex:1;min-width:130px}.directory-filters button{margin-bottom:1px}.directory-card th{font-size:10px}.directory-card td{font-size:11px;min-width:95px}.directory-card td:nth-child(2){min-width:160px}.directory-card td button{padding:7px 12px;font-size:11px}.employee-editor .grid{grid-template-columns:repeat(3,1fr)}.setup-row-actions{display:flex;gap:6px}.setup-row-actions button{font-size:10px;padding:7px 10px}.danger-text{color:#ad3545}.work-week th,.work-week td{font-size:10px;white-space:nowrap}.work-week td:first-child{min-width:170px}.work-slot{background:#edf4ff;border-radius:6px;padding:9px;color:#365b8c;line-height:1.9}.day-off{display:block;padding:10px;background:#fff6e7;color:#9c7b42;border-radius:6px}#assign-form{margin-top:4px}#employee-form{scroll-margin-top:20px}@media(max-width:1000px){.employee-editor .grid{grid-template-columns:1fr 1fr}}@media(max-width:640px){.employee-editor .grid{grid-template-columns:1fr}.directory-card>.card-title{align-items:flex-start;gap:14px;flex-wrap:wrap}.setup-guide{padding:12px}.directory-filters button{width:100%}}

/* Employee setup navigation */
.employee-nav{min-width:0}.employee-nav-parent{width:100%}.employee-subnav{display:grid;gap:3px;margin:3px 0 4px 19px;padding-left:10px;border-left:1px solid #39506a}.employee-subnav button{width:100%;padding:10px 12px;font-size:11px}.employee-subnav button.selected{box-shadow:inset 2px 0 #e4b768}

.employee-nav-parent{display:flex;justify-content:space-between;align-items:center}.employee-nav-parent[aria-expanded="true"]{background:#2563eb;color:white}.setup-chevron{font-size:18px;line-height:1;transition:transform .15s}.employee-nav-parent[aria-expanded="false"] .setup-chevron{transform:rotate(-90deg)}.employee-subnav[hidden]{display:none}.employee-subnav button::before{content:"○";margin-right:9px;font-size:15px}.employee-subnav button.selected{background:#e7edf5;color:#17283d}

#camera-status{padding:12px;border-radius:9px;background:#edf4ff;color:#23364e;overflow-wrap:anywhere}#camera-status.error{background:#fff0f1;color:#ac2537}#camera-status[hidden]{display:none}#hr-reader{width:100%;overflow:hidden}#hr-reader video{display:block;width:100%!important;max-height:65vh;object-fit:cover}

.employee-editor[hidden]{display:none!important}

/* Employee directory: compact, readable roster with practical filters. */
body[data-hr-tab="employees"] .hero{display:none}body[data-hr-tab="employees"] .setup-guide{margin-top:8px}.directory-card{padding:0;overflow:hidden}.directory-card>.card-title{padding:24px 24px 16px;margin:0;border-bottom:1px solid #e6ecf4}.directory-card h2{font-size:22px;margin:4px 0}.directory-eyebrow{font-size:10px;letter-spacing:1.7px;color:#8b692e;font-weight:750;margin:0}.directory-card .card-title .muted{margin:6px 0 0}.employee-summary{display:grid;grid-template-columns:repeat(4,1fr);padding:18px 24px;gap:12px;background:#fafcff;border-bottom:1px solid #e6ecf4}.employee-summary>div{border-left:3px solid #d4e4ff;padding-left:12px}.employee-summary span{display:block;color:#6c7e96;font-size:11px}.employee-summary strong{display:block;font-size:23px;color:#19344f;margin-top:5px}.directory-card .directory-filters{padding:20px 24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0}.directory-filters label{min-width:0;font-size:11px;font-weight:650}.directory-filters input,.directory-filters select{font-size:12px;min-height:39px}.directory-tools{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end}.directory-card table{min-width:1100px;border-collapse:collapse}.directory-card th{background:#eef4fc;color:#415874;font-size:11px;font-weight:700;padding:14px;white-space:nowrap}.directory-card td{padding:16px 14px;border-bottom:1px solid #e7edf5;font-size:12px;vertical-align:middle}.directory-card tbody tr:nth-child(even){background:#fafbfd}.directory-card tbody tr:hover{background:#f0f6ff}.employee-person{display:flex;align-items:center;gap:10px;min-width:200px}.employee-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e6effe;color:#225cbe;font-size:16px;flex-shrink:0}.employee-name{display:block;background:transparent;color:#1b5ec4;padding:0;text-align:left;border-radius:0;font-size:13px;line-height:1.6}.employee-person small{font-size:10px;color:#8291a6;margin-top:3px}.employee-status{display:inline-block;padding:5px 9px;border-radius:20px;font-size:10px;white-space:nowrap}.is-active{background:#e7f7ee;color:#087549}.is-inactive{background:#edf0f4;color:#657284}.employee-edit{padding:7px 12px;font-size:11px}.row-number{color:#8b99ac}.directory-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 24px}.pagination{display:flex;align-items:center;gap:12px;font-size:12px}.pagination button{padding:8px 12px;font-size:11px}.employee-empty{text-align:center;padding:45px;color:#70829a}.employee-empty strong{color:#304962}.employee-editor{scroll-margin-top:20px}.employee-editor>.card-title{padding-bottom:15px;border-bottom:1px solid #e5ebf3;margin-bottom:20px}
@media(max-width:800px){.directory-card .directory-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}.employee-summary{padding:16px;grid-template-columns:repeat(2,1fr)}.directory-card>.card-title{padding:18px;align-items:flex-start}.directory-footer{flex-direction:column;align-items:flex-start;padding:16px}.directory-card h2{font-size:19px}}

.employee-actions summary{list-style:none;cursor:pointer;display:flex;gap:8px;justify-content:space-between;padding:8px 10px;background:#15804d;color:#fff;border-radius:6px;font-size:11px;white-space:nowrap}.employee-actions summary::-webkit-details-marker{display:none}.employee-actions summary:focus-visible{outline:3px solid #93b5ed;outline-offset:2px}.employee-action-menu{display:grid;grid-template-columns:repeat(4,minmax(70px,1fr));gap:7px;padding:12px;background:#f3f6fc;border:1px solid #d5e0ef;border-radius:10px;margin-top:8px;min-width:345px}.employee-actions[open]{min-width:345px}.employee-icon{display:flex;align-items:center;flex-direction:column;gap:6px;justify-content:center;padding:10px 6px;background:#1c88a5;font-size:9px;min-height:63px}.employee-icon.edit,.employee-icon.manager{background:#20864d}.employee-icon.today{background:#586d87}.employee-icon.resign{background:#b66b14}.employee-icon.delete{background:#c13e51}.employee-icon.devices{background:#768194;opacity:.55}.directory-card table{min-width:1250px}#employee-action-dialog{border:1px solid #dbe3ee;border-radius:16px;padding:26px;width:min(650px,calc(100% - 28px));max-height:85vh;color:#17283d;box-shadow:0 20px 70px #11243b33}#employee-action-dialog::backdrop{background:#10223c88}#employee-action-dialog h2{font-size:20px}#employee-action-error{padding:12px;border-radius:8px;background:#fff0f1;color:#a32639}.employee-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.employee-detail-grid dt{font-size:11px;color:#76869c}.employee-detail-grid dd{margin:5px 0;font-size:14px;overflow-wrap:anywhere}.profile-heading{display:flex;gap:15px;align-items:center;border-bottom:1px solid #e1e8f2;padding-bottom:15px}.profile-heading h3{margin:0}.profile-heading p{margin-bottom:0;color:#73839b}.attendance-timeline>div{border-left:3px solid #82a9e9;padding:10px 15px;margin:12px 0;background:#f6f9fd}.delete-confirm{background:#bb3046}#employee-action-body{overflow-wrap:anywhere}#employee-action-body .qr-box svg{max-width:100%;height:auto}@media(max-width:600px){.employee-detail-grid{grid-template-columns:1fr}.employee-actions[open]{min-width:290px}.employee-action-menu{min-width:290px}}

.employee-icon.devices{background:#b46a19;opacity:1}.hr-phone-page{background:#f3f6fb}.phone-shell{max-width:520px;margin:0 auto;padding:24px 18px}.phone-brand{display:flex;align-items:center;gap:12px;font-size:34px;font-weight:800;color:#b1843c;margin-bottom:24px}.phone-brand span{font-size:13px;color:#1c334e;letter-spacing:1px}.phone-brand small{font-size:9px}.phone-shell .card{margin:18px 0}.phone-shell [hidden]{display:none!important}.phone-shell h1{font-size:26px}.phone-shell p{line-height:1.8}.phone-shell .error{background:#fff0f1;color:#a32639;padding:15px;border-radius:10px}#employee-pair-link{color:#205ec0;text-decoration:underline}

/* Compact employee actions; native title supplies each button's hover label. */
.directory-card .employee-actions,.directory-card .employee-actions[open]{min-width:0;width:max-content}.directory-card .employee-actions summary{width:38px;height:27px;min-height:0;padding:4px 8px;font-size:0;justify-content:center}.directory-card .employee-actions summary>span{font-size:13px}.directory-card .employee-action-menu{display:grid;grid-template-columns:repeat(8,28px);gap:5px;min-width:0;width:max-content;padding:8px;margin-top:6px;border-radius:7px}.directory-card .employee-icon{width:28px;height:28px;min-height:0;padding:5px;border-radius:4px;gap:0;flex-direction:row}.directory-card .employee-icon>span{display:none}.directory-card .employee-icon svg{width:15px;height:15px;flex-shrink:0}.directory-card .employee-icon:focus-visible{outline:3px solid #82a7eb;outline-offset:2px}
@media(pointer:coarse){.directory-card .employee-action-menu{grid-template-columns:repeat(4,40px);gap:6px}.directory-card .employee-icon{width:40px;height:40px}.directory-card .employee-actions summary{width:42px;height:36px}}

/* Floating action toolbar: outside table flow, never adds column width. */
.employee-floating-menu{position:fixed!important;z-index:1200;display:grid!important;grid-template-columns:repeat(8,28px)!important;gap:5px!important;min-width:0!important;width:max-content!important;padding:9px!important;margin:0!important;border:1px solid #d7e0ec;border-radius:7px;background:white;box-shadow:0 7px 24px #172b4b33}.employee-floating-menu .employee-icon{display:grid;place-items:center;width:28px;height:28px;min-height:0;padding:5px;border-radius:4px;gap:0}.employee-floating-menu .employee-icon>span{display:none}.employee-floating-menu .employee-icon svg{width:15px;height:15px}.employee-floating-menu .employee-icon:focus-visible{outline:3px solid #82a7eb;outline-offset:2px}.employee-detail-grid dd{white-space:pre-wrap}#employee-action-form textarea{resize:vertical;width:100%;min-height:95px}.directory-card .employee-actions,.directory-card .employee-actions[open]{width:38px!important;min-width:38px!important}.directory-card td:first-child{white-space:nowrap}
@media(pointer:coarse){.employee-floating-menu{grid-template-columns:repeat(4,40px)!important;gap:6px!important}.employee-floating-menu .employee-icon{width:40px;height:40px}}

/* Compact, quiet disclosure with a floating action palette. */
.directory-card .employee-actions summary{width:48px;height:30px;padding:5px 7px;gap:5px;border:1px solid #d6e2ef;border-radius:8px;background:#f6f9fd;color:#425c79;box-shadow:0 1px 2px #132b4510;transition:background .15s,border-color .15s,box-shadow .15s}
.directory-card .employee-actions summary:hover,.directory-card .employee-actions[open] summary{background:#eaf2ff;color:#245edb;border-color:#a9c5f4;box-shadow:0 2px 5px #245edb15}
.directory-card .employee-actions summary .action-dots{width:18px;height:18px;flex:none}.directory-card .employee-actions summary .action-chevron{width:11px;height:11px;flex:none;transition:transform .15s}.directory-card .employee-actions[open] summary .action-chevron{transform:rotate(180deg)}
.directory-card .employee-actions[open]{width:48px!important;min-width:48px!important}
.employee-floating-menu{padding:8px;gap:6px;border-color:#dce5f0;border-radius:12px;box-shadow:0 8px 28px #142b4526,0 2px 5px #142b4510}
.employee-floating-menu .employee-icon{--action-color:#187d97;background:#eaf7fb;color:var(--action-color);border:1px solid #d6edf3;border-radius:7px;opacity:1;transition:background .15s,box-shadow .15s}
.employee-floating-menu .employee-icon.edit,.employee-floating-menu .employee-icon.manager{--action-color:#178049;background:#eaf7ef;border-color:#d4ebde}
.employee-floating-menu .employee-icon.today{--action-color:#536b88;background:#eff3f8;border-color:#dde5ef}
.employee-floating-menu .employee-icon.devices,.employee-floating-menu .employee-icon.resign{--action-color:#a56212;background:#fff5e6;border-color:#f4e2c7}
.employee-floating-menu .employee-icon.delete{--action-color:#c03550;background:#fff0f3;border-color:#f4d9df}
.employee-floating-menu .employee-icon:hover,.employee-floating-menu .employee-icon:focus-visible{background:var(--action-color);color:#fff;box-shadow:0 2px 5px #142b4526;outline:2px solid #b5cff6;outline-offset:2px}
.employee-tenure{white-space:nowrap;font-weight:500;color:#395572}.directory-card table{min-width:1380px}
@media(pointer:coarse){.directory-card .employee-actions summary{height:40px}}

.employee-person{min-width:210px;gap:11px;align-items:center}.employee-person .employee-avatar{width:42px;height:42px;min-width:42px;flex:none}.employee-photo{object-fit:cover;display:block;border:2px solid #fff;box-shadow:0 0 0 1px #dce5ef}.employee-person .employee-name-km{font-size:13px;line-height:1.8;font-weight:600}.employee-person .employee-name-en{font-size:10px;color:#3b506c;margin-top:0}.employee-person .employee-meta{font-size:10px;color:#7b8da3;margin-top:2px}.employee-person .employee-role{font-size:10px;color:#536983;margin-top:2px}.employee-age,.employee-created{white-space:nowrap}.employee-created{font-size:10px;color:#61728a}.employee-app-status{display:inline-flex;white-space:nowrap;border-radius:20px;padding:4px 8px;font-size:10px;color:#77879b;background:#f0f3f7}.profile-photo-preview{display:block;width:76px;height:76px;object-fit:cover;border:1px solid #d5e0ee;border-radius:50%;margin-top:10px}.profile-photo-preview[hidden]{display:none}.employee-editor .photo-remove{display:flex;flex-direction:row;align-items:center;gap:9px}.photo-remove input{width:auto}.employee-editor label>small{font-size:10px;color:#73839b;font-weight:400}.directory-card table{min-width:1760px}

/* Explicit roster column sizing prevents the No. column inheriting employee widths. */
.directory-card table{table-layout:fixed;width:100%;min-width:1506px}
.directory-card th,.directory-card td,.directory-card td:nth-child(2){min-width:0;max-width:none;padding:12px 10px}
.directory-card th:nth-child(1){width:60px}
.directory-card th:nth-child(2){width:44px}
.directory-card th:nth-child(3){width:194px}
.directory-card th:nth-child(4){width:122px}
.directory-card th:nth-child(5){width:64px}
.directory-card th:nth-child(6){width:100px}
.directory-card th:nth-child(7){width:100px}
.directory-card th:nth-child(8){width:84px}
.directory-card th:nth-child(9){width:100px}
.directory-card th:nth-child(10){width:96px}
.directory-card th:nth-child(11){width:136px}
.directory-card th:nth-child(12){width:120px}
.directory-card th:nth-child(13){width:86px}
.directory-card th:nth-child(14){width:90px}
.directory-card th:nth-child(15){width:110px}
.directory-card th:nth-child(2),.directory-card td:nth-child(2){text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums;color:#8090a5}
.directory-card td:nth-child(4){white-space:nowrap;font-size:11px;font-variant-numeric:tabular-nums}
.directory-card .employee-person{min-width:0;gap:9px}.directory-card .employee-person>div{min-width:0}.directory-card .employee-person .employee-avatar{width:36px;height:36px;min-width:36px}.directory-card .employee-name-km{font-size:12px}.directory-card .employee-person small{line-height:1.5}
.directory-card .employee-created{white-space:normal;line-height:1.7}.directory-card .employee-tenure{font-size:11px}.directory-card .employee-actions,.directory-card .employee-actions[open]{width:40px!important;min-width:40px!important}.directory-card .employee-actions summary{width:40px;padding:5px;gap:3px}

/* Fluid HR workspace: use the screen at any browser zoom, without scaling controls. */
body{--hr-rail-width:clamp(180px,13vw,228px);min-height:100vh;min-height:100dvh}
.rail{width:var(--hr-rail-width);height:100vh;height:100dvh;overflow-y:auto}
main{margin-left:var(--hr-rail-width);min-width:0;min-height:100vh;min-height:100dvh}
.content,body[data-hr-tab="dashboard"] .content,body[data-hr-tab="employees"] .content{width:100%;max-width:none;margin:0;padding:clamp(16px,1.65vw,32px)}
header{width:100%;padding-inline:clamp(16px,1.65vw,32px)}
.employee-layout,.directory-card,.employee-editor{width:100%;min-width:0}
.directory-card .scroll{width:100%;max-width:100%;overscroll-behavior-x:contain}
.directory-card table{width:100%;min-width:1506px;table-layout:fixed}
.directory-card th:nth-child(1){width:3.9841%}
.directory-card th:nth-child(2){width:2.9216%}
.directory-card th:nth-child(3){width:12.8818%}
.directory-card th:nth-child(4){width:8.1009%}
.directory-card th:nth-child(5){width:4.2497%}
.directory-card th:nth-child(6){width:6.6401%}
.directory-card th:nth-child(7){width:6.6401%}
.directory-card th:nth-child(8){width:5.5777%}
.directory-card th:nth-child(9){width:6.6401%}
.directory-card th:nth-child(10){width:6.3745%}
.directory-card th:nth-child(11){width:9.0305%}
.directory-card th:nth-child(12){width:7.9681%}
.directory-card th:nth-child(13){width:5.7105%}
.directory-card th:nth-child(14){width:5.9761%}
.directory-card th:nth-child(15){width:7.3041%}

.directory-card th{white-space:normal;line-height:1.6;overflow-wrap:normal}
.directory-card th,.directory-card td{padding-inline:clamp(8px,.65vw,14px)}
.directory-card .employee-person{width:100%;min-width:0}
.directory-card .directory-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
.employee-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.employee-summary>div{min-width:0}
/* Keep readable columns on laptops; large LCDs can show all fifteen at once. */
@media(min-width:1750px){.directory-card table{min-width:0}}
@media(max-width:1000px){body{--hr-rail-width:180px}.directory-card .directory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.rail{position:static;width:100%;height:auto;overflow:visible}main{margin-left:0;width:100%}.content{padding:16px}.directory-card .directory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-footer{height:auto;flex-wrap:wrap}}
@media(max-width:420px){.directory-card .directory-filters{grid-template-columns:1fr}}

/* Employee registration: four clear sections with a responsive field grid. */
.employee-section{margin:26px 0;padding:20px;border:1px solid #e0e7f1;border-radius:12px;min-width:0}.employee-section legend{font-size:15px;font-weight:700;color:#233b56;padding:0 8px}.employee-section legend>span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eaf2ff;color:#2563eb;font-size:11px;margin-right:6px}.employee-section .section-intro{margin:0 0 20px}.employee-section .grid{align-items:start}.employee-section .span-all{grid-column:1/-1}.employee-section select[multiple]{min-height:108px}.employee-section .inline-check{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.6}.employee-section .inline-check input{display:inline-block;width:auto;margin:0;flex:none}.employee-upload{padding:14px;border:1px dashed #cbd9eb;border-radius:10px;background:#fafcff}.employee-upload input[type=file]{padding:9px;font-size:11px;background:white}.employee-upload .inline-check{margin:12px 0 0;font-size:11px;color:#74859c}.saved-document{display:inline-block;margin-top:8px;color:#2563eb;font-size:12px;text-decoration:underline;cursor:pointer}.employee-week{padding:14px;background:#f6f9fd;border-radius:9px;gap:16px;margin:0 0 16px}.employee-week label{font-size:11px}.schedule-choice{padding:12px;background:#f6f9fd;border-radius:9px;margin-bottom:16px}.schedule-choice label{margin:0}.schedule-choice small{display:block;color:#74859c;margin-top:5px}.day-length{display:flex;gap:8px;margin-bottom:16px}.day-length label{margin:0;cursor:pointer}.day-length input{position:absolute;opacity:0;width:1px;height:1px}.day-length span{display:block;padding:9px 18px;border:1px solid #d6e1ef;border-radius:8px;background:white;color:#52657e}.day-length input:checked+span{background:#eaf2ff;color:#245edb;border-color:#91b6f2}.day-length input:focus-visible+span{outline:2px solid #245edb;outline-offset:2px}.employee-savebar{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #e1e8f2;padding-top:14px;flex-wrap:wrap}.employee-savebar .actions{margin:0}.employee-savebar p{flex:1;min-width:200px}.employee-section textarea{resize:vertical}.employee-section .grid>label{min-width:0}@media(max-width:640px){.employee-section{padding:14px;margin:22px 0}.employee-section .span-all{grid-column:auto}.employee-savebar{align-items:stretch}.employee-savebar .actions{width:100%}}

/* Review-first identity OCR, separated from the employee save action. */
.employee-ocr{padding:18px;margin-top:12px;border:1px solid #cfe0f7;border-radius:12px;background:#f6faff}.ocr-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.ocr-heading strong{font-size:14px;color:#264b7d}.ocr-heading p{font-size:12px;line-height:1.8;color:#687f9e;margin:6px 0 12px}.ocr-heading .actions{flex:none;margin:0}.employee-ocr>.inline-check{margin:8px 0}.employee-ocr #ocr-status{font-size:12px;line-height:1.8;color:#315a8a}.employee-ocr #ocr-status.error,#ocr-settings-message{color:#ac3045}.ocr-cloud-notice{font-size:11px;margin:10px 0}.ocr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ocr-field{min-width:0;padding:12px;background:white;border:1px solid #dae5f1;border-radius:9px}.ocr-field .inline-check{margin-bottom:0}.ocr-field input,.ocr-field select,.ocr-field textarea{font-size:12px}.ocr-quality{display:block;line-height:1.7;font-size:10px;margin-top:6px;overflow-wrap:anywhere}.ocr-quality.clear{color:#27805d}.ocr-quality.uncertain{color:#a56b13}.ocr-warning{padding:10px;background:#fff3dc;border-radius:8px;font-size:12px;line-height:1.8;color:#966421}#ocr-review{border-top:1px solid #d5e3f3;margin-top:16px;padding-top:14px}#ocr-review h3{font-size:15px;margin-top:0}#ocr-settings-dialog{width:min(600px,calc(100% - 28px));max-height:90vh;overflow:auto;border:1px solid #d6e0ee;border-radius:15px;padding:24px;color:#203550;box-shadow:0 20px 70px #11243b33}#ocr-settings-dialog::backdrop{background:#10223c88}#ocr-settings-dialog h2{font-size:19px}#ocr-settings-dialog .inline-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.8;margin:14px 0}#ocr-settings-dialog .inline-check input{width:auto;margin:4px 0 0;flex:none}.ocr-consent{padding:12px;background:#fff8e9;border-radius:8px}#ocr-settings-message{font-size:12px;line-height:1.7;padding:10px;background:#fff0f3;border-radius:8px}@media(max-width:700px){.ocr-heading{align-items:flex-start;flex-direction:column;gap:5px}.ocr-fields{grid-template-columns:1fr}.employee-ocr{padding:14px}}

.ocr-provider-label{margin:10px 0;font-size:11px;max-width:310px}.ocr-provider-label select{margin-top:5px;font-size:12px;padding:9px}.ocr-rotation{max-width:230px;font-size:11px}.ocr-rotation select{padding:8px;font-size:12px}#ocr-raw-details{margin-top:14px}#ocr-raw-details summary{cursor:pointer;font-size:12px;color:#315a8a}#ocr-raw-text{font-size:12px;line-height:1.8;resize:vertical;white-space:pre-wrap}

#ocr-crop-box{margin:12px 0;padding:12px;border:1px solid #d7e4f4;border-radius:9px;background:#fff}#ocr-crop-box summary{font-size:12px;color:#315a8a;cursor:pointer}#ocr-crop-source{max-width:280px;margin-bottom:12px}#ocr-crop-canvas{display:block;max-width:100%;height:auto;touch-action:none;cursor:crosshair;border:1px solid #d7e4f4;margin-bottom:12px}

/* ID OCR fills the original employee inputs. Orange = transcription needs review. */
#employee-form input.ocr-autofilled,#employee-form select.ocr-autofilled,#employee-form textarea.ocr-autofilled{border-color:#249573;background:#f3fcf8;box-shadow:0 0 0 1px #24957322}
#employee-form input.ocr-needs-review,#employee-form select.ocr-needs-review,#employee-form textarea.ocr-needs-review{border-color:#d48a18;background:#fff8e9;box-shadow:0 0 0 1px #d48a1833}
#ocr-status{line-height:1.8;overflow-wrap:anywhere}#ocr-review{margin-top:12px}#ocr-review summary{cursor:pointer}

/* Compact feedback belongs beside identity uploads; configuration lives in the sidebar. */
.ocr-upload-feedback{margin-top:12px;font-size:12px}.ocr-upload-feedback>p{margin:0 0 6px}.ocr-upload-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ocr-upload-status p{flex:1;margin:0;line-height:1.7}.ocr-upload-feedback details{margin-top:10px}.ocr-upload-feedback textarea{width:100%;margin-top:8px}.ocr-upload-status button{padding:7px 12px;font-size:12px}

.branch-map-picker{margin:14px 0 20px}.branch-map-picker label>small{display:block}.branch-map-picker .actions{margin-top:10px}#branch-map{width:100%;height:clamp(260px,42vh,440px);border:1px solid #dbe2ed;border-radius:10px;z-index:0}#branch-map-panel{margin-top:12px}.branch-map-pin{background:#2563eb;border:3px solid white;border-radius:50%;box-shadow:0 1px 7px #17283d;cursor:grab}.branch-map-pin:focus{outline:3px solid #e7bd66}.branch-map-picker .leaflet-control a{color:#17283d}.branch-map-picker .leaflet-control-attribution{font-size:10px}#branch-form label>small{font-size:10px;font-weight:400;color:#72839a;line-height:1.5}#branch-map-status{overflow-wrap:anywhere}

.branch-report{margin:20px 0}.branch-report .card-title{gap:12px;flex-wrap:wrap}.branch-report td:not(:first-child){text-align:center;font-variant-numeric:tabular-nums}.branch-report th{white-space:normal;min-width:110px;line-height:1.6}.punch-branch{display:block;color:#526e93;font-size:10px;line-height:1.6;margin-top:4px;overflow-wrap:anywhere}

#maps-settings-dialog{width:min(600px,calc(100% - 28px));max-height:90vh;overflow:auto;border:1px solid #d6e0ee;border-radius:15px;padding:24px;color:#203550;box-shadow:0 20px 70px #11243b33}#maps-settings-dialog::backdrop{background:#10223c88}#maps-settings-dialog h2{font-size:19px}#maps-settings-dialog .inline-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.8;margin:14px 0}#maps-settings-dialog .inline-check input{width:auto;margin:4px 0 0;flex:none}
#maps-settings-message{font-size:12px;line-height:1.7;padding:10px;background:#fff0f3;color:#ac3045;border-radius:8px}#maps-settings-dialog small{display:block;color:#72839a;font-size:11px;line-height:1.7}

.hr-access-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.hr-access-permissions label{padding:13px;border:1px solid #dbe3ee;border-radius:8px;background:#f8faff;line-height:1.7}.hr-access-permissions input{width:auto;flex:none}#hr-access-form{max-width:900px}#hr-access-form>.inline-check{display:flex;gap:9px;align-items:center}#hr-access-form>.inline-check input{width:auto}#hr-access-message{line-height:1.8;color:#315a8a}@media(max-width:700px){.hr-access-permissions{grid-template-columns:1fr}}

#trash-confirm-dialog{width:min(650px,calc(100% - 28px));max-height:90vh;overflow:auto;border:1px solid #d6e0ee;border-radius:15px;padding:24px;color:#203550}#trash-confirm-dialog::backdrop{background:#10223c88}#trash-confirm-records{max-height:220px;overflow:auto;padding-left:24px;overflow-wrap:anywhere}#trash-confirm-dialog .inline-check{display:flex;gap:10px;align-items:flex-start}#trash-confirm-dialog .inline-check input{width:auto;margin-top:4px}#trash-confirm-error{color:#a32639}#trash-confirm-summary{font-size:13px;line-height:1.8}

.hr-field-invalid{border:2px solid #c82e46!important;box-shadow:0 0 0 2px #c82e461a!important;background-color:#fff7f8!important}.hr-field-invalid:focus{outline:2px solid #c82e46;outline-offset:2px}.hr-field-error{display:block;color:#b31f37!important;font-size:12px;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}.hr-validation-summary{padding:12px 16px;border:1px solid #dc8190;border-radius:9px;background:#fff0f3;color:#a32639;font-size:13px}input.hr-field-invalid[type=checkbox]{outline:2px solid #c82e46;outline-offset:2px}

#staff-notices>.card,#staff-notices>.split{margin-bottom:20px}#push-invite-result{margin-top:16px}#push-link{overflow-wrap:anywhere}#push-message{white-space:pre-wrap}#notice-messages .card{margin-bottom:15px}

/* Sender identity on the announcement form and employee inbox. */
.push-sender-preview{display:flex;align-items:center;gap:12px;margin:12px 0 20px;min-height:48px}
.push-sender-avatar,.push-sender-initial{width:48px;height:48px;border-radius:50%;flex-shrink:0;object-fit:cover;border:1px solid #d6e1ef}
.push-sender-initial{display:grid;place-items:center;background:#eaf1ff;color:#1e429f;font-weight:700}
.push-sender-preview strong{overflow-wrap:anywhere}
#push-sender-settings summary{cursor:pointer;font-size:16px;font-weight:700;color:#18314d}
#push-profile-status:empty{display:none}
#push-profile-status.error{border-left:3px solid #c32a43;padding:10px}

/* Central company branding and bilingual company details. */
.company-brand{align-items:center;min-width:0}.brand .hr-company-brand-copy{min-width:0;flex:1}.brand [data-company-name]{display:block;font-size:11px;line-height:1.7;letter-spacing:.7px;overflow-wrap:anywhere}.brand .hr-company-monogram{font-size:22px;color:#e4b768;flex-shrink:0}
.hr-company-rail-logo{width:42px;height:42px;object-fit:contain;flex-shrink:0;border-radius:6px;background:#fff;padding:3px}.hr-company-hero-logo{width:100px;height:90px;object-fit:contain}.hero-symbol .hr-company-hero-initials{font-size:50px;letter-spacing:0;line-height:1.3}
.company-logo-editor{display:flex;align-items:center;gap:24px;margin:22px 0 30px}.company-logo-preview{width:120px;height:120px;display:grid;place-items:center;flex:none;border:1px dashed #c8d5e8;border-radius:12px;background:#f8faff;color:#b1843c;font-size:34px;font-weight:800;padding:10px}.company-logo-preview img{width:100%;height:100%;object-fit:contain}.company-logo-editor>div:last-child{flex:1}
.company-information-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.company-information-columns fieldset{padding:20px;min-width:0}.company-information-columns legend{font-size:16px;font-weight:700;padding:0 8px}.company-information-columns label:last-child{margin-bottom:0}.company-information-columns input{min-height:43px}#company-profile-status.error{color:#ab243a;background:#fff0f1;padding:12px;border-radius:8px}#company-profile-status:empty{display:none}
@media(max-width:640px){.company-information-columns{grid-template-columns:1fr}.company-logo-editor{align-items:flex-start;flex-direction:column;gap:16px}}

/* Logo crop editor and permanent company identifier. */
.brand [data-company-code]{font-size:8px;letter-spacing:.4px;overflow-wrap:anywhere;color:#afbed1;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.company-system-id{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-top:24px}.company-system-id label{flex:1;min-width:220px;margin-bottom:0}.company-system-id p{flex-basis:100%;margin-top:0}.company-system-id input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#f7f9fd;font-weight:650;letter-spacing:1px}
#company-crop-dialog{width:min(540px,calc(100vw - 24px));border:1px solid #d8e2ef;border-radius:16px;padding:24px;color:#17283d;max-height:94dvh;overflow:auto}#company-crop-dialog::backdrop{background:rgba(14,30,49,.55)}#company-crop-dialog h2{font-size:18px;margin:0}.company-crop-stage{width:min(100%,320px);margin:16px auto;background-color:#fff;background-image:linear-gradient(45deg,#e7ebf0 25%,transparent 25%),linear-gradient(-45deg,#e7ebf0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7ebf0 75%),linear-gradient(-45deg,transparent 75%,#e7ebf0 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border:1px solid #cad7e8;border-radius:8px;overflow:hidden}
#company-crop-canvas{display:block;width:100%;aspect-ratio:1;touch-action:none;cursor:grab}#company-crop-canvas:active{cursor:grabbing}.company-crop-controls{display:grid;gap:8px}.company-crop-controls label{margin-bottom:4px}.company-crop-controls input{padding:0;border:0;accent-color:#2563eb}.company-crop-controls output{float:right;color:#2563eb}#company-crop-status{font-size:12px;color:#b1263e}.company-logo-editor #company-logo-edit{margin-bottom:18px}

/* Separate HR identity controls; employee records stay independent. */
.hr-account-list{max-height:650px}.hr-account-card{padding:20px 0;border-bottom:1px solid #e5ebf4}.hr-account-card:last-child{border-bottom:0}.hr-account-card strong{display:block;margin-bottom:6px}.hr-account-card p{margin:6px 0;overflow-wrap:anywhere}.hr-account-card .actions{margin:12px 0 0;gap:6px}.hr-account-card button{font-size:11px;padding:8px 10px}.hr-account-state{display:inline-flex;align-items:center;border-radius:14px;font-size:11px;padding:5px 9px;background:#fff0f1;color:#b12840}.hr-account-state.is-unlocked{background:#e7f6ee;color:#14754e}
#account-dialog{width:min(600px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #d8e2ef;border-radius:16px;padding:24px;color:#17283d}#account-dialog::backdrop{background:rgba(14,30,49,.55)}#account-dialog h2{font-size:19px;margin:0}#account-dialog dl{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;margin:24px 0}#account-dialog dt{color:#6d7e94}#account-dialog dd{margin:0;overflow-wrap:anywhere}#account-form-status.error,#account-status.error,#account-delete-error{color:#aa243b}#account-form-status:empty,#account-status:empty,#account-delete-error:empty{display:none}
@media(max-width:640px){#account-dialog dl{grid-template-columns:1fr;gap:6px}#account-dialog dd{margin-bottom:10px}}

/* Advanced audit viewer: immutable events and private server-side filters. */
.audit-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;margin-top:24px}.audit-filters .actions{align-self:end}.audit-table{min-width:1250px}.audit-table td{vertical-align:top;min-width:110px}.audit-table td:last-child{min-width:200px}.audit-table .audit-time,.audit-table .audit-ip{white-space:nowrap}.audit-table small{white-space:normal}.audit-result{display:inline-block;border-radius:12px;padding:3px 7px;margin-top:5px;background:#edf2f8;color:#60728a}.audit-result.success{background:#e7f6ee;color:#187550}.audit-result.failed,.audit-result.blocked{background:#fff0f1;color:#ad2942}.audit-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}.audit-pagination .actions{align-items:center;margin:0}#audit-status.error{padding:12px;background:#fff0f1;color:#a7293f;border-radius:8px}#audit-status:empty{display:none}
#audit-dialog{width:min(760px,calc(100vw - 24px));max-height:92dvh;overflow:auto;border:1px solid #d8e2ef;border-radius:16px;padding:24px;color:#17283d}#audit-dialog::backdrop{background:rgba(14,30,49,.55)}#audit-dialog h2{font-size:19px;margin:0}#audit-dialog dl{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;margin:24px 0}#audit-dialog dt{color:#6d7e94}#audit-dialog dd{margin:0;overflow-wrap:anywhere}#audit-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;border-radius:8px;background:#f3f6fb;font:inherit}
@media(max-width:800px){.audit-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.audit-filters{grid-template-columns:1fr}#audit-dialog dl{grid-template-columns:1fr;gap:6px}#audit-dialog dd{margin-bottom:10px}}

/* Company Chat */
.chat-launch{position:fixed;right:24px;bottom:22px;z-index:70;box-shadow:0 5px 22px #14263c35;border-radius:28px;padding:14px 20px}.chat-launch[hidden]{display:none}.chat-launch span{background:#b7203e;border-radius:20px;padding:2px 7px;margin-left:6px}#chat-dialog{width:min(1040px,96vw);max-width:1040px;height:85vh;max-height:900px;border:1px solid #d7e1ee;border-radius:20px;padding:20px;color:#192e46}#chat-dialog::backdrop{background:#10243880}.chat-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.chat-top h2{margin:0 0 5px;font-size:19px}.chat-top small{color:#687e98}#chat-settings{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#f2f6fc;padding:10px;margin-top:12px}#chat-settings[hidden]{display:none}#chat-status{min-height:20px;margin:8px 0}.chat-layout{display:grid;grid-template-columns:240px minmax(0,1fr);height:calc(100% - 100px);gap:16px}.chat-people{overflow:auto;border-right:1px solid #e0e7f2;padding-right:12px}.chat-people input{margin:6px 0 12px}.chat-room{display:block;text-align:left;width:100%;border:1px solid transparent;background:white;color:#263c56;margin-bottom:5px;padding:12px;border-radius:10px}.chat-room small{display:block;color:#6a8099;margin-top:5px;font-size:11px}.chat-room.selected{background:#eaf1ff;border-color:#afcaff}.chat-conversation{display:flex;flex-direction:column;min-height:0}.chat-conversation h3{margin:0 0 8px}.chat-messages{flex:1;min-height:100px;overflow:auto;background:#f4f7fc;padding:12px;border-radius:12px;margin:8px 0}.chat-message{background:#fff;padding:12px;border:1px solid #e0e7f2;border-radius:12px;margin-bottom:12px;max-width:96%;overflow-wrap:anywhere}.chat-message.own{background:#edf4ff;margin-left:4%;border-color:#d4e3ff}.chat-message header{display:flex;flex-wrap:wrap;gap:5px 12px;padding:0;background:transparent;border:0;height:auto;font-size:12px}.chat-message header span,.chat-message time{color:#647c97}.chat-message time{font-size:10px}.chat-text{white-space:pre-wrap;line-height:1.8;margin:8px 0;font-family:inherit}.chat-message img{display:block;max-height:220px;max-width:100%;margin:8px 0;border-radius:8px}.chat-message audio{display:block;max-width:100%;margin:8px 0}.chat-message a{display:block;font-size:12px}.chat-mentioned{display:block;background:#fff0b8;color:#7a5600;padding:5px;border-radius:5px}#chat-compose{border-top:1px solid #dce5f1;padding-top:10px}#chat-compose textarea{width:100%;resize:vertical;max-height:150px;font-size:14px;line-height:1.7}#chat-compose small{display:block;color:#6a8099;font-size:10px;margin-top:7px}.chat-tools{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.chat-tools button,.chat-attach{font-size:12px;padding:8px 10px;cursor:pointer}.chat-attach{border:1px solid #ccd9eb;border-radius:8px;display:inline-block;margin:0;background:#fff}.chat-attach input{display:none}.chat-emoji button{font-size:22px;padding:5px;background:none;border:0}.chat-emoji{padding:6px;background:#fff8e8}.chat-emoji[hidden]{display:none}#chat-mentions button{padding:4px 7px;font-size:11px;margin:4px 4px 0 0}#chat-mention-choices{max-height:110px;overflow:auto;background:#f0f5ff;padding:6px}#chat-mention-choices button{margin:3px;padding:5px 8px;font-size:12px}#chat-attachment{font-size:11px;color:#5d728b;margin-top:6px}#chat-attachment audio{display:block;max-height:35px;max-width:100%;margin:6px 0}#chat-older{align-self:center;font-size:11px;padding:5px 12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:680px){#chat-dialog{width:100vw;height:95dvh;padding:12px;border-radius:12px}.chat-layout{grid-template-columns:1fr;grid-template-rows:110px minmax(0,1fr);gap:8px}.chat-people{border-right:0;border-bottom:1px solid #e0e7f2;padding:0;display:flex;gap:8px}.chat-people label{min-width:120px;width:120px;font-size:11px}#chat-rooms{display:flex;gap:6px;overflow:auto}.chat-room{min-width:150px;width:150px;margin:0;font-size:11px}.chat-top h2{font-size:15px}.chat-top .actions{gap:4px}.chat-top button{font-size:10px;padding:8px}.chat-conversation h3{font-size:14px}.chat-launch{right:14px;bottom:15px}.chat-message{max-width:100%}#chat-compose textarea{font-size:16px}}

/* Flexible Chat viewport, profiles and moderation */
#chat-dialog{box-sizing:border-box;width:min(1440px,calc(var(--chat-viewport-width,100vw) - 32px));max-width:calc(100vw - 16px);height:min(1050px,calc(var(--chat-viewport-height,100dvh) - 32px));max-height:calc(var(--chat-viewport-height,100dvh) - 16px);overflow:hidden;resize:none}#chat-dialog[open]{display:flex;flex-direction:column;gap:6px}.chat-top{flex:0 0 auto;min-width:0}.chat-top>div{min-width:0}.chat-top .actions{flex-wrap:wrap;justify-content:flex-end}.chat-top h2{overflow-wrap:anywhere}.chat-layout{flex:1 1 auto;height:auto;min-height:0;overflow:hidden;grid-template-columns:minmax(180px,24%) minmax(0,1fr)}.chat-conversation{min-width:0;overflow:hidden}.chat-messages{min-height:40px;overscroll-behavior:contain}#chat-status{flex-shrink:0;margin:2px 0;font-size:12px;max-height:3.5em;overflow:auto}#chat-compose{flex:0 0 auto;max-height:48%;overflow:auto;overscroll-behavior:contain}#chat-compose[hidden]{display:none}#chat-compose textarea{box-sizing:border-box;min-height:52px;max-height:130px}#chat-admin-settings{flex-shrink:0;font-size:12px}#chat-admin-settings summary{cursor:pointer;color:#536d8d}#chat-admin-settings[hidden]{display:none}#chat-settings{margin:4px 0;max-height:110px;overflow:auto}.chat-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;vertical-align:middle;width:34px;height:34px;border-radius:50%;padding:0!important;overflow:hidden;background:#dfeaff;color:#1b4c83;border:1px solid #cbdaf0;font-weight:bold;font-size:14px;margin-right:7px}.chat-avatar img{width:100%;height:100%;object-fit:cover;max-height:none;margin:0;border-radius:50%}.chat-message header .chat-avatar{width:30px;height:30px}.chat-message header{align-items:center;min-width:0;overflow-wrap:anywhere}.chat-room .chat-avatar{float:left}.chat-delete{font-size:10px;padding:3px 8px;margin-top:5px;float:right}.chat-message::after{content:'';display:block;clear:both}#chat-profile-panel{flex:0 1 auto;max-height:38%;overflow:auto;border:1px solid #d8e3f0;background:#f5f8fd;border-radius:12px;padding:10px}#chat-profile-panel[hidden]{display:none}.chat-profile-heading{display:flex;gap:8px;align-items:center}.chat-profile-heading small{display:block;color:#6b819d}.chat-profile-heading .chat-avatar{width:46px;height:46px}#chat-profile-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:8px}#chat-profile-form label{font-size:11px;min-width:0}#chat-profile-form input[type=file]{font-size:11px;max-width:100%}#chat-profile-form textarea{font-size:14px}#chat-profile-close{font-size:11px;padding:5px 8px;margin-top:6px}#chat-people-toggle{display:none}.chat-hide-people .chat-people{display:none}.chat-hide-people .chat-layout{grid-template-columns:minmax(0,1fr)}@media(max-width:680px){#chat-dialog{width:calc(var(--chat-viewport-width,100vw) - 8px);max-width:calc(100vw - 8px);height:calc(var(--chat-viewport-height,100dvh) - 8px);max-height:calc(var(--chat-viewport-height,100dvh) - 8px);padding:10px;margin:auto;border-radius:10px}.chat-top{display:block}.chat-top h2{font-size:15px}.chat-top .actions{justify-content:flex-start;margin-top:6px;gap:4px}.chat-top button{font-size:10px;padding:6px 8px}.chat-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,85px) minmax(0,1fr);gap:5px}.chat-hide-people .chat-layout{grid-template-rows:minmax(0,1fr)}.chat-people{min-width:0;max-height:85px}.chat-room{min-width:140px}.chat-people label{min-width:100px;width:100px}.chat-people input{font-size:16px}#chat-people-toggle{display:block;align-self:flex-start;font-size:10px;padding:3px 7px;margin-bottom:4px}.chat-conversation h3{margin:0 0 3px;font-size:13px}.chat-messages{margin:4px 0;padding:7px}#chat-compose{max-height:48%;padding-top:5px}#chat-compose textarea{font-size:16px;min-height:50px;max-height:90px}.chat-tools{gap:4px;margin-top:4px}.chat-tools button,.chat-attach{font-size:11px;padding:6px 8px}#chat-profile-form{grid-template-columns:minmax(0,1fr)}#chat-profile-panel{max-height:42%}#chat-settings{gap:6px;padding:6px}#chat-compose small{font-size:9px}}@media(max-height:500px){#chat-dialog{padding:7px;gap:3px}.chat-top h2{font-size:13px}.chat-top small{font-size:9px}.chat-top .actions{margin:2px 0}.chat-top button{padding:4px 7px;font-size:10px}.chat-people{max-height:60px}.chat-layout{grid-template-rows:minmax(0,60px) minmax(0,1fr)}#chat-compose textarea{min-height:35px;max-height:60px}#chat-compose small{display:none}#chat-profile-panel{max-height:45%}}@media(min-width:681px) and (max-height:500px){.chat-layout{grid-template-rows:minmax(0,1fr)}.chat-people{max-height:none}}
#chat-dialog{position:fixed;top:calc(var(--chat-viewport-top,0px) + 16px);bottom:auto;left:0;right:0;margin:0 auto}@media(max-width:680px),(max-height:500px){#chat-dialog{top:calc(var(--chat-viewport-top,0px) + 4px)}}
#chat-dialog [hidden]{display:none!important}
.chat-admin-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;max-height:230px;overflow:auto;padding:8px;background:#f3f7fd}.chat-admin-tools form{padding:8px;min-width:0}.chat-admin-tools h4{margin:0 0 8px;font-size:12px}.chat-admin-tools label{display:block;font-size:11px;margin:5px 0}.chat-admin-tools select{font-size:12px;padding:6px;width:100%}.chat-admin-tools button{padding:7px 10px;font-size:11px}.chat-admin-tools small{display:block;font-size:10px;color:#667d99;line-height:1.6;margin-top:6px}#chat-profile-presence{color:#237447;font-size:12px}#chat-profile-meta,#chat-profile-source{font-size:12px;line-height:1.6}.chat-room small{line-height:1.6}@media(max-width:680px){.chat-admin-tools{grid-template-columns:minmax(0,1fr);max-height:170px}.chat-admin-tools select{font-size:16px}}@media(max-height:500px){.chat-admin-tools{max-height:110px}}
#chat-admin-settings[open]{max-height:42%;overflow:auto;flex-shrink:1}.chat-room.chat-online small::before{content:'● ';color:#16935f}#chat-profile-presence:not(.online){color:#74869c}

/* Overtime: fluid desktop table and single-column staff form. */
.ot-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.ot-stat{border-radius:16px;padding:22px;color:#fff;display:grid;gap:12px}.ot-stat strong{font-size:28px}.ot-stat.blue{background:#1c66b5}.ot-stat.gold{background:#a36b08}.ot-stat.green{background:#128262}.ot-stat.navy{background:#243b53}.ot-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.ot-table{min-width:900px}.ot-table td{vertical-align:middle}.ot-table small{display:block;color:#71829c;margin-top:7px}.ot-badge{display:inline-block;border-radius:30px;padding:5px 10px;font-size:12px;text-transform:capitalize}.ot-pending{background:#fff2d9;color:#885600}.ot-approved{background:#e2f6ed;color:#06714e}.ot-rejected{background:#ffe8ed;color:#b52142}.ot-cancelled{background:#edf0f5;color:#58657a}.ot-reject{background:#bf2945}.ot-reason{white-space:pre-wrap;overflow-wrap:anywhere}.ot-mobile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}#ot-request{display:grid;gap:16px}#ot-request[hidden]{display:none}#ot-settings{display:flex;align-items:center;gap:16px;flex-wrap:wrap}#ot-settings[hidden]{display:none}.ot-duration{padding:16px;background:#edf3ff;border-radius:12px;color:#2257b8;font-size:19px;font-weight:700}.ot-request-card{border-top:1px solid #e0e7f2;margin-top:20px;padding:18px 0;overflow-wrap:anywhere}.ot-request-card .secondary{display:block;margin-top:14px}.ot-request-card small{display:block;color:#6b7b94}#ot-detail form{display:grid;gap:14px;margin-top:18px}#ot-detail>button{float:right}.ot-invalid{border:2px solid #c92d45!important;outline-color:#c92d45!important}.ot-field-error{color:#bb1e3b!important;display:block;margin-top:5px}.ot-request-card p{white-space:pre-wrap}#ot-status.error{padding:12px;border-radius:9px;background:#fff0f2;color:#bb1e3b}
@media(max-width:1000px){.ot-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ot-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.ot-mobile-grid,.ot-filters{grid-template-columns:1fr}.ot-stat{padding:15px}.ot-stat strong{font-size:22px}#ot-mobile{padding:18px}.ot-request-card strong{font-size:13px}.ot-mobile-grid input{width:100%;min-width:0}}

/* OT employee detail columns and explicit review actions. */
.ot-table{min-width:1600px}.ot-address,.ot-comment{white-space:pre-wrap;overflow-wrap:anywhere;min-width:150px;max-width:260px}.ot-row-actions{display:flex;gap:7px;flex-wrap:wrap;min-width:210px}.ot-row-actions button{padding:8px 12px;font-size:12px}.ot-approve{background:#128262}.ot-deny{color:#b52142;border-color:#edbdc6}.ot-action-chosen{outline:3px solid #a8bfe8;outline-offset:3px}

.ot-table{min-width:2050px;font-size:12px}.ot-person{display:flex;align-items:center;gap:10px;min-width:190px}.ot-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:0 0 38px;background:#e7edf8;color:#2257b8;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.ot-person strong{color:#165bc0}.ot-person small{font-size:10px}.ot-table th,.ot-table td{border-right:1px solid #e4e9f1}.ot-table tbody tr:nth-child(odd){background:#f3f5f8}.ot-table td{padding:13px 10px}.rail nav a[data-tab]{display:block;text-decoration:none;color:inherit;padding:13px 14px;border-radius:10px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.rail nav a[data-tab].selected{background:#283f57;color:white}.employee-subnav a[data-tab]{margin-left:8px}.rail nav a[data-tab][hidden]{display:none}

/* OT: fluid LCD table and readable mobile cards, all actions remain visible. */
#ot-admin{min-width:0;max-width:100%}#ot-admin .card{min-width:0;max-width:100%;box-sizing:border-box}#ot-admin .scroll{max-width:100%;overflow-x:auto}.ot-table{width:100%;min-width:1500px;table-layout:auto}.ot-table th{white-space:nowrap}.ot-row-actions{min-width:135px;max-width:240px}.ot-comment{max-width:220px}.ot-filters input,.ot-filters select{min-width:0;width:100%;box-sizing:border-box}
@media(max-width:760px){#ot-admin .ot-table,#ot-admin .ot-table tbody{display:block;width:100%;min-width:0}#ot-admin .ot-table thead{display:none}#ot-admin .ot-table tr{display:block;border:1px solid #dce4f0;border-radius:14px;margin:0 0 16px;padding:10px;background:#fff}#ot-admin .ot-table td{display:grid;grid-template-columns:minmax(95px,32%) minmax(0,1fr);gap:10px;border:0;border-bottom:1px solid #edf0f5;max-width:none;min-width:0;padding:10px 5px;overflow-wrap:anywhere}#ot-admin .ot-table td::before{content:attr(data-label);font-weight:600;color:#63758c;font-size:11px}#ot-admin .ot-table td:last-child{border-bottom:0}#ot-admin .ot-table td[colspan]{display:block}#ot-admin .ot-person{min-width:0}#ot-admin .ot-row-actions{min-width:0;max-width:none}#ot-admin .ot-row-actions button{min-height:40px}#ot-admin .ot-table td>small{grid-column:2}#ot-admin .card{padding:16px}.ot-filters{grid-template-columns:1fr}.ot-stats{gap:10px}#ot-detail{overflow-wrap:anywhere}}

.ot-nav summary{list-style:none;padding:13px 14px;border-radius:10px;background:#205de8;color:#fff;cursor:pointer;font-size:12px;font-weight:700}.ot-nav summary::after{content:'⌄';float:right}.ot-subnav{border-left:1px solid #3c5068;margin:4px 0 8px 18px;padding-left:6px}.ot-nav[hidden]{display:none}#ot-report{min-width:0;max-width:100%}#ot-report .scroll{overflow-x:auto;max-width:100%}#ot-report table{min-width:650px}#ot-report .card{min-width:0}#ot-report .ot-filters{margin:16px 0}

#otr-rows .ot-person{min-width:200px}#otr-rows small{display:block;color:#71829c;font-size:11px;margin-top:5px}.otr-hours{color:#087a58;background:#e9f7f0;padding:8px 12px;border-radius:9px;display:inline-block;white-space:nowrap;font-size:17px}#otr-rows tr:nth-child(even){background:#f7f9fc}#otr-rows .otr-selected{background:#edf3ff}#ot-report .ot-stats{grid-template-columns:repeat(4,minmax(0,1fr))}#ot-report .card-title h3{margin-bottom:6px}#ot-report #otr-summary-note{margin-top:0}@media(max-width:760px){#ot-report .ot-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#ot-report .card{padding:16px}#ot-report table:has(#otr-rows),#otr-rows{display:block;min-width:0;width:100%}#ot-report table:has(#otr-rows) thead{display:none}#otr-rows tr{display:block;border:1px solid #e0e7f2;border-radius:14px;margin-bottom:14px;padding:10px}#otr-rows td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:9px;padding:9px 5px;border:0;overflow-wrap:anywhere}#otr-rows td:before{content:attr(data-label);font-size:11px;color:#6b7e98;font-weight:600}#otr-rows .ot-person{min-width:0}#otr-rows td[colspan]{display:block}#ot-report .card-title{flex-wrap:wrap;gap:12px}}

/* Compact HR menu: six top-level entries, grouped setup/reports/settings. */
.rail nav{display:grid;gap:5px}.rail nav .hr-menu-group{min-width:0;margin:0}.rail nav .hr-menu-group>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;padding:13px 14px;border-radius:10px;font:inherit;font-size:12px;font-weight:600;background:transparent;color:inherit;cursor:pointer}.rail nav .hr-menu-group>summary::-webkit-details-marker{display:none}.rail nav .hr-menu-group>summary::after{content:'›';font-size:16px;float:none}.rail nav .hr-menu-group[open]>summary{background:#253d55;color:#fff}.rail nav .hr-menu-group[open]>summary::after{content:'⌄'}.hr-menu-sub{display:grid;gap:3px;margin:5px 0 6px 17px;padding-left:9px;border-left:1px solid #3c5068}.rail nav .hr-menu-sub a,.rail nav .hr-menu-sub button{padding:10px 12px;font-size:11px;text-align:left;color:inherit;text-decoration:none;background:transparent;border-radius:8px;display:block;width:100%;box-sizing:border-box}.rail nav .hr-menu-sub a.selected{background:#e7edf5;color:#17283d;box-shadow:inset 2px 0 #e3b767}.rail nav .hr-menu-group[hidden],.rail nav .hr-menu-sub [hidden]{display:none!important}

/* API settings are regular Function panels, not modal dialogs. */
.hr-settings-page{width:100%;max-width:920px;box-sizing:border-box;margin:0}.hr-settings-page form{display:grid;gap:16px}.hr-settings-page form>label{margin:0}.hr-settings-page .card-title{margin-bottom:16px}.hr-settings-page .notice{margin:0}.hr-settings-page p{overflow-wrap:anywhere}@media(max-width:600px){.hr-settings-page{padding:18px}.hr-settings-page .card-title{align-items:flex-start;gap:12px}.hr-settings-page input{min-width:0;width:100%;box-sizing:border-box}.hr-settings-page input[type=checkbox]{width:auto}}

/* Leave: navy/blue theme with fluid desktop tables and mobile cards. */
.lv-panel{min-width:0;max-width:100%;box-sizing:border-box}.lv-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.lv-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.lv-panel input,.lv-panel select,.lv-panel textarea{min-width:0;box-sizing:border-box}.lv-panel form:not([hidden]){display:grid;gap:16px}.lv-panel .inline-check{display:flex;align-items:center;gap:8px}.lv-panel input[type=checkbox]{width:auto}.lv-panel .scroll{max-width:100%;overflow:auto}.lv-table{min-width:1550px;width:100%;font-size:12px}.lv-table td{vertical-align:top;white-space:pre-line}.lv-table tbody tr:nth-child(odd){background:#f5f8fc}.lv-wrap{max-width:230px;overflow-wrap:anywhere}.lv-wrap p{margin-top:0}.lv-form-card{border-top:1px solid #dce5f2;margin-top:24px;padding-top:20px}.lv-panel .error{background:#fff0f2;padding:12px;color:#b52142;border-radius:10px}.lv-quick{margin:15px 0}#lv-report table{min-width:900px}#lv-types table{min-width:650px}#lv-settings{padding:14px;background:#edf3ff;border-radius:10px}#lv-request[hidden],#lv-review[hidden],#lv-settings[hidden],#lv-type-form[hidden]{display:none}#lv-mobile{margin-top:24px}#lv-mobile .lv-form-grid{grid-template-columns:1fr}#lv-mobile form{margin-top:20px}#lv-mobile textarea{width:100%}
@media(max-width:800px){.lv-filters,.lv-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lv-panel .card-title{flex-wrap:wrap;gap:12px}}
@media(max-width:600px){.lv-filters,.lv-form-grid{grid-template-columns:1fr}.lv-panel{padding:16px}.lv-panel .lv-table,.lv-panel .lv-table tbody{display:block;min-width:0;width:100%}.lv-table thead{display:none}.lv-table tr{display:block;border:1px solid #dce5f2;border-radius:12px;margin-bottom:16px;padding:10px}.lv-table td{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;border:0;padding:9px 3px;overflow-wrap:anywhere}.lv-table td:before{content:attr(data-label);font-size:11px;color:#6b7d97;font-weight:600}.lv-table td[colspan]{display:block}.lv-table .ot-person{min-width:0}.lv-wrap{max-width:none}.lv-panel input,.lv-panel select,.lv-panel textarea{font-size:16px;width:100%}}

/* Leave reference theme: navy/gold banner, white summary cards and compact tables. */
body:has(.lv-theme:not([hidden])){background:linear-gradient(120deg,#f4f8ff,#eaf2fd)}body:has(.lv-theme:not([hidden])) .content{max-width:1720px;padding:20px 26px}body:has(.lv-theme:not([hidden])) .content>.hero{display:none}body:has(.lv-theme:not([hidden])) .rail{background:linear-gradient(165deg,#071b43,#10284b);color:#d4def0}body:has(.lv-theme:not([hidden])) .rail [data-menu-group=leave][open]{background:#142e56;border-left:3px solid #efbf37;border-radius:10px}body:has(.lv-theme:not([hidden])) .rail [data-menu-group=leave]>summary{color:#fff;background:transparent}body:has(.lv-theme:not([hidden])) .rail [data-menu-group=leave] .selected{background:#0758eb;color:white;box-shadow:none}.lv-theme{color:#102446}.lv-hero{position:relative;isolation:isolate;display:flex;align-items:center;gap:24px;overflow:hidden;border-radius:12px;background:linear-gradient(110deg,#071a3e,#0b2858);color:white;padding:24px 30px;box-shadow:0 3px 8px #15396818}.lv-hero:after{content:'';position:absolute;z-index:-1;right:45px;top:-70px;width:15px;height:270px;transform:rotate(45deg);background:linear-gradient(90deg,#e8a814,#ffda54);box-shadow:14px 0 0 #dfad32,25px 0 0 #193e6a}.lv-hero h1{font-size:30px;letter-spacing:-.6px;margin:0 0 6px;font-weight:750}.lv-hero p{margin:0;color:#e0e9fa;font-size:14px}.lv-hero-icon{display:block;color:#f7c62f;padding-right:25px;border-right:1px solid #c8d8ed}.lv-hero-icon svg{width:46px;height:46px;display:block}.lv-tabs{display:flex;gap:10px;border-bottom:1px solid #cbd7e8;padding:12px 0 6px;margin-bottom:18px}.lv-tabs a{min-width:115px;text-align:center;padding:11px 20px;border-radius:8px 8px 3px 3px;background:#f9fbff;color:#102349;font-size:13px;font-weight:750;box-shadow:0 2px 6px #2b568e0c}.lv-tabs a.active{background:linear-gradient(#0759ef,#0043cd);color:white;box-shadow:0 4px 10px #165ce92b}.lv-theme .card{border:1px solid #dce5f1;border-radius:12px;box-shadow:0 2px 5px #203e6b14;padding:20px;background:#ffffffed}.lv-theme .card-title{margin-bottom:12px;gap:12px}.lv-theme h2{font-size:17px;margin:0;letter-spacing:-.25px}.lv-theme h2 svg{width:22px;height:22px;margin-right:9px;vertical-align:-5px;flex-shrink:0}.lv-theme .muted{font-size:11px;line-height:1.6}.lv-theme .card-title p{margin:6px 0 0}.lv-theme button,.lv-link-button{border-radius:6px;padding:8px 13px;font-size:12px;font-weight:650}.lv-theme button:not(.secondary){background:linear-gradient(#075df7,#0049dc)}.lv-theme .secondary,.lv-link-button{border:1px solid #ccd8e9;background:#fff;color:#0c3c88}.lv-link-button{white-space:nowrap;display:inline-block}.lv-access{font-size:11px;color:#59718f;margin:10px 0}.lv-access>summary{cursor:pointer}.lv-access:has(form[hidden]){display:none}.lv-theme #lv-settings{margin-top:10px;padding:12px}.lv-theme #lv-stats{margin:16px 0;gap:14px}.lv-theme .lv-stat{display:flex;align-items:center;gap:18px;min-width:0;padding:20px;background:#fff;border:1px solid #dce5f1;border-radius:12px;box-shadow:0 2px 5px #203e6b14;color:#122447}.lv-stat>div{display:grid;gap:6px}.lv-stat>div>span{font-size:12px;font-weight:650}.lv-theme .lv-stat strong{font-size:31px;line-height:1.1}.lv-stat-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;flex:0 0 48px}.lv-stat-icon svg{width:29px;height:29px}.lv-theme .lv-stat.blue strong,.lv-stat.blue .lv-stat-icon{color:#0057e7}.lv-stat.blue .lv-stat-icon{background:#e6f0ff}.lv-theme .lv-stat.green strong,.lv-stat.green .lv-stat-icon{color:#12913e}.lv-stat.green .lv-stat-icon{background:#e3f9e9}.lv-theme .lv-stat.gold strong,.lv-stat.gold .lv-stat-icon{color:#c18b0d}.lv-stat.gold .lv-stat-icon{background:#fff5d9}.lv-theme .lv-stat.navy strong,.lv-stat.navy .lv-stat-icon{color:#0f2a57}.lv-stat.navy .lv-stat-icon{background:#e9edf5}.lv-filter-card{margin-bottom:16px}.lv-theme .lv-filters{grid-template-columns:repeat(6,minmax(0,1fr));margin:8px 0 0;gap:14px}.lv-theme label{font-size:11px;font-weight:600;gap:6px}.lv-theme input,.lv-theme select{padding:9px 10px;border-radius:6px;background:#fff;border-color:#d2dceb;font-size:12px}.lv-theme .lv-quick{margin:12px 0 0;gap:7px}.lv-quick button{padding:5px 10px;font-size:10px}.lv-request-card{margin-bottom:18px}.lv-card-heading{margin-bottom:5px!important}.lv-theme #lv-count{font-size:10px;margin:7px 0 10px;color:#71839c}.lv-theme .lv-table{min-width:1080px;font-size:11px}.lv-theme table th{background:#eaf0f8;color:#152a4c;font-size:11px;font-weight:750;padding:10px 12px;white-space:nowrap}.lv-theme table td{padding:12px;border-bottom:1px solid #e3e9f2}.lv-theme .lv-table tbody tr:nth-child(odd){background:#fbfcff}.lv-theme .lv-table td{white-space:normal}.lv-theme .lv-table td small{display:block;color:#72839c;font-size:10px;margin-top:5px}.lv-theme .lv-table .ot-person{min-width:155px;gap:8px}.lv-theme .ot-person strong{font-size:12px;color:#11264a}.lv-theme .ot-person small{font-size:10px}.lv-theme .ot-avatar{width:34px;height:34px;flex-basis:34px}.lv-theme .ot-badge{font-size:10px;padding:5px 9px;border-radius:7px;font-weight:650;white-space:nowrap}.lv-theme .ot-pending{background:#e6efff;color:#0756d9}.lv-theme .ot-approved{background:#e1f8e8;color:#07852c}.lv-theme .ot-rejected{background:#ffeaec;color:#be253e}.lv-theme .ot-row-actions{min-width:105px;gap:5px}.lv-theme .ot-row-actions button{font-size:10px;padding:5px 9px}.lv-theme .ot-row-actions button:nth-child(2):not(.ot-deny){background:#0b8a4e;color:white;border-color:#0b8a4e}.lv-theme .ot-deny{color:#bd2043;border-color:#f0c5ce}.lv-type-badge{display:inline-block;font-size:10px;font-weight:650;padding:5px 9px;white-space:nowrap;border-radius:6px;background:#e5efff;color:#1359b5}.lv-type-1{background:#e3f8e9;color:#087633}.lv-type-2{background:#f0e8ff;color:#6640ac}.lv-theme .lv-form-card:empty{display:none}.lv-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.lv-preview-grid .card{min-width:0}.lv-preview-grid h2{font-size:16px}.lv-preview-grid .card-title{align-items:flex-start}.lv-preview-grid .lv-link-button{font-size:10px;padding:7px 9px}.lv-preview-table{width:100%;min-width:420px;font-size:12px}.lv-preview-table .ot-person{min-width:135px}.lv-theme .lv-preview-table td{padding:10px}.lv-paid,.lv-unpaid{display:inline-block;min-width:65px;text-align:center;padding:4px 8px;border-radius:6px;font-size:10px;font-weight:650}.lv-paid{background:#e3f9e8;color:#0a802c}.lv-unpaid{background:#ffe9ed;color:#b8213b}.lv-policy-note{margin-bottom:0}.lv-theme #lv-report>label{max-width:180px;display:grid}.lv-theme #lv-type-form{margin-top:22px;padding-top:20px;border-top:1px solid #dce5f1}.lv-theme .lv-form-card form{background:#f8faff;padding:18px;border:1px solid #dce5f1;border-radius:10px}
@media(min-width:1700px){.lv-theme .lv-table{min-width:0}.lv-theme .lv-table td{font-size:12px}}
@media(max-width:1150px){.lv-theme .lv-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.lv-theme #lv-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.lv-preview-grid{grid-template-columns:1fr}.lv-hero h1{font-size:25px}}
@media(max-width:600px){body:has(.lv-theme:not([hidden])) .content{padding:14px 12px}.lv-hero{padding:20px 16px;gap:14px}.lv-hero h1{font-size:22px}.lv-hero p{font-size:11px;max-width:230px;line-height:1.5}.lv-hero-icon{padding-right:13px}.lv-hero-icon svg{width:32px;height:32px}.lv-hero:after{right:0;opacity:.65}.lv-tabs{gap:6px}.lv-tabs a{min-width:0;flex:1;padding:10px 8px;font-size:12px}.lv-theme .card{padding:15px}.lv-theme #lv-stats{gap:9px}.lv-theme .lv-stat{padding:13px 10px;gap:9px}.lv-stat-icon{width:33px;height:33px;flex-basis:33px;border-radius:8px}.lv-stat-icon svg{width:23px;height:23px}.lv-stat>div>span{font-size:10px}.lv-theme .lv-stat strong{font-size:25px}.lv-theme .lv-filters{grid-template-columns:1fr 1fr;gap:12px}.lv-theme .lv-filters label:last-child{grid-column:1/-1}.lv-theme input,.lv-theme select,.lv-theme textarea{font-size:16px}.lv-theme .lv-table{min-width:0;font-size:12px}.lv-theme .lv-table td{padding:8px 3px}.lv-theme .lv-table th{display:none}.lv-theme .lv-table .ot-person{min-width:0}.lv-theme .lv-table .ot-row-actions{min-width:0}.lv-theme .lv-table .ot-row-actions button{font-size:12px;min-height:38px}.lv-theme .lv-table td:before{font-size:10px}.lv-preview-grid h2{font-size:14px}.lv-preview-grid .card-title{flex-wrap:wrap}.lv-theme .lv-form-card form{padding:12px}}

/* Golden Eagle Navy / Gold system theme. Presentation only; no external resources. */
:root{--ge-navy:#0b2248;--ge-navy-deep:#071936;--ge-blue:#0757e7;--ge-gold:#f2bd36;--ge-text:#142b4c;--ge-muted:#6d809a;--ge-line:#dbe5f1;--ge-surface:#fff;--ge-shadow:0 2px 7px #1b3b6410;--ge-radius:12px;color-scheme:light}
body{color:var(--ge-text);background:linear-gradient(120deg,#f5f8fe,#eaf1fb);font-family:Inter,"Noto Sans Khmer",system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.6}
button,.button{border-radius:7px;background:linear-gradient(180deg,#1267f8,#0550dc);font-weight:650;box-shadow:0 2px 4px #1557b914;transition:background .15s,box-shadow .15s,transform .15s}button:hover,.button:hover{filter:brightness(.97);box-shadow:0 3px 8px #1557b921}button:active,.button:active{transform:translateY(1px)}button:disabled,.button:disabled{cursor:not-allowed;box-shadow:none;transform:none}button.secondary,.secondary.button,.lv-link-button{background:#fff;border:1px solid #cdd9e9;color:#204779;box-shadow:none}button.text-button{background:transparent;color:#205abb;box-shadow:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8cb7ff;outline-offset:3px}
input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{border:1px solid #cfdbea;background:#fff;color:var(--ge-text);border-radius:7px;padding:10px 12px;box-sizing:border-box;min-width:0;max-width:100%;line-height:1.5}input:focus,select:focus,textarea:focus{border-color:#4f8cec;outline:2px solid #d9e8ff;box-shadow:0 0 0 3px #1260df0a}input[type=checkbox],input[type=radio]{accent-color:var(--ge-blue)}textarea{resize:vertical}label{color:#243b5b;font-weight:600}small,.muted{color:var(--ge-muted)}
.card,.panel{border:1px solid var(--ge-line);border-radius:var(--ge-radius);background:#fff;box-shadow:var(--ge-shadow)}.card-title,.page-heading,.studio-heading{gap:15px}.card h2,.card h3,.panel h3{color:#112b50}.card-title h2,.card-title h3{letter-spacing:-.25px}.eyebrow{color:#9e751c;letter-spacing:1.8px}.notice{border-radius:9px;background:#fff9ec;border:1px solid #ecd8ad;color:#846125}.notice.error,.error{color:#ac2944}.success{color:#08784b}.tag,.locked,.admin-badge,.sample-badge,.module-badge{background:#fff6df;color:#866119;border-color:#eddbab;border-radius:7px}.pill,.ot-badge,.employee-status,.hr-account-state{font-weight:650}.pill.approved,.employee-status.is-active{color:#0b7c43;background:#e4f8ec}.pill.pending{background:#fff2d5;color:#8a6217}.pill.rejected,.pill.suspended{background:#ffeaed;color:#b02742}
.scroll,.table-wrap,.table-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain}table{border-collapse:collapse}table th{background:#eaf0f8;color:#233b5c;font-weight:700;font-size:11px;letter-spacing:.1px;text-transform:none;border-bottom:1px solid #dbe4f0;padding:12px 14px}table td{border-bottom:1px solid #e5ebf4;padding:13px 14px;line-height:1.6}table tbody tr:nth-child(even){background:#f8fafe}table tbody tr:hover{background:#f0f5fd}table tbody tr:last-child td{border-bottom:0}table th:first-child{border-top-left-radius:7px}table th:last-child{border-top-right-radius:7px}.row-actions,.actions{gap:8px}.row-actions button,.setup-row-actions button{font-size:11px;border-radius:6px}
.sidebar,.rail,.studio-sidebar{background:linear-gradient(165deg,#071a3b,#102c53);color:#cad8ed;border-right:1px solid #1c3557;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#365578 transparent}.brand-icon,.hr-company-monogram,.studio-brand>span{background:linear-gradient(135deg,#ffdc59,#e9ab23);color:#13294a;border:0;box-shadow:0 3px 8px #0002}.nav-label,.rail>.eyebrow,.studio-sidebar>.eyebrow{color:#c89d43}.sidebar nav button,.rail nav button,.rail nav a[data-tab],.studio-sidebar>a:not(.studio-brand){color:#c8d7ec;border-radius:8px;box-shadow:none}.sidebar nav button:hover,.rail nav a[data-tab]:hover,.rail nav button:hover,.studio-sidebar>a:not(.studio-brand):hover{background:#ffffff0c;color:white}.sidebar nav button.selected,.rail nav a[data-tab].selected,.rail nav button.selected,.active-nav{color:#fff;background:linear-gradient(100deg,#1263ee,#0750d7);border-left:3px solid #efbc33;box-shadow:0 3px 9px #0001}.rail nav .hr-menu-group>summary{color:#d3dff0;background:transparent;border-radius:8px}.rail nav .hr-menu-group[open]>summary{color:#fff;background:#1b375c}.rail nav .hr-menu-group[open]{background:#ffffff03;border-radius:9px}.rail nav .hr-menu-sub{border-left:1px solid #3b5678}.rail nav .hr-menu-sub a.selected{background:#0e5be5;color:#fff;box-shadow:inset 2px 0 #efbd35}.brand,.company-brand,.studio-brand{color:#fff}.brand small,.rail-note,.sidebar-bottom small,.sidebar-note{color:#9fb4d0}.sidebar-bottom .text-button,.back{color:#d3b268}
.topbar,.studio-topbar,main>header{background:#ffffffed;border-bottom:1px solid #dbe5f1;color:#546d8e}.topbar b,.studio-topbar strong,main>header strong{color:#1b3556}.page,.studio-page,.content{max-width:1680px}.page-heading,.studio-heading,.hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(110deg,#071b3f,#0d2b5c);color:#fff;border-radius:12px;padding:25px 28px;box-shadow:0 3px 8px #1b3f7012}.page-heading:after,.studio-heading:after,.hero:after{content:'';position:absolute;z-index:-1;right:44px;top:-65px;height:280px;width:15px;background:linear-gradient(90deg,#dfa21d,#ffdb54);transform:rotate(45deg);box-shadow:14px 0 0 #dca830,25px 0 0 #204570}.page-heading h1,.page-heading h2,.studio-heading h1,.hero h1{color:#fff;font-size:29px;letter-spacing:-.65px;line-height:1.35;margin:0 0 7px}.page-heading p,.studio-heading p,.hero p:last-child{color:#d2e0f3;font-size:12px;line-height:1.7;margin-bottom:0}.page-heading .eyebrow,.studio-heading .eyebrow,.hero .eyebrow{color:#f5cf6d}.page-heading .actions,.studio-heading .actions{margin:0}.page-heading>*,.studio-heading>*,.hero>*{min-width:0}.page-heading button,.studio-heading .button{flex-shrink:0}.hero-symbol{font-size:32px;min-width:80px;align-self:center}.hero-symbol img{max-width:68px;max-height:68px;object-fit:contain}.hero .hr-company-hero-logo{width:68px;height:68px}.hero h1{margin-top:3px}.hero{padding:25px 28px;min-height:122px}.hero .eyebrow{margin-top:0}.hero .hero-symbol{margin-right:8px}
.danger,.danger-text,.delete-button,button.delete,.chat-delete,.ot-deny,.ot-reject{color:#b32643;background:#fff1f4;border:1px solid #efc5ce;box-shadow:none}button.ot-approve{background:linear-gradient(#129463,#0a7b50);color:white;border-color:#0a7b50}.hr-field-invalid,.ot-invalid{border-color:#cb2d49!important}.hr-field-error,.ot-field-error{color:#b72441!important}.hr-validation-summary{background:#fff0f3;border-color:#df9ca9;color:#aa2841}.ocr-needs-review{border-color:#df951e!important;background:#fff9ec!important}
.auth-story{background:linear-gradient(140deg,#071b3b,#143765);border-right:5px solid #efbc35}.auth-story .eyebrow{color:#f2c75b}.auth-story p{color:#c7d7ed}.auth-content{background:linear-gradient(130deg,#f8fbff,#eaf2fc)}.auth-card{background:#fff;border:1px solid var(--ge-line);border-radius:16px;padding:30px;box-shadow:0 12px 40px #17395d0c}.auth-card h2{color:#0c294f}.auth-story h1{color:#fff}.auth-card .text-button{color:#135acb}.code-preview,.dieline-preview{border-color:#d2dfef;border-radius:10px;background:#fff}.qr-design,.scanner-install-card,.qr-presets,.export-options,.prototype-note{border-color:#dbe5f1}.template-card{border-radius:10px;border-color:#dbe5f1}.template-card.selected{border-color:#2266df;background:#eef5ff;box-shadow:0 0 0 2px #0757e710}.dimension-stats>div{background:#f3f7ff;border:1px solid #dce6f4}.dimension-stats strong{color:#0e55c8}.scan-image-upload,.social-editor,.customer-contact-fields,.draft-preview-heading{border-color:#dbe5f1}
@media(max-width:700px){.sidebar,.rail,.studio-sidebar{overflow:visible}.page-heading,.studio-heading,.hero{padding:20px;border-radius:10px;gap:14px;flex-wrap:wrap}.page-heading h1,.page-heading h2,.studio-heading h1,.hero h1{font-size:23px}.page-heading:after,.studio-heading:after,.hero:after{right:5px;opacity:.65}.page-heading p,.studio-heading p,.hero p:last-child{font-size:11px}.auth-card{padding:22px}.auth-content{padding:20px 14px}.auth-story h1{font-size:36px}input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{font-size:16px}.topbar,.studio-topbar,main>header{padding-left:16px;padding-right:16px}.card-title{flex-wrap:wrap}.card-title .actions{margin:0;max-width:100%}.row-actions button,.setup-row-actions button{min-height:36px}.hero-symbol{display:none}}
@media(prefers-reduced-motion:reduce){button,.button{transition:none}}
@media print{body{background:white}.page-heading:after,.studio-heading:after,.hero:after{display:none}.sidebar,.rail,.studio-sidebar{display:none}.card,.panel{box-shadow:none}.page-heading,.studio-heading,.hero{background:white;color:#172b4a}.page-heading h1,.page-heading h2,.studio-heading h1,.hero h1{color:#172b4a}}

/* HR application surfaces, cards, setup, reports and Staff App. */
body[data-hr-tab] .content{max-width:1680px;padding:24px 28px}.dashboard-stats .stat{background:#fff;color:#1c3356;border:1px solid #dbe5f1;border-radius:12px;box-shadow:var(--ge-shadow);padding:19px;min-height:116px}.dashboard-stats .stat span{color:#344b6b;font-size:11px}.dashboard-stats .stat small{color:#7486a0;font-size:10px;opacity:1}.dashboard-stats .stat strong{font-size:30px;letter-spacing:-.6px}.dashboard-stats .stat-icon{display:flex;align-items:center;justify-content:center;border-radius:12px;min-width:45px;height:48px;opacity:1;margin:0 0 0 12px;font-size:27px!important}.stat-blue strong,.stat-blue .stat-icon{color:#0758e6}.stat-blue .stat-icon{background:#e6f0ff}.stat-green strong,.stat-green .stat-icon{color:#0c8b4e}.stat-green .stat-icon{background:#e1f8eb}.stat-rose strong,.stat-rose .stat-icon{color:#bf3151}.stat-rose .stat-icon{background:#ffeaf0}.stat-amber strong,.stat-amber .stat-icon{color:#ba8612}.stat-amber .stat-icon{background:#fff3d7}.stat-slate strong,.stat-slate .stat-icon{color:#485f80}.stat-slate .stat-icon{background:#ebeff7}.stat-teal strong,.stat-teal .stat-icon{color:#128087}.stat-teal .stat-icon{background:#e3f6f5}.dashboard-filters{padding:20px}.dashboard-heading{margin-bottom:17px}.dashboard-heading h2{font-size:22px;color:#112e54}.card{border-radius:12px;padding:22px}.card h2{font-size:17px}.card-title h2{margin-bottom:0}.split{gap:20px}.attendance-card,.directory-card{padding:0;overflow:hidden}.directory-card .directory-eyebrow{color:#aa7a22}.directory-card .directory-tools{padding:22px}.employee-summary{background:#f7faff;border-color:#e1e9f4}.employee-summary strong{color:#15345c}.employee-section{border-color:#dce6f3;border-radius:12px}.employee-section legend{color:#18375c;font-weight:700}.employee-section legend span{background:#eaf2ff;color:#0757da}.employee-upload,.company-logo-editor{background:#f8fbff;border-color:#d6e3f3;border-radius:10px}.employee-savebar{border-color:#dce5f1;background:#f7faff}.employee-avatar,.avatar,.ot-avatar,.chat-avatar{background:#eaf1fc;color:#2055a0}.employee-action-menu{border:1px solid #d8e3f1;border-radius:10px;box-shadow:0 10px 35px #17385e24}.employee-action-menu button:hover{background:#edf4ff}.employee-floating-menu{box-shadow:0 10px 35px #17385e24}.employee-app-status{border-radius:7px}.setup-guide{background:#edf4ff;border:1px solid #cfdfff;border-radius:10px}.setup-guide a{color:#1d57ac;background:#fff;border-radius:5px}.list-item,.hr-account-card{border-color:#e0e7f2}.hr-account-card{background:#f9fbff;border-radius:10px}.work-slot{background:#ecf3ff;border:1px solid #dae6f8;color:#285385;border-radius:9px}.day-off{background:#fff5df;color:#94701d;border-radius:8px}.work-week th{font-size:11px}.audit-table th{background:#eaf0f8}.audit-result.success{color:#08784a;background:#e4f7ec}.audit-result.failed{color:#b12b46;background:#ffebf0}.audit-filters{padding-bottom:16px}.audit-pagination button{font-size:12px}.company-information-columns legend{font-weight:700;color:#18395f}.hr-settings-page{max-width:1060px}.hr-settings-page .card-title{padding-bottom:12px;border-bottom:1px solid #e0e8f3}.ocr-consent,.ocr-cloud-notice{background:#fff8e9;border-color:#efdbb4;color:#806126}.ot-stats{gap:15px}.ot-stats .ot-stat:not(.lv-stat){position:relative;background:#fff;color:#193251;border:1px solid #dbe5f1;border-radius:12px;padding:21px;box-shadow:var(--ge-shadow);overflow:hidden}.ot-stats .ot-stat:not(.lv-stat):after{content:'';position:absolute;right:20px;top:22px;width:28px;height:28px;border:6px solid currentColor;opacity:.1;border-radius:8px;transform:rotate(-12deg)}.ot-stats .ot-stat:not(.lv-stat) span{font-size:12px;font-weight:600}.ot-stats .ot-stat.blue strong{color:#075be5}.ot-stats .ot-stat.gold strong{color:#b8820b}.ot-stats .ot-stat.green strong{color:#098452}.ot-stats .ot-stat.navy strong{color:#183b71}.ot-filters label{font-size:11px}.ot-table th{background:#eaf0f8}.ot-table tbody tr:nth-child(odd){background:#f9fbfe}.ot-table th,.ot-table td{border-right:0}.ot-table td{padding:12px}.ot-table .ot-person{gap:9px}.ot-table .ot-person strong{color:#163964}.ot-row-actions{gap:6px}.ot-row-actions button{font-size:11px;border-radius:6px;padding:7px 10px}.ot-approved{background:#e2f7eb;color:#087a46}.ot-pending{background:#fff2d7;color:#886019}.ot-rejected{background:#ffe9ee;color:#b62b48}.ot-cancelled{background:#edf1f7;color:#657895}.ot-nav summary{background:transparent}.otr-hours{background:#e5f8ec;color:#087e48}.ot-duration{background:#eaf2ff;color:#1e57b5;border:1px solid #d8e5fb}.ot-request-card{border-color:#dce5f2}.ot-request-card p{overflow-wrap:anywhere}.ot-subnav,.hr-menu-sub{border-color:#385678}.today,.live-indicator{background:#e7f8ee;color:#118156}
.hr-phone-page{background:linear-gradient(140deg,#edf4ff,#f8faff);min-height:100vh}.hr-phone-page main{margin-left:0}.phone-shell{max-width:720px;padding:24px 18px 110px}.phone-shell>h1,.phone-brand{position:relative;overflow:hidden;background:linear-gradient(110deg,#081c3f,#123363);color:#fff;border-radius:14px;padding:22px 20px;box-shadow:0 4px 12px #112f5518;border-bottom:3px solid #efbd39}.phone-shell>h1{font-size:25px;line-height:1.4}.phone-brand span,.phone-brand small{color:#edf4ff}.phone-brand{font-size:32px;gap:15px}.phone-brand span{font-size:14px}.phone-shell .card{padding:22px;border-radius:14px;box-shadow:0 3px 12px #1b3d6610}.phone-shell .card h2{font-size:20px;margin-bottom:16px}.phone-shell .card-title h2{margin-bottom:0}.phone-shell .card p{line-height:1.7}.phone-shell .notice{font-size:12px}.phone-shell form{min-width:0}.phone-shell .actions button{min-height:42px}.phone-shell #lv-new{background:#0758e7}.push-sender-preview{border-color:#dbe5f1}.push-sender-initial{color:#1456b5;background:#e9f2ff}
#chat-dialog{border:1px solid #ccdbea;border-radius:16px;box-shadow:0 20px 90px #071e4a38;background:#fff}#chat-dialog::backdrop{background:#061b3a88;backdrop-filter:blur(3px)}.chat-top{padding:5px 0 14px;border-bottom:1px solid #e0e8f3}.chat-top h2{color:#102d53}.chat-room{border-radius:9px}.chat-room.selected{background:#eaf2ff;border-color:#b8d0f6;color:#134996}.chat-messages{background:#f2f6fd;border:1px solid #e2eaf6;border-radius:12px}.chat-message{border-radius:12px;box-shadow:0 2px 4px #17345a08}.chat-message.own{background:#e5efff;border-color:#d4e3fc}.chat-launch{background:linear-gradient(#1469f7,#0752df);box-shadow:0 5px 20px #1559c82b;border:1px solid #fff7}.chat-tools button,.chat-emoji{box-shadow:none}.chat-admin-tools{border-radius:10px;border-color:#dbe5f1}.chat-text{line-height:1.65}.chat-mentioned{outline-color:#ecc15f}.chat-attach{border-color:#d5e2f3}
dialog{border:1px solid #d4dfed;border-radius:15px;box-shadow:0 18px 70px #102d5630}dialog::backdrop{background:#10264488}dialog h2,dialog h3{color:#17375b}.directory-filters input,.directory-filters select{border-radius:7px}.employee-detail-grid{border-color:#dde6f2}.profile-heading{border-color:#dde6f2}.profile-photo-preview{border-color:#d5e2f4}
@media(max-width:1000px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-top{grid-template-columns:minmax(190px,.8fr) minmax(0,2fr)}.attendance-layout{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dashboard-side .card{margin-bottom:0}.employee-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){body[data-hr-tab] .content{padding:16px 12px}.rail{padding:17px 15px}.rail nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible}.rail nav>a,.rail nav>.hr-menu-group{min-width:0}.rail nav .hr-menu-group>summary{padding:11px 12px}.rail nav .hr-menu-sub{margin-left:8px;padding-left:6px}.rail nav .hr-menu-sub a,.rail nav .hr-menu-sub button{white-space:normal;line-height:1.5}.rail nav a[data-tab]{padding:11px 12px}.rail .brand{margin-bottom:16px}.dashboard-heading h2{font-size:21px}.overview-top{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dashboard-stats .stat{padding:14px 11px;min-height:108px}.dashboard-stats .stat span{font-size:10px}.dashboard-stats .stat strong{font-size:26px}.dashboard-stats .stat small{font-size:9px}.dashboard-stats .stat-icon{min-width:30px;height:35px;font-size:22px!important;margin-left:5px}.dashboard-side{grid-template-columns:1fr}.card{padding:17px}.attendance-card,.directory-card{padding:0}.card-title{align-items:flex-start;gap:12px}.card-title .actions{flex-wrap:wrap}.ot-stats .ot-stat:not(.lv-stat){padding:15px}.ot-stats .ot-stat:not(.lv-stat):after{right:12px;top:16px;width:20px;height:20px;border-width:4px}.ot-stats .ot-stat:not(.lv-stat) span{font-size:10px}.ot-stats .ot-stat strong{font-size:25px}.phone-shell{padding:16px 12px 105px}.phone-shell .card{padding:18px}.phone-shell>h1{font-size:23px}.phone-shell .card h2{font-size:19px}.phone-shell .card p{font-size:13px}.phone-shell .lv-panel .lv-form-grid{grid-template-columns:1fr}.phone-shell .ot-mobile-grid{grid-template-columns:1fr}.employee-detail-grid{grid-template-columns:1fr}.chat-launch{right:13px;bottom:max(14px,env(safe-area-inset-bottom));font-size:13px;padding:12px 16px}.hr-settings-page{padding:18px}#chat-dialog{border-radius:13px}.phone-shell .card-title button{font-size:12px}}
@media print{.hero,.lv-hero{print-color-adjust:exact}.chat-launch{display:none}.content{max-width:100%;padding:0}.phone-shell{padding:0;max-width:100%}}

/* Cambodia Public Holiday calendar. */
.hh-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:20px 0}.hh-toolbar label{margin:0}.hh-toolbar input[type=number]{width:120px}.hh-toolbar select{min-width:160px}.hh-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:22px 0}.hh-weekday{text-align:center;background:#eaf0f8;padding:9px;color:#365172;font-size:12px;font-weight:700}.hh-day{background:#f8faff;color:#264363;border:1px solid #dce6f3;box-shadow:none;min-height:85px;text-align:left;display:flex;flex-direction:column;gap:6px;padding:10px;min-width:0}.hh-day:hover{background:#edf4ff}.hh-day small{font-size:10px;line-height:1.5;overflow-wrap:anywhere;color:inherit}.hh-day.hh-holiday{background:#fff3d9;color:#94651a;border-color:#efd293}.hh-day.hh-today{outline:2px solid #2771e9;outline-offset:1px}#hh-form{margin-top:25px;border-top:1px solid #dce5f1;padding-top:20px}#hh-rows small{display:block;margin-top:4px}#hh-rows a{color:#205cb5;text-decoration:underline}#hh-rows table{min-width:650px}#hh-message.error{background:#fff0f2;padding:12px;border-radius:8px}@media(max-width:600px){.hh-calendar{gap:3px}.hh-day{min-height:65px;padding:5px 3px;font-size:12px}.hh-day small{font-size:8px}.hh-weekday{font-size:10px;padding:7px 2px}.hh-toolbar{gap:12px}.hh-toolbar .inline-check{flex-basis:100%;font-size:12px}#hh-panel .scroll table{min-width:650px}}


/* Self-hosted Noto Sans + Noto Sans Khmer: no Google Fonts requests. */
@font-face{font-family:'GE UI';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/NotoSans-Regular.woff') format('woff');unicode-range:U+0000-024F,U+1E00-1EFF,U+2000-206F,U+20A0-20CF}
@font-face{font-family:'GE UI';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/NotoSans-Bold.woff') format('woff');unicode-range:U+0000-024F,U+1E00-1EFF,U+2000-206F,U+20A0-20CF}
@font-face{font-family:'GE UI';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/NotoSansKhmer-Regular.woff') format('woff');unicode-range:U+1780-17FF,U+19E0-19FF}
@font-face{font-family:'GE UI';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/NotoSansKhmer-Bold.woff') format('woff');unicode-range:U+1780-17FF,U+19E0-19FF}
:root{--ge-font:'GE UI','Noto Sans Khmer','Noto Sans',system-ui,-apple-system,'Segoe UI',sans-serif}
body,button,input,select,textarea,table,dialog{font-family:var(--ge-font)!important}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;line-height:1.75}h1,h2,h3,h4,legend{font-family:var(--ge-font);line-height:1.6;letter-spacing:0;font-weight:700}p,label,td,th,button,summary{letter-spacing:0}label{line-height:1.8}input,select,textarea,button{line-height:1.65}table td{line-height:1.85}table th{line-height:1.8;letter-spacing:0;text-transform:none}small,.muted{line-height:1.8}.brand,.brand span,.brand small,.studio-brand,.studio-brand strong,.studio-brand small,.hr-company-brand-copy{letter-spacing:.15px;line-height:1.7}.employee-name-km,.employee-name,.employee-role,.chat-text,.chat-message,.ot-person,.phone-shell,.push-sender-preview{font-family:var(--ge-font);line-height:1.85}.chat-message strong,.chat-message small{line-height:1.8}.eyebrow{letter-spacing:1.4px}.phone-brand span{letter-spacing:.25px}.phone-shell p{line-height:1.9}.lv-theme label,.lv-theme table td,.lv-theme table th{line-height:1.85}.lv-theme .lv-hero h1{line-height:1.6;letter-spacing:0}.lv-theme .lv-tabs a{line-height:1.7}.hh-day small{line-height:1.85}.hr-company-system-id,.company-system-id{font-variant-numeric:tabular-nums}.stat strong,.ot-stat strong,.stats article strong,.otr-hours{font-variant-numeric:tabular-nums;letter-spacing:-.4px}
@media(max-width:700px){input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{font-size:16px!important;min-height:44px;line-height:1.7}textarea{min-height:90px}button{line-height:1.7}h1,h2,h3{line-height:1.65}.phone-shell p{font-size:14px}.phone-shell .card h2{line-height:1.75}.lv-theme input,.lv-theme select{font-size:16px}.rail nav .hr-menu-sub a,.rail nav .hr-menu-sub button{line-height:1.9}}


/* Readable bilingual hierarchy and quieter surfaces. */
body{font-size:14px;background:linear-gradient(130deg,#f6f9fd,#edf3fb)}.card,.panel{box-shadow:0 3px 14px #18345c08;border-color:#dee7f2;border-radius:14px}.hero,.page-heading,.studio-heading,.lv-hero{border-radius:14px;box-shadow:0 4px 14px #17365c12}.hero h1,.page-heading h1,.page-heading h2,.studio-heading h1{font-size:28px;letter-spacing:0;line-height:1.6}.card h2,.card h3{font-size:18px;font-weight:700;line-height:1.7}.hero .eyebrow{font-size:10px}.card-title{padding-bottom:4px}.muted{color:#657b97}.card p.muted{font-size:12px}.rail nav a[data-tab],.rail nav button,.rail nav .hr-menu-group>summary{font-size:13px;line-height:1.75}.rail nav .hr-menu-sub a,.rail nav .hr-menu-sub button{font-size:12px;padding-top:10px;padding-bottom:10px}.sidebar nav span,.studio-sidebar>a:not(.studio-brand){font-size:13px}.rail .hr-company-brand-copy{font-size:12px}.hr-company-brand-copy small{font-size:8px;letter-spacing:.2px}.employee-summary strong{font-size:25px}.directory-filters label,.lv-theme label,.ot-filters label{font-size:12px}.employee-section legend{font-size:14px}.employee-name-km{font-size:12px}.ot-person small,.lv-theme .ot-person small{font-size:11px}.ot-table,.lv-theme .lv-table{font-size:12px}.ot-table th,.lv-theme table th{font-size:12px}.ot-table td small,.lv-theme .lv-table td small{font-size:11px}.stat span,.dashboard-stats .stat span,.ot-stats .ot-stat:not(.lv-stat) span,.lv-stat>div>span{font-size:12px}.dashboard-stats .stat small{font-size:11px}.lv-preview-grid h2{font-size:16px}.lv-theme .ot-row-actions button{font-size:11px}.lv-theme .ot-badge,.lv-type-badge,.lv-paid,.lv-unpaid{font-size:11px}.lv-theme .lv-filters{gap:14px}.lv-theme .card-title .muted{font-size:12px}.lv-theme .lv-stat{padding-top:20px;padding-bottom:20px}.phone-shell .card{box-shadow:0 4px 18px #143d6a0a}.phone-shell>h1{font-size:24px}.chat-text{font-size:14px}.chat-top h2{font-size:20px}.chat-room small{font-size:11px}.chat-room{padding:12px}.hr-field-error,.ot-field-error{line-height:1.85}.employee-savebar button{line-height:1.8}
@media(max-width:700px){.hero h1,.page-heading h1,.page-heading h2,.studio-heading h1{font-size:23px}.card h2,.card h3{font-size:17px}.lv-theme .lv-hero h1{font-size:23px}.dashboard-stats .stat span,.lv-stat>div>span{font-size:11px}.dashboard-stats .stat small{font-size:10px}.lv-theme .lv-stat{padding:15px 11px}.lv-preview-grid h2{font-size:15px}.lv-theme .lv-filters{gap:12px}.rail nav a[data-tab],.rail nav .hr-menu-group>summary{font-size:12px}.lv-theme .lv-table td{font-size:12px}.phone-shell .card p{font-size:14px}}

/* Khmer lunar calendar, Uposatha and cultural observances (display only). */
.hh-kh-controls{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:20px 0 15px}.hh-kh-toggles{display:flex;gap:17px;flex-wrap:wrap;margin-left:auto}.hh-kh-toggles label{margin:0;font-size:12px;line-height:1.8}.hh-lunar-banner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:18px 20px;background:var(--gt-surface2,#f1f6ff);border:1px solid var(--gt-line,#dbe5f1);border-radius:12px;margin:15px 0}.hh-lunar-banner strong{font-size:23px;color:var(--gt-text,#183a63)}.hh-lunar-banner span{font-size:13px;line-height:1.9;color:var(--gt-muted,#627b9c)}.hh-legend{display:flex;gap:18px;flex-wrap:wrap;margin:15px 0;font-size:12px}.hh-legend span{display:flex;align-items:center;gap:7px}.hh-legend span:before{content:'';width:10px;height:10px;border-radius:50%;background:#d8ae44}.hh-legend-holy:before{background:#9563bb!important}.hh-legend-event:before{background:#387dc0!important}.hh-calendar{margin:12px 0 20px;gap:8px}.hh-day{min-height:145px;padding:12px 9px;gap:5px;justify-content:flex-start}.hh-day.hh-sil:not(.hh-holiday){background:#f7f0fc;border-color:#d8c1ed}.hh-solar-date{font-size:21px;line-height:1.35;font-weight:700;color:var(--gt-text,#244469)}.hh-lunar-date{font-size:11px!important;line-height:1.9!important;color:var(--gt-muted,#6f82a0)!important}.hh-sil-badge{display:inline-flex;width:fit-content;gap:3px;background:#f1e4fb;color:#753d9a;border-radius:5px;padding:2px 6px;font-size:11px;font-weight:700;line-height:1.8}.hh-day .hh-public-name{font-size:11px;font-weight:700;color:#9f5520}.hh-day .hh-cultural-name{font-size:11px;font-weight:600;line-height:1.85;color:var(--gt-primary,#296aaf)}.hh-day-detail{padding:20px;background:var(--gt-surface2,#f5f8ff);border:1px solid var(--gt-line,#dce5f1);border-radius:12px;margin:20px 0}.hh-day-detail h3{margin:0 0 12px}.hh-day-detail ul{padding-left:22px;line-height:2}.hh-day-detail .muted{font-size:12px}.hh-cultural-list{margin:25px 0}.hh-cultural-list h3{font-size:17px}.hh-observance-row{display:grid;grid-template-columns:150px 180px 1fr;gap:16px;width:100%;text-align:left;padding:13px 15px;border:1px solid var(--gt-line,#dce5f1);border-radius:8px;background:var(--gt-surface,#fff);color:var(--gt-text,#27466c);font-size:12px;line-height:1.9;box-shadow:none;margin-bottom:7px}.hh-observance-row span{font-weight:400}.hh-weekday{font-size:12px;line-height:1.8}#hh-panel .hh-cultural-list{overflow-wrap:anywhere}
@media(max-width:900px){.hh-observance-row{grid-template-columns:115px 140px 1fr;gap:10px}.hh-kh-toggles{margin-left:0;width:100%}.hh-day{min-height:140px;padding:8px 5px}.hh-day .hh-cultural-name,.hh-day .hh-public-name{font-size:10px}}
@media(max-width:600px){.hh-calendar{gap:3px}.hh-weekday{font-size:9px;padding:7px 1px;overflow-wrap:anywhere}.hh-day{min-height:115px;padding:6px 3px;gap:4px}.hh-solar-date{font-size:18px}.hh-lunar-date{font-size:8px!important;line-height:1.7!important}.hh-sil-badge{font-size:8px;padding:1px 3px}.hh-day .hh-cultural-name,.hh-day .hh-public-name{font-size:8px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hh-lunar-banner{padding:14px}.hh-lunar-banner strong{font-size:20px}.hh-lunar-banner span{font-size:12px}.hh-legend{font-size:10px;gap:10px}.hh-observance-row{grid-template-columns:1fr 1fr;gap:5px 10px;padding:12px;font-size:12px}.hh-observance-row>span:last-child{grid-column:1/-1}.hh-kh-controls>button{font-size:11px;padding:8px 10px}.hh-kh-toggles{gap:12px}.hh-kh-toggles label{font-size:11px}.hh-day-detail{padding:16px}}

/* Separate Gregorian English dates from Khmer lunar dates. */
.hh-weekday strong,.hh-weekday small{display:block}.hh-weekday small{font-weight:400;margin-top:3px}
.hh-solar-date{font-size:21px;font-variant-numeric:tabular-nums;line-height:1.3}.hh-lunar-date{display:block;font-size:12px;line-height:1.8;margin-top:3px}
.hh-sil-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 7px}.hh-buddha{width:30px;height:36px;object-fit:contain;flex:none}.hh-day.hh-sil{min-height:164px}.hh-day-detail .hh-buddha{width:42px;height:49px}.hh-observance-row>.hh-sil-badge{justify-self:start}
@media(max-width:700px){.hh-solar-date{font-size:17px}.hh-lunar-date{font-size:9px}.hh-sil-badge{gap:2px;padding:2px;font-size:9px}.hh-buddha{width:22px;height:27px}.hh-day.hh-sil{min-height:140px}.hh-weekday small{font-size:9px}}

/* Compact calendar with readable bilingual type; tap a date for full details. */
#hh-panel .hh-calendar{grid-template-columns:repeat(7,minmax(105px,1fr));gap:7px;overflow-x:auto;align-items:stretch;padding:3px 2px 8px}
#hh-panel .hh-day,#hh-panel .hh-day.hh-sil{height:156px;min-height:156px;max-height:156px;padding:9px 10px;gap:3px;overflow:hidden;border-radius:8px}
#hh-panel .hh-solar-date{font-size:25px;line-height:1.2}
#hh-panel .hh-day .hh-lunar-date{font-size:14px!important;line-height:1.65!important;color:var(--gt-text,#244469)!important;font-weight:500;margin:2px 0}
#hh-panel .hh-day .hh-public-name,#hh-panel .hh-day .hh-cultural-name{font-size:14px;line-height:1.65;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;flex-shrink:0}
#hh-panel .hh-day .hh-cultural-name~.hh-cultural-name{display:none}
#hh-panel .hh-weekday{padding:7px 3px;font-size:14px}#hh-panel .hh-weekday small{font-size:13px;margin-top:0}
#hh-panel .hh-sil-badge{font-size:13px;line-height:1.5;padding:2px 6px;gap:4px;flex-shrink:0}#hh-panel .hh-buddha{width:23px;height:28px}
#hh-panel .hh-legend,#hh-panel .hh-kh-toggles label{font-size:14px}#hh-panel .hh-observance-row{font-size:15px;grid-template-columns:minmax(190px,1fr) minmax(150px,1fr) 2fr}
@media(max-width:700px){#hh-panel .hh-calendar{grid-template-columns:repeat(7,minmax(112px,1fr));gap:5px}#hh-panel .hh-day,#hh-panel .hh-day.hh-sil{height:150px;min-height:150px;max-height:150px;padding:8px 6px}#hh-panel .hh-observance-row{grid-template-columns:1fr;font-size:15px}#hh-panel .hh-observance-row>*{grid-column:1}#hh-panel .hh-solar-date{font-size:23px}}

/* Compact attendance: two session groups, readable labels, wrapped status. */
.attendance-register{width:100%;min-width:640px}.attendance-register th{font-size:13px;letter-spacing:0;white-space:normal}.attendance-register td{font-size:14px}.attendance-register td:nth-child(2){min-width:160px}.attendance-register td:nth-child(3),.attendance-register td:nth-child(4){min-width:170px;max-width:300px}.attendance-register td:last-child{max-width:220px;white-space:pre-wrap;overflow-wrap:anywhere}.attendance-register .punch{display:flex;flex-wrap:wrap;white-space:normal;gap:5px 8px;font-size:13px;margin-bottom:8px}.attendance-register .punch-label{font-size:12px}.attendance-register .punch-status{font-size:11px}.attendance-register .punch-branch{flex-basis:100%;font-size:11px}

.attendance-register{min-width:820px}.attendance-register td:nth-child(n+3):nth-child(-n+6){min-width:110px;max-width:175px}.attendance-register .punch{gap:4px 6px}.attendance-register .punch-label{display:none}.attendance-register .punch-absent{display:block;color:#ae3545;margin-top:7px}

.dashboard-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;overflow:hidden;border-radius:50%;border:1px solid var(--gt-line,#dce4ef)}.dashboard-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;background:var(--gt-surface,#fff)}

.employee-app-status.app-connected{background:#dff7e9!important;color:#09663c!important;border:1px solid #bfe4cf}.employee-app-status.app-staff{background:#e8f1ff!important;color:#154d8b!important;border:1px solid #cbdcf3}.employee-app-status.app-expired,.employee-app-status.app-blocked{background:#fff0d8!important;color:#79510d!important;border:1px solid #ecd4a6}.employee-app-status.app-unlinked,.employee-app-status.app-unknown{background:var(--gt-surface2,#edf2f8)!important;color:var(--gt-muted,#576b84)!important;border:1px solid var(--gt-line,#d6e0ee)}

#employee-list td:nth-child(13){min-width:110px}.employee-app-status{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}

/* Compact Staff announcements, with only the requested Edit/Delete actions. */
.staff-notice-table{width:100%;min-width:1080px;table-layout:fixed;font-size:13px}.staff-notice-table th,.staff-notice-table td{border:1px solid var(--gt-line,#dce3ed);padding:10px;vertical-align:middle}.staff-notice-table th:nth-child(1){width:19%}.staff-notice-table th:nth-child(2){width:21%}.staff-notice-table th:nth-child(3){width:24%}.staff-notice-table th:nth-child(4){width:5%}.staff-notice-table th:nth-child(5){width:8%}.staff-notice-table th:nth-child(6){width:12%}.staff-notice-table th:nth-child(7){width:7%}.staff-notice-table th:nth-child(8){width:82px}.notice-ellipsis{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.9}.staff-notice-table td:nth-child(n+4){text-align:center}.staff-notice-actions{display:flex;justify-content:center;gap:5px;flex-wrap:nowrap}.staff-notice-actions button{width:32px;height:32px;min-width:32px;padding:6px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:4px}.staff-notice-actions .notice-edit,html[data-ge-theme] .staff-notice-actions .notice-edit{background:#167c39!important;color:#fff!important}.staff-notice-actions .notice-delete,html[data-ge-theme] .staff-notice-actions .notice-delete{background:#c4213a!important;color:#fff!important}.staff-notice-actions button svg{color:inherit;opacity:1}.staff-notice-actions button:focus-visible{outline:3px solid var(--gt-text,#15263c);outline-offset:2px}.notice-status{display:inline-block;border-radius:4px;padding:3px 6px;white-space:nowrap;font-size:11px;font-weight:700}.notice-status.sent{background:#167c39!important;color:#fff!important}.notice-status.empty{background:#fff0cf!important;color:#674900!important}

/* Work chat settings and actions on demand. */
#chat-dialog .chat-message-actions{display:flex;gap:8px;justify-content:flex-end;clear:both;margin:6px 0}#chat-dialog .chat-message-actions[hidden]{display:none!important}#chat-dialog .chat-message-actions button{float:none;margin:0;font-size:12px;padding:6px 10px}#chat-dialog .chat-message:focus-visible{outline:2px solid #b08a25}#chat-tools-panel,#chat-edit-panel{flex:0 0 auto;max-height:42vh;overflow:auto;min-height:0;padding:12px;border:1px solid var(--staff-line,#ccd9e9);border-radius:12px;background:var(--staff-surface,#f5f8fd);color:var(--staff-ink,#1c3556)}#chat-tools-panel h3{margin:0}#chat-tools-panel p{font-size:12px}#chat-tools-panel form{display:grid;gap:8px;margin:10px 0}#chat-tools-panel select{width:100%;min-height:100px}#chat-tools-panel input,#chat-edit-panel textarea{width:100%;box-sizing:border-box}#chat-tools-panel label{display:block}#chat-tools-panel small{display:block;font-size:11px}#chat-dialog .chat-edited{display:block;opacity:.75;font-size:10px}#chat-admin-settings[open]{flex:0 1 auto;max-height:35vh;overflow:auto}#chat-edit-panel .actions{display:flex;gap:8px}

/* Quick emoji sheet and message bubbles, shared desktop and Staff App. */
#chat-dialog #chat-compose{position:relative;border-top:1px solid var(--staff-line,var(--gt-line,#d5dfed));padding-top:12px}
#chat-dialog #chat-compose textarea{border-radius:18px;padding:12px 16px;box-sizing:border-box;resize:none;box-shadow:none}
#chat-dialog .chat-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 0}
#chat-dialog .chat-tools :is(button,.chat-attach){border-radius:13px;min-height:42px;display:inline-flex;align-items:center;justify-content:center}
#chat-dialog #chat-send{margin-left:auto;min-width:70px;background:#efc858!important;color:#17263c!important;border-color:#efc858!important;font-weight:700}
#chat-dialog .chat-messages{padding:16px!important;border-radius:18px;background:var(--staff-tint,var(--gt-surface2,#f1f5fb))!important;display:flex;flex-direction:column;gap:12px;overflow-x:hidden}
#chat-dialog .chat-message{box-sizing:border-box;flex:0 0 auto;align-self:flex-start;width:fit-content;max-width:88%;min-width:160px;margin:0!important;padding:12px 16px!important;border:1px solid var(--staff-line,var(--gt-line,#d5dfed))!important;border-radius:20px 20px 20px 5px!important;background:var(--staff-surface,var(--gt-surface,#fff))!important;color:var(--staff-ink,var(--gt-text,#142b4c))!important;box-shadow:0 3px 10px #071e4a08;overflow-wrap:anywhere}
#chat-dialog .chat-message.own{align-self:flex-end;border-radius:20px 20px 5px 20px!important;border-color:#b79438!important}
#chat-dialog .chat-message header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
#chat-dialog .chat-message header strong{font-size:13px}#chat-dialog .chat-message header :is(span,time){font-size:10px;color:var(--staff-muted,var(--gt-muted,#4d617c))!important}#chat-dialog .chat-avatar{flex-shrink:0;width:34px;height:34px}
#chat-dialog .chat-text{margin:5px 0;font-size:15px;line-height:1.75}#chat-dialog .chat-message audio{display:block;max-width:100%;width:300px;height:44px}#chat-dialog .chat-message>img{border-radius:12px}
#chat-dialog #chat-emoji{position:absolute;z-index:12;left:0;bottom:calc(100% + 8px);width:min(390px,100%);box-sizing:border-box;padding:16px!important;border-radius:24px!important;border:1px solid var(--staff-line,var(--gt-line,#d5dfed))!important;background:var(--staff-surface,var(--gt-surface,#fff))!important;color:var(--staff-ink,var(--gt-text,#142b4c))!important;box-shadow:0 12px 36px #071e4a30;max-height:min(390px,48dvh);overflow:auto;display:block}
#chat-dialog #chat-emoji[hidden]{display:none!important}#chat-dialog .chat-emoji-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}#chat-dialog .chat-emoji-heading button{width:32px;min-height:32px;padding:0;font-size:22px;border:0;background:transparent!important;color:inherit!important}
#chat-dialog .chat-emoji-favorites{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding-bottom:12px;border-bottom:1px solid var(--staff-line,var(--gt-line,#d5dfed))}
#chat-dialog .chat-emoji-tabs{display:flex;gap:6px;margin:12px 0;flex-wrap:wrap}#chat-dialog .chat-emoji-tabs button{flex:1;border-radius:20px;min-height:34px;padding:5px 9px;font-size:12px}#chat-dialog .chat-emoji-tabs button.selected{background:#efc858!important;color:#17263c!important;border-color:#efc858!important}
#chat-dialog .chat-emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
#chat-dialog #chat-emoji .chat-emoji-choice{font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif!important;font-size:28px!important;line-height:1;min-height:44px;width:100%;padding:5px!important;border:1px solid transparent!important;border-radius:14px;background:transparent!important;cursor:pointer}#chat-dialog #chat-emoji .chat-emoji-choice:hover,#chat-dialog #chat-emoji .chat-emoji-choice:focus-visible{background:var(--staff-tint,var(--gt-surface2,#eef3fb))!important;border-color:#b79438!important;outline:none}
#chat-dialog .chat-conversation{position:relative}#chat-dialog #chat-compose{overflow:visible!important}#chat-dialog .chat-conversation{overflow:visible!important}
@media(max-width:480px){#chat-dialog .chat-message{max-width:95%;padding:10px 12px!important}#chat-dialog .chat-messages{padding:10px!important}#chat-dialog .chat-tools{gap:5px}#chat-dialog .chat-tools :is(button,.chat-attach){font-size:12px;padding:7px 9px}#chat-dialog #chat-emoji{padding:12px!important}#chat-dialog .chat-emoji-choice{min-height:40px}}

.ge-staff-app #ge-staff-chat #chat-dialog #chat-compose,.ge-staff-app #ge-staff-chat #chat-dialog .chat-conversation{overflow:visible!important}
