.mobile-work-hub{margin:20px 0 0;padding:0;color:#111820}
.mobile-work-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.mobile-work-heading small{display:block;margin-bottom:4px;color:#9b7200;font-size:10px;font-weight:900;letter-spacing:.08em}
.mobile-work-heading h2{margin:0;font-size:21px;line-height:1.15;font-weight:900}
.mobile-work-heading>button{width:38px;height:38px;border:1px solid #e1e5ea;border-radius:12px;background:#fff;color:#111820;font-size:21px;box-shadow:0 4px 14px rgba(17,24,32,.06)}
.mobile-work-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.mobile-work-stat{min-width:0;padding:12px 5px 10px;border:1px solid #e4e7eb;border-radius:15px;background:#fff;text-align:center;box-shadow:0 4px 14px rgba(17,24,32,.04)}
.mobile-work-stat i{display:flex;width:29px;height:29px;margin:0 auto 7px;align-items:center;justify-content:center;border-radius:10px;background:#fff2c6;color:#a87500;font-style:normal;font-weight:900}
.mobile-work-stat:nth-child(2) i{background:#ffe8e7;color:#c52b24}.mobile-work-stat:nth-child(3) i{background:#e8f1ff;color:#2869ce}.mobile-work-stat:nth-child(4) i{background:#e6f7ee;color:#187a48}
.mobile-work-stat b{display:block;font-size:20px;line-height:1;font-weight:900}.mobile-work-stat small{display:block;margin-top:5px;color:#76808d;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-work-tabs{display:flex;gap:7px;overflow:auto;padding:2px 0 10px;scrollbar-width:none}.mobile-work-tabs::-webkit-scrollbar{display:none}
.mobile-work-tabs button{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;min-height:37px;padding:0 12px;border:1px solid #e0e4e9;border-radius:999px;background:#fff;color:#5f6875;font-size:11px;font-weight:800}
.mobile-work-tabs button b{display:inline-flex;min-width:20px;height:20px;padding:0 5px;align-items:center;justify-content:center;border-radius:999px;background:#eef0f3;color:#3c4653;font-size:10px}
.mobile-work-tabs button.active{border-color:#f2b600;background:#ffca16;color:#111820}.mobile-work-tabs button.active b{background:#111820;color:#fff}.mobile-work-tabs button.hidden{display:none}
.mobile-work-list{display:grid;gap:10px}
.mobile-work-card{position:relative;width:100%;padding:14px;border:1px solid #e1e5ea;border-radius:17px;background:#fff;text-align:left;box-shadow:0 5px 16px rgba(17,24,32,.05);overflow:hidden}
.mobile-work-card.overdue{border-left:5px solid #d92d20}.mobile-work-card.today:not(.overdue){border-left:5px solid #f4ba00}
.mobile-work-card-top,.mobile-work-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mobile-work-source{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border-radius:7px;background:#fff1ba;color:#7d5a00;font-size:9px;font-weight:900;letter-spacing:.04em}
.mobile-work-source.assigned_task{background:#e8f1ff;color:#245eb9}.mobile-work-card.overdue .mobile-work-source{background:#ffe9e7;color:#b42318}
.mobile-work-status{color:#6d7683;font-size:10px;font-weight:800}.mobile-work-card h3{margin:10px 0 6px;font-size:14px;line-height:1.35;font-weight:900}
.mobile-work-meta{display:flex;gap:6px;flex-wrap:wrap;color:#737d89;font-size:10px;line-height:1.35}.mobile-work-meta span+span:before{content:'·';margin-right:6px}
.mobile-work-card-foot{margin-top:12px;padding-top:10px;border-top:1px solid #edf0f3}.mobile-work-deadline{display:flex;min-width:0;flex-direction:column;gap:2px}.mobile-work-deadline small{color:#7a8490;font-size:9px}.mobile-work-deadline b{font-size:11px}.mobile-work-deadline b.danger{color:#c52820}
.mobile-work-action{flex:0 0 auto;min-width:82px;height:36px;border:0;border-radius:11px;background:#ffca16;color:#111820;font-size:10px;font-weight:900}.mobile-work-card.approval .mobile-work-action{background:#111820;color:#fff}
.mobile-work-empty{padding:24px 16px;border:1px dashed #d9dee5;border-radius:16px;background:#fff;text-align:center;color:#77818d;font-size:12px}
@media(max-width:370px){.mobile-work-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-work-stat{padding:10px 5px}.mobile-work-tabs button{padding:0 10px}.mobile-work-card{padding:12px}}

/* R18.1.0 — khóa đúng hai bố cục mobile đã duyệt. File này được nạp cuối. */
.director-dashboard{display:none}
.employee-hero-shift{display:none}
.employee-attendance-status,.employee-attendance-actions{min-width:0}
.home-header-actions{display:flex;align-items:center;gap:10px}.director-header-avatar{display:none;width:45px;height:45px;flex:0 0 45px;border:2px solid #fff;background-color:#eef0f2;background-position:center;background-size:cover;font-size:20px}

/* Nhân viên */
.mobile-role-employee #screenHome{background:#f7f8fa}
.mobile-role-employee .home-hero{min-height:0;padding:calc(env(safe-area-inset-top) + 8px) 14px 16px;border-radius:0;background:#fff;color:#111820}
.mobile-role-employee .home-toprow{min-height:62px;border-bottom:1px solid #e9ebee}
.mobile-role-employee .home-toprow .mobile-brand{width:170px;height:58px}.mobile-role-employee .home-toprow .design-lock-logo{width:166px;height:58px}
.mobile-role-employee .notification-btn{color:#111820}.mobile-role-employee .notification-btn b{border-color:#fff;background:#ef2b2d}
.mobile-role-employee .profile-strip{position:relative;display:block;min-height:148px;margin:14px 0 0;padding:22px 22px;border-radius:20px;background:linear-gradient(135deg,#ffd337 0,#ffb900 72%,#ffcf25 100%);color:#111820;box-shadow:0 10px 24px rgba(199,142,0,.16);overflow:hidden}
.mobile-role-employee .profile-strip:after{content:"V/C";position:absolute;right:-6px;top:-22px;color:rgba(255,255,255,.25);font-size:105px;font-weight:1000;font-style:italic;transform:rotate(-8deg)}
.mobile-role-employee .profile-strip>.avatar{display:none}.mobile-role-employee .profile-strip>div{position:relative;z-index:1}
.mobile-role-employee .profile-strip .hello{color:#111820;font-size:20px}.mobile-role-employee .profile-strip .employee-name{margin-top:1px;font-size:29px}.mobile-role-employee .profile-strip .employee-role{margin-top:8px;color:#242a31;font-size:13px}
.mobile-role-employee .employee-hero-shift{display:inline-flex;align-items:center;gap:7px;margin-top:11px;padding:7px 11px;border-radius:9px;background:rgba(107,75,0,.65);color:#fff;font-size:12px}.mobile-role-employee .employee-hero-shift .shift-time{margin:0;font-size:12px;font-weight:800}
.mobile-role-employee .home-body{margin:0;padding:0 14px 24px}
.mobile-role-employee #directorDashboard,.mobile-role-employee #roleWorkspaceCard,.mobile-role-employee .mobile-quick-grid,.mobile-role-employee .home-body>.section-title,.mobile-role-employee .home-body>.summary-card,.mobile-role-employee #teamQuickCard,.mobile-role-employee #documentQuickCard,.mobile-role-employee .home-notify-lock,.mobile-role-employee .gps-note,.mobile-role-employee #notificationPermissionCard,.mobile-role-employee .enterprise-tools{display:none!important}
.mobile-role-employee .shift-card{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:16px;margin-top:2px;padding:20px;border:1px solid #e1e5e9;border-radius:20px;background:#fff;box-shadow:0 7px 22px rgba(17,24,32,.07)}
.mobile-role-employee .employee-attendance-status{display:flex;flex-direction:column;justify-content:center;padding-right:15px;border-right:1px solid #dfe3e7}.mobile-role-employee .employee-attendance-status small{font-size:13px}.mobile-role-employee .employee-attendance-status strong{margin:4px 0 6px;font-size:35px;line-height:1;font-weight:950;letter-spacing:.02em}.mobile-role-employee .employee-attendance-status span{color:#12a451;font-size:10px;font-weight:800;line-height:1.3}
.mobile-role-employee .employee-attendance-actions{display:grid;gap:9px}.mobile-role-employee .employee-attendance-actions button{height:47px;margin:0;border-radius:10px;font-size:11px;font-weight:900}.mobile-role-employee #homeCheckBtn{background:#ffbd00;color:#111820;box-shadow:none}.mobile-role-employee #employeeGpsOpen{border:1px solid #cfd5da;background:#fff;color:#111820}
.mobile-role-employee .mobile-work-hub{margin:16px 0 0}.mobile-role-employee .mobile-work-heading{margin:0 0 12px}.mobile-role-employee .mobile-work-heading small{display:none}.mobile-role-employee .mobile-work-heading h2{font-size:20px}.mobile-role-employee .mobile-work-heading>button{width:38px;height:38px;border-radius:12px}
.mobile-role-employee .mobile-work-stats{gap:7px;margin-bottom:14px}.mobile-role-employee .mobile-work-stat{min-height:103px;padding:12px 3px 9px;border-radius:17px}.mobile-role-employee .mobile-work-stat i{width:36px;height:36px;margin-bottom:8px;border-radius:12px;font-size:17px}.mobile-role-employee .mobile-work-stat small{margin-top:0;color:#303944;font-size:11px}.mobile-role-employee .mobile-work-stat b{margin-top:7px;font-size:29px}.mobile-role-employee .mobile-work-stat:nth-child(1) b{color:#e8a800}.mobile-role-employee .mobile-work-stat:nth-child(2) b{color:#eb3032}.mobile-role-employee .mobile-work-stat:nth-child(3) b{color:#0aa14f}.mobile-role-employee .mobile-work-stat:nth-child(4) b{color:#2469dd}
.mobile-role-employee .mobile-work-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0;margin-bottom:0;border:1px solid #d9dee3;border-radius:12px 12px 0 0;background:#fff;overflow:hidden}.mobile-role-employee .mobile-work-tabs button{justify-content:center;min-height:42px;padding:0 4px;border:0;border-right:1px solid #e4e7ea;border-radius:0;background:#fff;color:#313943;font-size:11px}.mobile-role-employee .mobile-work-tabs button:nth-child(3){border-right:0}.mobile-role-employee .mobile-work-tabs button.active{background:#ffbe00;color:#111820}.mobile-role-employee .mobile-work-tabs button b{background:transparent;color:inherit}.mobile-role-employee #mobileWorkApprovalTab{display:none!important}
.mobile-role-employee .mobile-work-list{display:block;border:1px solid #dfe3e7;border-top:0;border-radius:0 0 16px 16px;background:#fff;overflow:hidden}
.mobile-role-employee .mobile-work-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:10px;align-items:center;padding:13px 10px;border:0;border-bottom:1px solid #e8ebee;border-radius:0;box-shadow:none}.mobile-role-employee .mobile-work-card:last-child{border-bottom:0}.mobile-role-employee .mobile-work-card:before{content:"▣";grid-row:1/5;display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:#fff0c8;color:#aa7600;font-size:18px}.mobile-role-employee .mobile-work-card.assigned-source:before{content:"⚙";background:#e6efff;color:#1f64cb}.mobile-role-employee .mobile-work-card.overdue:before{content:"!";background:#ffe7e7;color:#d32626}.mobile-role-employee .mobile-work-card.overdue,.mobile-role-employee .mobile-work-card.today{border-left:0}
.mobile-role-employee .mobile-work-card-top{grid-column:2/3;justify-content:flex-start}.mobile-role-employee .mobile-work-card h3{grid-column:2/3;margin:4px 0 1px;font-size:12px}.mobile-role-employee .mobile-work-meta{grid-column:2/3;font-size:9px}.mobile-role-employee .mobile-work-meta span:not(:first-child){display:none}.mobile-role-employee .mobile-work-card-foot{display:contents}.mobile-role-employee .mobile-work-deadline{grid-column:2/3;margin-top:4px}.mobile-role-employee .mobile-work-deadline small{display:none}.mobile-role-employee .mobile-work-deadline b{font-size:9px;color:#717b87}.mobile-role-employee .mobile-work-deadline b.danger{color:#d32626}.mobile-role-employee .mobile-work-action{grid-column:3/4;grid-row:1/5;min-width:70px;height:34px;border:1px solid #efa900;background:#fff;color:#cf8500;border-radius:9px}.mobile-role-employee .mobile-work-status{display:none}.mobile-role-employee .mobile-work-empty{border:0;border-radius:0;background:#fff}
.mobile-role-employee .bottom-nav{height:calc(72px + env(safe-area-inset-bottom))}.mobile-role-employee .bottom-nav button[data-tab="attendance"]{position:relative;transform:translateY(-14px);color:#d78d00}.mobile-role-employee .bottom-nav button[data-tab="attendance"] span{display:grid;width:58px;height:58px;place-items:center;border:5px solid #fff;border-radius:50%;background:#ffb900;color:#fff;font-size:28px;box-shadow:0 5px 15px rgba(221,147,0,.3)}

/* Giám đốc BQL */
.mobile-role-project_director #screenHome{background:#f7f8fa}.mobile-role-project_director .home-hero{min-height:0;padding:calc(env(safe-area-inset-top) + 7px) 14px 8px;border-radius:0;background:#fff;color:#111820;border-bottom:1px solid #e3e6e9}.mobile-role-project_director .home-toprow{min-height:63px}.mobile-role-project_director .home-toprow .mobile-brand{width:176px;height:61px}.mobile-role-project_director .home-toprow .design-lock-logo{width:172px;height:61px}.mobile-role-project_director .notification-btn{color:#111820}.mobile-role-project_director .notification-btn b{border-color:#fff;background:#ef2b2d}.mobile-role-project_director .director-header-avatar{display:grid;place-items:center}.mobile-role-project_director .profile-strip{display:none}
.mobile-role-project_director .home-body{margin:0;padding:14px}.mobile-role-project_director #directorDashboard{display:grid;gap:12px}.mobile-role-project_director #roleWorkspaceCard,.mobile-role-project_director .mobile-quick-grid,.mobile-role-project_director .shift-card,.mobile-role-project_director .home-body>.section-title,.mobile-role-project_director .home-body>.summary-card,.mobile-role-project_director #mobileWorkHub,.mobile-role-project_director #teamQuickCard,.mobile-role-project_director #documentQuickCard,.mobile-role-project_director .home-notify-lock,.mobile-role-project_director .gps-note,.mobile-role-project_director #notificationPermissionCard,.mobile-role-project_director .enterprise-tools{display:none!important}
.director-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.director-title-row h1{margin:0;font-size:27px;line-height:1.1}.director-title-row p{margin:5px 0 0;color:#525c68;font-size:12px}.director-title-row select{width:105px;height:48px;padding:0 11px;border:1px solid #d7dce1;border-radius:12px;background:#fff;font-weight:850}
.director-situation{padding:14px;border:1px solid #efb500;border-radius:19px;background:linear-gradient(135deg,#ffd23f,#fff2b6);box-shadow:0 7px 20px rgba(199,142,0,.12)}.director-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}.director-section-head h2,.director-panel h2{margin:0;font-size:17px}.director-section-head span{font-size:11px;font-weight:800}.director-situation-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.director-situation-stat{min-width:0;padding:12px 6px;border:1px solid rgba(255,255,255,.65);border-radius:14px;background:rgba(255,255,255,.7)}.director-situation-stat small{display:block;font-size:8px;white-space:nowrap}.director-situation-stat b{display:block;margin-top:8px;font-size:25px;line-height:1}.director-situation-stat:nth-child(2) b{color:#079348}.director-situation-stat:nth-child(3) b{color:#e22b27}.director-situation-stat:nth-child(4) b{color:#2468db}
.director-panel{padding:14px;border:1px solid #e1e5e9;border-radius:18px;background:#fff;box-shadow:0 6px 19px rgba(17,24,32,.05)}.director-action-list{margin-top:10px;border:1px solid #e4e7ea;border-radius:13px;overflow:hidden}.director-action-row{display:grid;width:100%;grid-template-columns:84px minmax(0,1fr) auto 18px;align-items:center;gap:8px;min-height:54px;padding:8px 10px;border:0;border-bottom:1px solid #e8ebee;background:#fff;color:#111820;text-align:left}.director-action-row:last-child{border-bottom:0}.director-action-source{display:grid;min-height:38px;place-items:center;padding:0 7px;border-radius:9px;background:#f02c2f;color:#fff;font-size:9px;font-weight:900;text-align:center}.director-action-row:nth-child(2) .director-action-source{background:#f28b0b}.director-action-row:nth-child(3) .director-action-source{background:#256de1}.director-action-copy{font-size:11px;line-height:1.35}.director-action-state{padding:6px 8px;border-radius:999px;background:#ffe9e7;color:#c62620;font-size:8px;white-space:nowrap}.director-action-row:nth-child(2) .director-action-state{background:#fff0dc;color:#c36f00}.director-action-row:nth-child(3) .director-action-state{background:#e8f0ff;color:#2264ca}.director-action-row>i{font-style:normal;font-size:22px}
.director-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.director-quick-actions button{min-height:91px;padding:10px 4px;border:1px solid #e2e5e8;border-radius:17px;background:#fff;color:#111820;box-shadow:0 5px 15px rgba(17,24,32,.04)}.director-quick-actions i{display:block;margin-bottom:7px;color:#eaa500;font-size:28px;font-style:normal}.director-quick-actions button:nth-child(2) i{color:#08a04f}.director-quick-actions button:nth-child(3) i{color:#176ce2}.director-quick-actions button:nth-child(4) i{color:#7345dc}.director-quick-actions b{font-size:9px;line-height:1.25}
.director-department-progress{margin-top:9px;border:1px solid #e4e7ea;border-radius:13px;overflow:hidden}.director-progress-row{display:grid;width:100%;grid-template-columns:102px minmax(0,1fr) 36px 13px;align-items:center;gap:9px;min-height:48px;padding:8px 10px;border:0;border-bottom:1px solid #e9ecef;background:#fff;color:#111820;text-align:left}.director-progress-row:last-child{border-bottom:0}.director-progress-row span{font-size:11px}.director-progress-row>i{height:7px;border-radius:99px;background:#e6e9ec;overflow:hidden}.director-progress-row>i:before{content:"";display:block;width:var(--progress);height:100%;border-radius:99px;background:#0b9a4b}.director-progress-row b{color:#0b9a4b;font-size:12px;text-align:right}.director-progress-row em{font-style:normal;font-size:18px}
.director-activity-list{margin-top:9px}.director-activity-row{display:grid;width:100%;grid-template-columns:32px minmax(0,1fr) auto 13px;gap:9px;align-items:center;padding:9px 0;border:0;border-bottom:1px solid #e9ecef;background:#fff;color:#111820;text-align:left}.director-activity-row:last-child{border-bottom:0}.director-activity-row>i{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:#ffe8e7;color:#d72c29;font-style:normal}.director-activity-row:nth-child(2)>i{background:#fff0dd;color:#d77b00}.director-activity-row b{display:block;font-size:10px}.director-activity-row small{display:block;margin-top:3px;font-size:8px;color:#727d88}.director-activity-row>em{padding:5px 7px;border-radius:999px;background:#e8f0ff;color:#2466d3;font-size:8px;font-style:normal;font-weight:800}.director-activity-row>strong{font-size:18px}.director-empty{padding:18px 8px;color:#7b8490;font-size:11px;text-align:center}
.mobile-role-project_director .bottom-nav button[data-tab="tasks"]{position:relative;transform:translateY(-14px);color:#d78d00}.mobile-role-project_director .bottom-nav button[data-tab="tasks"] span{display:grid;width:58px;height:58px;place-items:center;border:5px solid #fff;border-radius:50%;background:#ffb900;color:#fff;font-size:30px;box-shadow:0 5px 15px rgba(221,147,0,.3)}

@media(max-width:365px){.mobile-role-employee .shift-card{padding:15px;gap:10px}.mobile-role-employee .employee-attendance-status strong{font-size:30px}.director-title-row h1{font-size:24px}.director-situation{padding:11px}.director-situation-stats{gap:5px}.director-situation-stat b{font-size:22px}.director-action-row{grid-template-columns:76px minmax(0,1fr) auto 12px}.director-quick-actions{gap:6px}}
