/* v0.58.42 WISE completion, screenshot acceptance, and responsive corrections. */

/* Repairs & Sales: every logical row owns its spacing; fieldsets never touch textareas. */
.speedtex-customer-work-order .speedtex-work-order-create{display:grid;gap:1rem}
.speedtex-customer-work-order .speedtex-work-order-create>.speedtex-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1rem!important;align-items:start!important}
.speedtex-customer-work-order .speedtex-work-order-create>.speedtex-form-grid>label{min-width:0!important;margin:0!important}
.speedtex-customer-work-order .speedtex-work-order-create>.speedtex-form-grid>label.speedtex-wide{grid-column:1/-1!important}
.speedtex-customer-work-order .speedtex-work-order-create textarea{display:block!important;width:100%!important;box-sizing:border-box!important;margin-top:.4rem!important}
.speedtex-customer-work-order .speedtex-work-order-create fieldset{display:block!important;clear:both!important;margin:0!important;padding:1rem!important;border:1px solid #cfdde6!important;border-radius:.75rem!important;min-width:0!important}
.speedtex-customer-work-order .speedtex-work-order-create fieldset legend{float:none!important;width:auto!important;padding:0 .35rem!important;margin:0!important}
.speedtex-customer-work-order .speedtex-device-intake-choice{display:grid!important;grid-template-columns:minmax(12rem,.7fr) minmax(0,1.3fr)!important;gap:1rem!important;align-items:start!important;padding:.85rem 0!important}
.speedtex-customer-work-order .speedtex-device-intake-choice+.speedtex-device-intake-choice{border-top:1px solid #dce6ec}
.speedtex-customer-work-order .speedtex-work-order-create>button{justify-self:start!important;margin:0!important}

/* Protected access consent: compact checkbox + statement, no artificial third column. */
.speedtex-sensitive-panel .speedtex-inline-create .speedtex-form-grid{align-items:start!important}
.speedtex-sensitive-panel .speedtex-inline-create .speedtex-form-grid>.speedtex-consent-check{display:grid!important;grid-template-columns:1.25rem minmax(0,1fr) auto!important;column-gap:.75rem!important;align-items:start!important;min-height:0!important;margin:.25rem 0!important;padding:.75rem!important;border:1px solid #dbe6ec!important;border-radius:.65rem!important;background:#f8fbfc!important;line-height:1.45!important}
.speedtex-sensitive-panel .speedtex-inline-create .speedtex-form-grid>.speedtex-check input{grid-column:1!important;margin:.18rem 0 0!important;width:1.1rem!important;height:1.1rem!important;min-height:0!important}
.speedtex-sensitive-panel .speedtex-inline-create .speedtex-form-grid>.speedtex-consent-check>span{grid-column:2!important;min-width:0!important}
.speedtex-sensitive-panel .speedtex-inline-create .speedtex-form-grid>.speedtex-consent-check>strong{grid-column:3!important;color:#a62a25!important;font-size:.7rem!important;letter-spacing:.04em!important;text-transform:uppercase!important;white-space:nowrap!important}
.speedtex-sensitive-panel .speedtex-inline-create .speedtex-form-grid>.speedtex-check::before{display:none!important;content:none!important}
.speedtex-sensitive-panel .speedtex-inline-create .speedtex-form-grid>.speedtex-check::after{display:none!important}

/* Progressive WISE workspace. */
.speedtex-wise-v5842{border-top:4px solid #d49a1e!important}
.speedtex-wise-device-v5842{margin-top:1rem;border:1px solid #ccdce5;border-radius:.85rem;background:#fff;overflow:hidden}
.speedtex-wise-device-v5842>summary{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;background:#f5f9fb;font-weight:850;cursor:pointer}
.speedtex-wise-progressive-form{display:grid;gap:1rem;padding:1rem}
.speedtex-wise-progressive-form>fieldset{margin:0;padding:1rem;border:1px solid #d6e3ea;border-radius:.75rem;min-width:0}
.speedtex-wise-progressive-form>fieldset>legend{padding:0 .4rem;font-weight:850;color:#0e405f}
.speedtex-wise-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1rem;align-items:start}
.speedtex-wise-grid>label{display:grid;gap:.35rem;min-width:0;font-weight:750}
.speedtex-wise-grid>.speedtex-wide{grid-column:1/-1}
.speedtex-wise-grid select,.speedtex-wise-grid input,.speedtex-wise-grid textarea{width:100%;box-sizing:border-box}
.speedtex-wise-grid .speedtex-check{display:grid!important;grid-template-columns:1.2rem minmax(0,1fr)!important;column-gap:.7rem!important;align-items:start!important;font-weight:650!important}
.speedtex-wise-grid .speedtex-check input{width:1.1rem!important;height:1.1rem!important;min-height:0!important;margin:.15rem 0 0!important}
.speedtex-condition-matrix-v5842{display:grid;gap:.55rem;margin-bottom:1rem}
.speedtex-condition-matrix-v5842>div{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(11rem,.7fr) minmax(12rem,1fr);gap:.75rem;align-items:center;padding:.55rem;border-radius:.55rem;background:#f7fafc}
.speedtex-finding-photos{display:grid;gap:.45rem;margin-top:1rem;padding:1rem;border-radius:.65rem;background:#f5f9fb}
.speedtex-finding-photos .speedtex-check{display:flex!important;gap:.6rem!important;align-items:flex-start!important}
.speedtex-before-after{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.speedtex-before-after>section{min-width:0;padding:.85rem;border:1px solid #d9e4ea;border-radius:.7rem;background:#f9fbfc}
.speedtex-before-after h4{margin:.1rem 0 .8rem;color:#0b3f60}
.speedtex-test-row{display:grid;grid-template-columns:minmax(10rem,1fr) minmax(9rem,.7fr);gap:.55rem;padding:.55rem 0;border-bottom:1px solid #e0e8ed;align-items:center}
.speedtex-test-row>input{grid-column:1/-1}
.speedtex-offline-conflict{padding:.75rem 1rem;border:1px solid #d49a1e;border-radius:.65rem;background:#fff7df;color:#704c00;font-weight:750}
.speedtex-scan-control{display:flex;gap:.65rem;align-items:center;margin-top:.5rem}
.speedtex-scan-control input[type=file]{max-width:24rem}

@media(max-width:900px){
  .speedtex-condition-matrix-v5842>div{grid-template-columns:1fr 1fr}
  .speedtex-condition-matrix-v5842>div>input{grid-column:1/-1}
  .speedtex-before-after{grid-template-columns:1fr}
}
@media(max-width:760px){
  .speedtex-customer-work-order .speedtex-work-order-create>.speedtex-form-grid,.speedtex-wise-grid{grid-template-columns:1fr!important}
  .speedtex-customer-work-order .speedtex-device-intake-choice{grid-template-columns:1fr!important}
  .speedtex-condition-matrix-v5842>div,.speedtex-test-row{grid-template-columns:1fr}
  .speedtex-condition-matrix-v5842>div>input,.speedtex-test-row>input{grid-column:1}
  .speedtex-wise-grid>.speedtex-wide{grid-column:1}
}
