/* G976: mobile-only presentation of /customer data/contracts. */
.g976-step-head{background:#f4f0e5;color:#59410f;font-weight:800;padding:12px;border-radius:10px;margin-bottom:14px}
.g976-panel{margin:14px 0;padding:13px;border:1px solid #d5e0ec;border-radius:12px;background:#f9fbfe;min-width:0}
.g976-panel h3{color:#123b5f;font-size:15px;margin:0 0 10px}
.g976-navigation{display:grid;grid-template-columns:1fr 1fr;gap:9px;position:sticky;bottom:76px;z-index:5;background:#fff;padding:12px 0 5px;border-top:1px solid #e0e7ef}
.g976-navigation button{width:100%;font-size:13px}
.g976-navigation #g976Save{grid-column:span 2}
.g976-good-row,.g976-good-review{display:grid;gap:6px;padding:10px;margin:9px 0;border:1px solid #dae3ec;border-radius:10px}
.g976-good-review strong{font-size:14px}
.g976-panel label,.g976-good-row label{display:block;width:100%;min-width:0;overflow-wrap:anywhere}
.g976-panel input,.g976-panel textarea,.g976-panel select,.g976-good-row input,.g976-good-row select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:44px;border:1px solid #b9ccdf;border-radius:8px;padding:9px;background:#fff;color:#193957}
.g976-panel [readonly]{background:#edf2f7}
.g976-panel p{font-size:13px;line-height:1.5}
.g976-good-row .secondary{font-size:13px}
@media(max-width:390px){.g976-navigation{grid-template-columns:1fr}.g976-navigation #g976Save{grid-column:1}}

/* G1401: isolated child-page style; G1124 bottom tabs and global appearance untouched. */
#wmdG1401Launcher.wmd-g1401-launcher { display:inline-flex;align-items:center;justify-content:center;
  margin:6px 8px 8px 0;padding:9px 14px;min-height:42px;background:#103653;color:#fff;
  border:1px solid #103653;border-radius:8px;font-size:13px;font-weight:750; }
#wmdG1401SalesScreen.wmd-g1401-screen {position:fixed;z-index:16;top:62px;bottom:82px;left:0;right:0;
  background:#f4f7fa;color:#102a45;overflow-y:auto;overscroll-behavior:contain;
  padding:12px 12px 18px;box-sizing:border-box;}
#wmdG1401SalesScreen * {box-sizing:border-box;}
#wmdG1401SalesScreen .wmd-g1401-top{position:sticky;top:-12px;z-index:2;display:flex;align-items:center;
  justify-content:space-between;background:#fff;border-bottom:2px solid #e6b53f;padding:10px 12px;gap:12px;}
#wmdG1401SalesScreen .wmd-g1401-top strong{font-size:17px;}
#wmdG1401SalesScreen .wmd-g1401-top button{min-height:38px;background:#e9eff5;color:#103653;padding:6px 10px;}
#wmdG1401SalesScreen .wmd-g1401-body{padding:12px 0;}
#wmdG1401SalesScreen .wmd-g1401-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;align-items:center;}
#wmdG1401SalesScreen .wmd-g1401-tools input{flex:1 1 170px;min-width:0;padding:10px;border:1px solid #cbd8e4;border-radius:7px;}
#wmdG1401SalesScreen .wmd-g1401-primary{background:#103653;color:white;border:0;border-radius:8px;padding:9px 12px;min-height:42px;}
#wmdG1401SalesScreen .wmd-g1401-table-scroll{max-width:100%;overflow-x:auto;background:#fff;border-radius:8px;}
#wmdG1401SalesScreen .wmd-g1401-table{width:100%;border-collapse:collapse;font-size:12px;min-width:620px;}
#wmdG1401SalesScreen .wmd-g1401-table th{text-align:left;background:#102a45;color:#fff;padding:9px 7px;}
#wmdG1401SalesScreen .wmd-g1401-table td{border-bottom:1px solid #e5edf4;padding:8px 7px;vertical-align:top;}
#wmdG1401SalesScreen .wmd-g1401-actions{min-width:118px;}
#wmdG1401SalesScreen .wmd-g1401-actions button{font-size:11px;padding:5px 8px;min-height:30px;margin:2px;border:1px solid #bed0dd;background:#f5f9fd;color:#103653;}
#wmdG1401SalesScreen .wmd-g1401-pager{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:12px 2px;}
#wmdG1401SalesScreen .wmd-g1401-pager button{min-height:36px;padding:5px 10px;font-size:12px;}
#wmdG1401SalesScreen .wmd-g1401-detail{display:grid;grid-template-columns:110px 1fr;background:#fff;padding:12px;gap:7px;font-size:13px;}
#wmdG1401SalesScreen .wmd-g1401-detail dt{color:#6a7582;}
#wmdG1401SalesScreen .wmd-g1401-detail dd{margin:0;font-weight:650;overflow-wrap:anywhere;}
#wmdG1401SalesScreen .wmd-g1401-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#wmdG1401SalesScreen .wmd-g1401-form label{display:flex;flex-direction:column;font-size:12px;font-weight:650;gap:5px;min-width:0;}
#wmdG1401SalesScreen .wmd-g1401-form label.wmd-g1401-check{flex-direction:row;align-items:center;}
#wmdG1401SalesScreen .wmd-g1401-form input:not([type=checkbox]),
#wmdG1401SalesScreen .wmd-g1401-form select,#wmdG1401SalesScreen .wmd-g1401-form textarea{
  width:100%;min-width:0;padding:9px;border:1px solid #cbd8e4;border-radius:7px;background:white;color:#172d45;}
#wmdG1401SalesScreen .wmd-g1401-form #wmdG1401Stops,

#wmdG1401SalesScreen .wmd-g1401-form .wmd-g1401-buttons,
#wmdG1401SalesScreen .wmd-g1401-form p{grid-column:1/-1;}
#wmdG1401SalesScreen .wmd-g1401-form #wmdG1401Stops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
#wmdG1401SalesScreen .wmd-g1401-form .wmd-g1401-buttons{display:flex;justify-content:flex-end;gap:8px;}
#wmdG1401SalesScreen .wmd-g1401-message{font-size:13px;font-weight:600;margin:2px 0;padding:6px 2px;}
#wmdG1401SalesScreen .wmd-g1401-message[data-error=true]{color:#a52b23;}
@media(max-width:490px){
 #wmdG1401SalesScreen.wmd-g1401-screen{top:54px;bottom:76px;padding:8px 9px 12px;}
 #wmdG1401SalesScreen .wmd-g1401-form{grid-template-columns:1fr;}
 #wmdG1401SalesScreen .wmd-g1401-form #wmdG1401Stops{grid-template-columns:1fr;}
 #wmdG1401SalesScreen .wmd-g1401-tools .wmd-g1401-primary{width:100%;}
 #wmdG1401SalesScreen .wmd-g1401-detail{grid-template-columns:92px minmax(0,1fr);}
}

/* G1404: new QA child views only. DO NOT target frozen G1124 header, main tabs, or Bon cards. */
#wmdG1401SalesScreen .wmd-g1401-form label.wmd-g1401-check{
 display:flex;flex-direction:row;align-items:center;justify-content:flex-start;
 gap:10px;min-height:44px;padding:4px 0;line-height:1.4;
}
#wmdG1401SalesScreen .wmd-g1401-form label.wmd-g1401-check input[type=checkbox]{
 appearance:auto;-webkit-appearance:checkbox;flex:0 0 23px;width:23px;height:23px;
 min-width:23px;max-width:23px;margin:0;padding:0;vertical-align:middle;
}
#wmdG1401SalesScreen .wmd-g1401-form label.wmd-g1401-check span{display:inline;white-space:normal;flex:1;text-align:left;}
#wmdG1401SalesScreen .wmd-g1401-table-scroll{overflow:visible;min-width:0;}
#wmdG1401SalesScreen .wmd-g1401-table{min-width:0;}
#wmdG1401SalesScreen .wmd-g1401-actions button{cursor:pointer;}
#wmdG1401SalesScreen .wmd-g1401-pager{padding-bottom:30px;}
#wmdG1401SalesScreen .wmd-g1401-top{min-height:44px;}
.wmd-g1404-bon-backdrop,.wmd-g1404-proof-overlay{position:fixed;inset:0;z-index:49;background:rgba(4,22,41,.6);display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box;}
.wmd-g1404-bon-dialog{max-width:550px;width:100%;max-height:86vh;overflow:auto;overscroll-behavior:contain;background:#f8fbff;border-radius:12px;padding:14px;color:#173c5b;box-shadow:0 12px 30px #071e3b50;box-sizing:border-box;}
.wmd-g1404-bon-head{position:sticky;top:-14px;z-index:3;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #d5e4ef;padding:8px 2px 12px;margin:0 0 12px;}
.wmd-g1404-bon-head strong{font-size:16px;line-height:1.35;}
.wmd-g1404-bon-head button{min-height:38px;padding:6px 13px;background:#123653;color:#fff;border:0;border-radius:7px;}
.wmd-g1404-bon-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px;}
.wmd-g1404-bon-tabs button{min-height:43px;border:1px solid #d2e0ea;background:#eaf1f7;border-radius:8px;color:#173c5b;font-weight:700;}
.wmd-g1404-bon-tabs button[aria-selected=true]{background:#123653;color:#fff;border-color:#123653;}
.wmd-g1404-readonly{font-size:11px;line-height:1.45;color:#52677b;margin:8px 0 12px;}
.wmd-g1404-bon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.wmd-g1404-field{min-width:0;background:#fff;border:1px solid #dae5ef;border-radius:7px;padding:8px;overflow-wrap:anywhere;}
.wmd-g1404-field small{display:block;color:#607488;font-size:11px;margin-bottom:5px;}
.wmd-g1404-field strong{display:block;color:#143654;font-size:12px;line-height:1.5;}
.wmd-g1404-transfer-item{border:1px solid #dce7ee;border-radius:8px;background:#fff;padding:10px;margin:10px 0;}
.wmd-g1404-transfer-item>strong{display:block;margin-bottom:9px;}
.wmd-g1404-error,.wmd-g1404-wizard-error{font-size:12px;line-height:1.4;color:#a32d22;font-weight:700;background:#fff1ef;border:1px solid #facbc4;border-radius:7px;padding:9px;margin:10px 0;}
.wmd-g1404-proof-button{display:inline-flex;justify-content:center;align-items:center;min-height:42px;margin:7px 5px 4px 0;padding:8px 12px;border-radius:7px;color:#fff;background:#123653;border:0;text-decoration:none;font-weight:700;}
.wmd-g1404-proof-overlay{z-index:60;}
.wmd-g1404-proof-overlay section{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:min(95vw,560px);max-height:90vh;overflow:auto;background:white;border-radius:10px;padding:14px;color:#123653;}
.wmd-g1404-proof-overlay img{max-width:100%;max-height:60vh;object-fit:contain;}
.wmd-g1404-proof-overlay button{min-height:40px;align-self:flex-end;padding:7px 14px;}
@media(max-width:490px){
 #wmdG1401SalesScreen .wmd-g1401-table-scroll{overflow:visible;background:transparent;}
 #wmdG1401SalesScreen .wmd-g1401-table,
 #wmdG1401SalesScreen .wmd-g1401-table tbody{display:block;width:100%;min-width:0;}
 #wmdG1401SalesScreen .wmd-g1401-table thead{display:none;}
 #wmdG1401SalesScreen .wmd-g1401-table tr{display:block;width:100%;background:#fff;border:1px solid #dce6ef;border-radius:9px;margin:0 0 9px;padding:8px;box-sizing:border-box;}
 #wmdG1401SalesScreen .wmd-g1401-table td{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;width:100%;min-width:0;border:0;border-bottom:1px solid #eef3f7;padding:6px 1px;white-space:normal;overflow-wrap:anywhere;text-align:right;font-size:12px;}
 #wmdG1401SalesScreen .wmd-g1401-table td::before{content:attr(data-label);flex:0 0 39%;min-width:0;text-align:left;color:#627588;font-size:11px;font-weight:650;}
 #wmdG1401SalesScreen .wmd-g1401-table td.wmd-g1401-actions{justify-content:flex-end;flex-wrap:wrap;gap:5px;padding-top:11px;}
 #wmdG1401SalesScreen .wmd-g1401-table td.wmd-g1401-actions::before{align-self:center;}
 #wmdG1401SalesScreen .wmd-g1401-table td.wmd-g1401-actions button{padding:6px 9px;min-height:32px;margin:0;}
 #wmdG1401SalesScreen .wmd-g1401-table td[colspan]{display:block;text-align:left;}
 .wmd-g1404-bon-backdrop{padding:8px;}
 .wmd-g1404-bon-dialog{max-height:85vh;padding:10px;}
 .wmd-g1404-bon-grid{grid-template-columns:1fr 1fr;gap:6px;}
}

/* G1408R2: enforce inactive detail panels hidden despite authored grid CSS. */
#wmdG1404BonBody[hidden],#wmdG1404TransferBody[hidden]{display:none!important;}

/* G1409: wizard form HTML hidden must win over legacy button/section display. */
.g976-navigation button[hidden],#g976Step1[hidden],#g976Step2[hidden],#g976Step3[hidden],#g976Step4[hidden],#g976Step5[hidden]{display:none!important;}
