:root{
  --qw-bg:#f6f7fb;
  --qw-panel:#ffffff;
  --qw-panel2:#fbfcfe;
  --qw-text:#0b1220;
  --qw-muted:#5b667a;
  --qw-muted2:#7b879c;
  --qw-line:rgba(8,20,26,.12);
  --qw-ok:#1f9d55;
  --qw-warn:#b7791f;
  --qw-danger:#b83280;
  --qw-brand:#0b6b55;
  --qw-brand2:#39d0ff;
  --qw-shadow: 0 10px 30px rgba(8,20,26,.10);
  --qw-radius:18px;
  --qw-radius2:14px;
}

.quoteApp{
  margin: 14px 18px 30px;
  padding: 14px;
  border: 1px solid rgba(8,20,26,.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.62));
}

.quoteTopbar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding: 10px 10px 14px;
}
.quoteTopbarLeft{display:flex; flex-direction:column; gap:4px}
.quoteTitle{font-weight:950; letter-spacing:-.01em; color:rgba(8,20,26,.92)}
.quoteMeta{font-size:12px; color:rgba(8,20,26,.60)}
.quoteTopbarActions{display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end}
.quoteSelect{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(8,20,26,.14);
  background:rgba(255,255,255,.9);
  font-weight:750;
  min-width: 240px;
}
.quoteSearch{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(8,20,26,.14);
  background:rgba(255,255,255,.9);
  font-weight:750;
  min-width: 240px;
}

.quoteCards{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:12px;
  margin: 6px 10px 16px;
}
.quoteCardBtn{
  text-align:left;
  border:1px solid rgba(8,20,26,.12);
  background: rgba(255,255,255,.86);
  border-radius:16px;
  padding:12px;
  cursor:pointer;
  box-shadow: 0 10px 30px rgba(8,20,26,.08);
  transition: transform .10s ease, box-shadow .12s ease, border-color .12s ease;
}
.quoteCardBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(8,20,26,.12);
  border-color: rgba(11,107,85,.22);
}
.quoteCardBtn.active{
  border-color: rgba(11,107,85,.34);
  box-shadow: 0 18px 42px rgba(11,107,85,.12);
  outline: 4px solid rgba(11,107,85,.14);
}
.quoteCardTop{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.quoteCardTop b{font-weight:950; color:rgba(8,20,26,.92)}
.quoteCardMeta{margin-top:6px; font-size:12px; color:rgba(8,20,26,.60); font-weight:750; line-height:1.35}
.quoteCardStatus{font-size:11px; font-weight:900; padding:6px 10px; border-radius:999px; border:1px solid rgba(8,20,26,.12); background:rgba(8,20,26,.03); color:rgba(8,20,26,.72); white-space:nowrap}
.quoteCardStatus.sent{border-color:rgba(14,165,233,.22); background:rgba(14,165,233,.10); color:rgba(14,116,144,.95)}
.quoteCardStatus.accepted{border-color:rgba(31,157,85,.22); background:rgba(31,157,85,.10); color:rgba(31,157,85,.95)}
.quoteCardStatus.draft{border-color:rgba(183,121,31,.22); background:rgba(183,121,31,.10); color:rgba(183,121,31,.95)}

.qwApp{
  max-width:1240px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:18px;
}
@media (max-width: 1140px){
  .qwApp{grid-template-columns:1fr}
  .quoteApp .sticky{position:static}
  .quoteSelect{min-width: 180px}
  .quoteSearch{min-width: 180px}
}
@media (max-width: 560px){
  .quoteApp{margin: 10px 0 18px; padding: 10px; border-radius: 14px;}
  .quoteTopbar{flex-direction:column; align-items:stretch}
  .quoteTopbarActions{justify-content:flex-start}
  .quoteSelect{width:100%; min-width:0}
  .quoteSearch{width:100%; min-width:0}
  .quoteTopbarActions button{width:100%; justify-content:center}
}

.quoteApp *{box-sizing:border-box}
.quoteApp a{color:inherit}

.quoteApp .panel{
  border:1px solid var(--qw-line);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.80));
  border-radius: var(--qw-radius);
  box-shadow: var(--qw-shadow);
  overflow:hidden;
}
.quoteApp .panelHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:16px 16px 10px;
  border-bottom:1px solid var(--qw-line);
  background: rgba(8,20,26,.03);
}
.quoteApp .panelHeader h2{
  margin:0;
  font-size:15px;
  letter-spacing:.3px;
  color:rgba(8,20,26,.92);
}
.quoteApp .sub{
  margin-top:6px;
  color:rgba(8,20,26,.58);
  font-size:12px;
  line-height:1.4;
  max-width:64ch;
}
.quoteApp .panelBody{ padding:16px; }

.quoteApp .wizard{ min-height: 520px; }
.quoteApp .steps{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:14px 16px;
  border-bottom:1px solid var(--qw-line);
  background: rgba(255,255,255,.70);
}
.quoteApp .step{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid rgba(8,20,26,.12);
  border-radius:999px;
  font-size:12px;
  color:rgba(8,20,26,.72);
  background: rgba(255,255,255,.78);
}
.quoteApp .step .n{
  width:20px;height:20px;border-radius:999px;
  display:grid;place-items:center;
  background: rgba(11,107,85,.12);
  color: var(--qw-brand);
  font-weight:800;
  border:1px solid rgba(11,107,85,.22);
}
.quoteApp .step.active{
  border-color: rgba(11,107,85,.35);
  color: rgba(8,20,26,.92);
  box-shadow: 0 10px 24px rgba(11,107,85,.10);
}
.quoteApp .step.active .n{
  background: linear-gradient(135deg, rgba(11,107,85,.92), rgba(57,208,255,.70));
  color: #ffffff;
  border-color: transparent;
}

.quoteApp .foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-top:1px solid var(--qw-line);
  background: rgba(255,255,255,.70);
}
.quoteApp .row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.quoteApp .btn{
  cursor:pointer;
  border:none;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(8,20,26,.04);
  border:1px solid rgba(8,20,26,.12);
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  font-weight:800;
  font-size:13px;
  display:inline-flex; gap:8px; align-items:center; justify-content:center;
  user-select:none;
  white-space:nowrap;
  color: rgba(8,20,26,.92);
}
.quoteApp .btn:hover{background: rgba(8,20,26,.06); border-color: rgba(8,20,26,.18)}
.quoteApp .btn:active{transform: translateY(1px)}
.quoteApp .btn.primary{
  background: linear-gradient(135deg, rgba(11,107,85,.92), rgba(57,208,255,.78));
  border-color: transparent;
  box-shadow: 0 16px 26px rgba(57,208,255,.16);
  color:#062018;
}
.quoteApp .btn.primary:hover{filter: brightness(1.03)}

.quoteApp .tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(8,20,26,.12);
  background: rgba(255,255,255,.78);
  color:rgba(8,20,26,.64);
  font-weight:800;
}
.quoteApp .tag.brand{border-color:rgba(11,107,85,.22); background:rgba(11,107,85,.10); color:var(--qw-brand)}
.quoteApp .tag.ok{border-color:rgba(31,157,85,.22); background:rgba(31,157,85,.10); color:var(--qw-ok)}
.quoteApp .tag.warn{border-color:rgba(183,121,31,.22); background:rgba(183,121,31,.10); color:var(--qw-warn)}

.quoteApp .sticky{ position: sticky; top: 16px; height: fit-content; }
.quoteApp .summaryTop{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.quoteApp .sumTitle{font-weight:950; font-size:14px; color:rgba(8,20,26,.92)}
.quoteApp .sumMeta{margin-top:4px; color:rgba(8,20,26,.62); font-size:12px; line-height:1.35}
.quoteApp .sumBox{
  margin-top:12px;
  padding:12px;
  border:1px solid rgba(8,20,26,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.85);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.quoteApp .sumItem{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.quoteApp .sumItem .k{font-size:12px; color:rgba(8,20,26,.62); font-weight:850}
.quoteApp .sumItem .val{ text-align:right; font-weight:950; color:rgba(8,20,26,.92) }
.quoteApp .sumItem .val span{display:block; margin-top:2px; font-size:11px; color:rgba(8,20,26,.54); font-weight:750}

.quoteApp .qwInput{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(8,20,26,.14);
  background: rgba(255,255,255,.94);
  color: rgba(8,20,26,.92);
  font-weight: 800;
}
.quoteApp input.qwInput{ text-align:left; }
.quoteApp select.qwInput{ font-weight:850; }
