#monthly-finance,#report-form,#report-results{padding:22px;border-radius:6px;border-color:#d5e1ed;background:#fff}.monthly-finance-heading,#report-form>h3{display:flex;align-items:center;gap:12px;color:#173c60;font-size:22px;line-height:1.4}.report-ui-icon{width:26px;height:26px;flex:0 0 26px;display:inline-block;vertical-align:middle}.monthly-finance-content{display:block}.monthly-finance-period{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:16px;align-items:end;width:100%;margin:18px 0}.monthly-finance-period label{padding:14px;background:#f0eafb;border:1px solid #d0c2eb;border-radius:6px;min-width:0;margin:0}.monthly-finance-period label>span{display:flex;align-items:center;gap:9px;color:#173c60;font-size:14px;font-weight:600}.monthly-finance-period label svg{width:22px;height:22px}.monthly-finance-period input{width:100%;min-width:0;min-height:44px;font-size:15px;margin:10px 0 0;padding:8px 12px;background:#fff;color:#173c60}.monthly-finance-period button,#report-form>button.primary{min-height:44px;padding:10px 18px;background:#173c60;color:#fff;border:1px solid #173c60;border-radius:5px;font-size:14px;font-weight:600;line-height:1.4}.monthly-finance-period button{margin-bottom:14px}.monthly-finance-table{border-collapse:separate;border-spacing:0;font-size:14px}.monthly-finance-table th,.monthly-finance-table td{padding:13px 16px;border-right:1px solid #dae3ee;border-bottom:1px solid #dae3ee;line-height:1.5}.monthly-finance-table thead th{background:#eaf0f8;color:#173c60;font-size:14px;text-transform:none;letter-spacing:0;white-space:normal}.monthly-finance-table tbody tr:nth-child(1)>*{background:#e6f6ee}.monthly-finance-table tbody tr:nth-child(2)>*{background:#e5f1fc}.monthly-finance-table tbody tr:nth-child(3)>*{background:#f0eafb}.monthly-finance-table tbody tr:nth-child(4)>*{background:#fff4df}.monthly-finance-table tbody tr:nth-child(5)>*{background:#f0f3f8}.monthly-finance-table tbody th{color:#173c60}.monthly-finance-table td{text-align:right;color:#173c60}.finance-explanation{margin-top:12px;font-size:12px;line-height:1.6}
#report-form>p{margin:10px 0 18px;font-size:13px;line-height:1.6}#report-form .report-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}#report-form .report-filter-grid>label{display:flex;flex-direction:column;gap:10px;margin:0;padding:14px;background:#eaf3fd;border:1px solid #bfd7f0;border-radius:6px;min-width:0;font-size:14px;font-weight:600;color:#173c60;grid-column:auto}#report-form .report-filter-grid>label[hidden]{display:none}#report-form .report-filter-grid>label:nth-child(2){background:#f0eafb;border-color:#d0c2eb}#report-form .report-filter-grid>label:nth-child(3),#report-form .report-filter-grid>label:nth-child(4){background:#fff4df;border-color:#ead59b}#report-form .report-filter-grid>label:last-child{background:#e9f7ef;border-color:#b9dfcc;grid-column:auto}.report-filter-title{display:flex;align-items:center;gap:9px;line-height:1.4}.report-filter-title svg{width:22px;height:22px;flex:0 0 22px}#report-form .report-filter-grid input,#report-form .report-filter-grid select{height:44px;min-height:44px;margin:0;font-size:15px;line-height:1.4;padding:8px 12px;background:#fff;color:#173c60;min-width:0}#report-form .report-filter-grid select{padding-right:36px}#report-form>button.primary{margin-top:4px}#report-results>h3{color:#173c60;font-size:19px;margin-bottom:18px}.report-downloads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.report-download-card{padding:20px;border-radius:6px;min-width:0;background:#e8f3fd;border:1px solid #c4dbee;display:flex;flex-direction:column;gap:10px}.report-download-card.attendance-report{background:#e8f7ef;border-color:#bfdfcd}.report-download-card .eyebrow{margin:0;font-size:10px}.report-download-card h3{display:flex;align-items:center;gap:10px;color:#173c60;font-size:20px;margin:0}.report-download-card p{font-size:13px;line-height:1.6;margin:0}.report-download-card .report-download,.report-download-card button{display:flex;align-items:center;justify-content:center;gap:10px;align-self:flex-start;min-height:44px;padding:10px 16px;margin-top:auto;background:#173c60;color:#fff;border:1px solid #173c60;border-radius:5px;font-size:14px;line-height:1.4;text-decoration:none;white-space:normal}.report-download-card button:disabled{background:#e1e8ed;border-color:#bdcbd5;color:#667888;opacity:1;cursor:not-allowed}.report-download svg{width:21px;height:21px;flex:0 0 21px}#report-results>.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}#report-results .stats>.stat{padding:16px;background:#e5f6ed;border-color:#c4e4d2;border-radius:6px}#report-results .stats>.stat:nth-child(2){background:#e5f1fc;border-color:#c7ddef}#report-results .stats>.stat:nth-child(3){background:#fff4df;border-color:#ead9ad}#report-results .stats>.stat>span{display:flex;align-items:center;gap:8px;color:#173c60}#report-results .stats svg{width:22px;height:22px}#report-results .stat strong{font-size:25px;margin:8px 0 0}#report-results>.muted{font-size:12px;line-height:1.6;margin-bottom:18px}#report-results table{min-width:920px;font-size:13px}#report-results th{background:#eaf0f8;padding:13px;text-transform:none;letter-spacing:0;font-size:13px}#report-results td{padding:16px 13px;line-height:1.5}#report-results td:nth-child(1){background:#edf5fd}#report-results td:nth-child(4){background:#f3effb}
@media(max-width:900px){.monthly-finance-period{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-finance-period button{grid-column:1/-1;justify-self:end;margin:0}#report-form .report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#monthly-finance,#report-form,#report-results{padding:16px}.monthly-finance-period,#report-form .report-filter-grid,.report-downloads,#report-results>.stats{grid-template-columns:1fr}.monthly-finance-period button{width:100%}.report-download-card{padding:16px}}
#main.design249 #report-results .stats>.stat>span{font-size:14px;font-weight:600}
#main.design249 #report-results .stats>.stat>strong{font-size:28px;font-weight:700}

/* The report action is a native button, so explicitly use the application font. */
#main.design249 #report-form>button.primary{font-family:"RL67 UI",Arial,sans-serif!important;font-size:14px!important;font-weight:600!important}
#monthly-finance .monthly-finance-heading{background:transparent;padding:0;text-transform:none;letter-spacing:0;color:#173c60}#monthly-finance .monthly-finance-content{padding:0}#monthly-finance .monthly-finance-period label{display:flex;flex-direction:column;align-items:stretch;gap:0}#report-form[data-period=range] .report-filter-grid>label:first-child{grid-column:auto}.monthly-finance-heading svg,#report-form>h3 svg,.report-download-card h3 svg{width:26px;height:26px;flex:0 0 26px}

/* 4.825: full-width section bars and aligned download actions. */
html body #main.design249 #report-results .report-downloads{gap:18px;margin:16px 0}
html body #main.design249 #report-results .report-download-card{padding:20px!important;display:flex!important;flex-direction:column;align-items:stretch;gap:12px;overflow:hidden}
html body #main.design249 #report-results .report-download-card>h3{display:flex!important;align-items:center;align-self:stretch!important;box-sizing:border-box;width:calc(100% + 40px)!important;max-width:none!important;margin:-20px -20px 4px!important;padding:16px 20px!important;min-height:56px;background:#193e60!important;color:#fff!important;font-size:16px!important}
html body #main.design249 #report-results .report-download-card>h3 svg,html body #main.design249 #report-results>h3 svg{color:#fff!important;stroke:currentColor!important;opacity:1!important}
html body #main.design249 #report-results .report-download-card :is(a.report-download,button){margin-top:auto!important;min-height:44px!important;box-sizing:border-box}
html body #main.design249 #report-results>.stats{margin:16px 0!important}

/* Wyszukiwanie i sortowanie grup w raportach. */
html body #main .report-group-tools835{grid-column:1/-1;display:grid;grid-template-columns:minmax(180px,1fr) minmax(170px,.65fr) minmax(240px,1.4fr);gap:12px 18px;align-items:end;min-width:0}
html body #main .report-group-tools835 label{margin:0;min-width:0;display:flex;flex-direction:column;gap:8px}
html body #main .report-group-tools835 :is(input,select){width:100%;max-width:none;box-sizing:border-box;height:44px;min-width:0;margin:0}
html body #main .report-group-tools835>small{grid-column:1/-1;color:#526477;margin:0;line-height:1.4}
@media(max-width:800px){html body #main .report-group-tools835{grid-template-columns:1fr}html body #main .report-group-tools835>small{grid-column:1}}

/* 4.835: spójny formularz raportu. */
html body #main.design249 #report-form .report-filter-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;margin-top:18px!important}
html body #main.design249 #report-form[data-period=range] .report-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body #main.design249 #report-form .report-filter-grid>label,html body #main.design249 .report-group-tools835>label,html body #main.design249 #reception-report477 .reception-form-grid477>label{display:flex!important;flex-direction:column;gap:10px!important;margin:0!important;padding:14px!important;min-width:0;box-sizing:border-box;background:#eef3f9!important;border:1px solid #c9d8e9!important;border-radius:5px!important;font:600 14px/1.4 "RL67 UI",Arial,sans-serif!important;color:#193b5b!important}
html body #main.design249 #report-form .report-filter-grid>label[hidden]{display:none!important}
html body #main.design249 .report-group-tools835{grid-column:1/-1!important;grid-template-columns:minmax(0,1fr) minmax(0,.75fr) minmax(0,1.5fr)!important;gap:18px!important;align-items:stretch!important}
html body #main.design249 .report-group-tools835 .report-filter-title{display:flex;align-items:center;gap:9px}
html body #main.design249 .report-group-tools835 .report-filter-title svg{width:22px;height:22px;flex:0 0 22px}
html body #main.design249 #report-form input,html body #main.design249 #report-form select,html body #main.design249 #reception-report477 input,html body #main.design249 #reception-report477 select{box-sizing:border-box!important;height:44px!important;min-height:44px!important;max-height:44px!important;width:100%!important;min-width:0!important;max-width:none!important;background:#fff!important;color:#193b5b!important;border:1px solid #bfcee2!important;border-radius:4px!important;margin:0!important;padding:8px 12px!important;font:400 14px/1.4 "RL67 UI",Arial,sans-serif!important}
html body #main.design249 :is(#report-form,#reception-report477) select{padding-right:32px!important}
html body #main.design249 .report-footer835{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:16px!important;margin-top:18px!important;padding:0!important;flex-wrap:wrap}
html body #main.design249 .report-footer835>small{margin:0!important;color:#526477;font:400 13px/1.4 "RL67 UI",Arial,sans-serif}
html body #main.design249 .report-footer835>button.primary{margin:0 0 0 auto!important;width:auto!important;min-height:44px!important;padding:10px 18px!important;border-radius:5px!important;flex:0 0 auto}
@media(max-width:800px){html body #main.design249 #report-form .report-filter-grid,html body #main.design249 #report-form[data-period=range] .report-filter-grid,html body #main.design249 .report-group-tools835{grid-template-columns:minmax(0,1fr)!important}html body #main.design249 .report-footer835{gap:12px!important}}

/* 4.846: selected filters and report actions share one compact toolbar. */
html body #main.design249 #monthly-finance .finance-actions120{grid-column:1/-1!important;display:flex!important;align-items:center!important;gap:12px!important;margin:0!important;padding-top:16px!important;border-top:1px solid #d8e3ef;flex-wrap:wrap}
html body #main.design249 #monthly-finance .finance-scope120{display:flex!important;gap:8px!important;flex-wrap:wrap;margin:0 auto 0 0!important}
html body #main.design249 #monthly-finance .finance-actions120 button{margin:0!important;flex:0 0 auto}
@media(max-width:600px){html body #main.design249 #monthly-finance .finance-scope120{width:100%;margin-right:0!important}html body #main.design249 #monthly-finance .finance-actions120 button{flex:1 1 auto}}
