/* Shared screen layout; financial calculations and export styles are independent. */
@media screen {
 .sys-layout .main{min-width:0;max-width:none}
 .sys-layout .topbar{height:auto;min-height:44px;margin:0 0 6px;padding:0;gap:12px;flex-shrink:0}
 .sys-layout .topbar>div:first-child{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
 .sys-layout .eyebrow{margin:0;letter-spacing:0}
 .sys-layout .main>footer{display:none}
 .sys-layout :is(.toolbar,.page-head,.section-title){margin-bottom:8px;gap:10px}
 .sys-layout :is(.toolbar,.page-head,.section-title) h2{font-size:20px;margin:0;line-height:1.4}
 .sys-layout :is(.toolbar,.page-head,.panel-head) p{margin:2px 0 0;line-height:1.4}
 .sys-layout .inline-form{gap:6px;flex-wrap:wrap}
 .sys-layout :is(input,select,.button,.primary-button,.secondary-button){min-height:34px;padding-top:5px;padding-bottom:5px}
 .sys-layout input[type=checkbox],.sys-layout input[type=radio]{min-height:0}
 .sys-layout .sys-content>.panel,.sys-layout .sys-section>.panel{margin-bottom:8px}
 .sys-layout .sys-content .table-panel>.panel-head{padding:8px 14px;margin:0}
 .sys-layout .summary-strip{margin-bottom:8px}
 .sys-layout .summary-strip>div{padding:8px 12px;display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}
 .sys-layout .summary-strip b{font-size:22px;margin:0;line-height:1.3}
 .sys-layout .section-nav,.sys-layout .task-status-tabs{position:static;gap:6px;margin-bottom:8px}
 .sys-layout .section-nav>a,.sys-layout .task-status-tabs>a{padding:5px 10px;min-height:32px}
 .sys-content{min-width:0;min-height:0;overflow:auto;scrollbar-gutter:stable}
 .sys-section-tabs{display:flex;flex:0 0 auto;align-items:center;gap:5px;padding:5px;border:1px solid #dce7e3;border-radius:9px;background:#f0f6f3;overflow-x:auto;margin:0 0 8px}
 .sys-section-tabs button{font:inherit;min-height:34px;white-space:nowrap;padding:5px 12px;border:1px solid transparent;background:transparent;border-radius:6px;color:#506374;cursor:pointer}
 .sys-section-tabs button[aria-selected=true]{background:#fff;border-color:#b5d9ce;color:#11735f;font-weight:700;box-shadow:0 1px 4px #16243c08}
 .sys-section-tabs button:focus-visible{outline:2px solid #168b76;outline-offset:1px}
 .sys-section-area,.sys-section{min-width:0;min-height:0}
 .sys-section[hidden],.sys-layout [hidden].payroll-section-nav{display:none!important}
 .sys-section{overflow:auto;scrollbar-gutter:stable}
 .sys-layout .sys-fit-scroll{overflow:auto;overscroll-behavior:contain;max-height:var(--sys-available,60dvh)!important;min-width:0;position:relative}
 .sys-layout .sys-fit-scroll th{position:sticky;top:0;z-index:3;background:#f3f7f9}
 .sys-layout .sys-fit-scroll table{width:100%}
 .sys-layout .sys-fit-scroll :is(th,td){padding:8px 12px;line-height:1.45;vertical-align:middle}
 .sys-layout .sys-fit-scroll .ws-key-cell{left:0}
 .sys-layout .ws-create-panel>summary{padding:8px 12px}
 .sys-layout .sys-drawer-owner>summary{cursor:pointer;min-height:34px}
 .sys-layout .sys-drawer-owner[open]{overflow:visible}
 .sys-drawer{position:fixed;inset:12px 12px 12px auto;margin:0;width:min(940px,calc(100vw - 24px));max-width:none;height:calc(100dvh - 24px);max-height:none;padding:0;border:1px solid #d6e3dc;border-radius:12px;box-shadow:0 16px 64px #12213340;color:#17263a;background:#fff;overflow:hidden}
 .sys-drawer[open]{display:flex;flex-direction:column}
 .sys-drawer::backdrop{background:#14233966}
 .sys-drawer-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #dfe8e3;background:#f8fbfa}
 .sys-drawer-head h2{font-size:19px;margin:0;line-height:1.4;min-width:0}
 .sys-drawer-body{flex:1;min-height:0;overflow:auto;padding:16px;scrollbar-gutter:stable}
 .sys-drawer-body>.ws-create-content{padding:0}
 .sys-drawer-body form{max-width:100%;min-width:0}
 .sys-drawer-body :is(.expense-form,.task-create-form,.staff-create-form,.account-row,.lesson-form){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .sys-drawer-body label{min-width:0;display:grid;gap:5px;align-content:start;white-space:normal}
 .sys-drawer-body label:has(input[type=checkbox]){display:flex;align-items:center}
 .sys-drawer-body label :is(input,select,textarea){width:100%;max-width:100%;box-sizing:border-box}
 .sys-drawer-body label input[type=checkbox]{width:16px}
 .sys-drawer-body .wide{grid-column:1/-1}
 .sys-drawer-body :is(.salary-submit,.account-actions){position:sticky;bottom:-16px;z-index:3;background:#fff;padding:10px 0;border-top:1px solid #dfe8e3}
 .sys-existing-dialog{max-height:calc(100dvh - 28px)!important;max-width:calc(100vw - 24px);overscroll-behavior:contain}
 .sys-existing-dialog>header,.sys-existing-dialog>.cost-dialog-head{position:sticky;top:0;z-index:5;background:#fff}
 .sys-existing-dialog>footer{position:sticky;bottom:0;z-index:5;background:#fff}
 .sys-layout .lesson-board{grid-template-columns:1fr;gap:8px}
 .sys-layout .lesson-card{padding:12px 14px}
 .sys-layout .lesson-card-head{align-items:center}
 .sys-layout .lesson-glance{margin:6px 0;gap:10px}
 .sys-layout .ws-crm-overview{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start}
 .sys-layout .crm-funnel{padding:8px 12px!important;margin:0 0 8px!important}
 .sys-layout .crm-funnel .panel-head{display:none}
 .sys-layout .crm-funnel .funnel-list>a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px}
 .sys-layout .crm-funnel .funnel-list{gap:5px}
 .sys-layout .quality-hero{margin-bottom:8px}
 .sys-layout .quality-hero>article{padding:9px 14px}
 .sys-layout .quality-checks{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
 .sys-layout .quality-check{padding:12px}
 .sys-layout .quality-check h4{margin:7px 0;font-size:16px}
 .sys-layout .ws-launcher-grid{gap:8px;margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}
 .sys-layout .ws-launcher{padding:12px 14px;gap:5px}
 .sys-layout .ws-launcher span{line-height:1.45}
 .sys-layout .payroll-primary-summary{gap:0;margin-bottom:8px;border:1px solid #dde6e0;border-radius:9px;overflow:hidden}
 .sys-layout .payroll-primary-summary article{padding:8px 12px;min-height:0;border-radius:0}
 .sys-layout .payroll-primary-summary strong{font-size:22px;margin:4px 0}
 .sys-layout .payroll-toolbar{margin-bottom:8px;gap:10px}
 .sys-layout .payroll-list .payroll-card{margin-bottom:0}
 .sys-layout .payroll-list{overflow:auto;max-height:var(--sys-available,60dvh)}
 .sys-layout .payroll-person-body .salary-submit{bottom:0}
 .sys-layout .sync-page{gap:8px}
 .sys-layout .sync-console{padding:12px 16px}
 .sys-layout .sync-meta{margin:8px 0}
 .sys-layout .co-toolbar{margin-bottom:6px;padding:8px 0}
 .sys-layout .co-period-note{margin:0 0 6px}
 .sys-layout .co-finance{margin-bottom:8px}
 .sys-layout .co-kpi{padding:10px 14px;min-height:0}
 .sys-layout .co-kpi strong{font-size:25px;margin:4px 0}
 .sys-layout .co-focus{padding:10px 14px;margin-bottom:8px}
 .sys-layout .co-focus-grid{gap:8px}
 .sys-layout .co-focus-grid>a{padding:8px 12px}
 .sys-layout .co-focus-grid b{font-size:23px;margin:3px 0}
 .sys-layout .monthly-priority-grid{gap:8px}
 .sys-layout .monthly-priority{padding:9px 12px}
 .sys-layout .monthly-priority p{margin:4px 0}
 .sys-layout .co-monthly-workspace{margin-top:8px}
 .sys-layout .ov-panel{padding:12px 14px}
 .sys-layout .ov-analysis{gap:10px}
 .sys-layout .tc :is(.tc-toolbar,.tc-filter-panel){margin-bottom:8px}
 .sys-layout .expenses-page{min-height:0}
 .sys-layout .expenses-page .expense-toolbar{margin-bottom:8px}
 .sys-layout #learning-app .learning-controls{padding-top:8px;padding-bottom:8px}
}
@media screen and (min-width:1000px){
 .sys-layout .main{display:flex;flex-direction:column;height:100dvh;min-height:600px;padding:8px 24px 12px;overflow:hidden}
 .sys-layout .main>.topbar,.sys-layout .main>.notice{flex:0 0 auto}
 .sys-layout .sys-content{flex:1 1 0}
 .sys-layout .main>:is(.tc,.co,.expenses-page,#learning-app,#checkin-app,#schedule-app){min-height:0;flex:1 1 0;overflow:auto}
 .sys-layout .sys-section-area{display:flex;flex-direction:column;flex:1;min-height:0}
 .sys-layout .sys-section:not([hidden]){flex:1}
 .sys-layout .student-profile-layout{grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr)}
 .sys-layout .student-profile-layout>.sys-drawer-owner{align-self:start}
 .sys-layout .payroll-page{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden}
 .sys-layout .payroll-page>.sys-section-area{overflow:hidden}
 .sys-layout .sys-drawer .salary-form{grid-template-columns:repeat(4,minmax(0,1fr))}
 .sys-layout .sys-drawer .payroll-details{padding:0}
 .sys-layout .sys-drawer .salary-field-group{padding:10px;gap:8px}
}
@media screen and (max-width:999px){
 .sys-layout .main{padding:8px 14px 18px}
 .sys-layout .quality-checks,.sys-layout .ws-launcher-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sys-layout .sys-content{overflow:visible}
 .sys-layout .sys-section{max-height:75dvh}
 .sys-layout .sys-drawer .salary-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:720px){
 .sys-layout .topbar{min-height:58px}
 .sys-layout .topbar>div:first-child{display:block}
 .sys-layout .sys-fit-scroll{max-height:min(var(--sys-available,65dvh),70dvh)}
 .sys-layout .ws-crm-overview{display:block}
 .sys-layout .quality-checks,.sys-layout .ws-launcher-grid{grid-template-columns:1fr}
 .sys-layout .sys-drawer{inset:0;width:100vw;height:100dvh;border-radius:0;max-height:100dvh!important}
 .sys-drawer-body{padding:12px}
 .sys-drawer-body :is(.expense-form,.task-create-form,.staff-create-form,.account-row,.lesson-form){grid-template-columns:1fr}
 .sys-layout .sys-drawer .salary-form{grid-template-columns:1fr}
 .sys-layout :is(.button,.primary-button,.secondary-button,input,select){min-height:40px}
 .sys-layout .sys-section-tabs button{min-height:40px}
}
@media print{
 .sys-section-tabs{display:none!important}
 .sys-content,.sys-section-area,.sys-section,.sys-fit-scroll{display:block!important;overflow:visible!important;height:auto!important;max-height:none!important}
 .sys-section[hidden]{display:block!important}
 .sys-drawer-owner>dialog:not([open]){display:none!important}
 .sys-drawer-head{display:none}
}

@media screen{.auth-page{padding:16px;min-height:100dvh;display:grid;place-items:center}.auth-card{width:min(100%,460px);max-height:calc(100dvh - 32px);overflow:auto;margin:auto}.auth-form{gap:12px}.auth-form input{font-size:16px;min-height:40px}.slip-page{max-width:1100px;padding-top:14px}.slip-page>.actions{position:sticky;top:0;z-index:5;background:#eef2f5;padding:8px 0}.slip-page .slip{font-size:15px}}

@media screen{
 .sys-layout .co{gap:6px}
 .sys-layout .co .co-tabs{min-height:34px;gap:22px}
 .sys-layout .co .co-tabs a{padding:7px 0}
 .sys-layout .co .co-toolbar{padding:3px 0;margin:0;gap:8px}
 .sys-layout .co .co-toolbar>div:first-child{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
 .sys-layout .co .co-toolbar h2{margin:0;font-size:20px}
 .sys-layout .co .co-toolbar p,.sys-layout .co .co-period-note{margin:0;line-height:1.4}
 .sys-layout .co .co-finance{gap:0;margin:0}
 .sys-layout .co .co-kpi{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:8px 12px;min-height:0}
 .sys-layout .co .co-kpi strong{font-size:24px;line-height:1.3;margin:0}
 .sys-layout .co .co-kpi small{grid-column:1/-1;line-height:1.4}
 .sys-layout .co .co-warning{margin:0;padding:6px 10px;line-height:1.4}
 .sys-layout .co .sys-monthly-priorities{font-size:14px;line-height:1.5;margin:0}
 .sys-layout .co .sys-monthly-priorities>summary{padding:4px 10px;background:#fff;border:1px solid #dce7e2;border-radius:7px;color:#28755f}
 .sys-layout .co .co-monthly-workspace{margin:0}
 .sys-layout .co .co-monthly-workspace>div{padding:8px 12px}
 .sys-layout .co .co-subtabs{min-height:34px;gap:20px}
 .sys-layout .co .co-subtabs a{padding:7px 0}
 .sys-layout .co .monthly-card{padding:8px 12px!important;margin-bottom:8px!important}
 .sys-layout .co .monthly-stats{margin:5px 0;gap:8px}
 .sys-layout .co .monthly-stats>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
 .sys-layout .co .monthly-stats dd{font-size:21px;margin:0}
 .sys-layout .co .monthly-card-note{margin:4px 0;line-height:1.4}
 .sys-layout .co .monthly-card>.text-link{margin-top:2px}
 .sys-layout .co .co-class-filter{padding:4px 0;margin:0 0 6px;gap:6px}
 .sys-layout .co .report-class-table .panel-head{padding:6px 10px}
 .sys-layout .co .report-class-notes{padding:4px 10px;margin:0}
 .sys-layout .co .report-class-table .table-scroll :is(td,th){padding:6px 9px;line-height:1.35}
 .sys-layout .co .report-class-table td small{line-height:1.3;margin-top:1px}
 .sys-layout .co .monthly-footnote{margin:0;line-height:1.4}
 .sys-layout #sync-workspace .sync-facts{gap:8px;margin:8px 0}
 .sys-layout #sync-workspace .sync-console{padding:10px 14px}
 .sys-layout #sync-workspace .sync-total{margin:6px 0}
}

@media screen and (min-width:1000px){
 .sys-layout .co [data-monthly-panel=classes]>.monthly-card{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 18px;padding:7px 10px!important}
 .sys-layout .co [data-monthly-panel=classes]>.monthly-card>.monthly-card-head{flex:0 0 auto;gap:12px}
 .sys-layout .co [data-monthly-panel=classes] .monthly-stats{display:contents}
 .sys-layout .co [data-monthly-panel=classes] .monthly-stats>div{gap:6px}
 .sys-layout .co [data-monthly-panel=classes] .monthly-card-note{flex-basis:100%;margin:0}
 .sys-layout .co [data-monthly-panel=classes] .monthly-card>.text-link{margin:0}
 .sys-layout .co .report-class-table.table-panel>.panel-head{padding:6px 10px!important}
 .sys-layout .co .report-class-table>.panel-head>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
 .sys-layout .co .report-class-table .panel-head p{margin:0}
 .sys-layout .co .report-class-notes{padding:4px 10px!important;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
 .sys-layout .co .report-class-notes p{display:inline;margin:0!important}
 .sys-layout .co .report-class-table td:nth-child(5)>small:first-of-type{display:inline;margin-left:6px}
}

@media screen and (min-width:1000px){
 .sys-classes .sys-finance-context>summary{padding:5px 10px;background:#fff;border:1px solid #dce7e2;border-radius:7px;color:#315b50;font-size:14px;line-height:1.5}
 .sys-classes .co [data-monthly-panel=classes]>.monthly-card{gap:2px 18px;padding:5px 10px!important}
 .sys-classes .co [data-monthly-panel=classes]>.monthly-card>.monthly-card-head,.sys-classes .co [data-monthly-panel=classes]>.monthly-card>.text-link{display:none}
 .sys-classes .co [data-monthly-panel=classes] .monthly-stats dd{font-size:19px}
 .sys-classes .co .report-class-table .table-scroll :is(td,th){padding-top:3px!important;padding-bottom:3px!important}
 .sys-classes .co .report-class-table td small{font-size:13px;line-height:18px}
}
@media screen and (max-width:999px){.sys-finance-context>summary{padding:8px;background:#fff;border:1px solid #dce7e2;border-radius:7px;font-size:14px;line-height:1.6}}

@media screen and (min-width:1000px){
 .sys-classes .co .co-toolbar{min-height:36px}
 .sys-classes .co .report-class-table>.panel-head{padding-top:3px!important;padding-bottom:3px!important}
 .sys-classes .co .report-class-notes{padding-top:2px!important;padding-bottom:2px!important;font-size:13px}
 .sys-classes .co [data-monthly-panel=classes]>.monthly-card .monthly-card-note{font-size:13px;line-height:1.3}
 .sys-classes .co .report-class-table .table-scroll :is(td,th){padding-top:2px!important;padding-bottom:2px!important}
 .slip-page{max-width:1320px;padding:14px 20px 20px}
 .slip-page .actions{margin-bottom:10px}
 .slip-page .slip-head{padding:16px 24px}
 .slip-page .slip-head h1{font-size:24px}
 .slip-page .slip-body{padding:16px 24px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:0 22px;align-items:start}
 .slip-body>.section-title:first-child{grid-column:1;grid-row:1}
 .slip-body>.info-grid{grid-column:1;grid-row:2;margin:0}
 .slip-body>.section-title:nth-child(3){grid-column:2;grid-row:1}
 .slip-body>.salary-lines{grid-column:2;grid-row:2/4}
 .slip-body>.note{grid-column:1;grid-row:3;margin-top:10px;max-height:180px;overflow:auto}
 .slip-page .info-grid div{padding:9px 11px}
 .slip-page .info-grid span{font-size:13px}
 .slip-page .info-grid b{font-size:16px;margin-top:3px}
 .slip-page .salary-line{padding:7px 12px;font-size:15px;line-height:1.45}
 .slip-page .salary-line.total{padding:10px 12px}
 .slip-page .slip-foot{padding:0 24px 12px}
}

@media screen and (min-width:1000px){.sys-classes .co{gap:4px}}

.sys-print-finance{display:none}
@media print{.sys-print-finance{display:block!important}.sys-finance-context{display:none!important}}

/* Existing pages share a compact frame; content remains at a readable size. */
@media screen{
 .sys-layout .topbar h1{font-size:22px;line-height:1.3;margin:0}
 .sys-layout .topbar .eyebrow{font-size:13px}
 .sys-layout .sys-drawer-head{padding:8px 14px;min-height:48px;box-sizing:border-box}
 .sys-layout .sys-drawer-head h2{font-size:18px;white-space:normal;overflow-wrap:anywhere}
 .sys-layout .sys-drawer-head>button{flex:0 0 auto;width:auto;white-space:nowrap;min-width:60px}
 .sys-layout .sys-drawer-body{padding:12px}
 .sys-layout .sys-drawer-body :is(.salary-submit,.account-actions){position:static;padding:10px;margin-top:8px}
 .sys-layout .payroll-page .payroll-primary-summary article{padding:7px 10px;min-height:0}
 .sys-layout .payroll-page .payroll-primary-summary strong{font-size:22px;margin:3px 0}
 .sys-layout .payroll-page .payroll-primary-summary small{font-size:12px;line-height:1.35}
 .sys-layout .payroll-page .payroll-person-row{min-height:56px;padding:8px 12px;gap:10px}
 .sys-layout .payroll-page .payroll-list{display:block}
 .sys-layout .sys-salary-drawer{width:min(1360px,calc(100vw - 24px))}
 .sys-layout .sys-salary-drawer .payroll-person-body{padding:0}
 .sys-layout .sys-salary-drawer .payroll-person-actions{padding:0 0 8px;gap:6px;margin:0}
 .sys-layout .sys-salary-drawer .salary-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 0}
 .sys-layout .sys-salary-drawer .salary-field-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:8px 10px;min-width:0}
 .sys-layout .sys-salary-drawer .salary-field-group label{font-size:13px;gap:3px;line-height:1.4}
 .sys-layout .sys-salary-drawer .salary-field-group input,.sys-layout .sys-salary-drawer .salary-field-group select{min-height:34px;font-size:14px}
 .sys-layout .sys-salary-drawer .salary-field-note{font-size:12px;line-height:1.45;margin:0}
 .sys-layout .sys-salary-drawer .salary-field-group small{font-size:12px;line-height:1.35}
 .sys-layout .sys-salary-drawer .salary-submit{grid-column:1/-1;position:static;bottom:auto;display:flex;flex-wrap:wrap;gap:8px;padding:8px 10px;margin:0}
 .sys-layout .sys-salary-drawer .salary-submit strong{font-size:20px}
 .sys-layout .sys-salary-drawer .payroll-details>summary{padding:4px 0;font-size:14px}
 .workspace-task{position:fixed;inset:8px;margin:auto;padding:0;width:calc(100vw - 16px);height:calc(100dvh - 16px);max-width:1600px;max-height:none;border:1px solid #cbded7;border-radius:10px;background:#f4f7fa;overflow:hidden}
 .workspace-task[open]{display:flex;flex-direction:column}
 .workspace-task::backdrop{background:#14233977}
 .workspace-task>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:#fff;border-bottom:1px solid #dce5ec;flex:none}
 .workspace-task>header strong{font-size:16px;line-height:1.4}
 .workspace-task>header button{width:auto;white-space:nowrap;flex:none}
 .workspace-task>iframe{border:0;width:100%;flex:1;min-height:0;background:#f4f7fa}
 .workspace-embedded .sidebar,.workspace-embedded .topbar,.workspace-embedded .mobile-nav,.workspace-embedded .main>footer{display:none!important}
 .workspace-embedded .app-shell>.main{margin:0;width:100%;padding:10px 14px;max-width:none}
 .workspace-form-status{width:100%;font-size:13px;margin:4px 0;color:#14725f}
 #workspace-status{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:10000;background:#123e35;color:#fff;padding:10px 18px;border-radius:8px;max-width:calc(100vw - 32px)}
}
@media screen and (min-width:1000px){
 .sys-layout .main{min-height:0}
 .sys-layout .payroll-page .payroll-primary-summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:0}
 .sys-layout .payroll-page .sys-section:has(>.payroll-list){display:flex;flex-direction:column;overflow:hidden}
 .sys-layout .payroll-page .sys-section>.payroll-list{min-height:0;flex:1;overflow:auto}
 .sys-layout .payroll-page .payroll-view-tools{margin:0 0 6px}
 .sys-layout .payroll-page .payroll-view-tools p{margin:2px 0}
}
@media screen and (max-width:720px){
 .sys-layout .topbar h1{font-size:20px}
 .sys-layout .payroll-page .payroll-primary-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sys-layout .sys-salary-drawer .salary-form,.sys-layout .sys-salary-drawer .salary-field-group{grid-template-columns:1fr}
 .sys-layout .sys-salary-drawer .salary-field-group input,.sys-layout .sys-salary-drawer .salary-field-group select{min-height:40px;font-size:16px}
 .workspace-task{inset:0;width:100vw;height:100dvh;border-radius:0}
 .workspace-task>header{padding:6px 10px}
 .workspace-embedded .app-shell>.main{padding:8px}
}
@media screen{
 .sys-layout .sys-salary-drawer .salary-field-group{display:block;align-content:start}
 .sys-layout .sys-salary-drawer .salary-group-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start;align-content:start}
 .sys-layout .sys-salary-drawer .salary-field-group label{font-size:14px!important;line-height:1.4}
 .sys-layout .sys-salary-drawer .salary-field-group label>small{font-size:12px!important;line-height:1.35}
 .sys-layout .sys-salary-drawer .salary-field-group input,.sys-layout .sys-salary-drawer .salary-field-group select{font-size:14px!important}
}
@media screen and (max-width:720px){.sys-layout .sys-salary-drawer .salary-group-fields{grid-template-columns:1fr}.sys-layout .sys-salary-drawer .salary-field-group input,.sys-layout .sys-salary-drawer .salary-field-group select{font-size:16px!important}}
@media screen and (min-width:1200px){
 .sys-layout .sys-salary-drawer .salary-group-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
 .sys-layout .sys-salary-drawer .salary-field-note{font-size:12px!important;line-height:1.4}
 .sys-layout .sys-salary-drawer .salary-field-group legend{font-size:14px!important;line-height:1.4}
}
@media screen and (min-width:1000px){
 .sys-layout.page-consumptions form.management-filters{padding:10px 12px;gap:6px;align-items:end}
 .sys-layout.page-consumptions form.management-filters label{font-size:14px!important;gap:4px}
 .sys-layout.page-consumptions .makeup-summary{padding:8px 12px;margin-bottom:8px}
 .sys-layout.page-consumptions .makeup-summary p{margin:0;line-height:1.4}
}
@media screen and (max-width:720px){
 .sys-layout .sidebar{padding:8px 10px}
 .sys-layout .sidebar .brand{padding-bottom:4px;min-height:32px;gap:8px;margin:0}
 .sys-layout .sidebar .brand-mark{width:30px;height:30px;font-size:16px}
 .sys-layout .sidebar .brand b{font-size:14px!important;line-height:1.4}
 .sys-layout .sidebar .brand small{font-size:11px!important;line-height:1.3}
 .sys-layout .sidebar nav{gap:4px;padding-top:4px}
 .sys-layout .sidebar .nav-item{padding:7px 6px;min-height:36px!important;font-size:13px!important}
 .sys-layout .topbar{min-height:40px!important;margin-bottom:5px}
 .sys-layout .topbar .eyebrow{font-size:12px;line-height:1.4}
 .sys-layout .toolbar h2{font-size:18px}
 .sys-layout .toolbar>.inline-form:has(>input[name=q]){display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:6px;flex-basis:100%}
 .sys-layout .toolbar>.inline-form:has(>input[name=q])>input[name=q]{width:100%;min-width:0;grid-column:1;box-sizing:border-box}
 .sys-layout .toolbar>.inline-form:has(>input[name=q])>button:last-child{grid-column:2;width:auto}
 .sys-layout .table-panel>.panel-head{padding:8px 10px!important}
 .sys-layout .ws-scroll-hint{padding:4px 10px;margin:0}
 .workspace-embedded .sidebar{display:none!important}
}
