/* ============================================================
 * group-table-edit.css — 集团表格配置·字段编辑（报表中心/自定义报表）：抽屉/字段表格
 * 从 index.html 拆分（保持原样式顺序）
 * ============================================================ */

/* 抽屉内部 */
.grp-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.grp-drawer-title { font-size: 16px; font-weight: 600; color: #1f2329; }
.grp-drawer-sub { font-size: 13px; color: #86909c; font-weight: 400; }
.grp-drawer-desc { font-size: 13px; color: #86909c; margin-bottom: 16px; }
.grp-drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid #f0f0f0; margin-top: 20px; }
.grp-form .t-form__item { margin-bottom: 18px; }
.grp-switch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.grp-switch-label { font-size: 14px; color: #1f2329; }

/* 表格配置抽屉 · 表格卡片列表 */
.grp-table-list { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.grp-table-card { display: flex; align-items: center; gap: 10px; border: 1px solid #e7e9ed; border-radius: 6px; padding: 10px 16px; cursor: pointer; background: #fff; transition: all .15s; min-width: 200px; }
.grp-table-card:hover { border-color: #0052d9; }
.grp-table-card.active { border-color: #0052d9; background: #f2f7ff; box-shadow: 0 0 0 1px #0052d9; }
.grp-table-icon { color: #4e5969; }
.grp-table-card.active .grp-table-icon { color: #0052d9; }
.grp-table-name { font-size: 14px; font-weight: 500; color: #1f2329; }
.grp-table-card.active .grp-table-name { color: #0052d9; }
.grp-table-meta { font-size: 12px; color: #86909c; margin-top: 2px; }

/* 表格配置抽屉 · 字段添加与列表 */
.grp-fc-add { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.grp-add-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; background: #ecf2fe; color: #0052d9; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.grp-fc-list { display: flex; flex-direction: column; gap: 8px; }
.grp-fc-item { display: flex; align-items: center; gap: 10px; border: 1px solid #eef0f3; border-radius: 6px; padding: 8px 12px; background: #fff; }
.grp-fc-drag { color: #c9cdd4; cursor: grab; font-size: 13px; letter-spacing: -1px; }
.grp-fc-info { flex: 1; min-width: 0; }
.grp-fc-name { font-size: 13px; color: #1f2329; font-weight: 500; }
.grp-fc-meta { font-size: 12px; color: #86909c; margin-top: 2px; }
.grp-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: #f3e8ff; color: #7b2fbf; font-size: 11px; line-height: 18px; font-weight: 400; }
.grp-fc-empty { text-align: center; color: #86909c; font-size: 13px; padding: 24px 0; border: 1px dashed #e7e9ed; border-radius: 6px; }

/* 字段配置卡片式表格 */
.gte-card { padding: 20px; }
.gte-tabs .t-tabs__content { padding-top: 16px; }
.gte-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gte-toolbar-hint { font-size: 12px; color: #86909c; }
.gte-field-wrap { border: 1px solid #e7e9ed; border-radius: 6px; overflow: auto; }
.gte-field-thead, .gte-field-row { display: grid; align-items: center; }
.gte-field-thead { background: #f7f8fa; border-bottom: 1px solid #e7e9ed; }
.gte-field-th { padding: 10px 12px; font-size: 13px; font-weight: 500; color: #4e5969; white-space: nowrap; }
.gte-field-row { border-bottom: 1px solid #f0f0f0; transition: background .12s; }
.gte-field-row:hover { background: #f9fbff; }
.gte-field-row:last-child { border-bottom: none; }
.gte-field-cell { padding: 6px 12px; font-size: 13px; color: #1f2329; min-width: 0; }
.gte-field-cell .t-input, .gte-field-cell .t-select { width: 100%; }
.gte-mono { font-family: Consolas, Menlo, monospace; font-size: 12px; background: #f2f7ff; color: #0052d9; padding: 1px 6px; border-radius: 3px; display: inline-block; }
.gte-type-chip { display: inline-block; padding: 1px 8px; border-radius: 3px; background: #f2f3f5; color: #4e5969; font-size: 12px; line-height: 18px; }
.gte-col-op { text-align: right; position: relative; }
.gte-field-empty { padding: 48px 0; text-align: center; color: #86909c; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gte-system-tag { display: inline-block; width: 44px; height: 18px; border-radius: 3px; background: #f2f3f5; }

/* 列表展示字段（无API列） */
.gte-field-wrap--list .gte-field-thead,
.gte-field-wrap--list .gte-field-row { grid-template-columns: 130px 190px 160px 120px 1fr 90px; }
/* 筛选条件字段（含API列） */
.gte-field-wrap:not(.gte-field-wrap--list) .gte-field-thead,
.gte-field-wrap:not(.gte-field-wrap--list) .gte-field-row { grid-template-columns: 130px 190px 160px 120px 1fr 200px 90px; }


.gte-col-drag { text-align: center; padding: 6px 2px !important; }
.gte-drag-ico { color: #c9cdd4; cursor: grab; font-size: 12px; letter-spacing: -1px; }
.gte-field-row:hover .gte-drag-ico { color: #0052d9; }
.gte-field-cell { padding: 5px 8px; }
.gte-field-cell .t-input, .gte-field-cell .t-select { width: 100%; min-width: 0; }
.gte-field-cell .t-input__wrap, .gte-field-cell .t-select__wrap { min-width: 0; }


/* 表格配置中置灰(disabled)下拉框：隐藏所有右侧图标（下拉箭头/清除按钮等）
   真实DOM（TDesign filterable Select）：
   .t-select > .t-input__wrap > div.t-input.t-is-disabled.t-input--suffix > span.t-input__suffix > svg.t-fake-arrow.t-select__right-icon
   关键：t-input__suffix 是 .t-input.t-is-disabled 的【后代】，不是兄弟；之前把选择器路径写错导致一直不生效 */
.gte-field-wrap .t-select .t-input.t-is-disabled .t-input__suffix,
.gte-field-wrap .t-select .t-input.t-is-disabled .t-select__right-icon,
.gte-field-wrap .t-select .t-input.t-is-disabled .t-fake-arrow,
.gte-field-wrap .t-select .t-input.t-is-disabled .t-input__clear,
.gte-field-wrap .t-select .t-input.t-is-disabled .t-icon-chevron-down,
.gte-field-wrap .t-select .t-input.t-is-disabled .t-icon-close-circle-filled,
.gte-field-wrap .t-select .t-input.t-is-disabled .t-icon-close { display: none !important; }
