
.xdth-boq-wrap{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;max-width:1100px;margin:18px auto;padding:14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.xdth-boq-title{margin:0 0 6px 0;font-size:20px;line-height:1.2}
.xdth-boq-sub{margin:0;color:#4b5563}
.xdth-boq-inputs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}
.xdth-field label{display:block;font-size:12px;color:#374151;margin-bottom:6px}
.xdth-field input,.xdth-field select,.xdth-field textarea{width:100%;padding:10px;border:1px solid #d1d5db;border-radius:10px;box-sizing:border-box}
.xdth-boq-actions{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 14px 0}
.xdth-btn{padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff;cursor:pointer;text-decoration:none;display:inline-block}
.xdth-btn-primary{border-color:#111827}
.xdth-boq-table-wrap{overflow:auto;border:1px solid #e5e7eb;border-radius:12px}
.xdth-boq-table{width:100%;border-collapse:collapse;min-width:980px}
.xdth-boq-table th,.xdth-boq-table td{padding:10px;border-bottom:1px solid #f1f5f9;vertical-align:top}
.xdth-boq-table thead th{position:sticky;top:0;background:#f9fafb;z-index:1;text-align:left}
.xdth-boq-table .num{text-align:right;white-space:nowrap}
.xdth-boq-table .right{text-align:right}
.xdth-row-group{background:#f3f4f6;font-weight:600}
.xdth-input-num{width:120px;max-width:100%;padding:8px;border:1px solid #d1d5db;border-radius:10px;text-align:right}
.xdth-note{color:#6b7280;font-size:12px}
.xdth-chip{display:inline-block;padding:2px 8px;border:1px solid #d1d5db;border-radius:999px;font-size:11px;color:#374151}
.xdth-boq-note{margin-top:12px;color:#374151;font-size:13px}
.xdth-boq-lead{margin-top:14px;padding:12px;border:1px solid #e5e7eb;border-radius:12px;background:#fafafa}
.xdth-boq-h3{margin:0 0 10px 0;font-size:16px}
.xdth-lead-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.xdth-field-full{grid-column:1/-1}
.xdth-submit-row{display:flex;gap:10px;align-items:center;margin-top:10px;flex-wrap:wrap}
.xdth-success{margin-top:10px;padding:10px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:12px}
.xdth-links a{color:#111827}
.xdth-hp{display:none}
@media (max-width:980px){
  .xdth-boq-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .xdth-lead-grid{grid-template-columns:1fr}
}


/* --- PRO overrides (fix theme conflicts) --- */
.xdth-btn{
  color:#111827 !important;
  background:#ffffff !important;
}
.xdth-btn:hover{
  background:#f9fafb !important;
}
.xdth-btn-primary{
  background:#111827 !important;
  color:#ffffff !important;
  border-color:#111827 !important;
}
.xdth-btn-primary:hover{
  background:#0b1220 !important;
  border-color:#0b1220 !important;
}


/* --- PRO overrides v2 (strong specificity for buttons) --- */
.xdth-boq-wrap .xdth-btn,
.xdth-boq-wrap .xdth-btn:visited,
.xdth-boq-wrap button.xdth-btn,
.xdth-boq-wrap input.xdth-btn{
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important; /* fix gradient/transparent text */
  background-color:#ffffff !important;
  background-image:none !important;
  border-color:#d1d5db !important;
  text-decoration:none !important;
  opacity:1 !important;
}

.xdth-boq-wrap .xdth-btn:hover,
.xdth-boq-wrap button.xdth-btn:hover{
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background-color:#f9fafb !important;
  background-image:none !important;
}

.xdth-boq-wrap .xdth-btn-primary,
.xdth-boq-wrap .xdth-btn-primary:visited,
.xdth-boq-wrap button.xdth-btn-primary{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  background-color:#111827 !important;
  background-image:none !important;
  border-color:#111827 !important;
}

.xdth-boq-wrap .xdth-btn-primary:hover,
.xdth-boq-wrap button.xdth-btn-primary:hover{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  background-color:#0b1220 !important;
  background-image:none !important;
  border-color:#0b1220 !important;
}

/* Prevent child elements inheriting weird fill colors */
.xdth-boq-wrap .xdth-btn *,
.xdth-boq-wrap .xdth-btn-primary *{
  color:inherit !important;
  -webkit-text-fill-color:currentColor !important;
}
