.basap-hd-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #334155; max-width: 1200px; margin: 20px auto; padding: 0 15px; box-sizing: border-box; }
.basap-hd-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.basap-hd-card h2 { font-size: 22px; margin: 0 0 6px 0; color: #0f172a; font-weight: 700; }
.basap-hd-subtitle { font-size: 14px; color: #64748b; margin: 0 0 24px 0; line-height: 1.5; }
.basap-hd-table-wrapper { width: 100%; overflow: hidden; }
.basap-hd-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 800px; }
.basap-hd-table th, .basap-hd-table td { border: 1px solid #e2e8f0; padding: 14px 16px; vertical-align: top; font-size: 13.5px; word-wrap: break-word; box-sizing: border-box; }
.basap-hd-table th { background-color: #f8fafc; color: #0f172a; font-weight: bold; }
.basap-hd-th-sub { display: block; font-size: 11px; font-weight: normal; color: #64748b; margin-top: 4px; }
.basap-hd-editable { width: 100%; font-weight: 700; font-size: 13.5px; color: #0f172a; border: 1px solid transparent; background: transparent; padding: 4px; border-radius: 4px; cursor: pointer; box-sizing: border-box; }
.basap-hd-editable:hover { border-color: #cbd5e1; background: #f8fafc; }
.basap-hd-editable:focus, .basap-hd-select:focus { border-color: #2563eb; outline: none; background: #ffffff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.basap-hd-q-cell p { font-size: 12px; color: #64748b; margin: 6px 0 0 4px; line-height: 1.4; }
.basap-hd-select { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background-color: #ffffff; color: #334155; font-size: 13px; box-sizing: border-box; }
.basap-hd-subtext { font-size: 11.5px; color: #64748b; font-style: italic; margin: 6px 0 0 2px; line-height: 1.3; }
.basap-hd-row-total { background-color: #f8fafc; font-weight: bold; }
.basap-hd-badge { display: block; padding: 6px 12px; border-radius: 20px; color: #ffffff; font-weight: 600; font-size: 12px; text-align: center; }
.basap-hd-badge.hd-lvl-1 { background-color: #64748b; }
.basap-hd-badge.hd-lvl-2 { background-color: #10b981; }
.basap-hd-badge.hd-lvl-3 { background-color: #f59e0b; }
.basap-hd-badge.hd-lvl-4 { background-color: #e11d48; }
.basap-hd-row-section-divider { background: #f1f5f9; color: #1e293b; font-weight: bold; }
.basap-hd-row-section-divider td { padding: 12px 16px; font-weight: bold; background: #f1f5f9; border-top: 2px solid #cbd5e1; border-bottom: 2px solid #cbd5e1; }
.basap-hd-mail-container { padding: 20px; background: #f8fafc; border-radius: 8px; border: 1px dashed #cbd5e1; }
.basap-hd-fields { display: flex; gap: 15px; margin-bottom: 14px; }
.basap-hd-fields input[type="email"] { flex: 1; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.basap-hd-fields button { background: #2563eb; color: #ffffff; border: none; padding: 10px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 14px; white-space: nowrap; transition: background 0.2s; box-sizing: border-box; }
.basap-hd-fields button:hover { background: #1d4ed8; }
.basap-hd-fields button:disabled { background: #94a3b8; cursor: not-allowed; }
.basap-hd-consents { font-size: 12px; color: #475569; line-height: 1.5; }
.basap-hd-consent-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; user-select: none; }
.basap-hd-consent-label input[type="checkbox"] { margin-top: 3px; width: 15px; height: 15px; }
#basap-hd-form-response { margin-top: 12px; font-weight: 600; font-size: 13.5px; }
#basap-hd-form-response.success { color: #10b981; }
#basap-hd-form-response.error { color: #e11d48; }
.basap-hd-legenda { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; background: #f8fafc; border: 1px solid #e2e8f0; padding: 18px; border-radius: 8px; font-size: 12.5px; color: #475569; line-height: 1.5; }
.basap-hd-editor-holder { width: 100%; clear: both; }