/* V274: give localized native date editors enough room on narrow screens. */
@media screen and (max-width:780px){
 html[data-dm-theme] body :is(#app #content,#modalWrap) input:is([type=date],[type=datetime-local],[type=month]){box-sizing:border-box!important;width:100%!important;inline-size:100%!important;max-width:100%!important;max-inline-size:100%!important;min-width:0!important;min-inline-size:0!important;font-size:16px!important}
 html[data-dm-theme] body :is(#app #content,#modalWrap) :is(.field,.receipt-period-field):has(input:is([type=date],[type=datetime-local],[type=month])){min-width:0!important;max-width:100%!important;box-sizing:border-box}
 html body :is(#app,#modalWrap) input:is([type=date],[type=datetime-local],[type=month])::-webkit-date-and-time-value{min-width:0;max-width:100%;text-align:left}
 html body :is(#app,#modalWrap) input:is([type=date],[type=datetime-local],[type=month])::-webkit-datetime-edit{padding:0;min-width:0;max-width:100%}
}
@media screen and (max-width:600px){
 /* Keep the action buttons in two columns; stack the actual date fields. */
 html[data-dm-theme] body #app #content .dm-finance-filters:has(#dmFinanceStart){grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:10px!important;row-gap:12px!important;align-items:end!important}
 html[data-dm-theme] body #app #content .dm-finance-filters:has(#dmFinanceStart)>.field{grid-column:1/-1!important;min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important}
 html[data-dm-theme] body #app #content .dm-finance-filters:has(#dmFinanceStart)>.btn-primary{grid-column:1/-1!important}
 html[data-dm-theme] body #app #content .dm-finance-filters:has(#dmFinanceStart)>.btn{min-width:0!important;max-width:100%!important;white-space:normal!important;margin:0!important;align-self:stretch}
}
