html body #payrollForm .payroll-sections{display:grid!important;grid-template-columns:1fr!important;gap:18px!important}
html body #payrollForm .payroll-input-section{min-width:0;margin:0;padding:16px;border:1px solid color-mix(in srgb,var(--theme-font,#24364c) 12%,transparent);border-radius:16px;background:var(--theme-background,#fff)}
html body #payrollForm .payroll-input-section legend{display:flex;gap:10px;align-items:center;padding:0 8px;font-size:14px;font-weight:600;color:var(--theme-font,#24364c)}
html body #payrollForm legend>span{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:color-mix(in srgb,var(--theme-button,#315f9f) 12%,var(--theme-background,#fff));color:var(--theme-button,#315f9f);font-size:12px}
html body #payrollForm .payroll-section-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html body #payrollForm .payroll-section-fields>label{min-width:0;margin:0}
html body #payrollForm .payroll-section-fields>.wide-field{grid-column:1/-1}
html body #payrollForm :is(.payroll-daily-note,.payroll-funding-preview){margin:14px 0 0;padding:14px;border-radius:12px;background:color-mix(in srgb,var(--theme-button,#315f9f) 7%,var(--theme-background,#fff));font-size:12px;line-height:1.7;color:var(--theme-font,#24364c)}
html body #payrollForm .payroll-funding-preview>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
html body #payrollForm .payroll-funding-preview>div+div{margin-top:10px;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--theme-font,#24364c) 12%,transparent)}
html body #payrollForm .over-budget{background:color-mix(in srgb,#c54552 9%,var(--theme-background,#fff));color:#a72d3d}
html body #payrollForm input[readonly]{background:color-mix(in srgb,var(--theme-button,#315f9f) 5%,var(--theme-background,#fff))}
html body #payrollForm .payroll-total{margin-top:18px;border-radius:16px;padding:20px;background:color-mix(in srgb,var(--theme-button,#315f9f) 12%,var(--theme-background,#fff));color:var(--theme-font,#24364c)}
html body #payrollForm :is(.payroll-input-section,.payroll-daily-note)[hidden]{display:none!important}
@media(max-width:700px){html body #payrollPanel>.section-intro>div{display:none!important}html body #payrollPanel>.section-intro{min-height:0!important;padding-top:0!important;margin-top:0!important}}
@media(max-width:700px){html body #payrollFormDialog{width:calc(100% - 24px)!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;border-radius:22px!important}html body #payrollFormDialog>.dialog-head{position:sticky;top:0;z-index:3;background:var(--theme-background,#fff)}html body #payrollForm{padding:16px!important}html body #payrollForm .payroll-section-fields{grid-template-columns:1fr}html body #payrollForm .payroll-input-section{padding:14px}html body #payrollForm .form-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}html body #payrollForm .form-actions>button{width:100%;min-height:46px;border-radius:12px}html body #payrollForm .payroll-attendance-summary{margin-top:18px}}
html body #payrollFilter label[hidden]{display:none!important}html body #payrollFilter{grid-template-columns:minmax(160px,1fr) repeat(2,minmax(0,1fr)) auto}html body .payroll-history-pagination{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;margin-top:18px;padding:16px 0 0;border-top:1px solid color-mix(in srgb,var(--theme-font,#24364c) 12%,transparent)}html body .payroll-history-pagination>span{text-align:center;font-size:12px;line-height:1.6;opacity:.75}html body .payroll-history-pagination button{min-height:44px;min-width:110px;border-radius:12px}html body #payrollFilter:has(#payrollHistoryScope option[value=all]:checked){grid-template-columns:minmax(0,1fr) auto}
@media(max-width:700px){html body #payrollFilter{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}html body #payrollFilter>label:first-child,html body #payrollFilter>button{grid-column:1/-1}html body .payroll-history-pagination{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html body .payroll-history-pagination>span{grid-column:1/-1;grid-row:1}html body .payroll-history-pagination button{width:100%;min-width:0;font-size:12px}}
html body #payrollForm [data-payroll-other][hidden]{display:none!important}
html body #payrollFilter:has(#payrollHistoryScope option[value=all]:checked){grid-template-columns:repeat(3,minmax(0,1fr)) auto}html body #payrollFilter{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}html body #payrollFilter>label{min-width:0}html body #payrollFilter select{width:100%;min-width:0}html body #payrollFilter>button{min-height:46px}
@media(max-width:700px){html body #payrollFilter{grid-template-columns:1fr!important}html body #payrollFilter>label,html body #payrollFilter>button{grid-column:1/-1}}
.payroll-mobile-summary{display:none}
@media screen and (max-width:700px){
 html body #adminView #payrollPanel .table-wrap{padding:10px!important}
 html body #adminView #payrollPanel #payrollRows{display:grid!important;gap:10px!important;padding:0!important}
 html body #adminView #payrollPanel #payrollRows>tr.payroll-mobile-compact{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;height:auto!important;min-height:68px!important;min-width:0;margin:0!important;padding:0!important;border:1px solid var(--mobile-line,color-mix(in srgb,var(--theme-font) 12%,transparent))!important;border-radius:13px!important;background:var(--mobile-soft,var(--theme-background))!important;box-shadow:none!important;overflow:hidden!important}
 html body #adminView #payrollPanel #payrollRows>tr.payroll-mobile-compact:not(.payroll-mobile-expanded)>td:not(.payroll-mobile-summary){display:none!important}
 html body #adminView #payrollPanel #payrollRows td.payroll-mobile-summary{display:block!important;grid-column:1/-1!important;width:100%!important;height:66px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important}
 html body #adminView #payrollPanel #payrollRows td.payroll-mobile-summary:before{display:none!important;content:none!important}
 html body #adminView #payrollPanel .payroll-mobile-summary>button{display:grid!important;grid-template-columns:minmax(0,1fr) auto 14px!important;align-items:center;gap:10px;width:100%!important;min-width:0!important;height:66px!important;min-height:66px!important;max-height:66px!important;padding:10px 12px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--mobile-ink,var(--theme-font))!important;box-shadow:none!important;text-align:left!important;font-family:inherit;white-space:normal!important}
 html body #adminView #payrollPanel .payroll-mobile-summary>button>span:first-child{display:grid;gap:5px;min-width:0}
 html body #adminView #payrollPanel .payroll-mobile-summary strong{font-size:12px;line-height:1.4;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html body #adminView #payrollPanel .payroll-mobile-summary small{font-size:10px;line-height:1.4;font-weight:400;opacity:.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html body #adminView #payrollPanel .payroll-mobile-summary b{font-size:12px;line-height:1.4;font-weight:650;white-space:nowrap}
 html body #adminView #payrollPanel .payroll-card-chevron svg{display:block;width:14px;height:14px;transition:transform .2s}
 html body #adminView #payrollPanel .payroll-mobile-expanded .payroll-card-chevron svg{transform:rotate(180deg)}
 html body #adminView #payrollPanel #payrollRows>tr.payroll-mobile-expanded{padding:0 12px 10px!important}
 html body #adminView #payrollPanel #payrollRows>tr.payroll-mobile-expanded>td:not(.payroll-mobile-summary){min-width:0;padding:10px 0!important;font-size:11px!important;line-height:1.6;overflow-wrap:anywhere}
 html body #adminView #payrollPanel #payrollRows>tr.payroll-mobile-expanded>td:last-child{grid-column:1/-1!important}
 html body #adminView #payrollPanel #payrollRows>tr.payroll-mobile-expanded [data-view-payroll]{width:100%;min-height:44px;border-radius:12px;font-size:12px}
}
