/* =========================================================
   Design tokens — aligned with app header color #235d9e
   ========================================================= */
:root {
    --gm-primary:            #235d9e;
    --gm-primary-hover:      #1a4a80;
    --gm-primary-disabled:   #8fb8d9;
    --gm-active-green:       #16a34a;
    --gm-active-green-bg:    #dcfce7;
    --gm-inactive-text:      #6b7280;
    --gm-warning-bg:         #fef3c7;
    --gm-warning-border:     #fcd34d;
    --gm-warning-text:       #92400e;
    --gm-page-bg:            #f3f4f6;
    --gm-card-bg:            #ffffff;
    --gm-border:             #e5e7eb;
    --gm-text:               #111827;
    --gm-text-muted:         #6b7280;
    --gm-step-bg:            #235d9e;
    --gm-radius-sm:          4px;
    --gm-radius-md:          8px;
    --gm-radius-lg:          12px;
    --gm-shadow-card:        0 1px 3px rgba(0,0,0,.08);
    --gm-shadow-dialog:      0 20px 60px rgba(0,0,0,.18);
}

/* =========================================================
   Utility
   ========================================================= */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border: none; border-radius: var(--gm-radius-sm);
    font-size: 14px; font-weight: 500;
    cursor: pointer; transition: background .15s, opacity .15s;
    white-space: nowrap;
    text-decoration: none;
}
.btn--primary { background: var(--gm-primary); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--gm-primary-hover); }
.btn--primary:disabled { background: var(--gm-primary-disabled); cursor: not-allowed; }
.btn--outline {
    background: #fff; color: var(--gm-text);
    border: 1px solid var(--gm-border);
}
.btn--outline:hover { background: #f9fafb; }
.btn--ghost { background: transparent; color: var(--gm-text); border: 1px solid var(--gm-border); }
.btn--ghost:hover { background: #f3f4f6; }
.btn--lg { padding: 10px 20px; font-size: 15px; }
.btn--icon { padding: 8px 12px; }

/* =========================================================
   Page shell
   ========================================================= */
.gm-page {
    padding: 24px 32px;
    background: var(--gm-page-bg);
    min-height: 100%;
    box-sizing: border-box;
}

.gm-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.gm-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--gm-text-muted);
    margin-bottom: 6px;
}
.gm-breadcrumb-sep { color: #d1d5db; }

.gm-title {
    font-size: 22px; font-weight: 700;
    color: var(--gm-text); margin: 0 0 4px;
}
.gm-subtitle {
    font-size: 13px; color: var(--gm-text-muted); margin: 0;
}

.gm-loading {
    padding: 48px; text-align: center; color: var(--gm-text-muted);
}

/* =========================================================
   Stat cards grid
   ========================================================= */
.gm-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--gm-card-bg);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-md);
    padding: 20px;
    box-shadow: var(--gm-shadow-card);
}
.stat-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.stat-card-label  { font-size: 15px; color: var(--gm-text-muted); font-weight: 500; }
.stat-card-icon   { display: flex; align-items: center; color: var(--gm-primary); font-size: 22px; }
.stat-card-count  { font-size: 32px; font-weight: 700; color: var(--gm-text); line-height: 1; margin-bottom: 4px; }
.stat-card-active { font-size: 14px; color: var(--gm-text-muted); }

/* =========================================================
   Table card
   ========================================================= */
.gm-table-card {
    background: var(--gm-card-bg);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-md);
    box-shadow: var(--gm-shadow-card);
    overflow: hidden;
}

/* Tabs bar */
.gm-tabs-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--gm-border);
}

.gm-tabs { display: flex; }

.gm-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 16px;
    border: none; border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 15px; font-weight: 500;
    color: var(--gm-text-muted);
    cursor: pointer; transition: color .15s, border-color .15s;
}
.gm-tab:hover { color: var(--gm-primary); }
.gm-tab--active {
    color: var(--gm-primary);
    border-bottom-color: var(--gm-primary);
    font-weight: 700;
}

.gm-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px;
    background: #e8f0f9; color: var(--gm-primary);
    border-radius: 11px; font-size: 12px; font-weight: 600;
}
.gm-tab--active .gm-tab-badge {
    background: var(--gm-primary);
    color: #fff;
}

/* Search */
.gm-search {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    background: #f9fafb;
}
.gm-search input {
    border: none; background: transparent;
    font-size: 13px; color: var(--gm-text);
    outline: none; width: 200px;
}
.gm-search input::placeholder { color: #9ca3af; }

/* Footer */
.gm-table-footer {
    padding: 12px 16px;
    font-size: 13px; color: var(--gm-text-muted);
    border-top: 1px solid var(--gm-border);
    text-align: right;
}

/* =========================================================
   Group table
   ========================================================= */
.table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 440px);
}

.group-table {
    width: 100%;
    border-collapse: collapse;
}

.group-table th {
    padding: 10px 16px;
    font-size: 14px; font-weight: 600;
    color: var(--gm-text-muted); text-align: left;
    border-bottom: 1px solid var(--gm-border);
    background: #fafafa;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
.group-table td {
    padding: 12px 16px;
    font-size: 15px; color: var(--gm-text);
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.col-expand, .col-actions { width: 40px; }
.group-row:last-child td { border-bottom: none; }
.group-row:hover td { background: #fafafa; }

.expand-btn {
    background: none; border: none;
    cursor: pointer; padding: 2px;
    color: var(--gm-text-muted);
    display: flex; align-items: center;
}
.expand-icon { transition: transform .2s; }
.expand-icon--open { transform: rotate(90deg); }

.group-name-cell { display: flex; align-items: flex-start; gap: 8px; }

.group-type-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: #e8f0f9; color: var(--gm-primary);
    border-radius: 4px; flex-shrink: 0; margin-top: 1px;
}
.group-name-text { font-weight: 500; font-size: 15px; }
.group-desc-text { font-size: 13px; color: var(--gm-text-muted); margin-top: 2px; }

/* Toggle switch */
.toggle-cell { display: flex; align-items: center; gap: 8px; }

.toggle-switch {
    position: relative; display: inline-block;
    width: 36px; height: 20px; margin: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
    position: absolute; inset: 0;
    background: #d1d5db; border-radius: 10px;
    cursor: pointer; transition: background .2s;
}
.toggle-track::before {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%;
    transition: transform .2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--gm-primary); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(16px); }

.text-active   { font-size: 15px; color: var(--gm-active-green); }
.text-inactive { font-size: 15px; color: var(--gm-text-muted); }

.action-btn {
    background: none; border: none;
    cursor: pointer; padding: 4px;
    color: var(--gm-text-muted);
    border-radius: var(--gm-radius-sm);
    display: flex; align-items: center;
}
.action-btn:hover { background: #f3f4f6; }

/* =========================================================
   Empty state
   ========================================================= */
.empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 64px 24px; gap: 8px;
}
.empty-state-icon     { margin-bottom: 8px; }
.empty-state-title    { font-size: 15px; font-weight: 600; color: var(--gm-text); margin: 0; }
.empty-state-subtitle { font-size: 13px; color: var(--gm-text-muted); margin: 0; }

.empty-icon-wrap {
    width: 56px; height: 56px;
    background: #e8f0f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gm-primary);
}

/* =========================================================
   Status badge
   ========================================================= */
.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px; font-weight: 500;
}
.status-badge--active   { background: var(--gm-active-green-bg); color: var(--gm-active-green); }
.status-badge--inactive { background: #f3f4f6; color: var(--gm-text-muted); }
.status-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%; background: currentColor;
}

/* =========================================================
   Status toggle (Active / Inactive pill)
   ========================================================= */
.status-toggle-group {
    display: flex;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    overflow: hidden; width: 100%;
}
.status-toggle-option {
    flex: 1; padding: 8px 0;
    border: none; background: #f9fafb;
    font-size: 13px; font-weight: 500;
    color: var(--gm-text-muted);
    cursor: pointer; transition: background .15s, color .15s;
}
.status-toggle-option--selected {
    background: var(--gm-primary); color: #fff;
}

/* =========================================================
   UPC chip
   ========================================================= */
.upc-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    background: #e8f0f9;
    border: 1px solid #b3cfe8;
    border-radius: 20px;
    font-size: 13px; color: var(--gm-primary);
}
.upc-chip-remove {
    background: none; border: none;
    cursor: pointer; padding: 0;
    color: #8fb8d9; font-size: 14px; line-height: 1;
    display: flex; align-items: center;
}
.upc-chip-remove:hover { color: var(--gm-primary); }

/* =========================================================
   Dialog
   ========================================================= */
.dialog-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 1050; padding: 24px;
}
.dialog-container {
    background: #fff;
    border-radius: var(--gm-radius-lg);
    box-shadow: var(--gm-shadow-dialog);
    width: 100%; max-width: 1100px;
    max-height: 95vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}

/* Dialog header */
.dialog-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--gm-border);
    flex-shrink: 0;
}
.dialog-header-left { display: flex; align-items: flex-start; gap: 12px; }
.dialog-header-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--gm-primary); color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.dialog-title    { font-size: 17px; font-weight: 700; color: var(--gm-text); margin: 0 0 2px; }
.dialog-subtitle { font-size: 12px; color: var(--gm-text-muted); margin: 0; }
.dialog-close-btn {
    background: none; border: none; cursor: pointer;
    padding: 4px; color: var(--gm-text-muted);
    border-radius: var(--gm-radius-sm);
    display: flex; align-items: center;
}
.dialog-close-btn:hover { background: #f3f4f6; color: var(--gm-text); }

/* Dialog body */
.dialog-body {
    display: flex; flex: 1; overflow: hidden;
}
.dialog-form {
    flex: 1; padding: 20px 24px;
    overflow-y: auto;
    border-right: 1px solid var(--gm-border);
}
.dialog-summary {
    width: 220px; flex-shrink: 0;
    padding: 20px; background: #fafafa;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

/* Form */
.form-section { margin-bottom: 28px; }
.form-section:last-child { margin-bottom: 0; }

.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-step {
    width: 24px; height: 24px;
    background: var(--gm-step-bg); color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.section-title { font-size: 14px; font-weight: 600; color: var(--gm-text); margin: 0; }

.form-field { margin-bottom: 14px; }
.form-label {
    display: block; font-size: 13px; font-weight: 500;
    color: var(--gm-text); margin-bottom: 6px;
}
.required-mark { color: #ef4444; }

.form-input,
.gm-page .form-select,
.form-textarea {
    width: 100%; padding: 8px 12px;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    font-size: 13px; color: var(--gm-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}
.form-input:focus,
.gm-page .form-select:focus,
.form-textarea:focus {
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 3px rgba(35, 93, 158, 0.12);
}
.form-input--invalid { border-color: #ef4444; }
.form-textarea { resize: vertical; min-height: 72px; }
.char-count {
    display: block; text-align: right;
    font-size: 11px; color: var(--gm-text-muted); margin-top: 4px;
}

.select-wrapper { position: relative; }
.gm-page .form-select { appearance: none; padding-right: 32px; cursor: pointer; }
.select-chevron {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none; color: #9ca3af;
    display: flex; align-items: center;
}

.upc-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.upc-input-row .form-input { flex: 1; }

.upc-values-area {
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    min-height: 96px; padding: 12px;
}
.upc-empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 80px; gap: 4px;
}
.upc-empty-title { font-size: 13px; font-weight: 500; color: var(--gm-text-muted); margin: 0; }
.upc-empty-sub   { font-size: 12px; color: #9ca3af; margin: 0; }
.upc-chips-wrap  { display: flex; flex-wrap: wrap; gap: 6px; }

/* Summary panel */
.summary-heading      { font-size: 13px; font-weight: 600; color: var(--gm-text); margin: 0 0 12px; }
.summary-divider      { border: none; border-top: 1px solid var(--gm-border); margin: 10px 0; }
.summary-row          { display: flex; justify-content: space-between; align-items: center; }
.summary-label        { font-size: 12px; color: var(--gm-text-muted); }
.summary-value        { font-size: 12px; color: var(--gm-text); font-weight: 500; }
.summary-value--muted { color: var(--gm-text-muted); font-style: italic; }
.summary-upc-count    { font-size: 28px; font-weight: 700; color: var(--gm-primary); line-height: 1; margin-top: 4px; }
.summary-added-label  { font-size: 12px; color: var(--gm-text-muted); margin-bottom: 4px; }

.summary-warning {
    display: flex; align-items: flex-start; gap: 6px;
    padding: 10px 12px;
    background: var(--gm-warning-bg);
    border: 1px solid var(--gm-warning-border);
    border-radius: var(--gm-radius-sm);
    font-size: 12px; color: var(--gm-warning-text);
    margin-top: 330px; line-height: 1.4;
}

/* Dialog footer */
.dialog-footer {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--gm-border);
    background: #fafafa; flex-shrink: 0;
}

/* =========================================================
   Appended: table enhancements, expand panel,
   action menu, delete dialog, L3 badge
   ========================================================= */

/* Inventory key pill */
.inventory-key-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; padding: 2px 10px;
    background: #e8f0f9; color: var(--gm-primary);
    border-radius: 12px; font-size: 13px; font-weight: 600;
}

/* UPC count clickable look */
.upc-count-link {
    color: var(--gm-primary); font-weight: 600; font-size: 13px;
}

/* Chevron expand icon */
.expand-chevron { transition: transform .2s; font-size: 13px; }
.expand-chevron--open { transform: rotate(90deg); }

/* L3 type badge */
.group-type-badge--l3 { background: #eef2ff; color: #4f46e5; }

/* Expanded detail row */
.expand-detail-row td { padding: 0; border-bottom: 1px solid var(--gm-border); }
.expand-detail-panel {
    background: #f8fafc;
    border-top: 1px solid #e2eaf3;
    padding: 14px 20px 16px 52px;
}
.expand-detail-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.expand-detail-label {
    font-size: 13px; font-weight: 600;
    color: var(--gm-primary);
    display: flex; align-items: center; gap: 6px;
}
.expand-detail-desc { font-size: 12px; color: var(--gm-text-muted); }

.expand-upc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px 12px;
}
.expand-upc-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--gm-primary);
    background: #fff;
    border: 1px solid #cfe0f3;
    border-radius: var(--gm-radius-sm);
    padding: 4px 10px;
}
.expand-upc-dot { font-size: 6px; color: var(--gm-primary); flex-shrink: 0; }
.expand-l3-id { font-size: 11px; color: var(--gm-text-muted); margin-left: 2px; }

/* Action menu */
.action-menu-wrap { position: relative; display: flex; align-items: center; }
.action-menu {
    position: absolute; right: 0; top: 100%;
    background: #fff;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    z-index: 200; min-width: 120px;
    overflow: hidden;
}
.action-menu-item {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 9px 14px;
    background: none; border: none;
    font-size: 13px; color: var(--gm-text);
    cursor: pointer; text-align: left;
    transition: background .1s;
}
.action-menu-item:hover { background: #f3f4f6; }
.action-menu-item--danger { color: #dc2626; }
.action-menu-item--danger:hover { background: #fef2f2; }

/* Delete confirm dialog */
.delete-dialog-container {
    background: #fff;
    border-radius: var(--gm-radius-lg);
    box-shadow: var(--gm-shadow-dialog);
    width: 100%; max-width: 400px;
    padding: 32px 28px 24px;
    text-align: center;
    position: relative;
}
.delete-dialog-close {
    position: absolute; top: 12px; right: 12px;
}
.delete-dialog-title {
    font-size: 18px; font-weight: 700;
    color: var(--gm-text); margin-bottom: 10px;
}
.delete-dialog-body {
    font-size: 14px; color: var(--gm-text-muted);
    margin-bottom: 6px;
}
.delete-dialog-warning {
    font-size: 13px; font-weight: 600;
    color: #dc2626; margin-bottom: 20px;
}
.delete-dialog-confirm-btn {
    width: 100%; background: #dc2626; color: #fff;
    padding: 11px; font-size: 15px; font-weight: 600;
    border-radius: var(--gm-radius-sm); margin-bottom: 10px;
}
.delete-dialog-confirm-btn:hover { background: #b91c1c; }
.delete-dialog-cancel-btn {
    width: 100%; background: #fff; color: var(--gm-text);
    border: 1px solid var(--gm-border);
    padding: 11px; font-size: 15px; font-weight: 500;
    border-radius: var(--gm-radius-sm);
}
.delete-dialog-cancel-btn:hover { background: #f3f4f6; }

/* L3 Category list */
.l3-category-list {
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    max-height: 220px; overflow-y: auto;
    margin-bottom: 10px;
}
.l3-category-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    cursor: pointer; font-size: 13px;
    color: var(--gm-text);
    border-bottom: 1px solid #f3f4f6;
    transition: background .1s;
}
.l3-category-item:last-child { border-bottom: none; }
.l3-category-item:hover { background: #f8fafc; }
.l3-category-item--selected { background: #e8f0f9; }
.l3-category-item input[type="checkbox"] {
    accent-color: var(--gm-primary);
    width: 16px; height: 16px; flex-shrink: 0;
}

/* ── Inventory key select — scrollable ── */
.gm-page .form-select {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    font-size: 13px;
    color: var(--gm-text);
    background: #fff;
    appearance: none;
    outline: none;
    cursor: pointer;
    max-height: 200px;
    overflow-y: auto;
}

.gm-page .form-select:focus {
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 2px rgba(35, 93, 158, 0.15);
}

/* Remove IUnitService dependency — no longer needed in constructor */

/* ── Custom key dropdown ─────────────────────────────────── */
.key-dropdown-wrapper {
    position: relative;
}

.key-dropdown-trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    background: #fff;
    font-size: 13px; color: var(--gm-text);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    box-sizing: border-box;
}
.key-dropdown-trigger:focus {
    outline: none;
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 3px rgba(35,93,158,.12);
}

.key-dropdown-list {
    position: absolute;
    top: calc(100% + 4px); left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    max-height: 180px;
    overflow-y: auto;
    z-index: 10;
}

.key-dropdown-item {
    padding: 8px 12px;
    font-size: 13px; color: var(--gm-text);
    cursor: pointer;
}
.key-dropdown-item:hover { background: #f3f4f6; }
.key-dropdown-item--selected { background: #e8f0f9; color: var(--gm-primary); font-weight: 500; }
.key-dropdown-item--placeholder { color: var(--gm-text-muted); }

.key-dropdown-key  { font-weight: 600; margin-right: 6px; }
.key-dropdown-desc { font-size: 12px; color: var(--gm-text-muted); }

.key-dropdown-search {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--gm-border);
    position: sticky; top: 0; background: #fff; z-index: 1;
}
.key-dropdown-search i { color: #9ca3af; font-size: 13px; }
.key-dropdown-search input {
    border: none; outline: none;
    font-size: 13px; color: var(--gm-text);
    background: transparent; width: 100%;
}
.key-dropdown-search input::placeholder { color: #9ca3af; }

/* ── CSV import result banner ───────────────────────────── */
.upc-import-result {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-radius: var(--gm-radius-sm);
    font-size: 13px;
    margin-bottom: 8px;
}
.upc-import-result--ok   { background: #dcfce7; color: #15803d; }
.upc-import-result--warn { background: #fef9c3; color: #854d0e; }
.upc-import-result span  { flex: 1; }
.upc-import-dismiss {
    background: none; border: none; cursor: pointer;
    padding: 0 2px; line-height: 1;
    color: inherit; opacity: .7;
}
.upc-import-dismiss:hover { opacity: 1; }

/* Saving loader — sits inside the table card, no layout shift */
.gm-table-saving {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    font-size: 14px;
    color: var(--gm-text-muted);
}

/* ── Fix Bootstrap full-width button text alignment in modals ── */
.btn-danger,
.btn-outline-secondary {
    justify-content: center;
}

/* =========================================================
   New group status badge styles
   ========================================================= */
.group-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.group-status-badge-dot {
    font-size: 0.5rem;
}

.group-status-badge--active {
    background-color: #dcfce7;
    color: #15803d;
}

.group-status-badge--inactive {
    background-color: #f1f5f9;
    color: #475569;
}