@media screen and (max-width:768px){.app-main .v2-page,.app-main .employee-management,.app-main .schedule-management,.app-main .attendance-management,.app-main .payroll-fit,.app-main .operations-dashboard{overflow-wrap:anywhere;min-width:0}.employee-hero,.branch-page-header,.change-log-hero,.attendance-header-card,.schedule-hero,.dashboard-welcome-card{flex-direction:column!important;align-items:stretch!important;gap:12px!important;margin-left:0!important;margin-right:0!important;padding:12px 14px!important}.branch-page-header{margin-top:0!important}.employee-hero h2,.branch-page-header h1,.change-log-hero h2,.attendance-heading h2,.schedule-hero h2,.dashboard-welcome-card h1{white-space:normal!important;text-overflow:unset!important;font-size:22px!important;line-height:1.3!important;overflow:visible!important}.employee-hero p,.change-log-hero p,.attendance-heading p,.dashboard-welcome-card p{white-space:normal!important;font-size:13px!important}.attendance-heading h2,.attendance-heading p{white-space:normal!important}.v2-header-actions,.branch-page-header-actions,.employee-hero-actions,.attendance-header-actions,.attendance-header-tools,.employee-toolbar-controls,.employee-toolbar-io,.change-log-hero-tools,.change-log-tools,.dashboard-welcome-actions{flex-wrap:wrap!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;display:flex!important}.attendance-header-actions{flex-wrap:wrap!important}.v2-header-actions button,.v2-header-actions select,.v2-header-actions input[type=month],.branch-page-header-actions button,.branch-page-header-actions select,.branch-page-header-actions input[type=month],.employee-hero-actions button,.employee-primary-button,.employee-secondary-button,.attendance-header-actions button,.attendance-header-actions select,.attendance-refresh,.attendance-export,.attendance-header-tools>select,.employee-toolbar button,.employee-toolbar select,.employee-toolbar input[type=date],.change-log-mail,.change-log-tabs button,.payroll-mobile-menu,.payroll-mobile-menu-panel button,.schedule-hero-tools button,.schedule-week-nav button,.payslip-mobile-nav button,.payslip-mobile-nav select,.bonus-mobile-nav select,.leave-mobile-nav select,.leave-dept-select,.employee-filter-toggle,.dashboard-welcome-actions button,.dashboard-welcome-actions time,.set-dialog-actions button,.employee-editor-footer button,.employee-export-dialog footer button,.digest-dialog footer button,.logout-confirm-dialog button{box-sizing:border-box!important;border-radius:10px!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0 12px!important;font:600 14px/1.2 Noto Sans TC,sans-serif!important}.v2-header-actions .is-primary,.branch-page-header-actions .is-primary,.employee-primary-button{padding:0 14px!important}.employee-hero-actions .employee-primary-button{justify-content:center;width:100%!important}.employee-stats{grid-template-columns:1fr 1fr!important;gap:8px 12px!important;width:100%!important;display:grid!important}.employee-stats span{white-space:normal!important;border-right:0!important;padding-right:0!important;font-size:12px!important}.leave-kpis{grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important;display:grid!important}.leave-kpis span{white-space:normal!important}.change-log-tabs{box-sizing:border-box;width:100%!important}.change-log-tabs button{text-align:center;white-space:normal!important;flex:1 1 0!important;min-width:0!important;padding:8px 6px!important}.payslip-picker-tabs{grid-template-columns:1fr 1fr!important;gap:6px!important;width:100%!important;display:grid!important}.payslip-picker-tabs button{white-space:normal!important;height:44px!important;min-height:44px!important}.payslip-mobile-nav>div:last-child{align-items:center!important;gap:8px!important;width:100%!important;display:flex!important}.payslip-mobile-nav>div:last-child>button:first-child,.payslip-mobile-nav>div:last-child>button:last-child{flex:0 0 44px!important;width:44px!important;min-width:44px!important;padding:0!important;font-size:20px!important}.payslip-mobile-nav>div:last-child>select{flex:auto!important;min-width:0!important}.payslip-page .v2-header-actions>select,.payslip-page .v2-header-actions>input[type=month],.bonus-page .v2-header-actions>input[type=month],.leave-page .v2-header-actions>input[type=month],.employee-extra-filters>label:first-of-type{display:none!important}.bonus-page .v2-header-actions>.v2-muted,.bonus-page .v2-header-actions>.settings-dirty-indicator{white-space:normal!important;flex:100%!important;font-size:13px!important;line-height:1.4!important}.bonus-page .v2-header-actions{grid-template-columns:1fr 1fr!important;display:grid!important}.bonus-page .v2-header-actions>.v2-muted,.bonus-page .v2-header-actions>.settings-dirty-indicator{grid-column:1/-1}.bonus-page .v2-header-actions button{width:100%!important}.payroll-fit>.branch-page-header{box-shadow:none!important;background:0 0!important;border:0!important;border-radius:0!important;flex-direction:row!important;align-items:center!important;gap:8px!important;margin:0 0 10px!important;padding:0!important}.payroll-fit>.branch-page-header>div:first-child{display:none!important}.payroll-fit>.branch-page-header>div:last-child,.payroll-mobile-tools{gap:8px;width:100%;display:flex!important}.payroll-fit-body .payroll-screen-only{flex-wrap:wrap!important;align-items:center!important;gap:6px!important;margin-bottom:8px!important;font-size:12px!important;line-height:1.4!important;display:flex!important}.payroll-fit-body .payroll-screen-only>span:last-child{color:#6b5f52;flex:0 auto;font-weight:700;margin:0!important}.payroll-mobile-menu{justify-content:center!important;align-items:center!important;min-width:72px!important}.employee-toolbar{gap:10px!important}.employee-toolbar-io{width:100%!important}.employee-toolbar-io .employee-secondary-button{flex:1 1 0!important}.employee-extra-filters:not(.is-collapsed){gap:10px!important;width:100%!important;display:grid!important}.employee-extra-filters label{min-width:0!important}.employee-extra-filters select,.employee-extra-filters input[type=date]{width:100%!important;height:44px!important;min-height:44px!important}.attendance-search{flex:100%!important;width:100%!important}.attendance-heading{flex-direction:column!important;align-items:stretch!important;gap:10px!important;width:100%!important}.attendance-view-toggle{grid-template-columns:1fr 1fr!important;gap:6px!important;width:100%!important;display:grid!important}.attendance-view-toggle button{white-space:normal!important;height:44px!important;min-height:44px!important;font-size:13px!important}.attendance-header-actions{flex-wrap:nowrap!important;gap:8px!important}.attendance-header-actions>button,.attendance-header-actions>select{white-space:nowrap!important;text-overflow:ellipsis!important;flex:1 1 0!important;width:auto!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0 4px!important;font-size:13px!important;overflow:hidden!important}.attendance-header-actions>select{flex:1.45 1 0!important}.attendance-overview-card .attendance-panel-header select{display:none!important}.attendance-header-tools .attendance-month-picker{flex:100%!important;width:100%!important}.schedule-hero-side,.schedule-hero-tools{width:100%!important;max-width:100%!important}.schedule-hero-tools{grid-template-columns:1fr 1fr!important;gap:8px!important;display:grid!important}.schedule-hero-tools .schedule-week-picker{grid-column:1/-1!important;width:100%!important}.schedule-hero-tools .schedule-copy-button,.schedule-hero-tools .schedule-action-button{white-space:normal!important;text-align:center!important;height:auto!important;min-height:44px!important;max-height:none!important;padding:8px 10px!important;line-height:1.25!important}.schedule-legend{-webkit-overflow-scrolling:touch;flex-wrap:nowrap!important;overflow-x:auto!important}.dashboard-welcome-actions{flex-direction:column!important;align-items:stretch!important}.dashboard-welcome-actions time,.dashboard-welcome-actions strong{text-align:center;justify-content:center;white-space:normal!important;width:100%!important}.dashboard-welcome-actions strong{order:-1!important}.home-kpis .home-kpi b,.home-kpis .home-kpi strong{font-size:22px!important}.home-kpi{min-height:72px!important;padding:10px 12px!important}.set-tabs{-webkit-overflow-scrolling:touch;flex-wrap:nowrap!important;gap:6px!important;padding-bottom:4px!important;display:flex!important;overflow-x:auto!important}.set-tabs button{white-space:nowrap!important;flex:none!important;height:44px!important;min-height:44px!important}.set-dialog-actions,.employee-editor-footer,.employee-export-dialog footer,.digest-dialog footer,.logout-confirm-dialog{flex-wrap:wrap!important;justify-content:flex-end!important;gap:8px!important;display:flex!important}.set-dialog-actions button,.employee-editor-footer button,.employee-export-dialog footer button,.digest-dialog footer button,.logout-confirm-dialog button{flex:calc(50% - 4px)!important;min-width:min(100%,140px)!important}.set-dialog-actions button.is-primary,.employee-editor-footer button.is-primary,.digest-dialog footer button.is-primary,.logout-confirm-dialog button.is-primary{order:2;flex:100%!important}.app-shell{height:auto;min-height:100dvh;padding-bottom:calc(56px + env(safe-area-inset-bottom,0px));display:block;overflow:visible}.app-sidebar{display:none!important}.app-main,.app-main.is-padded,.app-main.is-fill{height:auto!important;min-height:0!important;max-height:none!important;padding:12px 14px 16px!important;overflow:visible!important}.app-main.is-fill .operations-dashboard{flex:none!important;min-height:0!important;overflow:visible!important}.app-main.is-fill:has(.operations-dashboard){flex:none!important;min-height:0!important;overflow:visible!important}.mobile-topbar{z-index:40;box-sizing:border-box;background:#fff;border-bottom:1px solid #e5e0d8;justify-content:space-between;align-items:center;gap:10px;width:calc(100% + 28px);margin:-12px -14px 12px;padding:10px 14px;display:flex;position:sticky;top:0;max-width:none!important}.mobile-topbar-title{text-overflow:ellipsis;white-space:nowrap;color:#292524;flex:auto;min-width:0;margin:0;font:800 17px/1.3 Noto Serif TC,serif;overflow:hidden}.mobile-topbar-tools{flex:0 auto;justify-content:flex-end;align-items:center;gap:8px;min-width:0;max-width:62%;display:flex}.mobile-topbar-store{box-sizing:border-box;color:#57534e;background:#f9fafb;border:1px solid #e5e0d8;border-radius:999px;flex:auto;min-width:72px;max-width:132px;height:44px;padding:0 10px;font:600 12px Noto Sans TC,sans-serif}.mobile-topbar-filter{color:#57534e;white-space:nowrap;text-overflow:ellipsis;background:#f9fafb;border:1px solid #e5e0d8;border-radius:999px;flex:0 auto;min-width:0;max-width:100%;height:44px;padding:0 12px;font:600 12px Noto Sans TC,sans-serif;overflow:hidden}.mobile-tabbar{z-index:50;padding-bottom:env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid #e5e0d8;grid-template-columns:repeat(5,1fr);gap:0;display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 16px #0f172a0f}.mobile-tabbar a,.mobile-tabbar button{color:#57534e;cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:56px;padding:6px 4px;font:600 12px Noto Sans TC,sans-serif;text-decoration:none;display:flex}.mobile-tabbar .nav-icon{width:22px;height:22px}.mobile-tabbar .is-active{color:#92400e}.mobile-tabbar a:focus-visible,.mobile-tabbar button:focus-visible,.mobile-drawer-nav a:focus-visible{outline-offset:-2px;outline:2px solid #d97706}.mobile-drawer-backdrop{z-index:80;background:#0f172a73;position:fixed;inset:0}.mobile-drawer{z-index:81;max-height:min(88dvh,640px);padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));background:#fff;border-radius:16px 16px 0 0;position:fixed;bottom:0;left:0;right:0;overflow:auto;box-shadow:0 -12px 40px #0f172a2e}.mobile-drawer header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.mobile-drawer h2{margin:0;font:800 18px Noto Serif TC,serif}.mobile-drawer-close{color:#57534e;cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;width:44px;height:44px;font-size:28px;line-height:1;display:inline-flex}.mobile-drawer-filters{border-bottom:1px solid #f0ebe3;gap:10px;margin-bottom:14px;padding-bottom:14px;display:grid}.mobile-drawer-filters label{color:#78716c;text-transform:uppercase;letter-spacing:.04em;gap:4px;font-size:11px;font-weight:700;display:grid}.mobile-drawer-filters select,.mobile-drawer-filters .sidebar-month-trigger{box-sizing:border-box;width:100%;height:44px}.mobile-drawer-nav{gap:4px;display:grid}.mobile-drawer-nav a{color:#4b4035;border-radius:10px;align-items:center;gap:10px;min-height:44px;padding:10px;font:600 15px Noto Sans TC,sans-serif;text-decoration:none;display:flex}.mobile-drawer-nav a.is-active{color:#92400e;background:#fef3e2}.mobile-drawer .sidebar-account{border-top:1px solid #f0ebe3;margin-top:12px;padding-top:12px}.mobile-drawer .sidebar-account-menu{width:100%;box-shadow:none;border:1px solid #e5e0d8;margin-bottom:8px;position:static}.dashboard-todo-modal-backdrop,.digest-backdrop,.set-dialog-backdrop,.employee-editor-backdrop,.schedule-modal-backdrop,.attendance-day-backdrop,.logout-confirm-backdrop{align-items:flex-end!important;padding:0!important}.dashboard-todo-modal,.dashboard-passage-modal,.home-issue-modal,.digest-dialog,.set-dialog,.employee-editor,.employee-export-dialog,.employee-photo-edit-dialog,.employee-camera-dialog,.employee-photo-crop-dialog,.employee-help-dialog,.schedule-shift-modal,.schedule-preset-modal,.schedule-export-modal,.attendance-day-modal,.attendance-sync-dialog,.typhoon-dialog,.logout-confirm-dialog{border-radius:16px 16px 0 0!important;width:100%!important;max-width:100%!important;max-height:min(92dvh,720px)!important;margin:0!important}.employee-editor{border-radius:0!important;height:100dvh!important;max-height:100dvh!important}.home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-main{grid-template-columns:1fr!important}.home-issues,.home-passages{flex:none!important;height:auto!important;max-height:none!important}.home-table-wrap{display:none}.home-issue-cards{gap:10px;display:grid}.home-issue-card{text-align:left;cursor:pointer;background:#fff;border:1px solid #e6ebf2;border-radius:12px;gap:6px;padding:12px 14px;display:grid}.home-issue-card-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.home-issue-card-head strong{color:#1d2939;font:700 15px Noto Sans TC,sans-serif}.home-issue-card-meta{color:#667085;font-size:12px;line-height:1.5}.home-issue-card em{font-size:12px;font-style:normal;font-weight:700}.home-issue-card.is-red em{color:#e11d48}.home-issue-card.is-orange em{color:#ea580c}.home-issue-card.is-blue em{color:#2563eb}.home-issue-card.is-gray em{color:#64748b}.change-log-scroll-hint{color:#78716c;margin:0 2px 8px;font-size:12px;font-weight:700;display:block}.change-log-page,.change-log-card,.change-log-scroll{flex:none;min-width:0;max-width:100%;height:auto;min-height:0}.change-log-card{padding:0;display:block;overflow:hidden}.change-log-scroll{-webkit-overflow-scrolling:touch;overflow:auto hidden}.change-log-table{table-layout:auto;border-collapse:collapse;width:max-content;min-width:100%}.change-log-table th,.change-log-table td{white-space:nowrap;word-break:keep-all;border:0;border-bottom:1px solid #edf1f5;padding:8px;font-size:13px;line-height:1.35}.change-log-table th.is-reason,.change-log-table td.is-reason{white-space:normal;min-width:8em;max-width:14em}.change-log-table th:first-child,.change-log-table td:first-child{z-index:1;background:#fff;position:sticky;left:0;box-shadow:1px 0 #e5e0d8}.change-log-table th:first-child{z-index:2;background:#fafaf8}.change-log-hero-tools{flex-wrap:wrap;flex-direction:row!important;align-items:center!important;gap:8px!important}.attendance-management{min-width:0!important;height:auto!important;min-height:0!important}.attendance-workspace:not(.is-day){grid-template-columns:1fr!important}.attendance-mobile-list{display:none!important}.attendance-table-scroll{-webkit-overflow-scrolling:touch;overflow-x:auto!important}.attendance-overview-table,.attendance-daily-table{table-layout:auto!important;width:max-content!important;min-width:100%!important;font-size:12px!important}.attendance-overview-table th,.attendance-overview-table td,.attendance-daily-table th,.attendance-daily-table td{white-space:nowrap!important;text-overflow:clip!important;padding:8px 6px!important;font-size:12px!important;overflow:visible!important}.attendance-overview-table th:nth-child(2),.attendance-overview-table td:nth-child(2){z-index:1;background:#fff;position:sticky;left:0}.attendance-overview-table thead th:nth-child(2){z-index:3;background:#f8fafc}.attendance-overview-table td strong{text-overflow:clip!important;white-space:nowrap!important;font-size:13px!important;overflow:visible!important}.attendance-overview-table td small{display:block!important}.attendance-overview-table code,.attendance-daily-table code{font-size:12px!important}.attendance-workspace.is-mobile-pick .attendance-detail-column{display:none}.attendance-workspace.is-mobile-detail>.attendance-overview-card{display:block}.attendance-mobile-sheet-backdrop{z-index:69;background:#0f172a73;border:0;position:fixed;inset:0}.attendance-workspace.is-mobile-detail .attendance-detail-column{z-index:70;max-height:min(88dvh,720px);padding:12px 12px calc(16px + env(safe-area-inset-bottom,0px));background:#fff;border-radius:16px 16px 0 0;flex-direction:column;gap:10px;margin:0;display:flex;position:fixed;bottom:0;left:0;right:0;overflow:auto;box-shadow:0 -12px 40px #0f172a2e}.attendance-workspace.is-mobile-detail .attendance-daily-card .attendance-table-scroll{overflow-x:hidden!important}.attendance-workspace.is-mobile-detail .attendance-daily-table{table-layout:fixed!important;width:100%!important;min-width:0!important;font-size:13px!important}.attendance-workspace.is-mobile-detail .attendance-daily-table tbody tr{touch-action:manipulation}.attendance-workspace.is-mobile-detail .attendance-daily-table th,.attendance-workspace.is-mobile-detail .attendance-daily-table td{text-overflow:ellipsis;overflow:hidden;white-space:nowrap!important;width:auto!important;min-width:0!important;max-width:none!important;padding:8px 3px!important;font-size:13px!important}.attendance-workspace.is-mobile-detail .attendance-daily-table th:first-child,.attendance-workspace.is-mobile-detail .attendance-daily-table td:first-child{width:16%!important}.attendance-workspace.is-mobile-detail .attendance-daily-table th:nth-child(2),.attendance-workspace.is-mobile-detail .attendance-daily-table td:nth-child(2){width:34%!important}.attendance-workspace.is-mobile-detail .attendance-daily-table th:nth-child(3),.attendance-workspace.is-mobile-detail .attendance-daily-table td:nth-child(3){width:18%!important}.attendance-workspace.is-mobile-detail .attendance-daily-table th:nth-child(4),.attendance-workspace.is-mobile-detail .attendance-daily-table td:nth-child(4){width:12%!important}.attendance-workspace.is-mobile-detail .attendance-daily-table th:nth-child(5),.attendance-workspace.is-mobile-detail .attendance-daily-table td:nth-child(5){width:20%!important}.attendance-workspace.is-mobile-detail .attendance-daily-table code{font-size:12px!important}.attendance-workspace.is-mobile-detail .attendance-clock-pair{max-width:100%;white-space:nowrap!important;gap:1px!important;display:inline-flex!important}.attendance-workspace.is-mobile-detail .attendance-missing-clock-button,.attendance-workspace.is-mobile-detail .attendance-missing-clock-button.is-slot{width:auto!important;min-width:0!important;min-height:26px!important;padding:0 6px!important;font-size:12px!important}.attendance-clock-option,.attendance-clock-option.is-wide{width:min(248px,78vw)}.attendance-workspace.is-mobile-detail .attendance-status{padding:2px 4px!important;font-size:12px!important}.attendance-day-backdrop{z-index:90!important}.attendance-mobile-back{cursor:pointer;background:#fff;border:1px solid #e5e0d8;border-radius:8px;align-items:center;margin-right:8px;padding:4px 8px;font:600 13px Noto Sans TC,sans-serif;display:inline-flex}.schedule-table-scroll{overflow-x:hidden!important}.schedule-grid-table{table-layout:fixed!important;width:100%!important;min-width:0!important}.schedule-grid-table th:first-child,.schedule-grid-table td:first-child,.schedule-grid-table .schedule-name-col{z-index:2;position:sticky;left:0;width:56px!important;min-width:0!important;max-width:56px!important;padding:4px 2px!important}.schedule-grid-table th:first-child{z-index:4;line-height:1.2;white-space:normal!important;font-size:11px!important}.schedule-employee-cell{justify-content:center;gap:0!important;height:auto!important;padding:4px 2px!important}.schedule-employee-cell .schedule-avatar{display:none!important}.schedule-employee-cell strong{text-align:center;max-width:52px!important;font-size:12px!important}.schedule-employee-cell span{display:none!important}.schedule-grid-table th,.schedule-grid-table td{height:auto!important;padding:2px!important}.schedule-grid-table th span{font-size:11px!important}.schedule-grid-table th strong{margin-top:2px!important;font-size:11px!important}.schedule-grid-table tbody td:not(:first-child){height:68px!important;padding:2px!important}.schedule-cell-button{border-radius:6px!important;height:100%!important;min-height:0!important;padding:2px 0!important}.schedule-cell-button.has-shift strong{line-height:1.1;white-space:normal!important;font-size:11px!important}.schedule-cell-button.has-shift small{letter-spacing:-.04em!important;gap:0!important;margin-top:2px!important;font-size:8px!important;line-height:1.15!important;display:grid!important}.schedule-cell-button.has-shift small span{display:block}.schedule-cell-button.has-shift small span+span:before{content:none!important}.schedule-cell-button.has-shift em{display:none!important}.schedule-week-nav{gap:8px;margin-bottom:10px;display:flex}.schedule-week-nav button{cursor:pointer;background:#fff;border:1px solid #e5e0d8;border-radius:8px;flex:1;height:44px;font:600 13px Noto Sans TC,sans-serif}.leave-layout{grid-template-columns:1fr!important}.leave-rail{display:none!important}.leave-dept-select{width:100%;height:44px;margin-bottom:12px;display:block}.leave-page{overflow:visible!important}.leave-sheet table.is-bank{display:none}.leave-depts{display:none!important}.leave-person-cards{gap:10px;display:grid}.leave-person-card{background:#fff;border:1px solid #e5e0d8;border-radius:12px;padding:12px 14px}.leave-person-card strong{margin-bottom:8px;font-size:15px;display:block}.leave-person-card dl{grid-template-columns:1fr 1fr;gap:6px 12px;margin:0;display:grid}.leave-person-card dt{color:#78716c;font-size:11px;font-weight:700}.leave-person-card dd{color:#292524;margin:0;font:700 14px JetBrains Mono,monospace}.employee-view-toggle,.employee-directory-table-wrap{display:none!important}.employee-card-grid{grid-template-columns:1fr!important}.employee-search{flex:100%!important;width:100%!important;max-width:none!important}.employee-extra-filters.is-collapsed{display:none}.employee-filter-toggle{display:inline-flex!important}.staff-move-months{overflow-x:auto;grid-template-columns:repeat(12,minmax(48px,1fr))!important}.employee-editor-footer,.set-dialog-actions,.employee-export-dialog footer{flex-wrap:wrap!important}.employee-basic-identity-fields{grid-template-columns:1fr!important}.employee-term-history li,.employee-raise-log li{grid-template-columns:1fr!important;gap:4px!important}.employee-raise-dialog{max-height:calc(100vh - 24px)}.payroll-fit,.payroll-fit-body,.payroll-fit-table,.bonus-page,.payslip-page{min-height:0!important;overflow:visible!important}.payroll-fit-table{max-height:calc(100dvh - 180px)}.payroll-table-scroll{max-height:inherit}.payroll-screen-actions,.payroll-legend-note{display:none!important}.payroll-wide-open,.payroll-mobile-tools .payroll-mobile-menu{cursor:pointer;border-radius:12px;flex:1 1 0;justify-content:center;align-items:center;height:44px;min-height:44px;padding:0 12px;font:700 14px Noto Sans TC,sans-serif;box-shadow:0 1px 2px #0f172a0f;min-width:0!important;display:inline-flex!important}.payroll-wide-open{color:#292524;background:#fff;border:1px solid #e7e1d8}.payroll-mobile-tools .payroll-mobile-menu{color:#fff;background:#172033;border:1px solid #172033}.payroll-mobile-list{gap:16px;margin-bottom:14px;display:grid}.payroll-person-scroll{background:#fff;border:1px solid #e7e1d8;border-radius:16px;overflow:hidden;box-shadow:0 1px 6px #0000000f}.payroll-person-head{background:#fff;border-bottom:1px solid #f0ebe3;justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.payroll-person-head h2{color:#292524;margin:0;font:700 16px Noto Serif TC,serif}.payroll-person-head span{color:#78716c;background:#f6f1e8;border-radius:999px;padding:3px 8px;font:700 12px Noto Sans TC,sans-serif}.payroll-person-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:0;font-size:13px}.payroll-person-table th,.payroll-person-table td{text-align:right;vertical-align:middle;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid #f3eee6;padding:12px 8px;overflow:hidden}.payroll-person-table tbody tr:last-child td{border-bottom:0}.payroll-person-table tbody tr:active{background:#fff7ed}.payroll-person-table th:first-child,.payroll-person-table td:first-child{text-align:left;white-space:normal;width:28%}.payroll-person-table th:nth-child(2),.payroll-person-table td:nth-child(2){text-align:left;width:18%}.payroll-person-table th:nth-child(3),.payroll-person-table td:nth-child(3){width:14%}.payroll-person-table th:nth-child(4),.payroll-person-table td:nth-child(4),.payroll-person-table th:nth-child(5),.payroll-person-table td:nth-child(5){width:20%}.payroll-person-table th{color:#57534e;letter-spacing:.02em;background:#faf7f2;font:700 12px Noto Sans TC,sans-serif}.payroll-person-table td{font-variant-numeric:tabular-nums;color:#292524;font:600 13px JetBrains Mono,monospace}.payroll-person-table td:first-child,.payroll-person-table td:nth-child(2){font-family:Noto Sans TC,sans-serif}.payroll-person-table td:nth-child(2){color:#57534e;font-weight:500}.payroll-person-table td.is-net{color:#92400e;font-weight:800}.payroll-person-table tbody tr{cursor:pointer}.payroll-person-table strong{color:#1c1917;text-overflow:ellipsis;font-size:14px;font-weight:700;display:block;overflow:hidden}.mpf-tag{border-radius:999px;margin-top:4px;padding:1px 6px;font:700 11px/1.45 Noto Sans TC,sans-serif;display:inline-block}.mpf-tag.is-new{color:#047857;background:#ecfdf5}.mpf-tag.is-under60{color:#92400e;background:#fff7ed}.mpf-tag.is-noMPF{color:#6d28d9;background:#f5f3ff}.payroll-person-table tr.is-mpf-new td:first-child,.payroll-person-table tr.is-mpf-under60 td:first-child,.payroll-person-table tr.is-mpf-noMPF td:first-child{box-shadow:inset 3px 0 #059669}.payroll-person-table tr.is-mpf-under60 td:first-child{box-shadow:inset 3px 0 #d97706}.payroll-person-table tr.is-mpf-noMPF td:first-child{box-shadow:inset 3px 0 #7c3aed}.payroll-wide-rotate{display:contents}.payroll-wide-bar{display:none}.payroll-fit-table:not(.is-wide-open){display:none!important}.payroll-fit-table.is-wide-open{z-index:80;background:#fff;position:fixed;inset:0;border-radius:0!important;max-height:none!important;display:block!important;overflow:hidden!important}.payroll-fit-table.is-wide-open .payroll-wide-rotate{flex-direction:column;height:100%;min-height:0;display:flex}.payroll-fit-table.is-wide-open .payroll-wide-bar{background:#fff;border-bottom:1px solid #e5e0d8;flex:none;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;display:flex}.payroll-fit-table.is-wide-open .payroll-wide-bar button{background:#fff;border:1px solid #e5e0d8;border-radius:8px;min-height:44px;padding:0 12px;font:600 14px Noto Sans TC,sans-serif}.payroll-fit-table.is-wide-open .payroll-table-scroll{-webkit-overflow-scrolling:touch;flex:auto;width:100%;min-width:0;min-height:0;max-height:none!important;overflow:auto!important}.payroll-fit-table.is-wide-open .payroll-table{width:max-content!important;min-width:max-content!important;max-width:none!important}.payroll-fit-table.is-wide-open .payroll-table th,.payroll-fit-table.is-wide-open .payroll-table td{text-overflow:clip!important;overflow:visible!important}@media (orientation:portrait){.payroll-fit-table.is-wide-open .payroll-wide-rotate{width:100dvh;height:100dvw;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(90deg)}}.payroll-summary-bar{grid-template-columns:1fr 1fr;gap:8px;display:grid!important}.payroll-sheet-backdrop{z-index:75;background:#0f172a73;border:0;position:fixed;inset:0}.payroll-person-sheet{z-index:76;max-height:min(88dvh,720px);padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));background:#fff;border-radius:16px 16px 0 0;position:fixed;bottom:0;left:0;right:0;overflow:auto;box-shadow:0 -12px 40px #0f172a2e}.payroll-person-sheet header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.payroll-person-sheet h2{margin:0;font:800 18px Noto Serif TC,serif}.payroll-person-sheet header p{color:#57534e;margin:4px 0 0;font-size:13px}.payroll-person-sheet header button{background:#fff;border:1px solid #e5e0d8;border-radius:8px;min-height:44px;padding:0 12px;font:600 14px Noto Sans TC,sans-serif}.payroll-person-sheet h3{color:#78716c;margin:14px 0 8px;font:700 13px Noto Sans TC,sans-serif}.payroll-person-sheet dl{grid-template-columns:1fr 1fr;gap:8px 12px;margin:0;display:grid}.payroll-person-sheet dt{color:#78716c;font-size:11px;font-weight:700}.payroll-person-sheet dd{color:#292524;margin:0;font:700 14px Noto Sans TC,sans-serif}.payroll-mobile-menu{display:inline-flex!important}.payroll-mobile-menu-panel{z-index:30;background:#fff;border:1px solid #e5e0d8;border-radius:10px;min-width:160px;padding:6px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 24px #0f172a1f}.payroll-mobile-menu-panel button{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;width:100%;padding:10px 12px;font:600 14px Noto Sans TC,sans-serif;display:block}.payslip-layout,.bonus-layout{grid-template-columns:1fr!important}.payslip-picker,.bonus-picker{display:none!important}.payslip-mobile-nav{flex-direction:column;align-items:stretch;gap:8px;margin-bottom:12px;display:flex!important}.bonus-mobile-nav,.leave-mobile-nav{display:none!important}.payslip-mobile-nav select{flex:1;height:44px}.payslip-grid{grid-template-columns:1fr!important;width:100%!important}.payslip-side{border-top:1px solid #e5e0d8;margin-top:16px;padding-top:16px}.payslip-sheet-hint,.bonus-page .bonus-rail{display:none!important}.bonus-sheet-stage .bonus-line.is-editing .bonus-line-cells{grid-template-columns:1fr minmax(88px,1fr) auto!important}.set-device-grid,.dashboard-device-grid{grid-template-columns:1fr!important}.auth-login-brand-title{white-space:normal!important}.attendance-header-card{flex-direction:column!important;align-items:stretch!important;gap:12px!important;padding:12px 14px!important;display:flex!important}.payslip-page .v2-header-actions{grid-template-columns:1fr 1fr!important;gap:8px!important;display:grid!important}.payslip-page .v2-header-actions .is-primary{grid-column:1/-1!important}.leave-page .v2-header-actions .is-primary{width:100%!important}.change-log-mail{height:44px!important;min-height:44px!important;padding:0 12px!important;font-size:13px!important}.system-settings-header,.system-settings-title-row{flex-direction:column!important;align-items:stretch!important;gap:10px!important}.system-settings-actions{flex-wrap:wrap!important;gap:8px!important;width:100%!important}.system-settings-actions button{flex:calc(50% - 4px)!important;min-height:44px!important}.set-section-head{flex-direction:column!important;align-items:stretch!important}.set-device-grid,.set-user-grid,.settings-form-grid{grid-template-columns:1fr!important}}@media print{.payroll-mobile-list,.payroll-person-sheet,.payroll-sheet-backdrop,.payroll-wide-bar,.payroll-wide-open{display:none!important}.payroll-fit-table{max-height:none!important;display:block!important;position:static!important;overflow:visible!important}}.change-log-title-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.change-log-title-row h2{margin:0}@media screen and (min-width:769px){.mobile-topbar,.mobile-tabbar,.mobile-drawer-backdrop,.home-issue-cards,.attendance-mobile-list,.leave-person-cards,.leave-dept-select,.schedule-week-nav,.employee-filter-toggle,.payroll-mobile-menu,.payroll-wide-open,.payroll-mobile-list,.payroll-person-sheet,.payroll-sheet-backdrop,.payslip-mobile-nav,.bonus-mobile-nav,.leave-mobile-nav{display:none!important}}
