/* One responsive H5 surface for the phone preview, mobile browsers and DingTalk WebView. */
.mobile-appbar{display:none}
body.manager{--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--mobile-bar-height:48px;overflow:hidden;height:100vh;height:var(--app-height,100dvh);background:#f5f7fb;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.manager .topbar,body.manager .sidebar{display:none}
body.manager .mobile-appbar{display:flex;align-items:center;gap:9px;height:calc(var(--mobile-bar-height) + var(--safe-top));padding:var(--safe-top) max(16px,var(--safe-right)) 0 max(16px,var(--safe-left));background:white;border-bottom:1px solid #e9edf5}
.mobile-app-logo{display:grid;place-items:center;width:25px;height:25px;background:#4663eb;color:white;border-radius:7px;font-size:16px}
.mobile-appbar strong{font-size:16px;font-weight:600}.mobile-app-subtitle{margin-left:auto;font-size:11px;color:#94a1b5}
body.manager.dingtalk-container{--mobile-bar-height:0px;--safe-top:0px}
body.manager.dingtalk-container .mobile-appbar{display:none}
body.manager .shell{display:block;height:calc(var(--app-height,100dvh) - var(--mobile-bar-height) - var(--safe-top));min-height:0;overflow:hidden}
body.manager main,body.manager main:has(.sheet){height:100%;max-width:640px;margin:auto;padding:14px max(12px,var(--safe-right)) 0 max(12px,var(--safe-left));display:flex;flex-direction:column;overflow:hidden;width:100%;min-height:0}
body.manager main:has(.cross-mobile),body.manager main:has(.sources){overflow-y:auto;overscroll-behavior-y:contain;padding-bottom:calc(12px + var(--safe-bottom));-webkit-overflow-scrolling:touch}
body.manager .page-head{flex:none;min-height:34px;margin:0 0 12px;align-items:center}
body.manager .page-head .eyebrow,body.manager .page-head p{display:none}
body.manager .page-head h1{font-size:19px!important;font-weight:650;gap:10px;letter-spacing:-.3px}
body.manager .page-head .month{font-size:11px;font-weight:500;padding:5px 7px;background:transparent;color:#8794aa;white-space:nowrap}
body.manager .page-head .button-group:empty{display:none}
body.manager .mobile-view-tabs{flex:none;margin:0 0 12px;padding:3px;min-height:42px;background:#eaf0f9;border-radius:9px}
body.manager .mobile-view-tabs button{font-size:14px;min-height:38px;padding:8px;border-radius:7px;touch-action:manipulation}
body.manager .workbench{display:flex;flex-direction:column;min-height:0;flex:1;border-radius:11px;overflow:hidden;box-shadow:none}
body.manager .workbench>.filters:first-child{padding:10px 12px;gap:7px;min-height:94px;display:grid;grid-template-columns:1fr 54px}
body.manager .filters .store-select{width:100%;max-width:100%;height:38px;font-size:14px;padding:0 9px;grid-column:1/-1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
body.manager .filters .search{margin:0;width:100%;height:36px;background:#f8fafd;border-color:#e9edf4;font-size:16px;padding:0 10px}
body.manager .filters .btn{height:36px;font-size:12px;padding:7px 10px}
body.manager .workbench>.filters:has(.filter-tabs){padding:5px 7px;min-height:42px}
body.manager .filters .filter-tabs{display:flex;flex-wrap:nowrap;width:100%;gap:0;overflow:auto;scrollbar-width:none}
body.manager .filter-tabs::-webkit-scrollbar{display:none}
body.manager .tab{flex:1;min-width:max-content;padding:8px 5px;font-size:12px;min-height:32px;touch-action:manipulation}
body.manager .count{font-size:10px;margin-left:3px}
body.manager .summary-bar{min-height:31px;padding:7px 12px;font-size:10px;gap:7px;flex:none;background:#fbfcff;white-space:normal}
body.manager .summary-bar b{font-size:11px;margin:0 2px}
body.manager .summary-bar>span:last-child{font-size:10px;white-space:nowrap}
body.manager .table-scroll{flex:1;min-height:0;max-height:none!important;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#dce2ec transparent}
body.manager .sheet{width:100%;table-layout:fixed;min-width:0}
body.manager .sheet col:nth-child(1){width:31%}body.manager .sheet col:nth-child(2){width:15%}body.manager .sheet col:nth-child(3){width:14%}body.manager .sheet col:nth-child(4){width:15%}body.manager .sheet col:nth-child(5){width:25%}
body.manager .sheet th{font-size:11px;color:#8391a7;padding:10px 4px;font-weight:500;height:36px}
body.manager .sheet th:first-child{padding-left:12px}
body.manager .sheet td{height:90px;padding:9px 4px;border-color:#edf0f6}
body.manager .sheet .name-cell{padding-left:12px;padding-right:5px}
.employee-title{display:flex;align-items:center;gap:4px;min-width:0}
body.manager .sheet .emp-name{min-width:0;font-size:14px;font-weight:600;line-height:20px;color:#334563}
body.manager .sheet .emp-name button{max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;min-height:22px;touch-action:manipulation}
.mini-status{font-size:9px;padding:1px 3px;border-radius:3px;color:#98a4b8;background:#f1f4f9;white-space:nowrap;flex-shrink:0}
.mini-status.returned{color:#ac7023;background:#fff1dc}.mini-status.approved{color:#268673;background:#e9f5ef}.mini-status.submitted{color:#5c73cd;background:#eef1ff}
.punch-summary{display:flex;flex-wrap:wrap;gap:0 5px;align-items:center;border:0;background:transparent;padding:2px 0;font-size:10px;line-height:15px;color:#6a83ad;text-align:left;max-width:100%;touch-action:manipulation}
.punch-summary .issue-dot{color:#b67b28;white-space:nowrap}
.row-quick-actions{display:flex;gap:9px;align-items:center;line-height:15px}
body.manager .row-quick-actions .link{font-size:10px;padding:1px 0;min-height:18px;color:#6f82a8;touch-action:manipulation}
body.manager .sheet input,body.manager .sheet select{width:100%;min-width:0;height:40px;padding:0 5px;border:1px solid #e0e6f0;border-radius:6px;background:white;color:#354969;font-size:16px;line-height:normal;font-variant-numeric:tabular-nums;box-shadow:0 1px 1px #21335402}
body.manager .sheet input:focus,body.manager .sheet select:focus{border-color:#899ef9;outline:2px solid #e7ecff;outline-offset:0}
body.manager .sheet input::placeholder{color:#b1bac8;font-size:12px}
body.manager .sheet input:disabled,body.manager .sheet select:disabled{color:#7c8ba3;background:#f7f9fc;opacity:1;-webkit-text-fill-color:#7c8ba3}
body.manager .sheet select{appearance:none;-webkit-appearance:none;text-align:center;padding:0 14px 0 3px;background-image:url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 3 3 3-3' stroke='%238b9ab3' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 5px center}
body.manager .sheet .return-highlight{font-size:10px;line-height:14px;margin:3px 0 0;overflow-wrap:anywhere}
body.manager .pagination{padding:8px 12px;min-height:42px;font-size:10px;flex:none}
body.manager .pagination .btn{font-size:11px;min-height:28px;padding:5px 8px}
body.manager .mobile-commit{position:static;flex:none;min-height:76px;padding:12px 12px calc(12px + var(--safe-bottom));border-top:1px solid #e4eaf3;gap:8px;background:#fff;z-index:3}
body.manager .mobile-commit>span{font-size:11px;line-height:1.6;flex:1;min-width:0;color:#8d9bb1}
body.manager .mobile-commit .sub{font-size:10px;margin-top:2px;line-height:1.45}
body.manager .mobile-commit .button-group{gap:7px;flex-shrink:0}
body.manager .mobile-commit .btn{min-height:42px;font-size:13px;padding:10px 13px;border-radius:7px}
body.manager .source-strip{font-size:9px;line-height:16px;flex:none;margin:0;padding:7px 4px;color:#a1adbf;min-height:28px}
body.manager .source-strip .source-badge{display:none}
body.manager .source-strip>span:last-child{display:none}
body.manager .inline-detail td{height:auto;padding:12px!important}
body.manager .inline-detail .punch-box{max-height:260px;overflow:auto}
body.manager .reason-inline{display:block;font-size:12px;color:#768ba8}
body.manager .reason-inline input{height:42px;width:100%;font-size:16px;margin-top:7px;padding:0 10px}
body.manager .punch-table{table-layout:auto;min-width:420px}
body.manager .punch-table th,body.manager .punch-table td{height:auto;font-size:11px;padding:9px!important}
body.manager .workbench:has(.empty){min-height:230px}
body.manager #overlay{height:var(--app-height,100dvh);bottom:auto}
body.manager #panel{height:100%;top:0;bottom:auto;width:100%;max-width:640px;border-radius:0;padding-left:var(--safe-left);padding-right:var(--safe-right);box-shadow:-10px 0 60px #172b501a}
body.manager .panel-head{padding:17px 16px 13px;gap:12px;flex-shrink:0}
body.manager .panel-head h2{font-size:17px;line-height:1.6}
body.manager .panel-head p{font-size:11px;line-height:1.6;margin-top:3px}
body.manager .panel-head .quiet{width:34px;min-width:34px;height:34px;font-size:25px;touch-action:manipulation}
body.manager .panel-body{padding:16px;min-height:0;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
body.manager .panel-footer{padding:12px 16px calc(12px + var(--safe-bottom));gap:7px;flex-shrink:0;flex-wrap:wrap}
body.manager .panel-footer .btn{min-height:42px;font-size:12px;padding:9px 11px;touch-action:manipulation}
body.manager .field input,body.manager .field textarea,body.manager .field select,body.manager .support-editor input,body.manager .support-editor select,body.manager .add-dates input{font-size:16px;min-height:40px}
body.manager .field textarea{line-height:1.6;min-height:82px;resize:vertical}
body.manager .support-editor{table-layout:fixed;width:100%}
body.manager .support-editor col:nth-child(1){width:16%}body.manager .support-editor col:nth-child(2){width:30%}body.manager .support-editor col:nth-child(3){width:17%}body.manager .support-editor col:nth-child(4){width:37%}
body.manager .support-editor td{font-size:11px;padding:9px 4px;overflow-wrap:anywhere}
body.manager .support-editor small{font-size:10px;line-height:1.5}
body.manager .support-editor input{padding:7px 5px}
body.manager .support-editor select{padding:7px 2px}
body.manager .add-dates{flex-wrap:wrap;gap:7px}body.manager .support-editor th{padding-left:4px;padding-right:4px}
body.manager .panel-info,body.manager .returned-note{font-size:11px;line-height:1.8;overflow-wrap:anywhere}
body.manager .route{font-size:12px;line-height:1.8}
body.manager .stepper{font-size:10px;gap:4px;white-space:normal}
body.manager .check{font-size:12px}body.manager .check input[type=checkbox]{min-width:18px;min-height:18px;accent-color:#4663eb}
body.manager .support-card{padding:14px;border-radius:10px;box-shadow:0 2px 8px #28395903}
body.manager .support-card h3{font-size:16px}
body.manager .support-card .route{font-size:11px}
body.manager .cross-mobile .mini-calendar span{height:30px;font-size:12px}
body.manager .cross-mobile .mini-calendar .week{height:18px;font-size:10px}
body.manager .cross-mobile .support-card-foot{font-size:10px;gap:7px}
body.manager .cross-mobile .support-card-foot .btn{min-height:40px;font-size:12px;padding:9px}
body.manager .cross-mobile{padding-bottom:12px;gap:12px}
body.manager main:has(.cross-mobile)>.filters{flex:none;padding:8px 0;gap:4px;border-bottom:0}
body.manager main:has(.cross-mobile)>.filters .filter-tabs{width:auto;flex:1}
body.manager main:has(.cross-mobile)>.filters select{max-width:99px;height:36px;font-size:13px}
body.manager .filters[data-standalone-filter]{margin-bottom:5px;padding:9px;background:#fff}
body.manager .filters[data-standalone-filter] .store-select{height:38px}
body.manager .notice-line{font-size:10px;line-height:1.7;flex:none}
body.manager .sources{grid-template-columns:minmax(0,1fr);display:grid;flex:none;gap:12px}
body.manager .source-card{padding:16px}body.manager .source-card dd{min-width:0}
body.manager #toast{font-size:12px;line-height:1.65;bottom:calc(25px + var(--safe-bottom));max-width:calc(100vw - 28px);width:max-content;text-align:center}
body.manager.keyboard-open{--safe-bottom:0px}
body.manager.keyboard-open .mobile-commit{min-height:58px;padding-top:8px;padding-bottom:8px}
body.manager.keyboard-open .mobile-commit .sub,body.manager.keyboard-open .source-strip{display:none}
@media(max-width:359px){body.manager main,body.manager main:has(.sheet){padding-left:max(8px,var(--safe-left));padding-right:max(8px,var(--safe-right));padding-top:10px}body.manager .page-head h1{font-size:17px!important}body.manager .page-head .month{font-size:10px;padding:3px}body.manager .sheet .name-cell,body.manager .sheet th:first-child{padding-left:8px}body.manager .sheet td{padding-left:3px;padding-right:3px}body.manager .sheet col:nth-child(1){width:30%}body.manager .sheet col:nth-child(2){width:16%}body.manager .sheet col:nth-child(3){width:14%}body.manager .sheet col:nth-child(4){width:15%}body.manager .sheet col:nth-child(5){width:25%}body.manager .sheet input{padding:0 3px}body.manager .sheet .emp-name{font-size:13px}body.manager .mini-status{font-size:8px;padding:0 2px}.employee-title{gap:2px}body.manager .mobile-commit{padding-left:9px;padding-right:9px}body.manager .mobile-commit>span{font-size:10px}body.manager .mobile-commit .btn{padding:10px 9px;font-size:12px}body.manager .summary-bar>span:last-child{display:none}body.manager .panel-body{padding:12px}body.manager .panel-footer{padding-left:12px;padding-right:12px}body.manager .panel-footer .btn{font-size:11px;padding:9px}body.manager .page-head{margin-bottom:9px}body.manager .mobile-view-tabs{margin-bottom:9px}}
@media(orientation:landscape) and (max-height:600px){body.manager main,body.manager main:has(.sheet){max-width:100%;padding-top:8px}body.manager .page-head{display:none}body.manager .mobile-view-tabs{margin-bottom:6px;min-height:36px}body.manager .mobile-view-tabs button{min-height:30px;padding:5px}body.manager .workbench>.filters:first-child{display:flex;min-height:46px;flex-wrap:nowrap;padding-top:6px;padding-bottom:6px}body.manager .workbench>.filters:first-child .store-select{width:45%;flex:1}body.manager .workbench>.filters:first-child .search{width:35%}body.manager .workbench>.filters:has(.filter-tabs){min-height:36px;padding-top:1px;padding-bottom:1px}body.manager .summary-bar{display:none}body.manager .mobile-commit{min-height:52px;padding-top:6px;padding-bottom:calc(6px + var(--safe-bottom))}body.manager .mobile-commit .sub{display:none}body.manager .source-strip{display:none}body.manager .sheet td{height:80px}}
@media(prefers-reduced-motion:reduce){body.manager *{scroll-behavior:auto!important;transition:none!important}}
body.manager .source-strip{display:none}body.manager .sheet input,body.manager .sheet select{height:44px}body.manager .row-quick-actions .link{min-height:24px;min-width:28px;padding:3px 0;font-size:10px}
@media(min-width:375px){body.manager .sheet td{height:80px}}
body.manager.dingtalk-container .page-head{min-height:26px;margin-bottom:10px}
body.manager.dingtalk-container .page-head h1{font-size:0!important;letter-spacing:0;gap:0}
body.manager.dingtalk-container .page-head h1::before{content:"工资所属月";font-size:11px;font-weight:400;color:#8d9bb0;margin-right:9px}
body.manager.dingtalk-container .page-head .month{font-size:12px;background:#ecf1ff;color:#5b75d3;padding:4px 8px}
/* Attribute/class fallbacks for WebViews without :has(). */
body.manager[data-page=support] main,body.manager[data-page=source] main{overflow-y:auto;overscroll-behavior-y:contain;padding-bottom:calc(12px + var(--safe-bottom));-webkit-overflow-scrolling:touch}
body.manager .workbench>.status-filters{padding:5px 7px;min-height:42px}
body.manager[data-page=support] main>.filters{flex:none;padding:8px 0;gap:4px;border-bottom:0}
body.manager[data-page=support] main>.filters .filter-tabs{width:auto;flex:1}
body.manager[data-page=support] main>.filters select{max-width:99px;height:36px;font-size:13px}
@media(orientation:landscape) and (max-height:600px){body.manager .workbench>.status-filters{min-height:36px;padding-top:1px;padding-bottom:1px}}
