/* Premium Styling Sheet for Inventory & Quotation System */
/* 파일명: T:\style.css */

/* 1. Google Fonts 연결 (Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 2. 전역 변수 정의 (HSL 컬러 시스템 및 테마 토큰) */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Dark Theme Palette (Default) */
    --bg-main: #0b0f19;
    --bg-glass: rgba(17, 24, 39, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --bg-input: rgba(255, 255, 255, 0.04);
    
    /* Brand Highlights */
    --primary: #6366f1;       /* Indigo */
    --primary-hover: #4f46e5;
    --secondary: #10b981;     /* Emerald */
    --warning: #f59e0b;       /* Amber */
    --danger: #ef4444;        /* Rose */
    --info: #3b82f6;          /* Blue */
    
    /* Shadows & Radius */
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme overrides (if requested/toggled) */
body.light-theme {
    --bg-main: #f3f4f6;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --shadow-premium: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --bg-input: rgba(0, 0, 0, 0.04);
}

/* 3. 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
}

/* 스크롤바 커스텀 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 4. 구조 레이아웃 */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 헤더 & 탑 네비게이션 */
header.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--border-glass);
}

.logo-section h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #818cf8, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-section span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 5. 탭형 네비게이션 */
.nav-tabs {
    display: flex;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 6px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    overflow-x: auto;
    white-space: nowrap;
    gap: 4px;
    box-shadow: var(--shadow-premium);
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* 6. 메인 콘텐츠 패널 (SPA 라우터) */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
    margin-bottom: 40px;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 7. 프리미엄 컴포넌트 스타일 */

/* 글래스 모피즘 카드 */
.card-premium {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 요약 통계 그리드 (대시보드) */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-premium);
}

.summary-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.summary-card .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.summary-card .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-card .footer {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 알림 및 배지 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    line-height: 1;
}
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--secondary); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-muted { background: rgba(156, 163, 175, 0.15); color: var(--text-secondary); }

/* 8. 폼 구성요소 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control, select, textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

select option {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.form-control:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

/* 버튼 세트 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn-success { background: var(--secondary); color: #fff; }
.btn-success:hover { background: #059669; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; }

.btn-link {
    background: none !important;
    border: none !important;
    color: var(--primary) !important;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-link:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* 9. 테이블 그리드 */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

table.table-premium {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

table.table-premium th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-glass);
}

table.table-premium td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-primary);
}

table.table-premium tbody tr {
    transition: var(--transition);
}

table.table-premium tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

/* 10. 모바일 카메라 바코드 리더 인터페이스 */
.scanner-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#modal-barcode-scanner {
    z-index: 2000 !important;
}

.scanner-modal-content {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    position: relative;
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.scanner-viewfinder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 2px solid var(--primary);
}

/* 카메라 렌더 영역 */
#qr-reader {
    width: 100% !important;
    border: none !important;
}

/* 초점 가이드라인 애니메이션 */
.scan-line {
    position: absolute;
    width: 90%;
    height: 2px;
    background: #ef4444;
    left: 5%;
    top: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: scanning 2s infinite ease-in-out;
    z-index: 10;
}

@keyframes scanning {
    0% { top: 15%; }
    50% { top: 85%; }
    100% { top: 15%; }
}

/* 11. 입출고 및 대량입고 UI 세부 디자인 */
.bulk-input-area {
    font-family: monospace;
    font-size: 12px;
    min-height: 150px;
    resize: vertical;
}

/* 출고 바코드 리스트 카트 */
.cart-list {
    margin-top: 16px;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-glass);
    gap: 12px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 2;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price-select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cart-item-controls {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.qty-spinner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-spinner button {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
}

.qty-spinner input {
    width: 40px;
    height: 28px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    color: var(--text-primary);
    outline: none;
}

/* 12. 토스트 팝업 메시지 */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: #1e293b; /* Slate 800 - 어떤 테마에서든 명확하게 대비되는 어두운 배경 */
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-premium);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: #f8fafc; /* Slate 50 - 밝은 글씨로 고정하여 가독성 확보 */
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-left-color: var(--secondary); }
.toast-warning { border-left-color: var(--warning); }
.toast-danger { border-left-color: var(--danger); }

/* 수동 상품 선택 테이블 및 입력 필드 스타일 */
table.table-premium.table-clickable tbody tr {
    cursor: pointer;
}
table.table-premium.table-clickable tbody tr:hover {
    background: rgba(99, 102, 241, 0.12) !important;
}
.input-price {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    padding: 3px 6px;
    font-size: 11px;
    text-align: right;
    transition: var(--transition);
}
.input-price:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}
.cart-item-price-select {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.qty-spinner input:focus {
    background: rgba(255, 255, 255, 0.1);
}

/* 출고 전표 상부 마스터 가로 정렬 그리드 */
.stock-out-master-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    align-items: flex-end;
}
@media (max-width: 1600px) {
    .stock-out-master-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .stock-out-master-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .stock-out-master-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
   13. A4 견적서 및 거래명세표 인쇄용 스타일 (@media print)
   ======================================================== */
.print-layout {
    display: none; /* 화면에서는 숨김 */
}

@media print {
    /* 1. 웹 브라우저 헤더/푸터 및 불필요한 UI 제거 */
    @page {
        size: A4 portrait;
        margin: 10mm 12mm; /* 인쇄 여백 */
    }

    html, body {
        background: #fff !important;
        color: #000 !important;
        font-family: 'Malgun Gothic', 'Dotum', sans-serif !important;
        font-size: 11px !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 모든 불필요한 화면 요소 가리기 */
    .app-header, .nav-tabs, .card-premium, .scanner-modal, .toast-container, .btn, .no-print {
        display: none !important;
    }

    /* 2. 프린트 전용 컨테이너 가시화 */
    .print-layout {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ========================================================
       A. 견적서 출력 전용 포맷 스타일
       ======================================================== */
    .quotation-print {
        width: 100%;
        color: #000;
    }

    .q-title {
        text-align: center;
        font-size: 24px;
        font-weight: 800;
        letter-spacing: 6px;
        margin-bottom: 24px;
        text-decoration: underline;
        text-underline-offset: 6px;
    }

    /* 공급받는자 vs 공급자 상부 격자 헤더 */
    .q-header-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 16px;
    }

    .q-header-table td {
        border: none;
        vertical-align: top;
        padding: 0;
    }

    .q-client-side {
        width: 48%;
        font-size: 12px;
        line-height: 1.8;
    }

    .q-client-side .c-name {
        font-size: 15px;
        font-weight: bold;
        border-bottom: 2px solid #000;
        padding-bottom: 4px;
        margin-bottom: 8px;
        display: inline-block;
        width: 90%;
    }

    .q-supplier-side {
        width: 52%;
    }

    .supplier-table {
        width: 100%;
        border-collapse: collapse;
        border: 2px solid #000;
    }

    .supplier-table th, .supplier-table td {
        border: 1px solid #000;
        padding: 4px 6px;
        font-size: 10px;
        text-align: center;
        height: 22px;
    }

    .supplier-table th {
        background: #f2f2f2 !important;
        font-weight: bold;
        width: 18%;
    }

    .supplier-table td {
        text-align: left;
        width: 32%;
    }

    /* 견적 금액란 */
    .q-amount-box {
        width: 100%;
        border: 2px solid #000;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: bold;
        margin-bottom: 16px;
        display: flex;
        justify-content: space-between;
    }

    /* 본문 품목 테이블 */
    .q-items-table {
        width: 100%;
        border-collapse: collapse;
        border: 2px solid #000;
        margin-bottom: 16px;
    }

    .q-items-table th, .q-items-table td {
        border: 1px solid #000;
        padding: 6px 8px;
        font-size: 10px;
        text-align: center;
    }

    .q-items-table th {
        background: #f2f2f2 !important;
        font-weight: bold;
    }

    .q-items-table td.left { text-align: left; }
    .q-items-table td.right { text-align: right; }

    /* 견적서 특이사항 및 결재란 */
    .q-notes-box {
        width: 100%;
        border: 1px solid #000;
        padding: 10px;
        font-size: 10px;
        line-height: 1.6;
        min-height: 80px;
    }

    /* ========================================================
       B. 거래명세표 출력 전용 포맷 스타일 (공급자용/공급받는자용 반분 인쇄)
       ======================================================== */
    .statement-print {
        width: 100%;
    }

    /* 공급자용과 공급받는자용을 구분하는 절취선 배치 */
    .statement-half {
        height: 48%; /* A4 절반 크기 */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }

    .statement-half:first-child {
        margin-bottom: 40px;
        border-bottom: 1px dashed #777; /* 절취선 */
        padding-bottom: 25px;
    }

    .s-title-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .s-title {
        font-size: 20px;
        font-weight: bold;
        letter-spacing: 4px;
        text-decoration: underline;
    }

    .s-copy-type {
        border: 1px solid #000;
        padding: 2px 6px;
        font-weight: bold;
        font-size: 10px;
    }

    .s-main-grid {
        width: 100%;
        border-collapse: collapse;
        border: 2px solid #000;
        margin-bottom: 8px;
    }

    .s-main-grid td {
        border: 1px solid #000;
        padding: 3px 5px;
        font-size: 9px;
        vertical-align: middle;
    }

    /* 거래명세 공급자 공급받는자 대칭 테이블 */
    .s-party-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 10px;
    }

    .s-party-table td {
        border: none;
        vertical-align: top;
        padding: 0;
    }

    .s-side-box {
        width: 49%;
        border: 2px solid #000;
    }

    .s-side-box table {
        width: 100%;
        border-collapse: collapse;
    }

    .s-side-box th, .s-side-box td {
        border: 1px solid #000;
        padding: 3px 4px;
        font-size: 9px;
        text-align: center;
        height: 20px;
    }

    .s-side-box th {
        background: #f2f2f2 !important;
        font-weight: 500;
        width: 16%;
    }

    .s-side-box td {
        text-align: left;
    }

    .s-side-box .label-vertical {
        width: 6%;
        background: #f2f2f2 !important;
        font-weight: bold;
        text-align: center;
        vertical-align: middle;
    }

    /* 거래명세서 품목 테이블 */
    .s-items-table {
        width: 100%;
        border-collapse: collapse;
        border: 2px solid #000;
        margin-bottom: 8px;
    }

    .s-items-table th, .s-items-table td {
        border: 1px solid #000;
        padding: 4px 6px;
        font-size: 9px;
        text-align: center;
    }

    .s-items-table th {
        background: #f2f2f2 !important;
        font-weight: bold;
    }

    .s-items-table td.left { text-align: left; }
    .s-items-table td.right { text-align: right; }

    .s-summary-box {
        width: 100%;
        border: 2px solid #000;
        border-top: none;
        padding: 6px;
        font-size: 10px;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        background: #f9f9f9 !important;
    }
}

/* 데스크탑 뷰에서는 모바일 카드 리스트를 숨김 */
.mobile-card-list {
    display: none;
}

/* ========================================================
   17. 모바일 해상도 전용 반응형 스타일 (@media (max-width: 768px))
   ======================================================== */
@media (max-width: 768px) {
    /* 1. 하단 고정 탭바 */
    .nav-tabs {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        z-index: 999;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
        background: var(--bg-glass);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-glass);
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 4px;
        gap: 2px;
    }

    .nav-tab {
        flex-direction: column;
        gap: 4px;
        padding: 8px 4px;
        font-size: 10px;
    }

    .nav-tab i {
        width: 20px;
        height: 20px;
    }

    .app-container {
        padding-bottom: 80px; /* 하단 탭바 덮임 방지 여백 */
    }

    header.app-header {
        padding: 16px 0 12px;
    }

    /* 2. 터치 및 폼 요소 최적화 */
    .form-control, select, textarea {
        min-height: 44px;
        font-size: 15px; /* 모바일 입력창 줌인 방지 */
        padding: 8px 12px;
    }

    .btn {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .btn-sm {
        min-height: 36px;
        padding: 6px 12px;
    }

    /* 3. 모바일 카드 뷰 스타일 */
    .desktop-only-table, .table-responsive {
        display: none !important;
    }

    .mobile-card-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 8px;
    }

    .mobile-card {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-glass);
        border-radius: var(--radius-md);
        padding: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        gap: 8px;
        transition: var(--transition);
    }
    
    body.light-theme .mobile-card {
        background: rgba(0, 0, 0, 0.015);
    }

    .mobile-card:hover {
        border-color: var(--primary);
    }

    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px dashed var(--border-glass);
        padding-bottom: 8px;
        font-size: 11px;
    }

    .mobile-card-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--text-primary);
    }

    .mobile-card-info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: var(--text-secondary);
    }

    .mobile-card-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 4px;
        border-top: 1px solid var(--border-glass);
        padding-top: 8px;
    }

    /* 4. 기타 UI 조절 */
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-out-master-grid {
        grid-template-columns: 1fr;
    }

    .scanner-modal-content {
        width: 95%;
        padding: 16px;
    }
}

/* ========================================================
   18. 로그인 화면 프리미엄 스타일 및 보관함 서브 탭 스타일
   ======================================================== */
#login-container {
    background: radial-gradient(circle at center, #111827 0%, #030712 100%) !important;
}

#login-container .card-premium {
    border-radius: var(--radius-lg);
    background: rgba(17, 24, 39, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    animation: loginFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#login-container h2 {
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#login-container .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: var(--transition);
}

#login-container .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* 서브 탭바 스타일링 */
.sub-tab-bar .sub-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.sub-tab-bar .sub-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sub-tab-bar .sub-tab.active {
    background: var(--primary) !important;
    border-color: var(--primary);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* 계정관리 취소 버튼 스타일링 */
#btn-cancel-user {
    transition: var(--transition);
}
#btn-cancel-user:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border-color: var(--danger);
}

