/* Loaded after shared popup/mobile rules so both browser and embedded pages agree. */
.meter-page .meter-basic-with-photo .meter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding-top:6px}
.meter-page .meter-basic-with-photo .meter-fields>label{display:block;min-width:0}
.meter-page .meter-basic-with-photo .meter-fields>label>input,.meter-page .meter-basic-with-photo .meter-fields>label>select{width:100%;margin:4px 0 0;box-sizing:border-box}
.meter-page .meter-basic-with-photo .meter-fields>.meter-check{grid-column:1/-1;display:flex;align-items:center}
.meter-page .meter-basic-with-photo .meter-fields>.meter-check>input{width:auto;margin:0}
.counter-value-title{display:block;line-height:1.4}
input[data-fms-number]{text-align:right;font-variant-numeric:tabular-nums}
.meter-number-na>input[data-fms-number]{flex:1 1 50px;min-width:0!important;width:0!important}
@media(max-width:800px){
 .counter .counter-value-grid{display:block!important}
 .counter .counter-indications{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .counter .counter-indications>label{display:block!important;position:relative;margin:0!important;padding:2px 0;min-width:0}
 .counter .counter-indications>label>input{display:block;width:100%!important;margin-top:8px}
 .counter .counter-indications>label:has(.meter-number-na){padding-top:2px}
@supports not selector(:has(*)){.counter .counter-indications>label:is(:where([data-fms-rel-r39]),.fms-layout-never:not(*)){padding-top:2px}}

 .counter .counter-indications .meter-number-na{display:block!important;margin-top:8px}
 .counter .counter-indications .meter-number-na>input{display:block;width:100%!important;min-height:48px;box-sizing:border-box}
 .counter .counter-indications .meter-na-choice{position:absolute;right:0;top:0;min-height:24px}
 .counter .counter-indications>label:has(.meter-number-na){padding-right:0}
@supports not selector(:has(*)){.counter .counter-indications>label:is(:where([data-fms-rel-r39]),.fms-layout-never:not(*)){padding-right:0}}

 .counter .counter-indications .errorlist{margin:4px 0}
 .counter .mo-counter-table tbody>tr>td:has(input){grid-column:1/-1}
@supports not selector(:has(*)){.counter .mo-counter-table tbody>tr>td:is(:where([data-fms-rel-r37]),fms-layout-never:not(*)){grid-column:1/-1}}

 html.fms-mobile-size body.fms-auth{height:var(--fms-mobile-height,100dvh)!important;min-height:0!important;overflow:hidden!important;display:flex;flex-direction:column}
 html.fms-mobile-size body.fms-auth>header{flex:0 0 auto!important;box-sizing:border-box;transform:none!important}
 html.fms-mobile-size body.fms-auth>main{flex:1 1 0;min-height:0;overflow-y:auto!important;box-sizing:border-box;overflow-anchor:none}
 html.fms-mobile-size body.fms-auth>footer{flex:0 0 auto!important}
 html.fms-keyboard-open .counter-submit{position:static!important}
}
@media(max-width:500px){
 .meter-page .meter-basic-with-photo{grid-template-columns:1fr}
 .meter-page .meter-photo-box{max-height:130px}
 .meter-page .meter-photo-box img{height:80px}
 .meter-page .meter-basic-with-photo .meter-fields{gap:10px}
}

/* 26102907: keep the outer document stationary; scroll only the content pane. */
.counter-initial-fields{border:2px solid #80b1e2!important;background:#f5faff!important}
.counter-initial-fields>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.counter-initial-fields label{display:grid!important;gap:5px;min-width:0}
.counter-initial-fields input{width:100%;min-height:42px!important;background:#fff0f0!important}
@media(max-width:800px){
 html.fms-mobile-size:has(body.fms-workspace),html.fms-mobile-size:has(body.fms-auth){overflow:clip!important}
@supports not selector(:has(*)){html.fms-mobile-size:is(:where([data-fms-rel-r40]),fms-layout-never.fms-layout-never:not(*)),html.fms-mobile-size:is(:where([data-fms-rel-r20]),fms-layout-never.fms-layout-never:not(*)){overflow:clip!important}}

 html.fms-mobile-size body.fms-workspace{display:flex!important;flex-direction:column!important;margin:0!important;padding:0!important}
 html.fms-mobile-size body.fms-workspace>header{position:relative!important;inset:auto!important;transform:none!important;flex:0 0 52px!important;box-sizing:border-box;overflow:visible!important;margin:0!important}
 html.fms-mobile-size body.fms-workspace>main{position:relative!important;inset:auto!important;max-height:none!important;height:auto!important;overscroll-behavior-y:contain}
 html.fms-content-pane.fms-mobile-size body.fms-workspace>main{height:100%!important;max-height:100%!important;flex:1!important}
 html.fms-mobile-size body.fms-auth>main{align-items:flex-start!important}
 html.fms-mobile-size body.fms-auth .login.formbox{margin:auto!important;flex-shrink:0}
 html.fms-auth-editing body.fms-auth>header{height:52px!important;min-height:52px!important;padding:8px 16px!important}
 html.fms-auth-editing body.fms-auth>header .brand .ls-symbol{max-height:30px!important;top:0!important}
 html.fms-auth-editing body.fms-auth>main{flex:0 1 auto!important;max-height:calc(var(--fms-keyboard-visible) - 52px)!important;padding:8px 12px!important;overflow-y:auto!important}
 html.fms-auth-editing body.fms-auth .login.formbox{padding:12px 18px!important;margin:0 auto!important}
 html.fms-auth-editing body.fms-auth .login .eyebrow,html.fms-auth-editing body.fms-auth .login>.muted,html.fms-auth-editing body.fms-auth>footer{display:none!important}
 html.fms-auth-editing body.fms-auth .login h1{font-size:20px!important;margin:2px 0 8px!important}
 html.fms-auth-editing body.fms-auth .login p{margin:6px 0!important}
 html.fms-auth-editing body.fms-auth .login input:not([type=checkbox]):not([type=hidden]){min-height:40px!important}
 html.fms-auth-editing body.fms-auth .login form>button{min-height:40px!important}
 .counter-initial-fields>div{grid-template-columns:minmax(0,1fr)}
}
