.soa-quotes {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  color: #25233e;
}
.soa-qpage-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px clamp(12px, 2vw, 22px);
  border: 1px solid #eae5f1;
  border-radius: 22px;
  background: #f7f3fae8;
}
.soa-qpage-title > div { flex: 1; min-width: 0; }
.soa-qpage-title h1 {
  margin: 0;
  font: 900 clamp(1.25rem, 2.7vw, 1.875rem)/1.12 "Inter Tight", Inter, sans-serif;
}
.soa-qpage-title p { margin: 5px 0 0; color: #68637d; }
.soa-qpage-title .round-action { flex: 0 0 44px; color: #6c59db; }
.soa-qcounts { display:flex; flex-wrap:wrap; gap: 7px; }
.soa-qcounts > span, .soa-qref, .soa-qbudget {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e8e1ff;
  color: #5840b5;
  font-weight: 800;
  font-size: .875rem;
}
.soa-qcounts > span:nth-child(2) {
  background: #a73658;
  color: #fff;
}
.soa-qsearch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: white;
  border: 1px solid #e3ddeb;
  border-radius: 16px;
  color: #685be2;
}
.soa-qsearch input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  font: inherit;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #292640;
}
.soa-qsearch input:focus { outline: none; }
.soa-qsearch:focus-within { outline: 2px solid #685be2; outline-offset: 2px; }
.soa-qtabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: white;
  border: 1px solid #e3ddeb;
  border-radius: 17px;
  box-shadow: 0 4px 10px #0001;
}
.soa-qtabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 5px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #514b61;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}
.soa-qtabs .accepted { --qtab-color: #288450; --qtab-tint: #e4f2e9; }
.soa-qtabs .refused { --qtab-color: #a93658; --qtab-tint: #fbe6ed; }
.soa-qtabs .pending { --qtab-color: #6251d0; --qtab-tint: #eee9fc; }
.soa-qtabs button > span:last-child {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--qtab-tint);
  color: var(--qtab-color);
  font-size: .875rem;
}
.soa-qtabs button[aria-pressed="true"] { background: var(--qtab-color); color: #fff; }
.soa-qtabs button[aria-pressed="true"] > span:last-child { background: #ffffff37; color: white; }
.soa-qtabs button:focus-visible, .soa-quotes .round-action:focus-visible { outline: 2px solid #6150cf; outline-offset: 2px; }
.soa-qresults { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.soa-qcard, .soa-qempty {
  min-width: 0;
  background: #fff;
  border: 1px solid #e3ddeb;
  border-radius: 17px;
  padding: 12px;
}
.soa-qempty {
  grid-column: 1/-1;
  color: #68637d;
  text-align: center;
  padding: 32px 14px;
}
.soa-qempty .ico { color: #7461ea; }
.soa-qcard > header, .soa-qcard-main { display:flex; align-items: center; justify-content: space-between; gap: 10px; }
.soa-qcard > header { align-items: flex-start; }
.soa-qcard > header h2 {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: #2a2844;
  font: 900 1rem/1.2 "Inter Tight", Inter, sans-serif;
  overflow-wrap: anywhere;
}
.soa-qcard > header h2 .ico { flex-shrink: 0; color: #766bf3; }
.soa-qcard-summary { margin: 7px 0 0; color: #686278; }
.soa-qbudget { margin-top: 7px; background: #dff3e3; color: #24673b; }
.soa-qref { flex-shrink: 0; font-size: .75rem; }
.soa-qcard-inner {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e5dfee;
  border-radius: 18px;
  background: #f2eef7;
}
.soa-qperson { display:flex; min-width:0; align-items:center; gap: 10px; overflow-wrap: anywhere; }
.soa-qperson > img { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; object-fit: cover; }
.soa-qperson strong,.soa-qperson small,.soa-qprice strong,.soa-qprice small { display: block; }
.soa-qprice { text-align: right; flex-shrink: 0; }
.soa-qprice strong { font: 900 clamp(1rem,1.7vw,1.3rem)/1.15 "Inter Tight", Inter, sans-serif; }
.soa-qperson small,.soa-qprice small { color: #635b77; font-weight: 650; font-size: .875rem; }
.soa-qstatus { display: inline-block; margin: 0; color: #5840b5; font-weight: 800; }
.soa-qstatus.accepted { color: #257146; }
.soa-qstatus.refused { color: #a93658; }
.soa-qstatus.state-accepted_pending_payment { color: #8b5910; }
.soa-qmessage { margin: 0; color: #615a72; overflow-wrap: anywhere; white-space: pre-line; }
.soa-qcard-inner > button { width: 100%; min-height: 40px; }
.soa-qsync { margin: 0; padding: 10px 14px; border-radius: 12px; color:#8d304b; background:#fff0f3; }
.soa-qdetail-grid { display:grid; gap: 14px; align-items:start; }
.soa-qdetails-aside { display:grid; gap: 14px; min-width:0; }
.soa-qdetail-panel {
  min-width:0;
  padding: clamp(13px, 2vw, 22px);
  border: 1px solid #eae5f1;
  border-radius: 24px;
  background: #f4eff8;
  overflow-wrap: anywhere;
}
.soa-qdetail-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font: 900 clamp(1.15rem,2vw,1.55rem)/1.15 "Inter Tight", Inter, sans-serif;
}
.soa-qdetail-panel h2 .ico { color: #7562e9; flex-shrink: 0; }
.soa-qdetail-panel h3 { margin-bottom: 7px; }
.soa-qdetail-panel p { margin: 0 0 8px; white-space: pre-line; }
.soa-qdetail-panel ul { display:grid; gap:7px; padding:0; list-style:none; }
.soa-qdetail-panel li { display:flex; align-items:center; gap:7px; }
.soa-qdetail-panel li .ico { color:#7562e9; flex-shrink:0; }
.soa-qdetail-panel .soa-qstatus { margin: 7px 0 0; border-radius: 999px; background: #e9e2ff; padding: 5px 9px; }
.soa-qdetail-panel .soa-qstatus.accepted { background:#dff3e5; }
.soa-qdetail-panel .soa-qstatus.refused { background:#fbe4eb; }
.soa-qdetail-panel .soa-qstatus.state-accepted_pending_payment { background:#fff1d9; }
.soa-qdetail-panel dl { display:grid; gap: 11px; margin: 15px 0; }
.soa-qdetail-panel dl > div { display:grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap:8px; }
.soa-qdetail-panel dt, .soa-qmuted { color: #676079; }
.soa-qdetail-panel dd { margin:0; font-weight: 800; }
.soa-qtax {
  padding: 14px;
  border: 1px solid #d9ccff;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f7f3ff);
}
.soa-qtax h3 { margin-top: 0; }
.soa-qtax dl > div { grid-template-columns: minmax(0,1fr) auto; }
.soa-qtax summary { color: #5943cd; cursor: pointer; }
.soa-qactions { display:grid; gap:9px; }
.soa-qactions .btn { min-height: 42px; width:100%; }
.soa-qpdf-viewer { width: min(850px, calc(100vw - 30px)); padding: 12px; border: none; border-radius: 16px; }
.soa-qpdf-viewer::backdrop { background: #262135b0; }
.soa-qpdf-viewer iframe { display:block; width:100%; height: min(72dvh, 850px); margin-top: 10px; border:0; }
@media (min-width: 940px) {
  .soa-qresults { grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px; }
  .soa-qdetail-grid { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap:16px; }
}
@media (max-width: 530px) {
  .soa-qtabs button { flex-direction: column; gap: 4px; font-size:.875rem; }
  .soa-qpage-title > .btn { padding-inline: 8px; }
}
@media (max-width: 370px) {
  .soa-qcard-main { flex-wrap: wrap; }
  .soa-qprice { margin-left:auto; }
}
.soa-qsearch input::-webkit-search-cancel-button { display: none; }
.soa-qsearch button { display:grid; place-items:center; width:35px; height:35px; flex-shrink:0; border:0; border-radius:10px; background:#f6f2fc; color:#63568c; cursor:pointer; }
.soa-qsearch button[hidden] { display:none; }
