/* Scoped attendance layout; no data or calculation changes. */
body #staffAttPage .staff-dashboard,body #staffAttPage .staff-mode-panel{padding:12px!important;margin:8px 0!important;border-radius:12px!important;box-shadow:none!important;}
body #staffAttPage .staff-mode-panel>h3,body #staffAttPage .staff-dashboard>h3{font-size:17px!important;line-height:1.3!important;margin:0 0 10px!important;color:#34483d!important;}
body #staffAttPage .staff-mode-tabs{gap:3px!important;padding:3px!important;margin:8px 0 0!important;}
body #staffAttPage .staff-mode-tabs button{min-height:44px!important;padding:6px 3px!important;font-size:12px!important;}
body #staffAttPage .staff-mode-panel :is(.v952-field,.v954-field,.v954-preset){margin:0 0 9px!important;gap:4px!important;}
body #staffAttPage .staff-mode-panel label{font-size:13px!important;line-height:1.35!important;margin-bottom:4px!important;}
body #staffAttPage .staff-mode-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){box-sizing:border-box!important;min-height:44px!important;padding:8px 10px!important;font-size:14px!important;border-radius:9px!important;max-width:100%;margin-top:0!important;}
body #staffAttPage .staff-mode-panel select[multiple]{height:auto!important;min-height:100px!important;}
body #staffAttPage .staff-mode-panel :is(.btn,.type-quickbar button){min-height:44px!important;padding:7px 10px!important;font-size:13px!important;border-radius:9px!important;}
body #staffAttPage .staff-mode-panel .type-quickbar{gap:5px!important;margin:4px 0 0!important;flex-wrap:wrap!important;}
body #staffAttPage .staff-mode-panel .type-quickbar button{background:#edf1ed!important;color:#465e50!important;border-color:#dce4dd!important;}
body #staffAttPage .staff-mode-panel .type-quickbar button:is(.active,.selected,[aria-pressed=true]){background:#34483d!important;color:white!important;}
body #staffAttPage .ms86-period{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px!important;margin:0 0 10px!important;padding:0!important;align-items:center;}
body #staffAttPage .ms86-period-title{grid-row:1;grid-column:1;font-size:14px!important;color:#34483d!important;margin:0!important;}
body #staffAttPage .ms86-period-title small{display:none!important;}
body #staffAttPage .ms86-period-row{grid-row:2;grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin:0!important;}
body #staffAttPage .ms86-period-row .v952-field{margin:0!important;min-width:0;}
body #staffAttPage .ms86-period-status{grid-row:1;grid-column:2;margin:0!important;padding:0!important;font-size:12px!important;text-align:right;}
body #staffAttPage .v952-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;margin:8px 0 0!important;}
body #staffAttPage #clearRecord{order:-1;}
body #staffAttPage :is(#v76attendanceCard,.ms55-management){padding:0!important;margin:8px 0!important;border:1px solid #e1e5e2!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important;min-height:0!important;}
body #staffAttPage :is(#v76attendanceCard,.ms55-management)>summary{box-sizing:border-box!important;min-height:48px!important;height:auto!important;padding:8px 12px!important;margin:0!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:6px!important;line-height:1.25!important;}
body #staffAttPage :is(#v76attendanceCard,.ms55-management)>summary strong{font-size:14px!important;color:#34483d!important;white-space:nowrap;}
body #staffAttPage :is(#v76attendanceCard,.ms55-management)>summary small{font-size:10px!important;color:#79857e!important;margin:0!important;line-height:1.2!important;}
body #staffAttPage .ms55-management>summary>span:first-child{display:flex!important;align-items:center;flex:1;gap:6px!important;}
body #staffAttPage #v76attendanceCard[open]>:not(summary){margin-left:12px!important;margin-right:12px!important;}
body #staffAttPage .history-filter58{gap:8px!important;margin:0 0 8px!important;}
body #staffAttPage .staff-mode-panel .v954-time-panel:not(.hidden){padding:10px!important;margin:8px 0!important;}
@media(max-width:380px){body #staffAttPage :is(#v76attendanceCard,.ms55-management)>summary small{display:none!important;}}
