/* ================================================================
   组件：按钮 / 卡片 / 工具 / 模态框 / 表格
   ================================================================ */

/* ---------- 按钮 ---------- */
.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}
.btn-primary { background: #2a7de1; color: white; }
.btn-primary:hover { background: #1a6bc4; }
.btn-success { background: #27ae60; color: white; }
.btn-success:hover { background: #1e9b52; }
.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #d13a2a; }
.btn-warning { background: #f39c12; color: white; }
.btn-warning:hover { background: #d68910; }
.btn-outline { background: transparent; border: 2px solid #2a7de1; color: #2a7de1; }
.btn-outline:hover { background: #2a7de1; color: white; }
.btn-sm { padding: 5px 14px; font-size: 0.6rem; }
.btn-xs { padding: 3px 10px; font-size: 0.55rem; }

/* ---------- 班组卡片 ---------- */
.group-card {
    background: white;
    border-radius: 18px;
    padding: 16px 20px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}
.group-card:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); }
.group-card.dragging { opacity: 0.35; transform: scale(0.98); }
.group-card.drag-over-group {
    border: 3px dashed #2a7de1;
    background: #f0f7ff;
    transform: scale(1.01);
    transition: 0.15s;
}
.group-card.drag-over-people {
    border: 3px dashed #27ae60;
    background: #f0faf4;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0 4px;
    flex-shrink: 0;
    font-size: 0.95rem;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
}
.group-header .left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1a2a3a;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
}
.group-header .left .drag-handle {
    cursor: grab;
    color: #b8c8d8;
    font-size: 0.85rem;
    padding: 0 2px;
    flex-shrink: 0;
}
.group-header .left .drag-handle:hover { color: #2a7de1; }
.group-header .left .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
    color: #8899aa;
    flex-shrink: 0;
}
.group-header .left .arrow.collapsed { transform: rotate(-90deg); }
.group-header .left .group-name { cursor: default; flex-shrink: 0; }
.group-header .left .group-name:hover { color: #2a7de1; }
.group-header .left .badge {
    background: #eaf0f8;
    color: #2a5a8a;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0 14px;
    border-radius: 30px;
    line-height: 24px;
    flex-shrink: 0;
}
.group-header .group-actions { display: none; }

/* ---------- 颜色标签 ---------- */
.group-header .color-tags {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3px 6px;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
    pointer-events: none;
}
.group-header .color-tags .color-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.55rem;
    font-weight: 500;
    color: #445566;
    background: #f5f8fc;
    padding: 1px 6px 1px 3px;
    border-radius: 14px;
    line-height: 20px;
    transition: 0.15s;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
}
.group-header .color-tags .color-tag:hover {
    border-color: #2a7de1;
    background: #eaf4ff;
}
.group-header .color-tags .color-tag.active-filter {
    border-color: #2a7de1;
    background: #d4e4ff;
    box-shadow: 0 0 0 2px rgba(42, 125, 225, 0.2);
}
.group-header .color-tags .color-tag .color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    display: inline-block;
}
.group-header .color-tags .color-tag .tag-label {
    font-weight: 600;
    color: #1a2a3a;
    white-space: nowrap;
}
.group-header .color-tags .color-tag .tag-count {
    font-weight: 700;
    color: #2a7de1;
    background: white;
    padding: 0 4px;
    border-radius: 10px;
    font-size: 0.45rem;
    line-height: 16px;
    border: 1px solid #dce5ef;
}
.group-header .color-tags.compact .color-tag .tag-label,
.group-header .color-tags.compact .color-tag .tag-count { display: none; }
.group-header .color-tags.compact .color-tag { padding: 1px 3px; }

/* ---------- 人员网格 ---------- */
.group-body { flex: 1; overflow: visible; }
.group-body.collapsed { display: none; }

.members-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding-top: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 0;
    min-width: 150px;
    max-width: 280px;
}

/* ---------- 人员卡片 ---------- */
.person-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 14px;
    padding: 12px 16px 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #2a7de1;
    transition: 0.2s;
    cursor: grab;
    width: 100%;
    flex-shrink: 0;
}
.person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}
.person-card:active { cursor: grabbing; }
.person-card.dragging { opacity: 0.3; }
.person-card.drag-over,
.person-card.drag-over-tool {
    border: 2px dashed #2a7de1;
    background: #eaf4ff !important;
}

.person-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0b1a2a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    line-height: 1.6;
    cursor: pointer;
}
.person-name:hover { color: #2a7de1; }
.person-name .role-tag {
    font-size: 0.6rem;
    font-weight: 400;
    background: #e6edf6;
    color: #2a5a8a;
    padding: 0 12px;
    border-radius: 20px;
    line-height: 22px;
    flex-shrink: 0;
    margin-left: auto;
}
.person-name .role-tag.leader { background: #fde8d0; color: #b45a1a; }

.person-tools {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}
.person-tools:empty { display: none; }

/* ---------- 工具卡片 ---------- */
.tool-card {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    min-height: 56px;
    padding: 0 18px 0 14px;
    background: linear-gradient(145deg, #e8eef6 0%, #d5dfec 100%);
    border-radius: 10px;
    border: 1px solid #c8d4e0;
    font-size: 0.65rem;
    font-weight: 600;
    color: #1a2a3a;
    transition: 0.15s;
    cursor: grab;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.tool-card:hover {
    transform: translateY(-2px) translateX(2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #2a7de1;
}
.tool-card:active { cursor: grabbing; }
.tool-card .tc-name { font-size: 0.65rem; font-weight: 600; line-height: 1; flex-shrink: 0; }
.tool-card .tc-qty {
    font-size: 0.65rem;
    font-weight: 700;
    color: #2a7de1;
    background: white;
    padding: 0 12px;
    border-radius: 30px;
    line-height: 26px;
    border: 1px solid #b8c8d8;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
    margin-left: auto;
}
.tool-card.status-repair {
    border-color: #f0b84b;
    background: linear-gradient(145deg, #fff8e8 0%, #fff0cf 100%);
}
.tool-card.status-repair .tc-name { color: #b86f00; }
.tool-card.status-repair .tc-qty {
    border-color: #f0b84b;
    color: #c47a00;
    background: #fffaf0;
}
.tool-card.drag-over-sort {
    border: 2px dashed #2a7de1;
    background: #d4e4ff;
}

/* ---------- 工具库 ---------- */
.tool-library {
    width: 220px;
    min-width: 220px;
    background: white;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    order: 2;
    border: 2px solid transparent;
    transition: 0.2s;
}
.tool-library .lib-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a2a3a;
    padding-bottom: 8px;
    border-bottom: 2px solid #eaf0f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.tool-library .lib-title span {
    font-size: 0.6rem;
    color: #778a9e;
    font-weight: 400;
    background: #eaf0f8;
    padding: 0 10px;
    border-radius: 30px;
    line-height: 20px;
}
.tool-library .lib-actions { display: flex; gap: 6px; margin-bottom: 8px; flex-shrink: 0; }
.tool-library .lib-actions .btn { flex: 1; padding: 6px 10px; font-size: 0.6rem; text-align: center; }
.tool-library .lib-list {
    flex: 1;
    overflow-y: auto;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.lib-tool {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f5f8fc;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #1a2a3a;
    border: 2px solid transparent;
    transition: 0.15s;
    cursor: grab;
    position: relative;
}
.lib-tool:hover { background: #eaf0f8; border-color: #2a7de1; }
.lib-tool.active-tool-filter {
    background: #d4e4ff;
    border-color: #2a7de1;
    box-shadow: 0 0 0 2px rgba(42, 125, 225, 0.18);
}
.lib-tool:active { cursor: grabbing; }
.lib-tool .tool-main-row { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.lib-tool.tool-detail-open { flex-wrap: wrap; cursor: pointer; }
.lib-tool .tool-name { flex: 1; font-size: 0.7rem; min-width: 40px; }
.lib-tool .tool-stock {
    font-size: 0.6rem;
    font-weight: 700;
    color: #2a7de1;
    background: white;
    padding: 0 8px;
    border-radius: 30px;
    line-height: 22px;
    border: 1px solid #d5dde8;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.lib-tool .tool-stock.low { color: #e67e22; border-color: #f39c12; }
.lib-tool .tool-stock.empty { color: #e74c3c; border-color: #e74c3c; }
.lib-tool .drag-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 100%;
    cursor: grab;
    background: transparent;
    z-index: 1;
}
.lib-tool .drag-area:hover { background: rgba(42, 125, 225, 0.08); }
.lib-tool.dragging-sort { opacity: 0.4; transform: scale(0.98); }
.lib-tool.drag-over-sort { border-color: #2a7de1; background: #d4e4ff; }
.lib-tool .drag-insert-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #2a7de1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}
.lib-tool.drag-over-sort .drag-insert-line { opacity: 1; }
.lib-tool .tool-detail-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 2px 2px 1px 12px;
    font-size: 0.53rem;
    line-height: 17px;
    color: #718096;
}
.lib-tool .tool-detail-row span { white-space: nowrap; }

.lib-add-btn {
    margin-top: 8px;
    padding: 8px;
    border: 2px dashed #c5d2e0;
    border-radius: 10px;
    background: transparent;
    color: #778a9e;
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.lib-add-btn:hover { border-color: #2a7de1; color: #2a7de1; background: #f0f7ff; }

/* ---------- 垃圾桶 ---------- */
.trash-zone {
    margin-top: 8px;
    padding: 8px;
    border: 2px dashed #e74c3c;
    border-radius: 10px;
    text-align: center;
    color: #e74c3c;
    font-size: 0.6rem;
    font-weight: 600;
    background: #fff5f4;
    flex-shrink: 0;
    line-height: 1.5;
    transition: 0.2s;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.trash-zone.drag-over {
    background: #fde8e6;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.12);
    border-color: #c0392b;
}
.trash-zone .trash-icon { font-size: 1rem; display: block; }

/* ---------- 颜色选择预设 ---------- */
.color-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 6px 0 8px;
}
.color-presets .preset-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.color-presets .preset-btn:hover { transform: scale(1.15); border-color: #1a2a3a; }
.color-presets .preset-item.active {
    border-color: #1a2a3a !important;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #1a2a3a;
}

/* ---------- 模态框 ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: white;
    border-radius: 24px;
    padding: 32px 36px;
    max-width: 560px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideIn {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-box .modal-icon { font-size: 1.8rem; margin-bottom: 8px; }
.modal-box h2 { font-size: 1.2rem; font-weight: 700; color: #1a2a3a; margin-bottom: 6px; }
.modal-box .modal-desc { font-size: 0.75rem; color: #778a9e; margin-bottom: 16px; }
.modal-box label {
    display: block;
    font-weight: 600;
    font-size: 0.7rem;
    margin: 14px 0 5px;
    color: #2a3a4a;
}
.modal-box input,
.modal-box select,
.modal-box textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e4eaf0;
    border-radius: 12px;
    font-size: 0.75rem;
    outline: none;
    font-family: inherit;
    transition: 0.2s;
    background: #fafcff;
}
.modal-box input:focus,
.modal-box select:focus,
.modal-box textarea:focus {
    border-color: #2a7de1;
    box-shadow: 0 0 0 4px rgba(42, 125, 225, 0.10);
    background: white;
}
.modal-box textarea { min-height: 70px; resize: vertical; }
.modal-box .form-row { display: flex; gap: 14px; }
.modal-box .form-row > * { flex: 1; }

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}
.modal-actions .btn { padding: 10px 32px; font-size: 0.75rem; }

/* ---------- 库存项 ---------- */
.modal-box .stock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #eef2f7;
    flex-wrap: wrap;
}
.modal-box .stock-item .si-name { flex: 1; font-weight: 600; font-size: 0.75rem; min-width: 50px; }
.modal-box .stock-item .si-assigned { font-size: 0.65rem; color: #8899aa; margin-right: 6px; }
.modal-box .stock-item .si-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    font-size: 0.7rem;
    text-align: center;
}
.modal-box .stock-item .si-del-btn {
    padding: 2px 10px;
    font-size: 0.55rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.modal-box .stock-item .si-del-btn:hover { background: #c0392b; }

/* ---------- 工具日期项 ---------- */
.tool-date-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #eef2f7;
    flex-wrap: nowrap;
}
.tool-date-item .td-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: 60px;
}
.tool-date-item .td-qty {
    font-size: 0.75rem;
    color: #2a7de1;
    background: white;
    padding: 0 10px;
    border-radius: 30px;
    line-height: 24px;
    border: 1px solid #d5dde8;
    flex-shrink: 0;
}
.tool-date-item .td-date-input {
    padding: 4px 10px;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    font-size: 0.75rem;
    outline: none;
    background: #fafcff;
    width: 140px;
    flex-shrink: 0;
}
.tool-date-item .td-date-input:focus {
    border-color: #2a7de1;
    box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.12);
}
.tool-date-item .td-status {
    font-size: 0.6rem;
    width: 3em;
    min-width: 3em;
    padding: 2px 0;
    text-align: center;
    border-radius: 30px;
    flex-shrink: 0;
    white-space: nowrap;
    cursor: pointer;
    border: 0;
}
.tool-date-item .td-status.using { background: #e3f0e3; color: #27ae60; }
.tool-date-item .td-status.repair { background: #fff0d6; color: #c97900; }
.tool-date-item .td-status.scrap { background: #e9edf2; color: #77808c; }
.tool-date-item .td-status.lost { background: #fdeaea; color: #c44b4b; }
.tool-date-item .td-status:hover { filter: brightness(.97); }

/* ---------- 工具状态弹窗 ---------- */
.tool-status-popup {
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.tool-status-popup-title { font-size: .78rem; font-weight: 600; color: #25364a; margin-bottom: 9px; }
.tool-status-options { display: flex; gap: 7px; }
.status-option {
    flex: 1;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    padding: 8px 5px;
    background: #f7f9fb;
    cursor: pointer;
    font-size: .68rem;
}
.status-option.using.selected { background: #e9f5ed; border-color: #a8d5b6; color: #26834b; }
.status-option.repair.selected { background: #fff2d9; border-color: #f0ce8c; color: #c98500; }
.status-option.scrap.selected { background: #e9edf2; border-color: #c7ced7; color: #66717d; }
.status-option.lost.selected { background: #fdeaea; border-color: #e4aaaa; color: #c44b4b; }
.tool-status-qty {
    margin-top: 9px;
    font-size: .65rem;
    color: #687687;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tool-status-qty input {
    width: 58px;
    padding: 5px;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    text-align: center;
}
.tool-status-popup-actions { margin-top: 8px; text-align: right; }

/* ---------- 班组管理 ---------- */
.gm-person-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f5f8fc;
    border-radius: 10px;
    margin-bottom: 4px;
    border-left: 4px solid #2a7de1;
    transition: background 0.2s;
}
.gm-person-item:hover { background: #eaf0f8; }
.gm-person-item .gm-pname { font-weight: 600; font-size: 0.8rem; color: #1a2a3a; flex: 1; }
.gm-person-item .gm-pdel {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 2px 12px;
    font-size: 0.55rem;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    margin-left: 6px;
}
.gm-person-item .gm-pdel:hover { background: #c0392b; }
.gm-person-item .gm-prole {
    font-size: 0.55rem;
    color: #778a9e;
    background: #e8ecf2;
    padding: 0 10px;
    border-radius: 12px;
    line-height: 20px;
    flex-shrink: 0;
}
.gm-person-item .gm-prole.leader { background: #fde8d0; color: #b45a1a; }
.gm-person-item .gm-cb {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    display: none;
}
.gm-person-item .gm-cb.show { display: inline-block; }
.gm-empty-tip { color: #99aabb; font-size: 0.7rem; padding: 12px 0; text-align: center; }

.gm-rename-row { display: flex; gap: 8px; margin-bottom: 12px; }
.gm-rename-row input {
    flex: 1;
    padding: 6px 12px;
    border: 2px solid #e4eaf0;
    border-radius: 10px;
    font-size: 0.75rem;
    outline: none;
}
.gm-rename-row input:focus { border-color: #2a7de1; }
.gm-rename-row .btn { flex-shrink: 0; }

.gm-toolbar { display: flex; gap: 8px; margin: 8px 0 10px; flex-wrap: wrap; align-items: center; }
.gm-toolbar .btn { font-size: 0.6rem; padding: 4px 14px; }

.gm-batch-actions { display: none; gap: 8px; margin: 8px 0 10px; flex-wrap: wrap; align-items: center; }
.gm-batch-actions.show { display: flex; }
.gm-batch-actions .btn { font-size: 0.6rem; padding: 4px 14px; }
.gm-batch-info { font-size: 0.6rem; color: #778a9e; margin-left: 6px; }
.gm-select-all {
    font-size: 0.6rem;
    color: #2a7de1;
    cursor: pointer;
    padding: 2px 10px;
    border: 1px solid #dce5ef;
    border-radius: 6px;
    background: white;
}
.gm-select-all:hover { background: #eaf4ff; }



/* ================================================================
   班组管理：人员列表头部 + 批量操作栏（新版）
   ================================================================ */

.gm-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 8px;
    flex-wrap: wrap;
    min-height: 30px;
}

.gm-list-title {
    font-weight: 600;
    font-size: 0.7rem;
    color: #2a3a4a;
}

.gm-batch-bar {
    display: none;
    align-items: center;
    gap: 6px;
    background: #fff5f4;
    border: 1px solid #f5d0cc;
    border-radius: 20px;
    padding: 3px 6px 3px 12px;
    font-size: 0.58rem;
    color: #b33a2e;
    font-weight: 600;
    animation: gmBarIn 0.18s ease;
}
@keyframes gmBarIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.gm-batch-bar b {
    color: #e74c3c;
    font-size: 0.7rem;
    margin: 0 2px;
}
.gm-batch-bar .btn-xs {
    padding: 3px 10px;
    font-size: 0.55rem;
}

/* 人员列表项：checkbox 始终显示 */
.gm-person-item .gm-cb {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-block;
    accent-color: #2a7de1;
}

/* 单个人员的删除按钮保持不变 */
.gm-person-item .gm-pdel {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 2px 12px;
    font-size: 0.55rem;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    margin-left: 6px;
}
.gm-person-item .gm-pdel:hover {
    background: #c0392b;
}

/* 人员列表区域（保持原样） */
.gm-list-body {
    /* 无特殊样式，让弹窗本身滚动 */
}

