.mobiT{
  font-family: Arial, Helvetica, sans-serif;
  max-width: 980px;
  color:#111;
}

.mobiT__titleBar{
  background:#1f4e79;
  color:#fff;
  font-size:28px;
  font-weight:800;
  padding:10px 14px;
  border:1px solid #173a5a;
}

.mobiT__note{
  padding:8px 14px;
  border-left:4px solid #1f4e79;
  color:#FFF;
  margin-bottom:12px;
}

.mobiT__sheet{
  border:1px solid #cfd6e4;
  background:#fff;
}

.mobiT__sectionHead{
  font-weight:900;
  letter-spacing:.3px;
  padding:10px 12px;
  border-bottom:1px solid #cfd6e4;
}

.mobiT__sectionHead--inputs{ background:#f2b200; }
.mobiT__sectionHead--results{ background:#93c47d; }
.mobiT__sectionHead--validation{ background:#f2b200; }

.mobiT__row{
  display:grid;
  grid-template-columns: 1.1fr 180px 1.4fr;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-top:1px solid #e6ebf5;
}

.mobiT__label{ font-weight:800; }
.mobiT__desc{ color:#666; font-style:normal; }

.mobiT__cell{
  display:flex;
  align-items:center;
  justify-content:stretch;
}

.mobiT__cell--in input,
.mobiT__cell--in select{
  width:100%;
  padding:8px 10px;
  border:1px solid #d1d1d1;
  border-radius:6px;
  background:#f9cb9c; /* orange */
  font-weight:800;
}

.mobiT__cell--out span{
  width:100%;
  display:block;
  padding:8px 10px;
  border-radius:6px;
  background:#d9ead3; /* green */
  border:1px solid #c9ddc2;
  text-align:right;
  font-weight:900;
  min-height: 18px;
}

.mobiT__row--mbi .mobiT__cell--out span{
  background:#d9e1f2; /* slightly bluish like template Mbi band */
  border-color:#c7d0e6;
}

.mobiT__err{
  padding:10px 12px;
  color:#7a0000;
  font-weight:800;
}

/* Validation failure (Excel-style light red) */
.mobiT__cell--fail span {
  background: #FA9C9C !important;
  border-color: #d6bcbc !important;
}



/* Input row highlight when responsible for validation FAIL */
.mobiT__row--fail .mobiT__cell--in input,
.mobiT__row--fail .mobiT__cell--in select {
  background: #FA9C9C !important;
  border-color: #d6bcbc !important;
}

/* Force descriptions to be non-italic */
.mobiT__desc {
  font-style: normal !important;
}
/* === Global scale-down for the entire calculator === */
:root { --mobi-scale: 0.90; }  /* try 0.80–0.90 */

.mobiT{
  transform: scale(var(--mobi-scale));
  transform-origin: top left;
}

/* prevent layout from leaving a big empty gap after scaling */
.mobiT{
  width: calc(100% / var(--mobi-scale));
}
/* tighten row height + typography inside the sheet */
.mobiT__row{
  padding: 5px 8px !important;
  gap: 8px !important;
}

.mobiT__titleBar{
  font-size: 22px !important;
  padding: 8px 12px !important;
}

.mobiT__note{
  padding: 6px 12px !important;
  font-size: 15px !important;
}

.mobiT__sectionHead{
  padding: 8px 10px !important;
  font-size: 14px !important;
}

/* shrink inputs + output boxes */
.mobiT__cell--in input,
.mobiT__cell--in select{
  padding: 6px 8px !important;
  font-size: 16px !important;
}

.mobiT__cell--out span{
  padding: 6px 8px !important;
  font-size: 16px !important;
  min-height: 0 !important;
}

/* make description + label smaller */
.mobiT__label{ font-size: 15px !important; }
.mobiT__desc{ font-size: 15px !important; }

/* narrower columns (label | value | description) */
.mobiT__row{
  grid-template-columns: 1.0fr 150px 1.2fr !important;
}
/* Shrink the DISPLAYED selected value text (e.g. "MeasuredPath") */
.mobiT .mobiT__cell--in select[data-s="prov"]{
  font-size: 14px !important;     /* this affects the selected value text */
  line-height: 1 !important;      /* key: tightens the glyph box */
  padding-top: 2px !important;    /* re-center text vertically */
  padding-bottom: 2px !important;
}

