/* ═══════════════════════════════════════════════════════════════
   HR Automate — Document Builder CSS
   ═══════════════════════════════════════════════════════════════ */

:root {
    --hra-dark:    #1a1a2e;
    --hra-accent:  #e94560;
    --hra-light:   #f5f5f7;
    --hra-border:  #e0e0e0;
    --hra-text:    #222;
    --hra-muted:   #888;
    --hra-sidebar: 280px;
    --hra-topbar:  60px;
    --hra-radius:  8px;
}

/* Reset inside the builder — defends against theme interference (Elementor, etc.) */
.hra-builder,
.hra-builder * {
    box-sizing: border-box;
}
.hra-builder h1,
.hra-builder h2,
.hra-builder h3,
.hra-builder h4,
.hra-builder p,
.hra-builder label,
.hra-builder ul,
.hra-builder li {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
}
.hra-builder ul { list-style: none; }
.hra-builder button {
    font-family: inherit;
    line-height: 1.2;
}
.hra-builder input,
.hra-builder select {
    font-family: inherit;
    line-height: 1.2;
    background: #fff;
}

/* Builder layout */
.hra-builder {
    display: flex;
    height: calc(100vh - 80px);
    min-height: 600px;
    border: 1px solid var(--hra-border);
    border-radius: var(--hra-radius);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #fff;
    color: var(--hra-text);
    font-size: 14px;
    line-height: 1.5;
}

/* Sidebar */
.hra-sidebar {
    width: var(--hra-sidebar);
    background: var(--hra-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}
.hra-sidebar-header { padding: 20px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hra-sidebar-logo-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hra-sidebar-logo {
    max-width: 100%;
    max-height: 56px;
    height: auto;
    width: auto;
    display: block;
}
.hra-logo { font-size: 18px; font-weight: bold; color: #fff; }
.hra-tagline { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.hra-categories { flex: 1; overflow-y: auto; }
.hra-cat-header {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    transition: background 0.15s;
}
.hra-cat-header:hover { background: rgba(255,255,255,0.07); }
.hra-cat-arrow { font-size: 11px; color: rgba(255,255,255,0.4); }
.hra-doc-list { display: none; background: rgba(0,0,0,0.2); }
.hra-doc-list.open { display: block; }
.hra-doc-item {
    padding: 10px 16px 10px 24px;
    cursor: pointer;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.15s;
}
.hra-doc-item:hover, .hra-doc-item.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.hra-doc-item.active { border-left: 3px solid var(--hra-accent); }

/* ── Trial / locked document styling (v1.6.0) ─────────────────────────── */
.hra-doc-item.hra-doc-locked {
    opacity: 0.55;
}
.hra-doc-item.hra-doc-locked:hover {
    opacity: 0.85;
    background: rgba(255,255,255,0.06);
}
.hra-doc-lock {
    display: inline-block;
    margin-right: 6px;
    font-size: 11px;
    filter: grayscale(1);
    opacity: 0.7;
}
.hra-badge-trial {
    background: #cfe9ff;
    color: #0b5275;
}

/* Upgrade modal shown when trial users click a locked doc */
.hra-upgrade-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.hra-upgrade-modal-inner {
    background: #fff;
    max-width: 440px;
    width: 100%;
    padding: 32px 28px 24px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}
.hra-upgrade-modal-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.hra-upgrade-modal-inner h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #1a1a2e;
}
.hra-upgrade-modal-inner p {
    color: #555;
    line-height: 1.5;
    margin: 0 0 24px;
    font-size: 14px;
}
.hra-upgrade-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.hra-upgrade-modal-btn {
    background: #1a1a2e;
    color: #fff;
    padding: 11px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.hra-upgrade-modal-btn:hover {
    background: #2a2a4e;
    color: #fff;
}
.hra-upgrade-modal-close {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.hra-upgrade-modal-close:hover {
    background: #f5f5f5;
}

/* Main area */
.hra-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Topbar */
.hra-topbar {
    height: var(--hra-topbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--hra-border);
    background: #fff;
    flex-shrink: 0;
}
.hra-topbar-left { font-size: 14px; font-weight: 600; color: var(--hra-dark); }
.hra-topbar-right { display: flex; gap: 10px; }

/* Buttons */
.hra-btn {
    padding: 8px 18px;
    border-radius: var(--hra-radius);
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
}
.hra-btn-primary { background: var(--hra-dark); color: #fff; }
.hra-btn-primary:hover { background: #2d2d4e; }
.hra-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.hra-btn-secondary { background: var(--hra-light); color: var(--hra-dark); border: 1px solid var(--hra-border); }
.hra-btn-secondary:hover { background: #e8e8ec; }
/* Guidance button — softer accent to signal "internal use only" */
#hra-btn-guidance {
    background: #fff8e1;
    color: #6b3a00;
    border: 1px solid #f0a500;
}
#hra-btn-guidance:hover {
    background: #ffeebf;
}
#hra-btn-guidance:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Profile panel */
.hra-profile-panel {
    position: absolute;
    top: var(--hra-topbar);
    right: 0;
    width: 380px;
    height: calc(100% - var(--hra-topbar));
    background: #fff;
    border-left: 1px solid var(--hra-border);
    padding: 20px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
.hra-profile-panel h3 { margin: 0 0 6px; font-size: 15px; color: var(--hra-dark); }
.hra-hint { font-size: 12px; color: var(--hra-muted); margin-bottom: 16px; }
.hra-profile-fields { display: flex; flex-direction: column; gap: 10px; }
.hra-profile-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--hra-dark); }
.hra-input { padding: 8px 10px; border: 1px solid var(--hra-border); border-radius: 5px; font-size: 13px; width: 100%; box-sizing: border-box; }
.hra-input:focus { outline: none; border-color: var(--hra-dark); }
.hra-profile-actions { display: flex; gap: 10px; margin-top: 16px; }
.hra-logo-thumb { max-height: 50px; max-width: 180px; margin-top: 6px; border: 1px solid var(--hra-border); border-radius: 4px; padding: 4px; }

/* Color scheme section */
.hra-divider-section {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--hra-border);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hra-muted);
}
.hra-custom-colors {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}
.hra-color-input {
    height: 38px;
    padding: 2px;
    cursor: pointer;
}

/* Standalone Profile Form — used on the dedicated /company-details/ page
   via [hra_profile_form] shortcode. Different from the in-builder panel. */
.hra-profile-standalone {
    max-width: 760px;
    margin: 24px auto;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--hra-border);
    border-radius: 6px;
    font-family: Arial, sans-serif;
    color: var(--hra-dark);
}
.hra-profile-standalone h2 {
    font-size: 22px;
    margin: 0 0 6px 0;
    color: var(--hra-dark);
}
.hra-profile-standalone > p {
    margin: 0 0 22px 0;
    color: var(--hra-muted);
    font-size: 14px;
}
.hra-profile-standalone .hra-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin-bottom: 22px;
}
.hra-profile-standalone .hra-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hra-dark);
}
.hra-profile-standalone .hra-form-grid .hra-full-width {
    grid-column: 1 / -1;
}
.hra-profile-standalone .hra-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--hra-border);
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background: #fff;
    color: var(--hra-dark);
    box-sizing: border-box;
}
.hra-profile-standalone .hra-input:focus {
    outline: none;
    border-color: var(--hra-dark);
    box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.15);
}
.hra-profile-standalone select.hra-input {
    cursor: pointer;
}
.hra-profile-standalone input[type="file"] {
    margin-top: 4px;
    font-size: 13px;
}
.hra-profile-standalone #hra-logo-preview-standalone {
    margin-top: 10px;
}
.hra-profile-standalone #hra-logo-preview-standalone .hra-logo-thumb {
    max-width: 180px;
    max-height: 90px;
    border: 1px solid var(--hra-border);
    padding: 6px;
    background: #fafafa;
    border-radius: 4px;
}
.hra-profile-standalone #hra-save-profile-standalone {
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
}
.hra-profile-standalone #hra-profile-save-msg {
    margin-bottom: 16px;
}
.hra-profile-standalone #hra-profile-save-msg.hra-msg-success,
.hra-profile-standalone #hra-profile-save-msg.hra-msg-error {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
}
.hra-profile-standalone #hra-profile-save-msg.hra-msg-success {
    background: #e6f4ea;
    color: #1e6b3b;
    border-left: 3px solid #2e7d32;
}
.hra-profile-standalone #hra-profile-save-msg.hra-msg-error {
    background: #fdecea;
    color: #b71c1c;
    border-left: 3px solid #c62828;
}

/* Mobile */
@media (max-width: 640px) {
    .hra-profile-standalone .hra-form-grid {
        grid-template-columns: 1fr;
    }
    .hra-profile-standalone {
        padding: 20px 18px;
    }
}

/* Help & FAQ panel — slide-in from right, mirrors profile panel structure */
.hra-help-panel {
    position: absolute;
    top: var(--hra-topbar);
    right: 0;
    width: 460px;
    height: calc(100% - var(--hra-topbar));
    background: #fff;
    border-left: 1px solid var(--hra-border);
    padding: 0;
    overflow-y: auto;
    z-index: 100;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
.hra-help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px 20px;
    border-bottom: 1px solid var(--hra-border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}
.hra-help-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--hra-dark);
}
.hra-help-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--hra-muted);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.hra-help-close:hover { color: var(--hra-dark); }
.hra-help-intro {
    padding: 14px 20px;
    background: #f7f7f9;
    border-bottom: 1px solid var(--hra-border);
    font-size: 13px;
    line-height: 1.5;
    color: var(--hra-dark);
}
.hra-help-intro p { margin: 0; }
.hra-help-link {
    color: var(--hra-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* FAQ accordion */
.hra-faq-list {
    padding: 6px 20px;
}
.hra-faq-item {
    border-bottom: 1px solid var(--hra-border);
}
.hra-faq-item:last-child { border-bottom: none; }
.hra-faq-q {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    color: var(--hra-dark);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}
.hra-faq-q:hover { color: #000; }
.hra-faq-q-text { flex: 1; }
.hra-faq-arrow {
    font-size: 11px;
    color: var(--hra-muted);
    transition: transform 0.18s ease;
    margin-top: 3px;
    flex-shrink: 0;
}
.hra-faq-item.hra-faq-open .hra-faq-arrow {
    transform: rotate(90deg);
}
.hra-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0;
}
.hra-faq-item.hra-faq-open .hra-faq-a {
    max-height: 600px;
    padding: 0 0 14px 0;
}
.hra-faq-a p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--hra-dark);
}
.hra-faq-a a {
    color: var(--hra-dark);
    text-decoration: underline;
}

/* Tier breakdown panel — what each membership covers */
.hra-help-tiers {
    margin: 16px 20px;
    background: #f7f7f9;
    border: 1px solid var(--hra-border);
    border-radius: 4px;
    overflow: hidden;
}
.hra-help-tiers-label {
    background: var(--hra-dark);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 14px;
}
.hra-tier-row {
    padding: 12px 14px;
    border-top: 1px solid var(--hra-border);
}
.hra-tier-row:first-of-type {
    border-top: none;
}
.hra-tier-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hra-dark);
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}
.hra-tier-desc {
    font-size: 12px;
    line-height: 1.55;
    color: var(--hra-dark);
    opacity: 0.85;
}
.hra-tier-consulting {
    padding: 12px 14px;
    background: #fff4e5;
    border-top: 1px solid #f5d4a2;
    font-size: 12px;
    line-height: 1.55;
    color: #6b3a00;
}
.hra-tier-consulting strong {
    color: #b45309;
}

/* Help CTAs */
.hra-help-cta {
    padding: 6px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hra-help-cta .hra-btn {
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Dynamic Document Fields panel — sits above the preview.
   Capped at 40% of builder height with internal scroll so the preview
   below always gets at least 60% of the screen. */
.hra-fields-panel {
    background: #fff;
    border-bottom: 1px solid var(--hra-border);
    padding: 16px 24px;
    flex-shrink: 0;
    max-height: 40%;
    overflow-y: auto;
    transition: max-height 0.25s ease, padding 0.25s ease;
}
.hra-fields-panel.hra-fields-collapsed {
    max-height: 56px;
    overflow: hidden;
    padding-top: 10px;
    padding-bottom: 10px;
}
.hra-fields-panel.hra-fields-collapsed #hra-dynamic-fields {
    display: none;
}
.hra-fields-panel.hra-fields-collapsed .hra-fields-panel-title p {
    display: none;
}
.hra-fields-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
.hra-fields-panel-title {
    flex: 1;
}
.hra-fields-panel h4 {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: var(--hra-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hra-fields-panel .hra-hint {
    margin-bottom: 0;
}
.hra-fields-panel-collapse-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f7;
    border: 1px solid var(--hra-border);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--hra-dark);
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, padding 0.15s, font-size 0.15s;
}
.hra-fields-panel-collapse-btn:hover {
    background: #ececef;
}
.hra-fields-panel-collapse-icon {
    display: inline-block;
    transition: transform 0.2s;
    font-size: 13px;
}
.hra-fields-panel.hra-fields-collapsed .hra-fields-panel-collapse-icon {
    transform: rotate(-90deg);
}

/* ─── COLLAPSED STATE: make the toggle obvious so members can find it ─── */
/* When the panel is collapsed, the whole header row becomes the click target
   with a clear "EXPAND TO CUSTOMISE DOCUMENT" call to action in brand orange. */
.hra-fields-panel.hra-fields-collapsed {
    cursor: pointer;
    background: #fff8e1;
    border-bottom: 2px solid #f0a500;
}
.hra-fields-panel.hra-fields-collapsed .hra-fields-panel-header {
    margin-bottom: 0;
    align-items: center;
}
.hra-fields-panel.hra-fields-collapsed .hra-fields-panel-title h4 {
    color: #b45309;
    font-size: 12px;
}
.hra-fields-panel.hra-fields-collapsed:hover {
    background: #fff3cc;
}
.hra-fields-panel.hra-fields-collapsed .hra-fields-panel-collapse-btn {
    background: #f0a500;
    border: 1px solid #d97706;
    color: #fff;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(240, 165, 0, 0.35);
}
.hra-fields-panel.hra-fields-collapsed .hra-fields-panel-collapse-btn:hover {
    background: #d97706;
    border-color: #b45309;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.5);
}
.hra-fields-panel.hra-fields-collapsed .hra-fields-panel-collapse-icon {
    font-size: 15px;
}

/* ─── Instructional callout: explains what the fields do ─── */
/* Shows above the field grid when the panel is expanded. Hidden when collapsed. */
.hra-fields-panel-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eaf4ff;
    border-left: 3px solid #2a7ed4;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #1a3a5c;
}
.hra-fields-panel-callout-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.2;
}
.hra-fields-panel-callout-text {
    flex: 1;
}
.hra-fields-panel-callout-text strong {
    color: #14304d;
}
.hra-fields-panel.hra-fields-collapsed .hra-fields-panel-callout {
    display: none;
}
#hra-dynamic-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.hra-dynamic-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hra-dark);
}
.hra-dynamic-field-rich {
    grid-column: 1 / -1;
}
.hra-dyn-textarea {
    font-family: inherit;
    font-weight: normal;
    line-height: 1.5;
    resize: vertical;
    min-height: 70px;
}

/* Preview */
.hra-preview {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #f8f8fa;
}
.hra-preview-doc {
    background: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 60px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}
.hra-preview-frame {
    background: #fff;
    width: 100%;
    max-width: 800px;
    height: 100%;
    min-height: 600px;
    margin: 0 auto;
    display: block;
    border: none;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-radius: 4px;
}
.hra-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--hra-muted);
    text-align: center;
}
.hra-empty-icon { font-size: 56px; margin-bottom: 16px; }
.hra-empty-title { font-size: 18px; font-weight: 600; color: var(--hra-dark); margin-bottom: 8px; }
.hra-empty-sub { font-size: 14px; }

/* Badges */
.hra-badge { padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.hra-badge-premium { background: #fff3cd; color: #856404; }
.hra-badge-standard { background: #d1e7dd; color: #0a3622; }

/* Misc */
.hra-hidden { display: none !important; }
.hra-loading, .hra-loading-preview { padding: 20px; text-align: center; color: var(--hra-muted); font-size: 13px; }
.hra-no-access { padding: 40px; text-align: center; }
.hra-msg { margin-top: 10px; padding: 8px 12px; border-radius: 5px; font-size: 13px; }
.hra-msg-success { background: #d1e7dd; color: #0a3622; }
.hra-msg-error { background: #f8d7da; color: #58151c; }

/* Search bar (added v1.3) */
.hra-search-wrap {
    position: relative;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.hra-search-input {
    width: 100%;
    padding: 8px 28px 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 12px;
    font-family: Arial, sans-serif;
    outline: none;
    box-sizing: border-box;
    transition: border 0.15s, background 0.15s;
}
.hra-search-input::placeholder { color: rgba(255,255,255,0.35); }
.hra-search-input:focus {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
}
.hra-search-clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
}
.hra-search-clear:hover { color: #fff; }

.hra-search-results {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}
.hra-search-count {
    padding: 8px 16px 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-style: italic;
}
.hra-search-cat-label {
    padding: 10px 16px 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hra-builder { flex-direction: column; height: auto; }
    .hra-sidebar { width: 100%; max-height: 250px; }
    .hra-profile-panel { width: 100%; left: 0; }
    .hra-help-panel { width: 100%; left: 0; }
}
