/* BarMatrics — white working screens, navy headings, powder-blue pinstripe */
:root{
  color-scheme:light;
  --jt-bg:#FFFFFF;
  --jt-nav:#142D4E;
  --jt-primary:#1677D2;
  --jt-primary-press:#0E5EAB;
  --jt-text:#202938;
  --jt-muted:#3E5166;
  --jt-line:#DCE4EC;
  --jt-soft:#F3F7FB;
  --jt-stripe:#A9D6E5;
  --jt-danger:#B42318;
}
html,body{
  background:#FFFFFF!important;
  color:#202938!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
body,main,footer,section,article,aside,.app,.screen,.page,.layout,.content,.main,.workspace,.work,.bottom,.hero,.sidebar,.left,.right,.rail,.shell,.container{
  background-color:#FFFFFF!important;
  color:#202938!important;
  background-image:none!important;
}
.toolbar,.panel,.card,.box,.product,.weigh,.count,.cal,.photo,.sessionTop,.form,.modal,.dialog,.stat,.metric,.summary,.table-wrap,.entry,.item,.bottle,.row-card,.jt-feature,.jt-feature-inner{
  background-color:#FFFFFF!important;
  color:#202938!important;
  border-color:#DCE4EC!important;
  background-image:none!important;
}
.panel,.card,section,.jt-feature{
  border:1px solid #DCE4EC!important;
  border-radius:12px!important;
  box-shadow:0 1px 2px rgba(20,45,78,.06)!important;
}
h1,h2,h3,h4,h5,h6,.name,.tile-title{
  color:#142D4E!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
p,span,label,small,strong,b,th,td,li,.subtitle,.specs,.upc,.step,.big,.value,.status,.hint,.eyebrow,.tag{
  color:#202938!important;
}
.muted,.hint,small,.tag,.eyebrow{
  color:#3E5166!important;
}
label{
  font-size:12px!important;
  font-weight:700!important;
  letter-spacing:.04em!important;
}
input,textarea,select{
  background:#FFFFFF!important;
  color:#202938!important;
  border:1px solid #DCE4EC!important;
  border-radius:8px!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
input::placeholder,textarea::placeholder{color:#3E5166!important}
input:focus,textarea:focus,select:focus{
  outline:2px solid #1677D2!important;
  outline-offset:1px;
  border-color:#1677D2!important;
}
button,.btn,[role="button"]{
  background:#FFFFFF!important;
  color:#142D4E!important;
  border:1px solid #DCE4EC!important;
  border-radius:8px!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-weight:700!important;
}
button:hover,.btn:hover{border-color:#1677D2!important}
button.primary,.btn.primary,.primary,.save,.save-next,button.active,#search,button[type="submit"]{
  background:#1677D2!important;
  color:#FFFFFF!important;
  border-color:#1677D2!important;
}
button.primary:hover,.btn.primary:hover,.primary:hover,.save:hover,.save-next:hover,button.active:hover,#search:hover,button[type="submit"]:hover{
  background:#0E5EAB!important;
  border-color:#0E5EAB!important;
}
button.danger,.danger{
  background:#FFFFFF!important;
  color:#B42318!important;
  border-color:#B42318!important;
}
button:disabled{opacity:.45!important}
a{color:#1677D2!important;background:transparent!important}
a:hover{color:#0E5EAB!important}
table{background:#FFFFFF!important;color:#142D4E!important}
tr,td,th{border-color:#DCE4EC!important;color:#142D4E!important}
thead,tr:nth-child(even){background:#F3F7FB!important}
hr{border-color:#DCE4EC!important}
.app:before,.hero:before,.screen:before,.jt-feature:before{background-image:none!important}
header,.head,#jtMatchedHeader,header.top{
  background:#142D4E!important;
  color:#FFFFFF!important;
  border-color:#142D4E!important;
  box-shadow:none!important;
}
header h1,header h2,header h3,header p,header span,header small,header a,header button,header .muted,header .eyebrow,header .tag,
.head, .head a, .head h1, .head button,
#jtMatchedHeader, #jtMatchedHeader h1, #jtMatchedHeader small, #jtMatchedHeader a, #jtMatchedHeader span{
  color:#FFFFFF!important;
}
header a,header button,.head a,.head button,#jtMatchedHeader a,#jtMatchedHeader button{
  background:transparent!important;
  color:#FFFFFF!important;
  border:1px solid rgba(255,255,255,.45)!important;
  border-radius:8px!important;
  text-decoration:none!important;
}
header input,header select,header textarea,.head input,#jtMatchedHeader input{
  background:#FFFFFF!important;
  color:#142D4E!important;
  border-color:#DCE4EC!important;
}
nav.nav{
  background:#142D4E!important;
  border-radius:12px!important;
  padding:8px!important;
}
nav.nav button{background:#FFFFFF!important;color:#142D4E!important}
nav.nav button.active{background:#1677D2!important;color:#FFFFFF!important;border-color:#1677D2!important}
.mark{background:#1677D2!important;color:#FFFFFF!important}
#progressFill,.progressbar i{background:#1677D2!important}
.status.error,.error{color:#B42318!important}
/* Single-bottle and section screens use more specific rules than the base theme. */
body:has(#jtMatchedHeader) header.top{
  background:#FFFFFF!important;
  color:#142D4E!important;
  border-bottom:1px solid #DCE4EC!important;
}
body:has(#jtMatchedHeader) header.top h1,
body:has(#jtMatchedHeader) header.top small,
body:has(#jtMatchedHeader) header.top span{
  color:#142D4E!important;
  background:transparent!important;
}
body:has(#jtMatchedHeader) header.top .mark{
  background:#1677D2!important;
  color:#FFFFFF!important;
}
.weighRedesign .liveReading,
.weighRedesign .contentsReading,
.liveReading,
.contentsReading,
.barcodeAssign,
.calibrationArea .cal,
#calFields,
.missingCard,
#managerManualCard,
.searchbox,
.work>.actions{
  background:#FFFFFF!important;
  background-image:none!important;
  color:#142D4E!important;
  border-color:#DCE4EC!important;
  box-shadow:none!important;
}
.weighRedesign .result b,
.liveReading,
.liveReading *,
.contentsReading,
.contentsReading *,
.barcodeAssign,
.barcodeAssign span,
.calibrationArea .cal,
.calibrationArea .cal label,
#managerManualCard,
#managerManualCard h3,
#managerManualCard p{
  color:#142D4E!important;
}
.actions button,
.work>.actions button,
.count button,
.changeBottle,
.calToggle,
#calToggle{
  background:#FFFFFF!important;
  background-image:none!important;
  color:#142D4E!important;
  border:1px solid #DCE4EC!important;
}
.actions #save,
.work>.actions #save,
#save{
  background:#1677D2!important;
  background-image:none!important;
  color:#FFFFFF!important;
  border-color:#1677D2!important;
}
#managerManualCard button[type="submit"],
#managerManualCard .buttons button[type="submit"]{
  background:#1677D2!important;
  color:#FFFFFF!important;
  border-color:#1677D2!important;
}
.product .name,#name{
  color:#142D4E!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
.brand{gap:8px!important;min-width:0!important}
.brand .mark{font-size:16px!important;line-height:1!important;padding:6px 8px!important}
.brand h1{font-size:16px!important;line-height:1.15!important}
.brand small{font-size:11px!important}
header.top,.top{flex-wrap:wrap!important;height:auto!important;min-height:0!important}

/* Readability pass: beat leftover gold rules without changing control sizes. */
#directFind,
.searchrow button:not(#clear),
.searchHelp button,
.dialogActions button[type="submit"],
#saveDataFile,
#missingBottleAdd{
  background:#1677D2!important;
  background-image:none!important;
  color:#FFFFFF!important;
  border-color:#1677D2!important;
}
#clearSelectedBottle,
.searchrow #clear,
#missingBottleCancel,
#restoreDataFile,
#closeBackup{
  background:#FFFFFF!important;
  background-image:none!important;
  color:#142D4E!important;
  border:1px solid #8AA0B8!important;
}
#directBarcode,
.searchrow input,
.searchrow select,
.barcodeAssign input,
#newBarcode{
  background:#FFFFFF!important;
  color:#142D4E!important;
  border:1px solid #8AA0B8!important;
}
#directBarcode::placeholder,
input::placeholder,
textarea::placeholder{
  color:#3E5166!important;
  opacity:1!important;
}
#directScanStatus,
.product .subtitle,
#meta,
.product .upc,
#upc,
.searchbox:before,
.noMatch,
.searchHelp,
.dialogNote{
  color:#24364C!important;
}
.product .specs,
.product .specs span,
#sizeSpec,
#proofSpec,
#abvSpec,
#catSpec{
  color:#142D4E!important;
  font-weight:800!important;
}
.product .specs small,
#sizeSpec small,
#proofSpec small,
#abvSpec small,
#catSpec small{
  color:#1B3148!important;
  font-weight:800!important;
  opacity:1!important;
}
.weigh label,
.weigh.weighRedesign label,
.liveReading label,
.contentsReading label,
.capacityReading label,
.manualWeight label,
.weighRedesign .result,
.weighRedesign .result b,
.weighRedesign .scaleBig,
#scaleDisplay,
#result,
#fullNominal,
.liveReading .stable{
  color:#202938!important;
}
.weigh.weighRedesign,
.weighRedesign>div,
.capacityReading{
  background:#FFFFFF!important;
  background-image:none!important;
  border-color:#DCE4EC!important;
  color:#142D4E!important;
}
.manualWeight input#current,
.manualWeight input#current:focus{
  outline-color:#1677D2!important;
  border-color:#8AA0B8!important;
  color:#142D4E!important;
  background:#FFFFFF!important;
}
.searchbox,
.category-item,
.newBottleCard,
#missingBottlePrompt .missingCard,
#dataBackupPanel,
#managerManualCard,
#jtEmptySectionPopup .jtEmptyCard{
  background:#FFFFFF!important;
  color:#142D4E!important;
  border-color:#DCE4EC!important;
}
.category-item,
.category-item b,
.category-item span,
.newBottleCard,
.newBottleCard h2,
.newBottleCard label,
.newBottleCard p,
.newBottleCard small,
.dialogHead h2,
.dialogHead small,
#missingBottlePrompt h3,
#jtEmptySectionPopup h2,
#dataBackupPanel,
#dataBackupPanel div{
  color:#142D4E!important;
}
#currentName,
#productName,
.photoTitle,
.jt-feature-title,
.jt-feature-kicker,
.stat,
#bleStatus,
.phaseScale .scaleIcon,
.big,
#remaining{
  color:#142D4E!important;
}
.count button,
#minus,
#plus{
  background:#FFFFFF!important;
  color:#142D4E!important;
  border:1px solid #8AA0B8!important;
  background-image:none!important;
}
#jtBackHome,
#reviewBottom,
.progress,
.progressbar,
.bottom,
.searchHelp{
  background:#FFFFFF!important;
  background-image:none!important;
  color:#142D4E!important;
  border-color:#DCE4EC!important;
  outline-color:#1677D2!important;
}
#tabletSaveCal{
  background:#1677D2!important;
  background-image:none!important;
  color:#FFFFFF!important;
  border-color:#1677D2!important;
}
.tag{
  color:#142D4E!important;
  background:#F3F7FB!important;
  border-color:#8AA0B8!important;
}
button.primary,
#start,
#jtEmptySectionPopup #jtEmptyAdd{
  background:#1677D2!important;
  background-image:none!important;
  color:#FFFFFF!important;
  border-color:#1677D2!important;
}
#jtEmptySectionPopup #jtEmptyCancel{
  background:#FFFFFF!important;
  background-image:none!important;
  color:#142D4E!important;
  border-color:#8AA0B8!important;
}
.panel,
.toolbar,
.jt-feature,
.right .panel,
.runActions{
  background:#FFFFFF!important;
  background-image:none!important;
  border-color:#DCE4EC!important;
  color:#142D4E!important;
}
#bar,
.bar{
  background:#1677D2!important;
  background-image:none!important;
}
#runActions{
  background:#FFFFFF!important;
  background-image:none!important;
  border-color:#DCE4EC!important;
  color:#142D4E!important;
  box-shadow:none!important;
}
#save:disabled,
button.primary:disabled,
#start:disabled{
  opacity:1!important;
  background:#F3F7FB!important;
  background-image:none!important;
  color:#142D4E!important;
  border-color:#8AA0B8!important;
}
a.action{
  background:#FFFFFF!important;
  background-image:none!important;
  color:#142D4E!important;
  border:1px solid #8AA0B8!important;
}
pre,code{
  color:#142D4E!important;
  background:#F3F7FB!important;
}
a.link{
  border-color:#8AA0B8!important;
  color:#1677D2!important;
  background:transparent!important;
}
main{
  border-color:#DCE4EC!important;
}
main a{
  border-color:#8AA0B8!important;
}
input#search,
input#scan{
  background:#FFFFFF!important;
  background-image:none!important;
  color:#142D4E!important;
  border:1px solid #8AA0B8!important;
}
.actions button.save,
.actions button.primary,
button.save{
  background:#1677D2!important;
  background-image:none!important;
  color:#FFFFFF!important;
  border-color:#1677D2!important;
}

/* Powder-blue pinstripe: 1px, only on headers, the active tab, and table heads. */
header,.head,#jtMatchedHeader,header.top,
body:has(#jtMatchedHeader) header.top{
  border-bottom:1px solid #A9D6E5!important;
}
thead th{
  border-bottom:1px solid #A9D6E5!important;
}
nav.nav button.active{
  box-shadow:inset 0 -1px 0 #A9D6E5!important;
}
.weigh label,
.liveReading label,
.contentsReading label,
.manualWeight label,
.weighRedesign .scaleBig,
#scaleDisplay,
#result,
.weighRedesign .result,
.weighRedesign .result b,
#fullNominal,
.product .specs,
.product .specs span,
#sizeSpec,#proofSpec,#abvSpec,#catSpec,
.product .name,#name,
#currentName,#productName,.photoTitle{
  color:#202938!important;
}
h1,h2,h3,h4,.jt-feature-title{
  color:#142D4E!important;
}
input,textarea,select,#directBarcode,#query,#current,#newBarcode{
  color:#202938!important;
}

/* Final pass: light surfaces, readable header, tablet width. */
header h1,header h2,header h3,header h4,header small,header span,header a,header button,
header .eyebrow,header .muted,header .tag,
#jtMatchedHeader h1,#jtMatchedHeader small,#jtMatchedHeader a,#jtMatchedHeader span,#jtMatchedHeader button{
  color:#FFFFFF!important;
}
body:has(#jtMatchedHeader) header.top,
body:has(#jtMatchedHeader) header.top h1,
body:has(#jtMatchedHeader) header.top small,
body:has(#jtMatchedHeader) header.top span{
  color:#142D4E!important;
  background-color:#FFFFFF!important;
}
.searchbox,.searchbox:before{
  background:#FFFFFF!important;
  background-image:none!important;
  color:#142D4E!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
html,body{
  overflow-x:hidden!important;
  max-width:100%!important;
}
main,.app{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:510px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.grid,.newBottleGrid{
  grid-template-columns:1fr!important;
}
header,#jtMatchedHeader,header.top{
  flex-wrap:wrap!important;
  height:auto!important;
  min-height:0!important;
  max-width:100%!important;
}
input,select,textarea,button,a{
  max-width:100%;
}
@media(max-width:699px){
  main,.app{max-width:100%!important}
  input,select,button{min-height:48px}
}
