/* WMS 공통 데이터 테이블 */
.wms-data-table-section {
        --bg-main: #fafafa;
        --bg-card: #ffffff;
        --bg-muted: #f4f4f5;
        --border-light: #e4e4e7;
        --border-medium: #d4d4d8;
        --text-primary: #18181b;
        --text-secondary: #52525b;
        --text-muted: #a1a1aa;
        --accent-primary: #4285F4;
        --accent-secondary: #3b82f6;
        --accent-light: #eff6ff;
        --success: #16a34a;
        --success-light: #f0fdf4;
    }
    .wms-data-table-section .inventory-table-container {
        background: var(--bg-card);
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        border: 1px solid #e5e7eb;
        overflow: hidden;
        width: 100%;
    }
    .wms-data-table-section .inventory-table-wrapper {
        overflow-x: auto;
        width: 100%;
    }
    .wms-data-table-section .data-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.8rem;
    }
    .wms-data-table-section .data-table th {
        padding: 0.75rem 1rem;
        text-align: left;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-bottom: 1px solid var(--border-light);
        background: var(--bg-muted);
        white-space: nowrap;
        position: relative;
    }
    .wms-data-table-section .data-table th:first-child {
        padding-left: 1.25rem;
    }
    .wms-data-table-section .data-table th:last-child {
        padding-right: 1.25rem;
    }
    .wms-data-table-section .data-table th a {
        color: inherit;
        text-decoration: none;
    }
    .wms-data-table-section .data-table th a:hover {
        color: var(--text-secondary);
    }
    .wms-data-table-section .data-table td {
        padding: 0.625rem 1rem;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-light);
        vertical-align: middle;
    }
    .wms-data-table-section .data-table td:first-child {
        padding-left: 1.25rem;
    }
    .wms-data-table-section .data-table td:last-child {
        padding-right: 1.25rem;
    }
    .wms-data-table-section .data-table tbody tr:hover td {
        background: var(--bg-muted);
    }
    .wms-data-table-section .data-table tbody tr:last-child td {
        border-bottom: none;
    }
    .wms-data-table-section .data-table .text-right {
        text-align: right !important;
        font-variant-numeric: tabular-nums;
    }
    .wms-data-table-section .data-table .text-center {
        text-align: center !important;
    }
    .wms-data-table-section .data-table .barcode {
        font-family: 'Courier New', monospace;
        font-size: 0.75rem;
        color: var(--text-secondary);
        background: var(--bg-muted);
        padding: 0.2rem 0.4rem;
        border-radius: 3px;
    }
    .wms-data-table-section .data-table .badge-brand {
        display: inline-block;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        background: var(--bg-muted);
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.025em;
        white-space: nowrap;
    }
    .wms-data-table-section .data-table .stock-value-cell {
        font-weight: 700;
        color: #10b981;
        font-variant-numeric: tabular-nums;
    }
    .wms-data-table-section .data-table .highlight-green {
        background: var(--success-light) !important;
        color: var(--success) !important;
        font-weight: 600;
    }
    .wms-data-table-section .data-table td.product-name-col {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 280px;
        font-weight: 500;
    }
    .wms-data-table-section .data-table td.stock-list-empty-cell {
        padding: 2.5rem 1rem !important;
        text-align: center;
        color: var(--text-muted);
    }
    .wms-data-table-section .stock-table-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-top: 1px solid var(--border-light);
        font-size: 0.75rem;
        color: var(--text-muted);
        flex-wrap: wrap;
        gap: 0.75rem;
        background: var(--bg-muted);
    }
    .wms-data-table-section .stock-table-footer .pagination-row {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    .wms-data-table-section .stock-table-footer .page-btn {
        min-width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-light);
        border-radius: 4px;
        background: var(--bg-card);
        color: var(--text-secondary);
        font-size: 0.75rem;
        cursor: pointer;
        transition: all 0.15s ease;
        padding: 0 0.5rem;
        text-decoration: none;
    }
    .wms-data-table-section .stock-table-footer .page-btn:hover {
        border-color: var(--accent-secondary);
        color: var(--accent-primary);
    }
    .wms-data-table-section .stock-table-footer .page-btn:disabled,
    .wms-data-table-section .stock-table-footer .page-btn.disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
    }
    .stock-list-form-contents {
        display: contents;
    }
    .wms-data-table-section .stock-th-content {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        position: relative;
    }
    .wms-data-table-section .th-label {
        flex: 1;
        min-width: 0;
    }
    .wms-data-table-section .filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        border-radius: 4px;
        color: var(--text-muted);
        transition: all 0.15s ease;
        padding: 0;
    }
    .wms-data-table-section .filter-btn:hover {
        background: var(--border-light);
        color: var(--text-secondary);
    }
    .wms-data-table-section .filter-btn.active {
        background: var(--accent-light);
        color: var(--accent-primary);
    }
    .wms-data-table-section .stock-col-filter-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        max-width: 300px;
        margin-top: 4px;
        background: var(--bg-card);
        border: 1px solid var(--border-medium);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 50;
    }
    .wms-data-table-section .stock-col-filter-dropdown--wide {
        min-width: 240px;
        max-width: 320px;
    }
    .wms-data-table-section .stock-col-filter-dropdown[hidden] {
        display: none !important;
    }
    .wms-data-table-section .filter-header {
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid var(--border-light);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .wms-data-table-section .filter-title {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
    }
    .wms-data-table-section .filter-actions {
        display: flex;
        gap: 0.5rem;
    }
    .wms-data-table-section .filter-action-btn {
        font-size: 0.65rem;
        color: var(--accent-primary);
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.125rem 0.25rem;
        border-radius: 3px;
    }
    .wms-data-table-section .filter-search {
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid var(--border-light);
    }
    .wms-data-table-section .filter-search--padded {
        padding: 0.75rem;
    }
    .wms-data-table-section .filter-search-input {
        width: 100%;
        padding: 0.375rem 0.5rem;
        border: 1px solid var(--border-light);
        border-radius: 4px;
        font-size: 0.75rem;
        background: var(--bg-muted);
        color: var(--text-primary);
        box-sizing: border-box;
    }
    .wms-data-table-section .filter-search-input:focus {
        outline: none;
        border-color: var(--accent-secondary);
        background: var(--bg-card);
    }
    .wms-data-table-section .filter-options {
        max-height: 220px;
        overflow-y: auto;
        padding: 0.375rem 0;
    }
    .wms-data-table-section .filter-option {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.375rem 0.75rem;
        cursor: pointer;
        font-size: 0.75rem;
        color: var(--text-primary);
    }
    .wms-data-table-section .filter-option:hover {
        background: var(--bg-muted);
    }
    .wms-data-table-section .filter-option input[type="checkbox"] {
        width: 14px;
        height: 14px;
        accent-color: var(--accent-primary);
        cursor: pointer;
        margin: 0;
        flex-shrink: 0;
    }
    .wms-data-table-section .filter-option-label {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .wms-data-table-section .filter-empty {
        padding: 1rem;
        text-align: center;
        color: var(--text-muted);
        font-size: 0.75rem;
    }
    .wms-data-table-section .filter-footer {
        padding: 0.5rem 0.75rem;
        border-top: 1px solid var(--border-light);
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    .wms-data-table-section .filter-clear-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
        font-weight: 500;
        border-radius: 4px;
        cursor: pointer;
        border: 1px solid var(--border-light);
        background: var(--bg-card);
        color: var(--text-secondary);
        text-decoration: none;
    }
    .wms-data-table-section .filter-apply-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
        font-weight: 500;
        border-radius: 4px;
        cursor: pointer;
        border: 1px solid var(--accent-primary);
        background: var(--accent-primary);
        color: white;
    }
    .wms-data-table-section .filter-option.filter-option--hidden {
        display: none;
    }
