/* Product detail: current workspace, warm orange theme, original controls. */
.hb-product-detail-a-active .hb-product-detail-a-view { min-width: 0; padding: 28px 32px 32px; color: #172846; }
.hb-product-detail-a-view > .advance-breadcrumb-title { height: auto; min-height: 0; padding: 0 0 25px; background: none !important; }
.hb-product-detail-a-view > .advance-breadcrumb-title > .flex { align-items: center; gap: 16px; }
.hb-product-detail-a-view > .advance-breadcrumb-title > .flex > div:first-child { flex: 0 0 auto; padding: 0 !important; }
.hb-product-detail-a-view > .advance-breadcrumb-title > .flex > div:last-child { min-width: 0; }
.hb-product-detail-a-view > .advance-breadcrumb-title :is(.title, .paragraph) { display: none; }
.hb-product-detail-a-view .back-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; border: 1px solid #e0e7f3; border-radius: 10px; color: #8594ad; background: #fff; font-size: 16px; cursor: pointer; }
.hb-product-detail-a-view .back-icon:hover { border-color: var(--hb-primary-border); color: var(--hb-primary); }
.hb-pd-page-heading > p { margin: 0 0 5px; color: var(--hb-primary); font-size: 12px; font-weight: 600; }
.hb-pd-page-heading h1 { margin: 0; color: #172846; font-size: 28px; font-weight: 650; line-height: 1.4; letter-spacing: -.4px; overflow-wrap: anywhere; }
.hb-pd-page-heading > div { margin-top: 8px; color: #8594ad; font-size: 12px; line-height: 1.8; }
.hb-product-detail-a-view > .ant-card { min-width: 0; margin: 0 0 22px !important; border: 1px solid #e6ebf5; border-radius: 16px; background: #fff; box-shadow: none; }
.hb-product-detail-a-view > .ant-card > .ant-card-body { min-width: 0; padding: 24px; }
.hb-pd-heading { margin-bottom: 22px; }
.hb-pd-heading h2 { margin: 0; color: #172846; font-size: 16px; font-weight: 600; line-height: 25px; }
.hb-pd-heading p { margin: 4px 0 0; color: #98a6bc; font-size: 11px; line-height: 18px; }
.hb-pd-info .ant-descriptions.ant-descriptions-bordered .ant-descriptions-view { border: 0; border-radius: 0; }
.hb-pd-info .ant-descriptions-view :is(table, tbody) { display: block; width: 100%; }
.hb-pd-info .ant-descriptions-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 28px; padding: 17px 0; border-bottom: 1px solid #edf1f8; }
.hb-pd-info .ant-descriptions-row:first-child { padding-top: 0; }
.hb-pd-info .ant-descriptions-row:last-child { padding-bottom: 0; border-bottom: 0; }
.hb-pd-info :is(.ant-descriptions-item-label, .ant-descriptions-item-content) { min-width: 0; padding: 0 !important; border: 0 !important; background: transparent !important; overflow-wrap: anywhere; }
.hb-pd-info .ant-descriptions-item-label { grid-row: 1; color: #98a6bc; font-size: 11px; font-weight: 400; line-height: 20px; }
.hb-pd-info .ant-descriptions-item-content { grid-row: 2; color: #42516d; font-size: 12px; line-height: 24px; }
.hb-pd-info :is(.ant-descriptions-item-label, .ant-descriptions-item-content):nth-of-type(1) { grid-column: 1; }
.hb-pd-info :is(.ant-descriptions-item-label, .ant-descriptions-item-content):nth-of-type(2) { grid-column: 2; }
.hb-pd-info :is(.ant-descriptions-item-label, .ant-descriptions-item-content):nth-of-type(3) { grid-column: 3; }
.hb-pd-info .ant-descriptions-item-content:empty::before, .hb-pd-info .ant-descriptions-item-content > span:empty::before { content: '—'; color: #a1aec2; }
.hb-pd-info .ant-tag { max-width: 100%; margin: 0; padding: 1px 8px; border: 0; border-radius: 5px; color: #6d7e99; background: #f3f6fc; font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
.hb-pd-info .hb-pd-published > span { display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 5px; color: #399876; background: #edf8f2; font-size: 11px; }
.hb-pd-info .hb-pd-published > span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hb-pd-info .hb-pd-unpublished > span { padding: 3px 9px; border-radius: 5px; color: #8594ad; background: #f3f6fc; font-size: 11px; }
.hb-pd-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px !important; width: 100%; margin-bottom: 20px; }
.hb-pd-toolbar > .ant-space-item { min-width: 0; }
.hb-pd-toolbar form { display: flex; flex-wrap: nowrap; gap: 10px; }
.hb-pd-toolbar form .ant-form-item { min-width: 0; margin: 0; }
.hb-pd-toolbar form .ant-form-item:last-child { width: 220px; }
.hb-pd-toolbar > .ant-space-item > .ant-space { flex-wrap: wrap; gap: 8px !important; }
.hb-product-detail-a-active :is(.hb-product-detail-a-view, .ant-drawer, .ant-modal) .ant-btn { height: auto; min-height: 40px; padding: 8px 16px; border-color: #e0e7f3; border-radius: 8px; color: #6d7e99; background: #fff; box-shadow: none; font-size: 12px; line-height: 22px; }
.hb-product-detail-a-active :is(.hb-product-detail-a-view, .ant-drawer, .ant-modal) .ant-btn-primary { border-color: var(--hb-primary); color: #fff; background: var(--hb-primary); }
.hb-product-detail-a-active :is(.hb-product-detail-a-view, .ant-drawer, .ant-modal) .ant-btn:not(:disabled):hover { border-color: var(--hb-primary-border); color: var(--hb-primary); background: #fffaf7; }
.hb-product-detail-a-active :is(.hb-product-detail-a-view, .ant-drawer, .ant-modal) .ant-btn-primary:not(:disabled):hover { border-color: var(--hb-primary-hover); color: #fff; background: var(--hb-primary-hover); }
.hb-product-detail-a-active .hb-pd-info .ant-btn-link { min-height: 24px; padding: 0; border: 0; border-radius: 0; color: var(--hb-primary); background: transparent; }
.hb-pd-toolbar :is(.ant-btn:has(.anticon-import), .ant-btn:has(.anticon-export), #hb-data-rule-btn) { border-color: #e0e7f3 !important; color: #6d7e99 !important; background: #fff !important; }
.hb-pd-toolbar :is(.ant-btn:has(.anticon-import), .ant-btn:has(.anticon-export), #hb-data-rule-btn):hover { border-color: var(--hb-primary-border) !important; color: var(--hb-primary) !important; }
.hb-product-detail-a-active :is(.hb-product-detail-a-view, .ant-drawer, .ant-modal) :is(.ant-input, .ant-input-affix-wrapper) { min-height: 40px; padding: 8px 12px; border-color: #e0e7f3; border-radius: 8px; color: #42516d; background: #fff; font-size: 12px; box-shadow: none; }
.hb-product-detail-a-active :is(.hb-product-detail-a-view, .ant-drawer, .ant-modal) .ant-input-affix-wrapper .ant-input { min-height: 0; padding: 0; border-radius: 0; }
.hb-product-detail-a-active :is(.hb-product-detail-a-view, .ant-drawer, .ant-modal) .ant-input::placeholder { color: #a1aec2; }
.hb-product-detail-a-active :is(.hb-product-detail-a-view, .ant-drawer, .ant-modal) :is(.ant-input:focus, .ant-input-affix-wrapper-focused) { border-color: var(--hb-primary-muted); box-shadow: 0 0 0 3px var(--hb-primary-a0d); }
.hb-product-detail-a-active :is(.hb-product-detail-a-view, .ant-drawer, .ant-modal) .ant-select { min-height: 40px; color: #42516d; font-size: 12px; }
.hb-product-detail-a-active :is(.hb-product-detail-a-view, .ant-drawer, .ant-modal) .ant-select-selector { min-height: 40px; border-color: #e0e7f3 !important; border-radius: 8px; }
.hb-pd-models .ant-table-wrapper { min-width: 0; }
.hb-pd-models .ant-table { color: #526380; font-size: 12px; }
.hb-pd-models .ant-table-container { overflow: hidden; border: 1px solid #edf1f8 !important; border-radius: 10px; }
.hb-pd-models .ant-table-content { scrollbar-width: none; }
.hb-pd-models .ant-table-content table { width: 100% !important; min-width: 1020px !important; }
.hb-pd-models .ant-table-thead > tr > th { padding: 14px 16px; border-right: 0 !important; border-bottom-color: #edf1f8; color: #8594ad; background: #f7f9ff; font-size: 11px; font-weight: 500; white-space: nowrap; }
.hb-pd-models .ant-table-tbody > tr > td { padding: 16px; border-right: 0 !important; border-bottom-color: #edf1f8; line-height: 1.9; }
.hb-pd-models .ant-table-tbody > tr:last-child > td { border-bottom: 0; }
.hb-pd-models .ant-table-tbody > tr:hover > td { background: #fafbff; }
.hb-pd-models .ant-table-tbody a { color: var(--hb-primary); font-size: 12px; white-space: nowrap; }
.hb-pd-models .ant-table-tbody .ant-space-split { color: #d8dfec; }
.hb-pd-models .ant-empty { margin: 0; padding: 30px 16px; }
.hb-pd-models .ant-empty-description { display: none; }
.hb-pd-empty-content h3 { margin: 12px 0 6px; color: #526380; font-size: 14px; font-weight: 500; }
.hb-pd-empty-content p { margin: 0; color: #98a6bc; font-size: 12px; }
.hb-pd-models .ant-tag { padding: 2px 8px; border: 0; border-radius: 5px; font-size: 10px; }
.hb-pd-models .ant-pagination { flex-wrap: wrap; gap: 4px; margin-bottom: 0; color: #8594ad; font-size: 11px; }
.hb-pd-models .ant-pagination-item-active { border-color: var(--hb-primary); border-radius: 6px; }
.hb-pd-models .ant-pagination-item-active a { color: var(--hb-primary); }
.hb-pd-models .ant-pagination .ant-select { min-height: 28px; }
.hb-pd-models .ant-pagination .ant-select-selector { min-height: 28px; border-radius: 6px; }
.hb-product-detail-a-active .ant-drawer-mask { background: #17284645; }
.hb-product-detail-a-active .ant-drawer-content-wrapper { max-width: 100vw; box-shadow: -12px 0 50px #1728460f; }
.hb-product-detail-a-active :is(.ant-drawer-content, .ant-modal-content) { color: #42516d; font-family: 'Segoe UI', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif; }
.hb-product-detail-a-active .ant-drawer-header { height: auto !important; min-height: 78px; padding: 22px 28px; border-bottom: 1px solid #edf1f8; }
.hb-product-detail-a-active :is(.ant-drawer-title, .ant-modal-title) { color: #172846; font-size: 20px; font-weight: 600; }
.hb-product-detail-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-product-detail-a-active .ant-drawer-extra .anticon-close:hover { color: var(--hb-primary); background: #f3f6fd; }
.hb-product-detail-a-active .ant-drawer-body { padding: 25px 28px; scrollbar-width: none; }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-form-item { margin-bottom: 22px; }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-form-item-label > label { height: auto; color: #526380; font-size: 12px; }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-form-item-extra { margin-top: 6px; color: #98a6bc; font-size: 11px; line-height: 1.9; }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-form-item-explain { font-size: 11px; }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-radio-button-wrapper { height: auto; min-height: 36px; padding: 0 12px; border: 1px solid #e0e7f3; border-radius: 7px; color: #6d7e99; font-size: 12px; line-height: 34px; }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-radio-button-wrapper::before { display: none; }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-radio-button-wrapper-checked { border-color: var(--hb-primary-border); color: var(--hb-primary); background: var(--hb-primary-a0d); }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-radio-wrapper { color: #6d7e99; font-size: 12px; }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-input-number { max-width: 100%; border-color: #e0e7f3; border-radius: 8px; }
.hb-product-detail-a-active :is(.ant-drawer, .ant-modal) .ant-input-number-input { height: 38px; color: #42516d; font-size: 12px; }
.hb-product-detail-a-active .ant-drawer-footer { padding: 16px 28px; border-top: 1px solid #edf1f8; }
.hb-product-detail-a-active .ant-drawer-footer > .ant-space { display: flex; justify-content: flex-end; gap: 10px !important; }
.hb-product-detail-a-active .ant-modal-content { border-radius: 16px; }
.hb-product-detail-a-active .ant-btn:disabled { color: #a6b1c3; background: #f3f5f9; border-color: #e6ebf5; }
.hb-product-detail-a-active :is(.back-icon, .ant-btn, [role='button']):focus-visible { outline: 3px solid var(--hb-primary-focus); outline-offset: 3px; }
.hb-product-detail-a-active :is(.ant-input-status-error, .ant-input-number-status-error) { border-color: #ff7875 !important; }
.hb-product-detail-a-active, .hb-product-detail-a-active .main-sider .ant-menu-root { scrollbar-width: none; }
.hb-product-detail-a-active::-webkit-scrollbar, .hb-product-detail-a-active :is(.ant-table-content, .ant-drawer-body, .main-sider .ant-menu-root)::-webkit-scrollbar { display: none; }
@media (max-width: 1300px) {
  .hb-product-detail-a-active .hb-product-detail-a-view { padding: 25px 24px; }
  .hb-pd-toolbar > .ant-space-item { flex-basis: 100%; }
  .hb-pd-toolbar > .ant-space-item:last-child > .ant-space { display: flex; justify-content: flex-end; }
  .hb-pd-toolbar form .ant-form-item:last-child { flex: 1; max-width: 420px; }
}
@media (max-width: 760px) {
  .hb-product-detail-a-active .hb-product-detail-a-view { padding: 22px 16px; }
  .hb-product-detail-a-view > .advance-breadcrumb-title { padding-bottom: 22px; }
  .hb-product-detail-a-view > .advance-breadcrumb-title > .flex { align-items: flex-start; gap: 12px; }
  .hb-product-detail-a-view .back-icon { width: 34px; height: 34px; margin-top: 18px; font-size: 14px; }
  .hb-pd-page-heading h1 { font-size: 25px; }
  .hb-pd-page-heading > div { font-size: 11px; }
  .hb-product-detail-a-view > .ant-card { margin-bottom: 16px !important; border-radius: 13px; }
  .hb-product-detail-a-view > .ant-card > .ant-card-body { padding: 20px; }
  .hb-pd-info .ant-descriptions-row { grid-template-columns: minmax(80px, .8fr) minmax(0, 1.5fr); align-items: baseline; gap: 14px 12px; padding: 14px 0; }
  .hb-pd-info :is(.ant-descriptions-item-label, .ant-descriptions-item-content):nth-of-type(n) { grid-row: auto; grid-column: auto; }
  .hb-pd-info .ant-descriptions-item-content { font-size: 11px; }
  .hb-pd-toolbar form { flex-wrap: wrap; }
  .hb-pd-toolbar form .ant-form-item { flex-basis: 100%; width: 100%; }
  .hb-pd-toolbar form .ant-form-item .ant-select { width: 100%; min-width: 0 !important; }
  .hb-pd-toolbar form .ant-form-item:last-child { max-width: none; }
  .hb-pd-toolbar > .ant-space-item:last-child > .ant-space { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-pd-toolbar .ant-btn { width: 100%; padding-inline: 8px; }
  .hb-pd-models :is(.ant-table-cell-fix-left, .ant-table-cell-fix-right) { position: static !important; }
  .hb-pd-models .ant-table-container::before, .hb-pd-models .ant-table-container::after { display: none; }
  .hb-product-detail-a-active .ant-drawer-header { min-height: 72px; padding: 20px; }
  .hb-product-detail-a-active .ant-drawer-body { padding: 22px 20px; }
  .hb-product-detail-a-active .ant-drawer-footer { padding: 14px 20px; }
  .hb-product-detail-a-active .ant-drawer-footer > .ant-space > .ant-space-item { flex: 1; }
  .hb-product-detail-a-active .ant-drawer-footer .ant-btn { width: 100%; }
  .hb-product-detail-a-active .ant-modal { max-width: calc(100vw - 24px); margin-inline: auto; }
}
