/* Match the work-home icon palette. Presentation only: no record or event changes. */
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail){
 --nw-plan:#7768c7;--nw-plan-soft:#f0ecfc;--nw-work:#238e8b;--nw-work-soft:#e4f7f5;
 --nw-surface:#fff;--nw-border:#e3e8f0;--nw-ink:#253a55;--nw-muted:#687c94;
 --nw-accent:var(--nw-plan);--nw-accent-soft:var(--nw-plan-soft);
 color:var(--nw-ink);min-width:0!important;
}
#content:has(#attMonth){--nw-accent:var(--nw-work);--nw-accent-soft:var(--nw-work-soft)}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.card,.stat,.toolbar){box-sizing:border-box;min-width:0!important;max-width:100%}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .card{
 background:#fff!important;border:1px solid var(--nw-border)!important;border-radius:20px!important;
 padding:20px!important;box-shadow:0 5px 18px rgba(22,49,86,.035)!important;margin-bottom:18px;
}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .page-title{align-items:center;gap:16px;margin-bottom:20px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .page-title h2{
 display:flex;align-items:center;gap:12px;color:#142b49!important;font-size:24px!important;line-height:1.4!important;
}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .page-title h2::before{
 content:'';display:block;flex:none;width:44px;height:44px;border-radius:14px;background:var(--nw-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237768c7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M7 3v4m10-4v4M3 11h18m-13 4h2m4 0h2m-8 3h2'/%3E%3C/svg%3E") center/24px no-repeat;
}
#content:has(#attMonth) .page-title h2::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23238e8b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .page-title p{font-size:13px!important;color:var(--nw-muted)!important;line-height:1.7}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.btn,.actions button,.nw-assignment-heading button){
 min-height:40px;border-radius:11px!important;padding:9px 13px;font-size:12px!important;box-shadow:none!important;
}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .btn-primary{background:#347df1!important;color:#fff!important;border-color:#347df1!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .btn-soft{background:#f6f8fc!important;color:#465b79!important;border:1px solid #e1e8f1!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(button,input,select):focus-visible{outline:3px solid #b7d3f4!important;outline-offset:2px}
#content:has(#schedulePeriodMonth,#attMonth) .toolbar{
 display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px!important;background:#fff!important;
 border:1px solid var(--nw-border)!important;border-radius:17px!important;margin:0 0 16px!important;
}
#content:has(#schedulePeriodMonth,#attMonth) .toolbar :is(input,select){
 min-height:42px!important;border:1px solid #d8e2ef!important;border-radius:11px!important;
 background:#f9fbfd!important;color:var(--nw-ink)!important;font-size:13px!important;padding:9px 12px;max-width:100%;
}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-shift-note{font-size:12px!important;color:#687c94;white-space:normal!important;line-height:1.6}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-bottom:18px!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis)>.stat{
 position:relative;background:#fff!important;border:1px solid #e3e8f0!important;border-radius:17px!important;
 padding:18px!important;min-height:112px;box-shadow:0 4px 14px rgba(22,49,86,.025)!important;min-width:0!important;
}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis)>.stat::before{
 content:'';display:block;width:30px;height:5px;border-radius:4px;margin-bottom:12px;background:var(--nw-accent,#7768c7);
}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis)>.stat:nth-child(2)::before{background:#3c84d7}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis)>.stat:nth-child(3)::before{background:#239b98}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis)>.stat:nth-child(4)::before{background:#b88736}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis)>.stat small{font-size:12px!important;color:#687c94!important;font-weight:650}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis)>.stat b{font-size:24px!important;color:#253a55!important;line-height:1.5;white-space:normal!important;overflow-wrap:anywhere}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis)>.stat em{font-size:11px!important;color:#687c94!important;white-space:normal!important;font-style:normal;line-height:1.7}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-summary-grid>.schedule-actual-total{grid-column:1/-1;background:#f6f9fc!important;min-height:0;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;flex-wrap:wrap;gap:12px;padding:13px 18px!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-summary-grid>.schedule-actual-total::before{display:none}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-summary-grid>.schedule-actual-total b{font-size:15px!important;color:#238e8b!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-summary-grid>.schedule-actual-total em{font-size:13px!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .att-month-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .att-month-chip{border:1px solid #e3e8f0;background:#fff;border-radius:9px;padding:8px 12px;font-size:12px;min-height:36px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .att-month-chip.active{background:#e4f7f5!important;border-color:#b9e1df!important;color:#207b78!important}
/* Both calendars use the same weekday band, cell spacing and readable type. */
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-calendar-card,.attendance-calendar-card){overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#c9d3e1 #f5f7fa}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-calendar-inner,.attendance-calendar){width:100%;min-width:700px!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-weekdays,.attendance-week-head){display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0!important;border:0!important;margin:0!important;background:#f6f8fc!important;border-radius:12px 12px 0 0;padding:0!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-weekdays,.attendance-week-head)>span{padding:13px 0!important;text-align:center;font-size:12px!important;font-weight:700!important;color:#687c94!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-weekdays,.attendance-week-head)>span:first-child{color:#bf6573!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-weekdays,.attendance-week-head)>span:last-child{color:#4f86bf!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-calendar-grid,.attendance-calendar-grid){display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0!important;background:#fff!important;padding:0!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .day,#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-calendar-grid .attendance-cal-cell{
 box-sizing:border-box;min-width:0!important;min-height:136px!important;padding:10px!important;margin:0!important;
 display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;
 border:1px solid #edf1f6!important;border-radius:0!important;background:#fff!important;
 box-shadow:none!important;opacity:1!important;overflow:visible!important;text-align:left;
}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .day.other,#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-calendar-grid .attendance-cal-cell.empty{background:#fafbfd!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .day>b,#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-cal-cell .attendance-day-num{
 align-self:flex-start;display:inline-grid!important;place-items:center;box-sizing:border-box;min-width:28px;width:28px;height:28px;padding:0;border-radius:9px!important;
 background:transparent!important;color:#465b79!important;font-size:13px!important;font-weight:750!important;box-shadow:none!important;margin:0 0 6px;
}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .day.today>b,#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-cal-cell.today .attendance-day-num{background:var(--nw-accent-soft)!important;color:var(--nw-accent)!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .day.today,#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-cal-cell.today{box-shadow:inset 0 0 0 2px #d9d3f1!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-cal-cell.today{box-shadow:inset 0 0 0 2px #b7dfdc!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-cal-cell.selected{background:#f1faf9!important;box-shadow:inset 0 0 0 2px #239b98!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .events{display:flex;flex-direction:column;gap:7px!important;margin:2px 0 0!important;min-width:0}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .schedule-event{
 width:100%;height:auto!important;min-height:0;padding:9px!important;border:1px solid #e3def4!important;border-left:3px solid #a99adb!important;
 border-radius:10px!important;background:#f6f3fc!important;color:#65539e!important;white-space:normal!important;overflow:visible!important;line-height:1.5;text-align:left;
}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .schedule-event.running{background:#eff9f7!important;color:#217873!important;border-color:#d1eae6!important;border-left-color:#75bdb6!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .schedule-event.done{background:#f4f6f9!important;color:#63758c!important;border-color:#e4e9f0!important;border-left-color:#adbaca!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .schedule-event.selected{outline:2px solid #9584cf!important;outline-offset:1px;box-shadow:none!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .schedule-event>span{font-size:12px!important;font-weight:750;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;line-height:1.5}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .schedule-event small{font-size:11px!important;line-height:1.65!important;opacity:1;white-space:normal!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .schedule-event :is(.nw-schedule-planned-count,.nw-schedule-actual-count){width:auto;max-width:100%;padding:5px 6px!important;border-radius:6px;margin-top:6px!important;font-size:11px!important;overflow:visible;white-space:normal}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-schedule-planned-count{background:#f5eedf!important;color:#8e672e!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-schedule-actual-count{background:#e4f4ef!important;color:#257b63!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .nw-schedule-event-label{font-size:10px!important;font-weight:700}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .nw-schedule-event-person{display:inline!important;font-size:11px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.65}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .manpower-count{margin-top:auto!important;padding-top:10px!important;font-size:11px!important;color:#536a86!important;line-height:1.6}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .manpower-count small{font-size:10px!important;color:#7a899e}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-summary{margin-top:3px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-summary b{font-size:16px!important;color:#238e8b!important;line-height:1.6}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-summary :is(small,em){font-size:11px!important;line-height:1.6!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;font-style:normal}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-summary.blank small{font-size:10px!important;color:#a3afbd!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-leave-chip{font-size:10px!important;white-space:normal;line-height:1.6;background:#fff4e3;color:#92672a}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-cal-head{display:flex;justify-content:center;align-items:center;gap:24px;margin-bottom:18px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-cal-head h3{font-size:18px!important;color:#253a55}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-cal-head button{width:36px;height:36px;border:1px solid #e3e8f0;border-radius:10px;background:#f7f9fc;color:#687c94;font-size:22px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-legend{display:flex;flex-wrap:wrap;gap:16px;margin:8px 0;color:#687c94}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-legend span{background:transparent!important;color:#687c94!important;font-size:12px!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-legend .up i{background:#b6a7df!important}#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-legend .run i{background:#75bdb6!important}#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-legend .done i{background:#adbaca!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-schedule-calendar-note{font-size:12px!important;color:#687c94!important;line-height:1.7}
/* Detail tables keep common row heights, aligned numbers and full project names. */
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px!important;padding:0!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .panel-head h3{font-size:16px!important;color:#253a55!important;line-height:1.5;margin:0 0 4px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .panel-head small{font-size:12px!important;color:#7a899e!important;line-height:1.7}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.attendance-day-detail,.attendance-month-table,.employee-own-schedule,.nw-period-report) .table-wrap{overflow-x:auto!important;max-width:100%;border:1px solid #e6ecf3!important;border-radius:12px!important;box-shadow:none!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.attendance-day-detail,.attendance-month-table,.employee-own-schedule,.nw-period-report) .table{width:100%!important;min-width:720px!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.attendance-day-detail,.attendance-month-table,.employee-own-schedule,.nw-period-report) .table :is(th,td){
 box-sizing:border-box;padding:13px 12px!important;font-size:13px!important;line-height:1.65!important;
 border:0!important;border-bottom:1px solid #edf1f6!important;color:#465b79!important;text-align:left!important;
 white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere;vertical-align:middle!important;font-variant-numeric:tabular-nums;
}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.attendance-day-detail,.attendance-month-table,.employee-own-schedule,.nw-period-report) .table th{background:#f6f8fc!important;color:#687c94!important;font-size:12px!important;font-weight:700!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.attendance-day-detail,.attendance-month-table,.employee-own-schedule,.nw-period-report) .table tr:last-child td{border-bottom:0!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.attendance-day-detail,.attendance-month-table,.employee-own-schedule,.nw-period-report) .table tbody tr:nth-child(even){background:#fafbfd!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-month-table .table :is(th,td):nth-child(1){width:14%}#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-month-table .table :is(th,td):nth-child(2){width:16%}#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-month-table .table :is(th,td):nth-child(3){width:30%}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-month-table .table :is(th,td):nth-child(4){width:10%;text-align:center!important}#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-month-table .table :is(th,td):nth-child(5){width:10%;text-align:right!important}#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-month-table .table :is(th,td):nth-child(6){width:20%;text-align:center!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-detail .table :is(th,td):nth-child(1){width:16%}#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-detail .table :is(th,td):nth-child(2){width:23%}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-detail .table :is(th,td):nth-child(3),#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-detail .table :is(th,td):nth-child(4){width:9%;text-align:center!important}#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-detail .table :is(th,td):nth-child(5){width:8%;text-align:right!important}#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-detail .table :is(th,td):nth-child(6){width:18%;text-align:center!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-day-detail .actions{display:flex;flex-wrap:wrap;gap:5px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.attendance-day-detail,.attendance-month-table,.schedule-selected-detail) .badge,#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .status-badge{border-radius:7px!important;padding:4px 8px;font-size:11px!important;font-weight:650;white-space:nowrap}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-inline-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-inline-grid>div{min-width:0;padding:12px;background:#f8fafc;border:1px solid #edf1f6;border-radius:12px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-inline-grid>div.full{grid-column:1/-1}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-inline-grid small{font-size:11px!important;color:#7a899e!important;display:block;margin-bottom:6px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-inline-grid :is(b,p){font-size:13px!important;line-height:1.7;color:#465b79;overflow-wrap:anywhere}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-grid{gap:0}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-row{display:grid;grid-template-columns:110px minmax(0,1fr) 86px;gap:18px;align-items:start;padding:18px 0!important;border:0!important;border-bottom:1px solid #edf1f6!important;border-radius:0!important;background:#fff!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-row:last-child{border-bottom:0!important}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .date{font-size:13px!important;color:#465b79;line-height:1.7}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .count{text-align:right;background:#f8fafc;border-radius:12px;padding:10px;color:#687c94;font-variant-numeric:tabular-nums}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .count b{display:block;font-size:20px;color:#465b79}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-site-line{padding:0 0 14px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-site-line+.manpower-site-line{padding-top:14px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-site-line>b{font-size:13px;color:#465b79;overflow-wrap:anywhere}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-manpower,.schedule-selected-detail) .nw-schedule-person{padding:9px 12px;border-radius:10px;border-color:#e3e8f0;background:#fff}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-schedule-person.actual{border-left-color:#75bdb6}#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-schedule-person.planned{border-left-color:#d8bc88}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-assignment-panel{padding:16px;background:#f8fafc;border-color:#e3e8f0;border-radius:14px}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-assignment-worker{grid-template-columns:minmax(90px,1fr) minmax(160px,2fr) auto;gap:12px;padding:14px 0}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-assignment-worker>b{font-size:13px;color:#465b79}
@media(max-width:760px){
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .card{padding:14px!important;border-radius:16px!important;margin-bottom:14px}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .page-title{align-items:flex-start}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .page-title h2{font-size:20px!important;gap:9px}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .page-title h2::before{width:38px;height:38px;border-radius:12px}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .page-title>.row-wrap{width:100%;justify-content:flex-start;flex-wrap:wrap}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis)>.stat{padding:14px!important;min-height:105px}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-summary-grid,.attendance-kpis)>.stat b{font-size:22px!important}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-summary-grid>.schedule-actual-total{gap:7px 12px;min-height:0!important}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-summary-grid>.schedule-actual-total small{width:100%}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-calendar-card,.attendance-calendar-card)::before{content:'달력은 좌우로 밀어 확인하세요';display:block;position:sticky;left:0;margin-bottom:12px;color:#7a899e;font-size:11px;line-height:1.5}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-inline-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-row{grid-template-columns:minmax(0,1fr) 76px;gap:10px;padding:16px 0!important}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-row>.date{grid-column:1/-1;font-weight:750}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-row>.people{grid-column:1;grid-row:2}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-row>.count{grid-column:2;grid-row:2}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-assignment-worker{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-assignment-worker>div{grid-column:1;grid-row:2}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-assignment-worker>.btn{grid-column:2;grid-row:1/3}
 #content:has(#schedulePeriodMonth,#attMonth) .toolbar{padding:12px!important;gap:8px}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-toolbar>select{width:100%}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-calendar-sync{width:100%;margin-left:0}
}
@media print{
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-calendar-inner,.attendance-calendar){min-width:0!important}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-calendar-card,.attendance-calendar-card){overflow:visible!important}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.schedule-calendar-card,.attendance-calendar-card)::before{display:none}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .card{box-shadow:none!important;border-radius:0!important;padding:8px!important}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) :is(.attendance-day-detail,.attendance-month-table,.employee-own-schedule,.nw-period-report) .table{min-width:0!important}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-calendar-grid .day,#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .attendance-calendar-grid .attendance-cal-cell{min-height:90px!important;padding:5px!important}
 #content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .schedule-manpower .manpower-row{break-inside:avoid}
}
/* Long worker names must wrap inside the first column, including bold labels. */
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .table td :is(b,small){white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;max-width:100%}
#content:has(#attMonth) .attendance-day-detail .table td>b{display:block}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-table-scrollbar{border:1px solid #e3e8f0;border-radius:10px;background:#f8fafc;padding:9px 11px;color:#687c94;font-size:11px;gap:8px;flex-wrap:wrap}
#content:has(#schedulePeriodMonth,#attMonth,.schedule-selected-detail) .nw-table-scrollbar button{border:1px solid #dce5f0;border-radius:7px;background:#fff;color:#465b79;min-height:32px}
