/* A advanced capabilities. Portal styles use the already active page, without delayed classes. */
.hb-advanced-a-active .hb-advanced-a-view { padding: 30px 32px 32px; color: #172846; }
.hb-advanced-a-view > .advance-breadcrumb-title { display: none; }
.hb-advanced-a-intro { padding-bottom: 25px; }
.hb-advanced-a-intro h1 { margin: 0 0 9px; color: #172846; font-size: 29px; font-weight: 650; line-height: 1.4; letter-spacing: -.5px; }
.hb-advanced-a-intro p { margin: 0; color: #8594ad; font-size: 12px; line-height: 1.9; }
.hb-advanced-a-view > .ant-card, .hb-advanced-a-results { min-width: 0; margin: 0 0 22px; border: 1px solid #e6ebf5; border-radius: 16px; background: #fff; box-shadow: none; }
.hb-advanced-a-view > .ant-card > .ant-card-body, .hb-advanced-a-results > .ant-card-body { min-width: 0; padding: 24px; }
.hb-advanced-a-filter-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.hb-advanced-a-icon { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: var(--hb-primary); background: #f0f3ff; }
.hb-advanced-a-icon svg { width: 21px; height: 21px; }
.hb-advanced-a-filter-heading h2, .hb-advanced-a-list-heading h2, .hb-advanced-a-types-empty h2 { margin: 0; color: #172846; font-size: 16px; font-weight: 600; line-height: 25px; }
.hb-advanced-a-filter-heading p, .hb-advanced-a-list-heading p, .hb-advanced-a-types-empty p { margin: 4px 0 0; color: #98a6bc; font-size: 11px; line-height: 18px; }
.hb-advanced-a-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px !important; width: 100%; margin-bottom: 24px; }
.hb-advanced-a-list-heading { flex: 1; min-width: 160px; }
.hb-advanced-a-filter form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.hb-advanced-a-filter .ant-form-item { min-width: 0; margin: 0; }
.hb-advanced-a-filter .ant-form-item-row { align-items: center; }
.hb-advanced-a-filter .ant-form-item:has(input#status) { width: 180px; }
.hb-advanced-a-filter .ant-form-item:has(input#name) { flex: 0 1 350px; }
.hb-advanced-a-filter .ant-form-item-label > label { color: #8594ad; font-size: 12px; }
.hb-advanced-a-filter .ant-form-item-control, .hb-advanced-a-filter .ant-form-item-control-input-content { min-width: 0; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-btn { min-height: 40px; height: auto; padding: 8px 17px; border-color: #e0e7f3; border-radius: 8px; color: #6d7e99; background: #fff; font-size: 12px; line-height: 22px; box-shadow: none; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-btn:not(:disabled):hover { color: var(--hb-primary); border-color: var(--hb-primary-border); background: #f8faff; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-btn-primary { color: #fff; background: var(--hb-primary); border-color: var(--hb-primary); }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-btn-primary:not(:disabled):hover { color: #fff; background: var(--hb-primary-hover); border-color: var(--hb-primary-hover); }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-btn:disabled { color: #a6b1c3; border-color: #e6ebf5; background: #f3f5f9; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) :is(.ant-btn, [role="button"]):focus-visible { outline: 3px solid var(--hb-primary-focus); outline-offset: 3px; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-input { min-height: 40px; padding: 8px 12px; border-color: #e0e7f3; border-radius: 8px; color: #42516d; background: #fff; font-size: 12px; box-shadow: none; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-input::placeholder { color: #a1aec2; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-input:hover { border-color: var(--hb-primary-border); }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-input:focus { border-color: var(--hb-primary-muted); box-shadow: 0 0 0 3px var(--hb-primary-a0d); }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-input-affix-wrapper { width: 100% !important; padding: 0 12px; border-color: #e0e7f3; border-radius: 8px; box-shadow: none; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-input-affix-wrapper input.ant-input { min-width: 0; padding-inline: 0; box-shadow: none; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-input-affix-wrapper-focused { border-color: var(--hb-primary-muted); box-shadow: 0 0 0 3px var(--hb-primary-a0d); }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-select { width: 100% !important; min-width: 0 !important; color: #526380; font-size: 12px; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-select-single { height: 40px; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-select-selector { min-height: 40px; padding: 3px 12px !important; border-color: #e0e7f3 !important; border-radius: 8px; box-shadow: none !important; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-select-focused .ant-select-selector { border-color: var(--hb-primary-muted) !important; box-shadow: 0 0 0 3px var(--hb-primary-a0d) !important; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-input-number { width: 100% !important; border-color: #e0e7f3; border-radius: 8px; box-shadow: none; }
.hb-advanced-a-active .ant-drawer .ant-input-number-input { height: 40px; color: #42516d; font-size: 12px; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) :is(.ant-input-status-error, .ant-input-number-status-error, .ant-input-affix-wrapper-status-error) { border-color: #ff7875; }
.hb-advanced-a-active :is(.hb-advanced-a-view, .ant-drawer, .ant-modal) .ant-select-status-error .ant-select-selector { border-color: #ff7875 !important; }
.hb-advanced-a-active .ant-select-dropdown { padding: 5px; border: 1px solid #e6ebf5; border-radius: 9px; }
.hb-advanced-a-active .ant-select-item { font-size: 12px; }
.hb-advanced-a-active .ant-select-item-option-selected:not(.ant-select-item-option-disabled) { color: var(--hb-primary); background: #f0f3ff; }

/* Resource tabs retain the categories supplied by the API. */
.hb-advanced-a-resource .hb-advanced-a-resource-frame { border: 0; background: transparent; }
.hb-advanced-a-resource-frame > .ant-card-body { padding: 0 !important; }
.hb-advanced-a-resource .drive-image { margin-top: 0 !important; }
.hb-advanced-a-resource .drive-image > .ant-tabs-nav { margin: 0 0 22px; padding: 9px; border: 1px solid #e6ebf5; border-radius: 13px; background: #fff; }
.hb-advanced-a-resource .drive-image > .ant-tabs-nav::before { display: none; }
.hb-advanced-a-resource .drive-image .ant-tabs-nav-list { gap: 8px; }
.hb-advanced-a-resource .drive-image .ant-tabs-tab { margin: 0 !important; padding: 11px 20px; border: 0; border-radius: 8px !important; background: transparent; color: #8594ad; font-size: 12px; }
.hb-advanced-a-resource .drive-image .ant-tabs-tab-active { background: #edf1ff; }
.hb-advanced-a-resource .drive-image .ant-tabs-tab-active .ant-tabs-tab-btn { color: var(--hb-primary); text-shadow: none; font-weight: 600; }
.hb-advanced-a-resource .drive-image .ant-tabs-ink-bar { display: none; }
.hb-advanced-a-resource .drive-image .ant-tabs-content-holder { min-width: 0; }
.hb-advanced-a-resource .ant-tabs-tabpane > .hb-advanced-a-results { margin: 0; }
.hb-advanced-a-types-empty { padding: 48px 24px; border: 1px solid #e6ebf5; border-radius: 16px; background: #fff; text-align: center; }

.hb-advanced-a-view .ant-table-wrapper { min-width: 0; max-width: 100%; }
.hb-advanced-a-view .ant-table { color: #526380; font-size: 12px; }
.hb-advanced-a-view .ant-table-container { overflow: hidden; border: 1px solid #edf1f8 !important; border-radius: 10px; }
.hb-advanced-a-view .ant-table-content { overflow-x: auto; }
.hb-advanced-a-view .ant-table-content > table { min-width: 850px; }
.hb-advanced-a-resource .ant-table-content > table { min-width: 640px; }
.hb-advanced-a-view .ant-table-thead > tr > th { padding: 14px 16px; color: #8594ad; background: #f7f9ff; border-right: 0 !important; border-bottom-color: #edf1f8; font-size: 11px; font-weight: 500; white-space: nowrap; }
.hb-advanced-a-view .ant-table-tbody > tr > td { padding: 16px; border-right: 0 !important; border-bottom-color: #edf1f8; }
.hb-advanced-a-view .ant-table-tbody > tr:hover > td { background: #fafbff; }
.hb-advanced-a-view .ant-table-tbody .ant-typography { color: var(--hb-primary-muted); font-size: 12px; }
.hb-advanced-a-view .ant-table-tbody .ant-typography-disabled { color: #b2bdcf; }
.hb-advanced-a-view .ant-table-tbody .ant-space { white-space: nowrap; }
.hb-advanced-a-view .ant-table-placeholder > td { padding: 8px !important; }
.hb-advanced-a-view .ant-table-placeholder:hover > td { background: #fff !important; }
.hb-advanced-a-view .ant-pagination { flex-wrap: wrap; gap: 4px; color: #8594ad; font-size: 11px; }
.hb-advanced-a-view .ant-pagination-item-active { border-color: var(--hb-primary); border-radius: 6px; }
.hb-advanced-a-view .ant-pagination-item-active a { color: var(--hb-primary); }
.hb-advanced-a-view .ant-pagination-options .ant-select-selector { min-height: 24px; padding: 0 8px !important; font-size: 11px; }
.hb-advanced-a-view .ant-switch-checked { background: var(--hb-primary); }
.hb-advanced-a-empty { margin: 0; padding: 36px 16px; }
.hb-advanced-a-empty > .ant-empty-image, .hb-advanced-a-empty > .ant-empty-description { display: none; }
.hb-advanced-a-empty-content { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 205px; text-align: center; }
.hb-advanced-a-empty-art { width: 112px; height: 96px; margin-bottom: 18px; }
.hb-advanced-a-empty-content h3 { margin: 0 0 9px; color: #65758f; font-size: 15px; font-weight: 500; }
.hb-advanced-a-empty-content p { margin: 0; color: #98a6bc; font-size: 11px; line-height: 1.8; }

/* Drawer rules match immediately when the native portal is inserted. */
.hb-advanced-a-active .ant-drawer { font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; }
.hb-advanced-a-active .ant-drawer-content-wrapper { max-width: 100vw; }
.hb-advanced-a-active .ant-drawer-content { background: #fff; }
.hb-advanced-a-active .ant-drawer-header { height: auto !important; min-height: 79px; padding: 22px 28px; border-bottom-color: #edf1f8; }
.hb-advanced-a-active .ant-drawer-title { color: #172846; font-size: 19px; font-weight: 600; }
.hb-advanced-a-active .ant-drawer-extra .anticon-close { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; color: #98a6bc; font-size: 14px; cursor: pointer; }
.hb-advanced-a-active .ant-drawer-extra .anticon-close:hover { color: var(--hb-primary); background: #f0f3ff; }
.hb-advanced-a-active .ant-drawer-body { min-width: 0; padding: 25px 28px; }
.hb-advanced-a-active .ant-drawer .ant-form-item { min-width: 0; margin-bottom: 23px; }
.hb-advanced-a-active .ant-drawer .ant-form-item-label > label { height: auto; color: #526380; font-size: 12px; }
.hb-advanced-a-active .ant-drawer .ant-form-item-explain, .hb-advanced-a-active .ant-drawer .ant-form-item-extra { font-size: 11px; line-height: 1.8; }
.hb-advanced-a-active .ant-drawer .ant-form-item-control, .hb-advanced-a-active .ant-drawer .ant-form-item-control-input-content { min-width: 0; }
.hb-advanced-a-active .ant-drawer .ant-input-textarea-show-count::after { font-size: 11px; }
.hb-advanced-a-active .ant-drawer-footer { padding: 16px 28px; border-top-color: #edf1f8; background: #fff; }
.hb-advanced-a-active .ant-drawer-footer > .ant-space { display: flex; justify-content: flex-end; gap: 10px !important; }
.hb-advanced-a-active .ant-drawer .ant-radio-checked .ant-radio-inner { background: var(--hb-primary); border-color: var(--hb-primary); }
.hb-advanced-a-active .ant-drawer .ant-radio-wrapper { color: #65758f; font-size: 12px; }
body.hb-advanced-a-active:has(.hb-advanced-a-resource) .ant-drawer .ant-space:has(input[id$="_key"]) { align-items: flex-start; width: 100%; gap: 10px !important; }
body.hb-advanced-a-active:has(.hb-advanced-a-resource) .ant-drawer .ant-space:has(input[id$="_key"]) > .ant-space-item:not(:last-child) { flex: 1; min-width: 0; }
.hb-advanced-a-active .ant-drawer .anticon-minus-circle { margin-top: 34px; color: #98a6bc; cursor: pointer; }
.hb-advanced-a-active .ant-drawer .ant-btn-dashed { width: auto !important; min-width: 90px; border-style: dashed; }
body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer .ant-steps-item-title { color: #172846; font-size: 14px; font-weight: 600; }
body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer .ant-steps-item-subtitle { display: block; margin: 5px 0 0; color: #98a6bc; font-size: 11px; line-height: 1.8; white-space: normal; }
body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer form .ant-form-item-row { flex-direction: column; align-items: stretch; }
body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer form .ant-form-item-label { padding: 0 0 8px; text-align: left; }
body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer form .ant-form-item-control { flex: 0 0 auto; }
body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer .ant-steps-item-description { max-width: 100%; padding: 17px 0 25px; }
body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer .ant-steps-item-content { min-width: 0; }
.hb-advanced-a-active .ant-drawer .ant-steps-item-process .ant-steps-item-icon { border-color: var(--hb-primary); background: var(--hb-primary); }
.hb-advanced-a-active .ant-drawer .ant-steps-item-finish .ant-steps-item-icon { border-color: #dce3ff; background: #edf1ff; }
.hb-advanced-a-active .ant-drawer .ant-steps-item-finish .ant-steps-icon { color: var(--hb-primary); }
body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer .ant-steps-item-description .mt10.mb10 { height: auto !important; min-height: 40px; gap: 8px; padding: 10px; border-radius: 8px; }
body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer .ant-steps-item-description .mt10.mb10 .anticon { margin-left: 0 !important; }
.hb-advanced-a-active .ant-drawer pre { max-width: 100%; border: 1px solid #e6ebf5; border-radius: 9px; font-size: 12px; }
body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer-body > .ant-row > .ant-col > pre { background: #192743 !important; }
body.hb-advanced-a-active:has(.hb-advanced-a-scene) .ant-drawer .ant-spin-container > div[style*="box-shadow"] { padding: 20px !important; border: 1px solid #e6ebf5; border-radius: 12px !important; background: #fafbff; box-shadow: none !important; }
body.hb-advanced-a-active:has(.hb-advanced-a-scene) .ant-drawer .ant-col-6 { flex: 0 0 50%; max-width: 50%; }
body.hb-advanced-a-active:has(.hb-advanced-a-scene) .ant-drawer .ant-col-18 { flex: 0 0 100%; max-width: 100%; }
body.hb-advanced-a-active:has(.hb-advanced-a-scene) .ant-drawer .ant-pro-form-list-item { padding: 16px; border: 1px solid #e6ebf5; border-radius: 10px; background: #fff; }
.hb-advanced-a-active .ant-modal { max-width: calc(100vw - 40px); }
.hb-advanced-a-active .ant-modal-content { border-radius: 16px; }
.hb-advanced-a-active .ant-modal-title { color: #172846; }

@media (max-width: 1300px) {
  .hb-advanced-a-active .hb-advanced-a-view { padding: 25px 24px; }
  .hb-advanced-a-intro h1 { font-size: 26px; }
}
@media (max-width: 760px) {
  .hb-advanced-a-active .hb-advanced-a-view { padding: 22px 16px; }
  .hb-advanced-a-intro { padding-bottom: 20px; }
  .hb-advanced-a-intro h1 { font-size: 25px; }
  .hb-advanced-a-intro p { font-size: 11px; }
  .hb-advanced-a-view > .ant-card, .hb-advanced-a-results { margin-bottom: 16px; border-radius: 13px; }
  .hb-advanced-a-view > .ant-card > .ant-card-body, .hb-advanced-a-results > .ant-card-body { padding: 20px; }
  .hb-advanced-a-filter-heading { margin-bottom: 20px; }
  .hb-advanced-a-filter-heading h2, .hb-advanced-a-list-heading h2 { font-size: 15px; }
  .hb-advanced-a-filter form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-advanced-a-filter .ant-form-item:has(input) { grid-column: 1 / -1; width: 100%; }
  .hb-advanced-a-filter .ant-form-item:has(input#status), .hb-advanced-a-filter .ant-form-item:has(input#name) { width: 100%; }
  .hb-advanced-a-filter .ant-form-item .ant-btn { width: 100%; }
  .hb-advanced-a-filter .ant-form-item-row { flex-direction: column; align-items: stretch; }
  .hb-advanced-a-filter .ant-form-item-label { padding-bottom: 8px; text-align: left; }
  .hb-advanced-a-filter .ant-form-item-label > label { height: auto; }
  .hb-advanced-a-toolbar { gap: 16px !important; margin-bottom: 20px; }
  .hb-advanced-a-list-heading { flex-basis: 100%; }
  .hb-advanced-a-resource .drive-image > .ant-tabs-nav { margin-bottom: 16px; padding: 7px; }
  /* Native overflow items use string keys while this page supplies numeric keys.
     Keep the native tabs visible in a grid so every category remains operable. */
  .hb-advanced-a-resource .drive-image .ant-tabs-nav-wrap { overflow: visible; }
  .hb-advanced-a-resource .drive-image .ant-tabs-nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; transform: none !important; }
  .hb-advanced-a-resource .drive-image .ant-tabs-nav-operations { display: none; }
  .hb-advanced-a-resource .drive-image .ant-tabs-nav-wrap::before, .hb-advanced-a-resource .drive-image .ant-tabs-nav-wrap::after { display: none; }
  .hb-advanced-a-resource .drive-image .ant-tabs-tab { justify-content: center; min-width: 0; padding: 10px 9px; font-size: 11px; }
  .hb-advanced-a-resource .drive-image .ant-tabs-tab-btn { white-space: normal; text-align: center; overflow-wrap: anywhere; }
  .hb-advanced-a-empty { position: sticky; left: 0; width: calc(100vw - 110px); max-width: 100%; padding: 28px 6px; }
  .hb-advanced-a-empty-content p { max-width: 240px; }
  .hb-advanced-a-active .ant-drawer-header { min-height: 72px; padding: 20px; }
  .hb-advanced-a-active .ant-drawer-body { padding: 22px 20px; }
  .hb-advanced-a-active .ant-drawer-footer { padding: 14px 20px; }
  .hb-advanced-a-active .ant-drawer-footer > .ant-space > .ant-space-item { flex: 1; }
  .hb-advanced-a-active .ant-drawer-footer .ant-btn { width: 100%; }
  .hb-advanced-a-active .ant-drawer .ant-form-item-row { flex-direction: column; align-items: stretch; }
  .hb-advanced-a-active .ant-drawer .ant-form-item-label { padding: 0 0 8px; text-align: left; }
  .hb-advanced-a-active .ant-drawer .ant-form-item-control { flex: 0 0 auto; }
  body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer .ant-radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
  body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer-body > .ant-row { flex-direction: column; gap: 20px; }
  body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer-body > .ant-row > .ant-col { flex: 0 0 100%; max-width: 100%; }
  body.hb-advanced-a-active:has(.hb-advanced-a-rule) .ant-drawer-body > .ant-row > .ant-col > pre { height: 280px !important; }
  body.hb-advanced-a-active:has(.hb-advanced-a-scene) .ant-drawer .ant-col-6 { flex: 0 0 100%; max-width: 100%; }
  body.hb-advanced-a-active:has(.hb-advanced-a-scene) .ant-drawer .ant-spin-container > div[style*="box-shadow"] { padding: 16px !important; }
  .hb-advanced-a-active .ant-modal { max-width: calc(100vw - 24px); }
}
