/* ===== 매장출고 모바일 피킹리스트 ===== */
/* OzCenter PickingMobile.jsx 완전 동일 UI */

:root {
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #8b5cf6;
    --primary-600: #7c3aed;
    --primary-700: #6d28d9;
    --primary-800: #5b21b6;
    --primary-900: #4c1d95;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--slate-50);
    color: var(--slate-900);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

.app {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ===== 헤더 ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding: 12px 16px 8px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 4px;
    flex-wrap: nowrap;
    gap: 8px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-title h1 {
    font-size: 20px;
    font-weight: 900;
    color: var(--slate-900);
    white-space: nowrap;
}

.pack-badge {
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    background: var(--primary-600);
    color: white;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-chip {
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-500);
    white-space: nowrap;
}

.stat-chip em {
    color: var(--primary-600);
    font-style: normal;
    font-weight: 900;
}

/* 아이콘 버튼 (로그/취소) */
.header-icon-btn {
    min-width: 56px;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    background: #3b82f6;
    color: white;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.header-icon-btn:active { transform: scale(0.9); }
.header-icon-btn.danger {
    background: #ff4757;
    font-size: 16px;
}

/* ===== 도메인 선택 ===== */
.domain-select-wrap {
    margin-bottom: 8px;
}

.domain-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--slate-200);
    border-radius: 16px;
    background: white;
    color: var(--slate-700);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    appearance: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.domain-select:focus {
    outline: none;
    border-color: var(--primary-500);
}

/* ===== 층 전환 ===== */
.floor-switch {
    display: flex;
    background: rgba(226, 232, 240, 0.5);
    padding: 4px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.floor-btn {
    flex: 1;
    padding: 6px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--slate-400);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s ease;
}

.floor-btn.active {
    background: white;
    color: var(--primary-600);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== 보기 전환 (대기/완료) ===== */
.view-switch {
    display: flex;
    background: rgba(226, 232, 240, 0.5);
    padding: 4px;
    border-radius: 16px;
    margin-top: 6px;
}

.view-btn {
    flex: 1;
    padding: 6px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--slate-400);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.view-btn.active {
    background: white;
    color: var(--primary-600);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.done-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: var(--success);
    color: white;
    font-size: 9px;
    font-weight: 900;
}

/* ===== 매장 필터 ===== */
/* ===== 헤더 접기/펼치기 ===== */
.header-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}
.mobile-date-input {
    flex: 1;
    padding: 6px 10px;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    background: white;
    color: var(--primary-600);
    font-size: 13px;
    font-weight: 700;
    outline: none;
    font-family: 'Inter', sans-serif;
    min-width: 0;
}
.header-toggle-btn {
    padding: 4px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: white;
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.capacity-setting {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-500);
    white-space: nowrap;
}
.capacity-setting select {
    padding: 3px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    background: white;
    color: var(--slate-700);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}
.header-toggle-btn:active { transform: scale(0.9); }
.header-collapse {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 400px;
    opacity: 1;
}
.header-collapse.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* ===== 완료 카드 숫자 영역 전체 클릭 ===== */
.done-card .pick-qty {
    cursor: pointer;
    position: relative;
}
.done-card .pick-qty:active {
    transform: scale(0.95);
}
.done-card .cancel-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.15s ease;
}
.done-card .cancel-btn:active {
    transform: scale(0.9);
}

.store-filter-wrap {
    margin-bottom: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.store-filter-wrap::-webkit-scrollbar { display: none; }

.store-filter {
    display: flex;
    gap: 6px;
    padding: 2px 0;
    min-width: min-content;
}

.store-chip {
    padding: 6px 14px;
    border: 1px solid var(--slate-100);
    border-radius: 12px;
    background: white;
    color: var(--slate-400);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.store-chip:active { transform: scale(0.95); }
.store-chip.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ===== 그룹 필터 + 층 필터 한 줄 ===== */
.filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    flex-wrap: nowrap;
    min-width: 0;
}
.filter-row.hidden { display: none; }
.filter-row .round-tabs { flex: 1; min-width: 0; padding: 0; }

.floor-filter { display: inline-flex; gap: 5px; flex-shrink: 0; }
.floor-filter.hidden { display: none; }
.floor-filter-btn {
    min-width: 44px;
    height: 36px;
    padding: 0 10px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: white;
    color: var(--slate-400);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.floor-filter-btn:active { transform: scale(0.95); }
.floor-filter-btn.active {
    background: var(--primary-600);
    border-color: var(--primary-500);
    color: white;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.35);
}
.floor-filter-btn[data-floor="all"] {
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(16,185,129,0.08));
    border-color: var(--success);
    color: var(--success);
}
.floor-filter-btn[data-floor="all"].active {
    background: linear-gradient(135deg, var(--primary-600), var(--success));
    border-color: var(--success);
    color: white;
}

/* 주문유형 필터 (일반/신규/전체) */
.ordertype-filter { display: inline-flex; gap: 5px; flex-shrink: 0; }
.ordertype-filter-btn {
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: white;
    color: var(--slate-400);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ordertype-filter-btn:active { transform: scale(0.95); }
.ordertype-filter-btn.active {
    background: var(--primary-600);
    border-color: var(--primary-500);
    color: white;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.35);
}
.ordertype-filter-btn[data-ot="initial"].active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: #8b5cf6;
    color: white;
}

/* ===== 회전 탭 ===== */
.round-tabs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}
.round-tabs::-webkit-scrollbar { display: none; }

.round-tab {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: white;
    color: var(--slate-400);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.round-tab:active { transform: scale(0.95); }
.round-tab.active {
    background: var(--primary-600);
    border-color: var(--primary-500);
    color: white;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.35);
}
.round-tab.all-tab {
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(16,185,129,0.08));
    border-color: var(--success);
    color: var(--success);
}
.round-tab.all-tab.active {
    background: linear-gradient(135deg, var(--primary-600), var(--success));
    border-color: var(--success);
    color: white;
}

/* ===== 요약 바 ===== */
.summary-bar {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    flex-wrap: wrap;
    background: white;
    border-bottom: 1px solid var(--slate-100);
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
}
.summary-chip em {
    font-style: normal;
    font-weight: 900;
    color: var(--primary-600);
}
.summary-chip.route {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
    color: var(--success);
}
.summary-chip.route em { color: var(--success); }

/* ===== 피킹 리스트 ===== */
.picking-list {
    flex: 1;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 80px;
}

/* ===== 빈 상태 ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 20px;
    color: var(--slate-300);
}
.empty-icon { font-size: 40px; margin-bottom: 16px; }
.empty-state p { font-size: 14px; font-weight: 900; color: var(--slate-400); }

/* ================================================================
   피킹 카드 — OzCenter PickingMobile.jsx 완전 동일
   ================================================================ */
.pick-card {
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    border: 6px solid var(--primary-400);
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: card-in 0.3s ease forwards;
    opacity: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.pick-card.removing {
    animation: card-out 0.5s cubic-bezier(0.1, 0.7, 0.1, 1) forwards;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes card-out {
    0% { 
        opacity: 1; 
        transform: scale(1); 
        max-height: 400px; 
        margin-bottom: 12px; 
        border-width: 6px; 
    }
    40% { 
        opacity: 0; 
        transform: scale(0.9) translateX(-40px); 
        max-height: 400px; 
        margin-bottom: 12px; 
        border-width: 6px; 
    }
    100% { 
        opacity: 0; 
        transform: scale(0.9) translateX(-40px); 
        max-height: 0; 
        margin-bottom: 0; 
        border-width: 0; 
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* ──── 좌측: 수량 영역 (120px, bg-slate-900) ──── */
.pick-qty {
    width: 120px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    position: relative;
    background: var(--slate-900);
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.pick-qty:active { transform: scale(0.95); }

/* 좌측 수량 영역 이미지 배경 */
.pick-qty .qty-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* 장식용 배경 이미지 → 롱프레스 시 브라우저 기본 이미지 메뉴 차단 */
    pointer-events: none;
}
.pick-qty .qty-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pick-qty .qty-bg .qty-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

/* 수량 숫자 — OzCenter text-[72px] font-black */
.pick-qty .qty-num {
    font-size: 72px;
    font-weight: 900;
    color: white;
    line-height: 1;
    z-index: 2;
}

.pick-qty .qty-label {
    display: none; /* OzCenter에서는 "수량" 라벨 없음 */
}

/* 배치번호 (수량 아래) — OzCenter slot_details 스타일 */
.pick-qty .batch-badge {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 4px;
    z-index: 2;
}

.pick-qty .batch-num {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 36px;
    font-weight: 900;
}

/* ──── 우측: 상품 정보 (이미지 배경) ──── */
.pick-info {
    flex: 1;
    min-width: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 이미지 배경 + 오버레이 */
.pick-info .info-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* 장식용 배경 이미지 → 롱프레스 시 브라우저 기본 이미지 메뉴(공유/다운로드 등) 차단 */
    pointer-events: none;
}
.pick-info .info-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pick-info .info-bg .bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.60);
}

.pick-info .info-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* 로케이션 — OzCenter: flex-col, MapPin size=32, text-[32px] */
.pick-loc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.pick-loc .loc-pin {
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease;
    flex-shrink: 0;
    color: var(--primary-400);
    display: flex;
}
.pick-loc .loc-pin:active { transform: scale(0.85); }

/* OzCenter: text-primary-400 font-black text-[32px] */
.pick-loc .loc-code {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-400);
    letter-spacing: -1px;
    line-height: 1;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.pick-loc .loc-code.expanded {
    white-space: normal;
    word-break: break-all;
    text-overflow: unset;
}

/* ===== 출고(COMPLETE) 카드 ===== */
.complete-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.complete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.complete-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    gap: 8px;
}
.complete-box-no {
    display: inline-block;
    background: var(--primary-500);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}
.complete-info {
    font-size: 13px;
    color: var(--slate-500);
}
.complete-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.btn-print {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-print.barcode {
    background: var(--slate-100);
    color: var(--slate-700);
}
.btn-print.list {
    background: var(--primary-50);
    color: var(--primary-600);
}
.btn-print:active { transform: scale(0.96); }

/* ===== 점포별 그룹 (출고탭) ===== */
.store-group {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease both;
}
.store-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px 12px;
}
.store-group-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.store-group-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--slate-800);
}
.store-group-stats {
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 500;
}
.store-group-boxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.store-group-boxes .complete-card {
    margin-bottom: 0;
}
.complete-card.box-shipped {
    opacity: 0.6;
    background: #f0fdf4;
}
.btn-ship {
    padding: 10px 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.15s ease;
}
.btn-ship:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}
.store-group-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.btn-list-print {
    padding: 10px 12px;
    background: var(--primary-50);
    color: var(--primary-600);
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.btn-list-print:active { transform: scale(0.95); }

/* 배송완료 매장 그룹 */
.store-group.shipped {
    opacity: 0.7;
    background: #e8f5e9;
}
.btn-ship-done {
    padding: 10px 14px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* 전체 배송처리 버튼 */
.all-ship-bar {
    margin-bottom: 16px;
}
.btn-ship-all {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.15s ease;
}
.btn-ship-all:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

/* ===== 배송처리 진행 트래커 ===== */
.shipment-tracker {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 400px;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.shipment-tracker.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}
.shipment-tracker-content {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}
.shipment-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 10px;
}
.shipment-progress-pct {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-600);
}
.shipment-progress-bar {
    height: 8px;
    background: var(--slate-100);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.shipment-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    border-radius: 4px;
    transition: width 0.5s ease;
}
/* 패킹탭 토글 */
.packing-store-group {
    margin-bottom: 8px;
}
.packing-toggle-header {
    cursor: pointer;
}
.toggle-arrow {
    font-size: 12px;
    color: var(--slate-400);
    transition: transform 0.2s;
    width: 16px;
    display: inline-block;
}
.packing-card-list {
    transition: max-height 0.3s ease;
}
.packing-card-list.hidden {
    display: none;
}

/* 시즌 뱃지 */
.season-badge {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #f59e0b;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 합쳐진 카드 매장 태그 */
.merge-stores {
    font-size: 11px;
    color: #fff;
    background: #6366f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 4px;
    white-space: nowrap;
}

/* 위치/매장/재고 뱃지 묶음 */
.loc-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* 현재재고 뱃지 */
.stock-badge {
    font-size: 11px;
    color: #fff;
    background: #10b981;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}

.shipment-tracker-msg {
    font-size: 12px;
    color: var(--slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 보류(HOLD) 카드 ===== */
.hold-section {
    margin-bottom: 16px;
}
.hold-store-header {
    font-size: 16px;
    font-weight: 800;
    color: var(--warning);
    padding: 8px 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hold-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-500);
}
.hold-round {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    background: var(--warning);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
}
.hold-card {
    border-width: 6px !important;
    border-color: var(--warning) !important;
    opacity: 0.8;
}
.hold-qty {
    background: var(--warning) !important;
}

/* 상품명 — OzCenter: font-black, 흰색 배경에서는 어두운 색상 */
.pick-product {
    font-size: 40px;
    font-weight: 900;
    color: var(--slate-800);
    line-height: 1.1;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -1px;
}

/* 옵션 — OzCenter: font-black text-slate-500 */
.pick-option {
    font-size: 34px;
    font-weight: 900;
    color: var(--slate-500);
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    letter-spacing: -1px;
}

/* zoom-btn은 이미지가 있는 카드에서만 표시됨 */

/* 이미지 확대 버튼 — 흰색 배경 기준 */
.zoom-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.15s ease;
}
.zoom-btn:active { transform: scale(0.85); }

/* ===== 배치 범례 ===== */
.batch-legend {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 0;
}
.batch-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    background: var(--slate-50);
    border: 2px solid var(--slate-200);
    color: var(--slate-600);
}
.batch-tag.c-blue { border-color: var(--primary-600); color: var(--primary-600); }
.batch-tag.c-green { border-color: var(--success); color: var(--success); }
.batch-tag.c-amber { border-color: var(--warning); color: var(--warning); }
.batch-tag.c-rose { border-color: var(--danger); color: var(--danger); }

/* ===== 카드 보더 색상 — OzCenter qtyColor 기반 ===== */
.pick-card.c-blue { border-color: var(--primary-400); }
.pick-card.c-green { border-color: var(--success); }
.pick-card.c-amber { border-color: var(--warning); }
.pick-card.c-rose { border-color: var(--danger); }

/* ===== 열 구분선 ===== */
.col-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}
.col-divider .divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--slate-200), transparent);
}
.col-divider .divider-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--success);
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 14px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    white-space: nowrap;
}

/* ===== 회전 구분 ===== */
.round-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 4px;
}
.round-divider .divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-600), var(--success));
    border-radius: 1px;
}
.round-divider .round-tag {
    font-size: 12px;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    padding: 5px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    white-space: nowrap;
}

/* ===== 스캔 피드백 토스트 ===== */
.scan-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    white-space: nowrap;
}
.scan-toast.success { background: var(--success); color: white; }
.scan-toast.error { background: var(--danger); color: white; }
.scan-toast.hidden { display: none; }

/* ===== 상세 정보 팝업 — OzCenter zoomedLocation 동일 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.90);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: modal-fade 0.2s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* OzCenter: bg-white rounded-3xl p-8 w-[90%] max-w-sm */
.detail-popup {
    background: white;
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    animation: popup-scale 0.25s ease;
}
@keyframes popup-scale {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* OzCenter: w-full h-2 bg-gradient-to-r from-primary-400 to-primary-600 */
.detail-popup-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
}

/* OzCenter: flex items-center gap-3 mb-6 text-primary-600 */
.detail-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--primary-600);
}
.detail-popup-icon { display: flex; color: var(--primary-600); }
/* OzCenter: text-xl font-black */
.detail-popup-title { font-size: 20px; font-weight: 900; }

.detail-popup-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* OzCenter: text-xs font-black text-slate-400 uppercase tracking-widest mb-1 */
.detail-label {
    font-size: 10px;
    font-weight: 900;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 4px;
}

/* OzCenter: text-[44px] font-black text-slate-900 */
.detail-value-lg {
    font-size: 44px;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1;
    letter-spacing: -1px;
    word-break: break-all;
}

/* OzCenter: text-2xl font-black text-primary-600 */
.detail-value-md {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    word-break: break-all;
}
.detail-value-md.primary { color: var(--primary-600); }

/* OzCenter: text-4xl font-black text-emerald-600 */
.detail-value-xl {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}
.detail-value-xl.success { color: var(--success); }

/* OzCenter: flex gap-4 */
.detail-row {
    display: flex;
    gap: 16px;
}
.flex-1 { flex: 1; }
.text-right { text-align: right; min-width: 100px; }

/* OzCenter: pt-4 border-t border-slate-100 */
.detail-divider {
    height: 1px;
    background: var(--slate-100);
}

/* OzCenter: text-sm font-bold text-slate-800 */
.detail-product {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-800);
    line-height: 1.3;
    margin-bottom: 4px;
}
/* OzCenter: text-xs font-medium text-slate-500 */
.detail-option {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-500);
}

/* OzCenter: mt-8 text-center text-slate-300 font-bold text-[10px] */
.detail-popup-footer {
    margin-top: 32px;
    text-align: center;
    color: var(--slate-300);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ===== 이미지 확대 모달 — OzCenter zoomedImage 동일 ===== */
#image-modal {
    flex-direction: column;
    gap: 16px;
}
.zoomed-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: popup-scale 0.25s ease;
}
.image-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 12px 18px;
    color: white;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
}

/* ===== 바코드 입력 숨김 ===== */
.barcode-hidden-input {
    position: fixed;
    top: -9999px;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* ===== 피킹 완료 카드 ===== */
.pick-card.done-card {
    border-color: var(--success) !important;
    opacity: 0.9;
}
.pick-card.done-card .pick-qty {
    background: var(--success);
}

.cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.15s ease;
}
.cancel-btn:active { transform: scale(0.9); }

/* ===== 완료 리스트 매장별 헤더 ===== */
.done-store-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 12px 0 4px;
    background: linear-gradient(135deg, var(--primary-50), var(--indigo-50));
    border-radius: 14px;
    border: 1px solid var(--primary-100);
}
.done-store-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--slate-700);
    flex: 1;
}
.done-store-box {
    font-weight: 600;
    font-size: 12px;
    color: var(--primary-600);
    background: var(--primary-100);
    padding: 3px 10px;
    border-radius: 8px;
}
.box-close-btn {
    padding: 5px 12px;
    border: 1px solid var(--primary-300);
    border-radius: 10px;
    background: white;
    color: var(--primary-600);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.box-close-btn:hover { background: var(--primary-500); color: white; }
.box-close-btn:active { transform: scale(0.9); }

/* ===== 업로드 버튼 (헤더) ===== */
.upload-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 10px;
    background: var(--primary-500);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.upload-btn:active { transform: scale(0.9); }

/* ===== empty-state 업로드 버튼 ===== */
.empty-upload-btn {
    margin-top: 12px;
    padding: 12px 28px;
    border: none;
    border-radius: 14px;
    background: var(--primary-500);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* ===== 업로드 모달 ===== */
.upload-popup {
    background: white;
    border-radius: 24px;
    padding: 28px 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.upload-popup h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
}
.upload-desc {
    font-size: 13px;
    color: var(--slate-500);
    margin-bottom: 20px;
}
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.upload-domain-select {
    padding: 10px 14px;
    border: 2px solid var(--slate-200);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: var(--slate-50);
}
.upload-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 2px dashed var(--primary-300);
    border-radius: 14px;
    color: var(--primary-600);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.upload-file-label:hover {
    background: var(--primary-50);
}
.upload-submit-btn {
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
}
.upload-submit-btn:active { transform: scale(0.95); }
.upload-status {
    font-size: 13px;
    font-weight: 600;
    min-height: 20px;
}
.upload-status.error { color: #ef4444; }
.upload-status.success { color: #22c55e; }
.upload-status.loading { color: var(--primary-500); }
.upload-close-btn {
    margin-top: 12px;
    padding: 10px 24px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: transparent;
    color: var(--slate-500);
    font-size: 14px;
    cursor: pointer;
}

/* ===== 인쇄 스타일 ===== */
@media print {
    .header { position: static; }
    .round-tabs, .floor-switch, .store-filter-wrap, .view-switch { display: none; }
    .picking-list { padding-bottom: 0; }
    .pick-card { page-break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}

/* ===== 상품 이미지 썸네일 (품목정보 영역) ===== */
.pick-image-wrap {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--slate-200);
    background: var(--slate-50);
    cursor: pointer;
}
.pick-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.pick-thumb:active {
    transform: scale(0.9);
}

/* pick-info 내부 플렉스 레이아웃 (텍스트 + 이미지) */
.pick-info {
    flex: 1;
    min-width: 0;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* ===== 그룹 배치 요약 카드 (모바일) ===== */
#group-summary {
    padding: 4px 0;
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#group-summary .group-card {
    background: white;
    border: 2px solid var(--slate-200);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
#group-summary .group-card .group-header {
    font-weight: 900;
    font-size: 13px;
    color: var(--primary-600);
    margin-bottom: 4px;
}
#group-summary .group-card .group-stores {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-500);
    line-height: 1.4;
}

/* ===== 꽉 차는 배경 모드에서의 글자색 오버라이드 ===== */
.has-image .pick-product { 
    color: white !important; 
}
.has-image .pick-option { 
    color: var(--slate-300) !important; 
}
.has-image .info-bg {
    cursor: pointer;
}

/* ===== 스캔 취소 버튼 (피킹탭) ===== */
.cancel-btn {
    position: relative;
    z-index: 50;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--danger, #ef4444);
    border: 2px solid var(--danger, #ef4444);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.1s ease;
}
.cancel-btn:active {
    transform: scale(0.92);
    background-color: var(--danger, #ef4444);
    color: white;
}
