.admin-catalog-card{margin-top:24px}
.admin-catalog-card .card-header>div{min-width:0}
.admin-catalog-card .card-header small{display:block;margin-top:5px}
.catalog-dialog{width:min(1800px,calc(100vw - 24px));height:min(920px,calc(100vh - 24px));max-height:none;overflow:hidden}
.catalog-dialog #modal-body{height:100%;display:flex;flex-direction:column}
.catalog-dialog .modal-header{flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;padding:16px 22px 14px;background:#fff;border-bottom:1px solid var(--line);gap:12px}
.catalog-modal-header-top{display:flex;align-items:flex-start;justify-content:space-between;width:100%}
.catalog-dialog .modal-header small{display:block;margin-top:2px}
.catalog-workbook{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;flex:1;padding:0 18px 16px;background:var(--bg)}
.catalog-tabs{margin:0 0 12px 0;flex-shrink:0}
.catalog-tabs button .icon{width:16px;height:16px;stroke:var(--muted);transition:stroke .16s ease-in-out;flex-shrink:0}
.catalog-tabs button:hover .icon{stroke:var(--ink);transform:translateY(-0.5px)}
.catalog-tabs button.active .icon{stroke:var(--primary)}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}
.catalog-toolbar input{width:min(480px,70%);padding:8px 11px}
.catalog-toolbar span{font-size:var(--font-xs, 11px);color:var(--muted)}
.catalog-grid{min-height:0;overflow:auto;border:1px solid var(--line-strong);background:#fff;border-radius:var(--radius-sm)}
.catalog-grid.is-loading{opacity:.65}
.catalog-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-family:var(--font-sans);font-size:var(--font-sm, 12px)}
.catalog-table th,.catalog-table td{height:31px;padding:0;border-top:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;vertical-align:top}
.catalog-table th{position:sticky;top:0;z-index:2;background:var(--bg)}
.catalog-table th button{width:100%;height:31px;padding:5px 10px;border:0;border-radius:0;background:transparent;color:var(--ink-secondary);font-size:10px;text-align:left;white-space:nowrap}
.catalog-row-number{position:sticky!important;left:0;z-index:3!important;width:52px;min-width:52px;padding:7px 8px!important;background:var(--bg)!important;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.catalog-table tbody tr:hover td{background:var(--tint-subtle, #f6fbfa)}
.catalog-table tbody tr:hover .catalog-row-number{background:var(--tint)!important}
.catalog-cell{width:220px;max-width:320px;height:30px;padding:7px 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:cell}
.catalog-cell.expanded{width:420px;max-width:520px;height:auto;min-height:30px;white-space:normal;overflow:visible;overflow-wrap:anywhere}
.catalog-pagination{display:flex;align-items:center;justify-content:center;gap:15px;padding-top:11px}
.catalog-pagination button{padding:7px 12px;font-size:11px}
.catalog-pagination span{min-width:145px;text-align:center;font-size:11px;color:var(--muted)}
@media(max-width:760px){.catalog-dialog{width:calc(100vw - 10px);height:calc(100vh - 10px)}.catalog-workbook{padding:0 8px 8px}.catalog-toolbar{align-items:stretch;flex-direction:column;gap:7px}.catalog-toolbar input{width:100%}.catalog-pagination{gap:6px}.catalog-pagination span{min-width:100px}.catalog-cell{width:180px}}


@media (max-width: 760px) {
  .catalog-tabs {
    overflow-x: auto !important;
    max-width: 100% !important;
  }
  .catalog-pagination {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}
