/* Store Merge / Retire modal — Plan 13 Phase 3. Scoped under .store-mgr-* */

.store-mgr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9120;
    padding: 1rem;
    box-sizing: border-box;
}

.store-mgr-panel {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.store-mgr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #f0f1f3;
    flex-shrink: 0;
}

.store-mgr-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2b3c;
}

.store-mgr-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
}
.store-mgr-close:hover { background: #f0f1f3; color: #1a2b3c; }
.store-mgr-close:disabled { opacity: 0.4; cursor: not-allowed; }

.store-mgr-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.store-mgr-statusbar {
    padding: 0.75rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    border-top: 1px solid #f0f1f3;
    flex-shrink: 0;
}
.store-mgr-status-success { background: #d4edda; color: #155724; }
.store-mgr-status-error   { background: #f8d7da; color: #721c24; }
.store-mgr-status-info    { background: #d1ecf1; color: #0c5460; }

.store-mgr-loading { text-align: center; color: #6c757d; padding: 2rem 1rem; }

.store-mgr-subnav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.store-mgr-subnav-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
}
.store-mgr-btn-back {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
}
.store-mgr-btn-back:hover { background: #f8f9fa; }

.store-mgr-search {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.85rem;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.9rem;
}

.store-mgr-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 46vh;
    overflow-y: auto;
}

.store-mgr-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #f0f1f3;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font: inherit;
}
.store-mgr-row:hover { border-color: #c8e6c9; background: #fff; }

.store-mgr-row-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.store-mgr-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.store-mgr-row-name { font-weight: 600; font-size: 0.95rem; color: #1a2b3c; }
.store-mgr-row-desc {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-mgr-counts {
    font-size: 0.85rem;
    color: #495057;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
}

.store-mgr-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1.5px solid #dee2e6;
}

.store-mgr-warning {
    margin: 0;
    font-size: 0.85rem;
    color: #7c4d00;
    background: #fff3e0;
    border: 1.5px solid #ffb300;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    line-height: 1.45;
}

.store-mgr-reassign {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #fff8e1;
    border: 1.5px solid #ffe082;
    border-radius: 10px;
}
.store-mgr-reassign p { margin: 0; font-size: 0.88rem; color: #5d4037; }

.store-mgr-safe {
    margin: 0;
    font-size: 0.88rem;
    color: #2e7d32;
    padding: 0.75rem 1rem;
    background: #e8f5e9;
    border-radius: 10px;
    border: 1.5px solid #a5d6a7;
}

.store-mgr-paused {
    margin: 0;
    font-size: 0.88rem;
    color: #7c4d00;
    padding: 0.75rem 1rem;
    background: #fff8e1;
    border-radius: 10px;
    border: 1.5px solid #ffcc80;
}

.store-mgr-select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #fff;
}

.store-mgr-field-error { font-size: 0.8rem; color: #dc3545; min-height: 1em; }

.store-mgr-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f1f3;
}

.store-mgr-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}
.store-mgr-btn-secondary:hover { background: #e9ecef; }

.store-mgr-btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.store-mgr-btn-danger:hover:not(:disabled) { background: #b02a37; }
.store-mgr-btn-danger:disabled { opacity: 0.55; cursor: not-allowed; }

.store-mgr-progress-line { font-size: 0.95rem; color: #2c3e50; }
.store-mgr-done-list { margin: 0; padding-left: 1.1rem; color: #2c3e50; line-height: 1.6; }

@media (max-width: 768px) {
    .store-mgr-panel { max-height: 94vh; }
    .store-mgr-title { font-size: 1.15rem; }
}
@media (max-width: 480px) {
    .store-mgr-actions { flex-direction: column-reverse; }
    .store-mgr-btn-secondary,
    .store-mgr-btn-danger { width: 100%; }
}
