
/* =========================================================
   V563 - QUOTE PAGE MATCH APPROVED DESIGN
   ========================================================= */

.v370-quote-page{
  background:#f5f7f6;
}
.v370-quote-shell{
  max-width:1600px;
  margin:0 auto;
}
.v370-quote-toolbar{
  position:sticky;
  top:0;
  z-index:20;
  padding:14px 16px;
  border:1px solid #dde6e1;
  border-radius:12px;
  background:rgba(255,255,255,.98);
  box-shadow:0 5px 18px rgba(15,23,42,.05);
}
.v370-quote-toolbar>div:first-child span{
  color:#7a867f;
  font-size:10px;
  font-weight:900;
  letter-spacing:.09em;
}
.v370-quote-toolbar h2{
  margin-top:3px;
  color:#153d2a;
  font-size:22px;
  font-weight:900;
}
.v370-quote-toolbar button{
  min-height:42px;
  border-radius:9px;
  font-weight:800;
}
.v370-quote-toolbar .primary{
  background:linear-gradient(90deg,#076a40,#0a8a50)!important;
  color:#fff!important;
}
.v370-quote-toolbar .preview{
  border:1px solid #0a6a40!important;
  color:#0a6a40!important;
  background:#fff!important;
}

.v563-editing-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:12px;
  padding:12px 14px;
  border:1px solid #e3c46d;
  border-left:5px solid #d9ac33;
  border-radius:10px;
  background:#fffaf0;
}
.v563-editing-banner>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.v563-editing-banner strong{
  color:#7a5a08;
  font-size:12px;
  letter-spacing:.04em;
}
.v563-editing-banner span{
  color:#756d58;
  font-size:11px;
}
.v563-editing-banner button{
  flex:0 0 auto;
  min-height:34px;
  padding:0 12px;
  border:1px solid #d9ac33;
  border-radius:8px;
  background:#fff;
  color:#755603;
  font-size:11px;
  font-weight:800;
}

/* main desktop form */
.v370-quote-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px!important;
  margin-top:12px!important;
}
.v370-order-panel{
  border:1px solid #dde6e1!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 4px 16px rgba(15,23,42,.035)!important;
}
.v370-panel-head{
  padding-bottom:10px!important;
  border-bottom:1px solid #edf1ef!important;
}
.v370-panel-head h3{
  color:#173d2a!important;
  font-size:14px!important;
  font-weight:900!important;
}
.v370-panel-head>span{
  border-radius:999px!important;
  background:#eef8f2!important;
  color:#086a40!important;
  font-size:9px!important;
  font-weight:900!important;
}
.v370-form-grid input,
.v370-form-grid select,
.v370-product-search,
.v392-temp-product input,
.v392-temp-product select{
  min-height:42px!important;
  border:1px solid #dfe6e2!important;
  border-radius:8px!important;
  background:#fff!important;
}
.v370-form-grid input:focus,
.v370-form-grid select:focus,
.v370-product-search:focus,
.v392-temp-product input:focus,
.v392-temp-product select:focus{
  border-color:#0a7546!important;
  box-shadow:0 0 0 3px rgba(10,117,70,.08)!important;
}
.v392-temp-product{
  grid-template-columns:minmax(220px,1.4fr) 110px 150px 110px auto!important;
  gap:8px!important;
  border:1px dashed #bfd1c6!important;
  border-radius:10px!important;
  background:#fbfdfc!important;
}
.v392-temp-head{
  grid-column:1/-1;
  color:#55665d!important;
  font-size:10px!important;
  font-weight:900!important;
}
.v392-temp-product button{
  min-height:42px!important;
  border-radius:8px!important;
  background:#076a40!important;
  color:#fff!important;
  font-weight:900!important;
}

/* Detail table */
.v370-lines-panel{
  grid-column:1/-1!important;
}
.v370-lines-wrap{
  border:1px solid #e3e9e5!important;
  border-radius:10px!important;
  overflow:hidden!important;
}
.v370-lines-table{
  width:100%!important;
}
.v370-lines-table thead th{
  padding:10px 8px!important;
  background:#f7faf8!important;
  color:#58665e!important;
  font-size:10px!important;
  font-weight:900!important;
}
.v370-lines-table tbody td{
  padding:9px 8px!important;
  vertical-align:middle!important;
}
.v370-lines-table input,
.v370-lines-table select{
  min-height:36px!important;
  border:1px solid #dfe6e2!important;
  border-radius:7px!important;
}
.v370-line-name strong{
  color:#173d2a!important;
  font-size:12.5px!important;
}
.v370-line-name small{
  color:#7b867f!important;
  font-size:9.5px!important;
}
.v370-total-box{
  border:1px solid #d8e4dd!important;
  border-radius:10px!important;
  background:linear-gradient(145deg,#f7fbf9,#fff)!important;
}
.v370-total-box>strong{
  color:#086a40!important;
  font-size:22px!important;
}

/* saved quote cards */
.v370-created-quote,
.v370-history-panel{
  border-radius:12px!important;
  border:1px solid #dde6e1!important;
  background:#fff!important;
}
.v370-created-quote button.edit,
.v370-history-list button.edit{
  border:1px solid #0a6a40!important;
  background:#eef8f2!important;
  color:#086a40!important;
  font-weight:900!important;
}
.v370-history-list article{
  border-radius:10px!important;
  border:1px solid #e2e8e4!important;
  background:#fff!important;
}
.v370-history-list article:hover{
  border-color:#b7d1c1!important;
  box-shadow:0 5px 16px rgba(15,23,42,.04)!important;
}

/* mobile create quote page */
@media(max-width:1100px){
  .v370-quote-shell{
    padding:0 8px 18px!important;
  }
  .v370-quote-toolbar{
    top:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    padding:11px!important;
    border-radius:10px!important;
  }
  .v370-quote-toolbar>div:last-child{
    display:grid!important;
    grid-template-columns:1fr 1fr 1fr!important;
    gap:7px!important;
  }
  .v370-quote-toolbar button{
    min-height:42px!important;
    padding:0 8px!important;
    font-size:10.5px!important;
  }
  .v563-editing-banner{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  .v563-editing-banner button{
    width:100%!important;
  }
  .v437r-quote-kpis{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .v370-quote-grid{
    grid-template-columns:1fr!important;
  }
  .v370-order-panel{
    padding:11px!important;
    border-radius:10px!important;
  }
  .v370-form-grid{
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  .v370-form-grid label.full{
    grid-column:1!important;
  }
  .v392-temp-product{
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  .v392-temp-head,
  .v392-temp-product input:first-of-type,
  .v392-temp-product button{
    grid-column:1/-1!important;
  }
  .v370-lines-wrap{
    overflow:visible!important;
    border:0!important;
  }
  .v370-lines-table{
    display:block!important;
  }
  .v370-lines-table thead{
    display:none!important;
  }
  .v370-lines-table tbody{
    display:grid!important;
    gap:9px!important;
  }
  .v370-lines-table tbody tr{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px 10px!important;
    padding:11px!important;
    border:1px solid #dce5df!important;
    border-radius:11px!important;
    background:#fff!important;
  }
  .v370-lines-table tbody td{
    display:block!important;
    width:auto!important;
    padding:0!important;
    border:0!important;
  }
  .v370-lines-table tbody td:nth-child(1){
    display:none!important;
  }
  .v370-lines-table tbody td:nth-child(2){
    grid-column:1/-1!important;
    padding-bottom:7px!important;
    border-bottom:1px dashed #e3e8e5!important;
  }
  .v370-lines-table tbody td:nth-child(7){
    grid-column:1/-1!important;
    padding-top:7px!important;
    border-top:1px solid #edf1ef!important;
  }
  .v370-lines-table tbody td:nth-child(8){
    position:absolute!important;
    right:12px!important;
    top:10px!important;
  }
  .v370-lines-table tbody tr{
    position:relative!important;
  }
  .v370-quote-footer{
    grid-template-columns:1fr!important;
    gap:9px!important;
  }
  .v370-total-box{
    width:100%!important;
  }
  .v370-created-quote{
    display:grid!important;
    gap:10px!important;
  }
  .v370-created-quote>div:last-child{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  .v370-created-quote button,
  .v370-created-quote select{
    width:100%!important;
    min-height:40px!important;
  }
}

@media(max-width:430px){
  .v437r-quote-kpis{
    grid-template-columns:1fr!important;
  }
  .v370-quote-toolbar>div:last-child{
    grid-template-columns:1fr!important;
  }
  .v392-temp-product{
    grid-template-columns:1fr!important;
  }
  .v392-temp-product>*{
    grid-column:1!important;
  }
}
