.attendance-workspace-tabs{display:grid;grid-template-columns:repeat(5,minmax(125px,1fr));gap:8px;margin:0 0 14px;padding:10px;border:1px solid #dce5f0;border-radius:11px;background:#fff;box-shadow:0 4px 14px rgba(31,49,77,.05)}
.attendance-workspace-tabs>a{display:flex;min-width:0;align-items:center;gap:9px;padding:10px 12px;border:1px solid #e2e9f2;border-radius:8px;color:#526178;background:#f9fbfd;cursor:pointer;box-sizing:border-box;transition:.16s ease}
.attendance-workspace-tabs>a:hover{color:#1f5fbd;border-color:#b9d0ef;background:#f3f8ff;transform:translateY(-1px)}
.attendance-workspace-tabs>a.is-active{color:#fff;border-color:#2563eb;background:linear-gradient(135deg,#2162d7,#3785ec);box-shadow:0 6px 16px rgba(37,99,235,.18)}
.attendance-workspace-tabs>a>i{display:flex;width:30px;height:30px;flex:0 0 auto;align-items:center;justify-content:center;border-radius:8px;color:#3172d1;background:#e9f2ff;font-size:16px}
.attendance-workspace-tabs>a.is-active>i{color:#fff;background:rgba(255,255,255,.18)}
.attendance-workspace-tabs>a span,.attendance-workspace-tabs>a strong,.attendance-workspace-tabs>a small{display:block;min-width:0}.attendance-workspace-tabs>a strong{font-size:11px}.attendance-workspace-tabs>a small{overflow:hidden;margin-top:3px;color:#8a98aa;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.attendance-workspace-tabs>a.is-active small{color:rgba(255,255,255,.78)}
.employee-calendar-page{padding:0 2px 24px;color:#24364d}
.employee-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 12px;padding:18px 22px;border-radius:12px;background:linear-gradient(118deg,#12366b,#176d8d);color:#fff;box-shadow:0 7px 20px rgba(27,58,103,.13)}
.employee-calendar-head>div:first-child>span{display:block;margin-bottom:5px;color:#7de5ff;font-size:9px;font-weight:800;letter-spacing:1.2px}.employee-calendar-head h2{margin:0 0 5px;color:#fff;font-size:22px}.employee-calendar-head p{margin:0;color:#d7e9f6;font-size:11px}
.employee-calendar-summary{display:grid;grid-template-columns:auto auto;align-items:center;gap:2px 9px;min-width:150px;padding-left:20px;border-left:1px solid rgba(255,255,255,.2)}.employee-calendar-summary strong{color:#fff;font-size:24px;line-height:1.1}.employee-calendar-summary span{color:#d6e8f5;font-size:9px}
.employee-calendar-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:9px;margin-bottom:10px;padding:12px 14px;border:1px solid #dae4f0;border-radius:10px;background:#fff}.employee-calendar-toolbar label>span{display:block;margin:0 0 5px;color:#617086;font-size:9px;font-weight:700}.employee-calendar-toolbar select{min-width:142px;height:32px;padding:0 28px 0 9px;border:1px solid #cdd8e6;border-radius:6px;background:#fff;color:#263b56}
.calendar-mode-switch{display:flex;overflow:hidden;border:1px solid #cdd8e6;border-radius:7px}.calendar-mode-switch button{height:32px;padding:0 11px;border:0;border-right:1px solid #dce4ee;background:#fff;color:#516277;font-size:10px;cursor:pointer}.calendar-mode-switch button:last-child{border-right:0}.calendar-mode-switch button i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#a6b2c1}.calendar-mode-switch button:first-child i{background:#e7a515}.calendar-mode-switch button:last-child i{background:#2683d8}.calendar-mode-switch button.is-active{color:#fff;background:#285fae;font-weight:700}.calendar-mode-switch button.is-active i{background:#fff}
.calendar-helper{height:32px;padding:0 10px;border:1px solid #c5d5e7;border-radius:6px;background:#f8fbff;color:#315c8a;font-size:10px;cursor:pointer}.calendar-helper:hover{border-color:#80a9dc;background:#eef6ff}.calendar-helper.is-danger{color:#a84141;border-color:#ecc3c3;background:#fff8f8}
.employee-calendar-legend{display:flex;align-items:center;flex-wrap:wrap;gap:15px;margin-bottom:10px;padding:8px 12px;border-radius:7px;background:#f6f8fb;color:#65748a;font-size:9px}.employee-calendar-legend span{display:flex;align-items:center;gap:5px}.employee-calendar-legend i{width:10px;height:10px;border-radius:3px;background:#fff;border:1px solid #ccd6e2}.employee-calendar-legend i.is-rest{background:#fff0c7;border-color:#edc15c}.employee-calendar-legend i.is-work{background:#dff0ff;border-color:#6ca9df}.employee-calendar-legend i.is-duty{background:#d9f5e7;border-color:#4bbd80}.employee-calendar-legend i.has-others{box-shadow:inset 0 -3px #9173dc}.employee-calendar-legend i.is-weekend{background:#f1f3f6}.employee-calendar-legend em{margin-left:auto;color:#324d6e;font-style:normal;font-weight:700}
.annual-calendar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.annual-month-card{min-width:0;padding:0 9px 9px;border:1px solid #dfe7f0;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(31,49,77,.04)}.annual-month-card header{display:flex;align-items:center;justify-content:space-between;height:36px;border-bottom:1px solid #edf1f5}.annual-month-card header strong{color:#294b73;font-size:12px}.annual-month-card header span{color:#708199;font-size:8px}.annual-week-head,.annual-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.annual-week-head{padding:7px 0 4px}.annual-week-head span{color:#8794a6;font-size:8px;text-align:center}.annual-day{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;height:34px;padding:0;border:1px solid transparent;border-radius:6px;background:#fbfcfe;color:#40536d;font:inherit;cursor:pointer}.annual-day:hover{border-color:#8bb2e3;background:#f0f6ff}.annual-day>span{font-size:9px}.annual-day>em{position:absolute;right:2px;top:2px;display:flex;align-items:center;justify-content:center;width:12px;height:12px;border-radius:50%;font-size:7px;font-style:normal;font-weight:800}.annual-day.is-weekend{background:#f1f3f6;color:#718096}.annual-day.is-rest{color:#8c5a08;border-color:#edc15c;background:#fff0c7}.annual-day.is-rest>em{color:#fff;background:#e7a515}.annual-day.is-work{color:#155f9e;border-color:#6ca9df;background:#dff0ff}.annual-day.is-work>em{color:#fff;background:#2683d8}.annual-day.is-duty{color:#14663c;border-color:#4bbd80;background:#d9f5e7}.annual-day.is-duty>em{color:#fff;background:#239b5d}.annual-day.has-others:after{content:'';position:absolute;right:3px;bottom:2px;width:5px;height:5px;border-radius:50%;background:#7555bf}.annual-day small{position:absolute;left:2px;right:2px;bottom:1px;overflow:hidden;color:#7459ad;font-size:6px;line-height:8px;text-overflow:ellipsis;white-space:nowrap}
.employee-calendar-savebar{position:sticky;z-index:5;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px;padding:11px 14px;border:1px solid #dce5ef;border-radius:9px;background:rgba(255,255,255,.96);box-shadow:0 -4px 15px rgba(30,49,75,.08);backdrop-filter:blur(7px)}.employee-calendar-savebar p{margin:0;color:#68778b;font-size:9px}.employee-calendar-empty{padding:50px;border:1px dashed #cbd6e3;border-radius:10px;background:#fff;color:#78879a;text-align:center}
.employee-shift-page{padding:0 2px 24px;color:#24364d}.employee-shift-filter{align-items:center}.employee-shift-filter>p{margin:17px 0 0;color:#76869a;font-size:9px}.employee-shift-form{margin-bottom:14px;padding:16px;border:1px solid #dce5ef;border-radius:11px;background:#fff;box-shadow:0 4px 14px rgba(31,49,77,.04)}
.employee-shift-form-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px;padding-bottom:13px;border-bottom:1px solid #edf1f5}.employee-shift-form-title strong,.employee-shift-form-title span{display:block}.employee-shift-form-title strong{color:#294b73;font-size:14px}.employee-shift-form-title>div:first-child span{margin-top:4px;color:#8a97a8;font-size:9px}
.employee-shift-grid{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,1fr) 105px minmax(150px,1fr) minmax(170px,1fr);align-items:end;gap:10px}.employee-shift-grid label>span,.employee-shift-reason>span{display:block;margin-bottom:6px;color:#607087;font-size:9px;font-weight:700}.employee-shift-grid select{width:100%;height:36px;padding:0 9px;border:1px solid #cad6e5;border-radius:7px;background:#fff;color:#293d58}.employee-shift-arrow{display:flex;height:36px;align-items:center;justify-content:center;gap:5px;color:#2b6ac7;font-size:9px}.employee-shift-arrow i{font-size:15px}.employee-shift-reason{display:block;margin-top:13px}.employee-shift-reason textarea{width:100%;min-height:68px;padding:10px;border:1px solid #cad6e5;border-radius:7px;color:#293d58;resize:vertical;box-sizing:border-box}.employee-shift-submit{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:13px}.employee-shift-submit p{margin:0;color:#68798e;font-size:9px}.employee-shift-submit p b{color:#2f5f9b}
.employee-shift-schedule-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px}.employee-shift-schedule-grid label>span{display:block;margin-bottom:6px;color:#607087;font-size:9px;font-weight:700}.employee-shift-schedule-grid select,.employee-shift-schedule-grid input{width:100%;height:36px;padding:0 9px;border:1px solid #cad6e5;border-radius:7px;background:#fff;color:#293d58;box-sizing:border-box}.employee-shift-current{margin-bottom:14px}.employee-shift-table-wrap td em.shift-day-rest{color:#9a6509;background:#fff0c7}.employee-shift-table-wrap td em.shift-day-work,.employee-shift-table-wrap td em.shift-type-schedule{color:#245fae;background:#e3efff}
.employee-shift-history{overflow:hidden;border:1px solid #dce5ef;border-radius:11px;background:#fff}.employee-shift-history>header{padding:13px 15px;border-bottom:1px solid #e9eef4}.employee-shift-history>header strong,.employee-shift-history>header span{display:block}.employee-shift-history>header strong{color:#294b73;font-size:13px}.employee-shift-history>header span{margin-top:4px;color:#929eac;font-size:8px}.employee-shift-table-wrap{overflow:auto}.employee-shift-table-wrap table{width:100%;min-width:900px;border-collapse:collapse}.employee-shift-table-wrap th,.employee-shift-table-wrap td{padding:10px 12px;border-bottom:1px solid #edf1f5;color:#45576d;font-size:9px;text-align:left}.employee-shift-table-wrap th{color:#63758b;background:#f7f9fc;font-weight:700}.employee-shift-table-wrap td strong,.employee-shift-table-wrap td small{display:block}.employee-shift-table-wrap td small{margin-top:3px;color:#8d99a8}.employee-shift-table-wrap td em{display:inline-block;padding:3px 8px;border-radius:99px;color:#176e45;background:#def5e8;font-style:normal}.employee-shift-table-wrap td em.shift-type-swap{color:#315fa8;background:#e4efff}.employee-shift-table-wrap .employee-shift-empty{padding:34px;color:#8996a6;text-align:center}
@media(max-width:1250px){.annual-calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-shift-grid,.employee-shift-schedule-grid{grid-template-columns:1fr 1fr}.employee-shift-arrow{grid-column:1/-1}.attendance-workspace-tabs{grid-template-columns:repeat(3,minmax(125px,1fr))}}@media(max-width:760px){.attendance-workspace-tabs{grid-template-columns:repeat(2,minmax(120px,1fr))}.employee-calendar-head{align-items:flex-start;flex-direction:column}.employee-calendar-summary{padding:10px 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.2)}.annual-calendar-grid{grid-template-columns:1fr}.employee-calendar-toolbar label,.employee-calendar-toolbar select{width:100%}.calendar-mode-switch{width:100%}.calendar-mode-switch button{flex:1}.employee-calendar-savebar,.employee-shift-form-title,.employee-shift-submit{align-items:stretch;flex-direction:column}.employee-calendar-savebar .layui-btn,.employee-shift-submit .layui-btn{width:100%}.employee-calendar-legend em{width:100%;margin-left:0}.employee-shift-grid,.employee-shift-schedule-grid{grid-template-columns:1fr}}
