/* 货架管理系统样式 - 命名空间避免与全局样式冲突 */

.ra-shelf-body {
    background-color: #f5f5f5;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
}

/* 搜索区域样式 */
.ra-shelf-search-form {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ra-shelf-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.ra-shelf-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ra-shelf-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.ra-shelf-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    min-width: 300px;
    flex: 1;
}

.ra-shelf-search-type {
    width: 100px;
    height: 36px;
    border: none;
    border-right: 1px solid #d9d9d9;
    background: #f8f9fa;
    font-size: 13px;
    color: #1d2129;
    cursor: pointer;
    margin: 0;
}

.ra-shelf-search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    margin: 0;
}

.ra-shelf-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
}

.ra-shelf-search-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
}

.ra-shelf-search-input:focus,
.ra-shelf-search-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.ra-shelf-search-input:hover,
.ra-shelf-search-select:hover {
    border-color: #c9cdd4;
}

/* ===== 应用布局 ===== */
.ra-shelf-app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-modal: 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 16px 24px 2px rgba(0, 0, 0, 0.14);
}

/* ===== 主内容区域 ===== */
.ra-shelf-app-main {
    flex: 1;
    padding: 24px 32px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* ===== 区域标题 ===== */
.ra-shelf-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e7e7e7;
}

.ra-shelf-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ra-shelf-section-title i {
    color: #0052D9;
    font-size: 20px;
}

/* ===== 头部控制区域 ===== */
.ra-shelf-header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ra-shelf-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ra-shelf-actions-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ra-shelf-search-box {
    position: relative;
}

.ra-shelf-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #BBBBBB;
    font-size: 14px;
    pointer-events: none;
}

.ra-shelf-search-input {
    padding: 0 16px 0 40px;
    height: 36px;
    border: 1px solid #DCDCDC;
    border-radius: 3px;
    background: #FFFFFF;
    color: #000000;
    font-size: 14px;
    width: 280px;
    transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
}

.ra-shelf-search-input:focus {
    outline: none;
    border-color: #0052D9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 表格头部样式 - 复制自wh-loc-table-header */
.ra-shelf-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* 视图切换按钮样式 */
.ra-shelf-view-toggle {
    display: flex;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
}

.ra-shelf-view-btn {
    padding: 6px 12px;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4e5969;
}

.ra-shelf-view-btn:not(:last-child) {
    border-right: 1px solid #d9d9d9;
}

.ra-shelf-view-btn:hover {
    background-color: #f5f5f5;
}

.ra-shelf-view-btn-active {
    background-color: #0052d9;
    color: white;
}

.ra-shelf-view-btn-active:hover {
    background-color: #0045b5;
}

/* 视图切换器容器样式 */
.ra-shelf-view-switcher {
    display: flex;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
}

/* 表格容器样式 - 复制自wh-loc-table-container */
.ra-shelf-table-container {
    flex: 1;
    overflow: auto;
    width: 100%;
}

/* 表格统计信息样式 */
.ra-shelf-table-summary {
    font-size: 13px;
    color: #4e5969;
}

/* 表格容器滚动条样式 */
.ra-shelf-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ra-shelf-table-container::-webkit-scrollbar-track {
    background: transparent;
}

.ra-shelf-table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.ra-shelf-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 针对Firefox的隐形滚动条 */
.ra-shelf-table-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* 卡片容器样式 - 复制自wh-loc-card-container */
.ra-shelf-card-container {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

/* 卡片容器滚动条样式 */
.ra-shelf-card-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ra-shelf-card-container::-webkit-scrollbar-track {
    background: transparent;
}

.ra-shelf-card-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.ra-shelf-card-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.ra-shelf-card-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* 分页区域样式 - 复制自wh-loc-table-footer */
.ra-shelf-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e5e6eb;
    margin-top: 16px;
}

/* 响应式布局 - 表格头部 */
@media (max-width: 768px) {
    .ra-shelf-table-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
}

/* ===== 表格样式 ===== */
.ra-shelf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
    border: 1px solid #e8eaec;
}

/* 表格列宽度设置 */
/* 移除固定宽度设置，使用动态宽度 */
.ra-shelf-table th,
.ra-shelf-table td {
    white-space: nowrap;
}

.ra-shelf-table th,
.ra-shelf-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e6eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 部分列居中显示 */
.ra-shelf-table th:nth-child(3),
.ra-shelf-table td:nth-child(3),
.ra-shelf-table th:nth-child(4),
.ra-shelf-table td:nth-child(4),
.ra-shelf-table th:nth-child(5),
.ra-shelf-table td:nth-child(5),
.ra-shelf-table th:nth-child(6),
.ra-shelf-table td:nth-child(6),
.ra-shelf-table th:nth-child(7),
.ra-shelf-table td:nth-child(7),
.ra-shelf-table th:nth-child(8),
.ra-shelf-table td:nth-child(8),
.ra-shelf-table th:nth-child(9),
.ra-shelf-table td:nth-child(9),
.ra-shelf-table th:nth-child(12),
.ra-shelf-table td:nth-child(12) {
    text-align: center;
}

.ra-shelf-table thead {
    background-color: #f5f7fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ra-shelf-table thead th {
    font-weight: 600;
    color: #1d2129;
    border-bottom: 2px solid #e5e6eb;
}

.ra-shelf-table tbody tr {
    transition: background-color 0.2s;
}

.ra-shelf-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 标签样式 - 与库位管理保持一致 */
.ra-shelf-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.ra-shelf-tag-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    color: #2e7d32;
    border-color: #a5d6a7;
}

.ra-shelf-tag-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #fff8f1 100%);
    color: #e65100;
    border-color: #ffcc80;
}

.ra-shelf-tag-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    color: #1565c0;
    border-color: #90caf9;
}

.ra-shelf-tag-danger {
    background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
    color: #c62828;
    border-color: #ef9a9a;
}

.ra-shelf-tag-good {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    color: #2e7d32;
    border-color: #a5d6a7;
}

.ra-shelf-tag-defective {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    color: #f57c00;
    border-color: #ffe082;
}

.ra-shelf-tag-waste {
    background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
    color: #c62828;
    border-color: #ef5350;
}

/* 操作列样式 - 与库位管理保持一致 */
.ra-shelf-actions-cell {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ===== 卡片网格样式 ===== */
.ra-shelf-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    padding: 6px;
    align-items: stretch;
}

/* 单个卡片 - 简洁紧凑设计 */
.ra-shelf-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: visible;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9eaec;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ra-shelf-card:hover {
    box-shadow: 0 3px 10px rgba(0, 82, 217, 0.15);
    transform: translateY(-1px);
    border-color: #c9e2ff;
}

/* 卡片头部 - 紧凑设计 */
.ra-shelf-card-header {
    padding: 8px 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #f5f8ff 100%);
    border-bottom: 1px solid #e9eaec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
}

.ra-shelf-card-code {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    font-family: 'Consolas', 'Monaco', monospace;
    flex: 1;
    min-width: 0;
}

.ra-shelf-card-badges {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

/* 更小的标签样式 */
.ra-shelf-card-badges .ra-shelf-tag {
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.2;
}

/* 卡片主体 - 紧凑布局 */
.ra-shelf-card-body {
    padding: 10px 12px;
    background: #fafbfc;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ra-shelf-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px dashed #f0f0f0;
    min-height: 22px;
}

.ra-shelf-card-info-row:last-child {
    border-bottom: none;
}

.ra-shelf-card-label {
    font-size: 12px;
    color: #86909c;
    font-weight: 500;
    min-width: 60px;
    flex-shrink: 0;
}

.ra-shelf-card-value {
    font-size: 12px;
    color: #1d2129;
    font-weight: 500;
    text-align: right;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 卡片底部 - 紧凑设计 */
.ra-shelf-card-footer {
    padding: 6px 10px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ra-shelf-card-footer-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.ra-shelf-card-footer-right {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* 创建时间样式 */
.ra-shelf-card-time {
    font-size: 11px;
    color: #86909c;
    font-weight: 500;
    line-height: 1.2;
}

/* 更小的按钮样式 - 无文字，圆形图标按钮 */
.ra-shelf-card-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, #0052d9 0%, #0066ff 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 82, 217, 0.2);
}

.ra-shelf-card-btn:hover {
    background: linear-gradient(135deg, #0045b5 0%, #0052d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 82, 217, 0.25);
}

.ra-shelf-card-btn-secondary {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: white;
    color: #4e5969;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d9d9;
}

.ra-shelf-card-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #c9cdd4;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}







/* ===== 分页样式 ===== */
.ra-shelf-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ra-shelf-btn-pagination {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.ra-shelf-btn-pagination:not(:disabled):hover {
    background-color: #f5f5f5;
    border-color: #0052d9;
    color: #0052d9;
}

.ra-shelf-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4e5969;
}

.ra-shelf-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
}

.ra-shelf-page-info {
    font-size: 13px;
    color: #666;
}



/* ===== 操作按钮样式 ===== */
.ra-shelf-action-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, #0052d9 0%, #0066ff 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 82, 217, 0.2);
}

.ra-shelf-action-btn:hover {
    background: linear-gradient(135deg, #0045b5 0%, #0052d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 82, 217, 0.25);
}

/* 次要按钮样式 */
.ra-shelf-action-btn-view,
.ra-shelf-action-btn-print,
.ra-shelf-action-btn-edit,
.ra-shelf-action-btn-delete,
.ra-shelf-action-btn-log {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #d9d9d9;
    background: white;
    color: #4e5969;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ra-shelf-action-btn-view:hover,
.ra-shelf-action-btn-print:hover,
.ra-shelf-action-btn-edit:hover,
.ra-shelf-action-btn-delete:hover,
.ra-shelf-action-btn-log:hover {
    background: #f5f7fa;
    border-color: #0052d9;
    color: #0052d9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 82, 217, 0.2);
}

/* 按钮图标样式 */
.ra-shelf-action-btn svg,
.ra-shelf-action-btn i {
    width: 14px;
    height: 14px;
    transition: all 0.2s ease;
}

.ra-shelf-action-btn:hover svg,
.ra-shelf-action-btn:hover i {
    transform: scale(1.1);
}

/* 表格视图按钮样式 */
.ra-shelf-table-btn {
    padding: 4px 12px;
    margin: 0 2px;
    border: 1px solid #d9d9d9;
    background: white;
    color: #4e5969;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ra-shelf-table-btn:hover {
    background: #f5f7fa;
    border-color: #0052d9;
    color: #0052d9;
}

/* 表格视图按钮颜色变体 */
.ra-shelf-table-btn-view {
    border-color: #13c2c2;
    color: #13c2c2;
}

.ra-shelf-table-btn-view:hover {
    background: #e6fffb;
    border-color: #09b3b3;
    color: #09b3b3;
}

.ra-shelf-table-btn-print {
    border-color: #52c41a;
    color: #52c41a;
}

.ra-shelf-table-btn-print:hover {
    background: #f6ffed;
    border-color: #389e0d;
    color: #389e0d;
}

.ra-shelf-table-btn-edit {
    border-color: #faad14;
    color: #faad14;
}

.ra-shelf-table-btn-edit:hover {
    background: #fffbe6;
    border-color: #d48806;
    color: #d48806;
}

.ra-shelf-table-btn-delete {
    border-color: #f5222d;
    color: #f5222d;
}

.ra-shelf-table-btn-delete:hover {
    background: #fff1f0;
    border-color: #cf1322;
    color: #cf1322;
}

.ra-shelf-table-btn-log {
    border-color: #722ed1;
    color: #722ed1;
}

.ra-shelf-table-btn-log:hover {
    background: #f9f0ff;
    border-color: #531dab;
    color: #531dab;
}


/* ===== 按钮样式 ===== */
.ra-shelf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
    text-decoration: none;
    background: none;
    outline: none;
}

.ra-shelf-opbtn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ra-shelf-btn i {
    font-size: 16px;
}

.ra-shelf-btn-primary {
    background-color: #0052D9;
    color: white;
    border-color: #0052D9;
}

.ra-shelf-btn-primary:hover {
    background-color: #0043B0;
    border-color: #0043B0;
}

.ra-shelf-btn-success {
    background-color: #00A870;
    color: white;
    border-color: #00A870;
}

.ra-shelf-btn-success:hover {
    background-color: #078D5C;
    border-color: #078D5C;
}

.ra-shelf-btn-danger {
    background-color: #E34D59;
    color: white;
    border-color: #E34D59;
}

/* 批量操作相关样式 */
.ra-shelf-batch-operation-btn {
    margin-right: 10px;
}

/* 优化批量操作工具栏样式 */
#ra-shelf-batch-toolbar {
    display: none;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e6eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    gap: 12px;
}

#ra-shelf-batch-toolbar button {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-right: 0;
}

#ra-shelf-batch-toolbar button.ra-shelf-btn-primary {
    background-color: #0052d9;
    color: white;
}

#ra-shelf-batch-toolbar button.ra-shelf-btn-primary:hover {
    background-color: #0045b5;
}

#ra-shelf-batch-toolbar button.ra-shelf-btn-default {
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

#ra-shelf-batch-toolbar button.ra-shelf-btn-default:hover {
    background-color: #e6e6e6;
}

#ra-shelf-batch-toolbar button.ra-shelf-btn-danger {
    background-color: #ff4d4f;
    color: white;
}

#ra-shelf-batch-toolbar button.ra-shelf-btn-danger:hover {
    background-color: #cf1322;
}

#ra-shelf-batch-toolbar button.ra-shelf-btn-warning {
    background-color: #faad14;
    color: white;
}

#ra-shelf-batch-toolbar button.ra-shelf-btn-warning:hover {
    background-color: #d48806;
}

#ra-shelf-batch-toolbar button.ra-shelf-btn-success {
    background-color: #52c41a;
    color: white;
}

#ra-shelf-batch-toolbar button.ra-shelf-btn-success:hover {
    background-color: #389e0d;
}

#ra-shelf-batch-count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #1d2129;
    padding: 4px 12px;
    background-color: #f5f7fa;
    border-radius: 4px;
    border: 1px solid #e5e6eb;
}

/* 默认隐藏所有选择框 */
.ra-shelf-checkbox-cell,
.ra-shelf-card-checkbox {
    display: none;
}

/* 选择模式下显示选择框 */
#shelfCardContainer.ra-shelf-select-mode .ra-shelf-card-checkbox,
#shelfTableContainer.ra-shelf-select-mode .ra-shelf-checkbox-cell {
    display: inline-flex !important;
}

/* 卡片复选框位置调整 */
.ra-shelf-card-checkbox {
    position: relative;
    margin-right: 8px;
    z-index: 10;
    align-items: center;
}

.ra-shelf-card-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 确保表格在非批量操作模式下不显示复选框列 */
.ra-shelf-table th.ra-shelf-checkbox-cell,
.ra-shelf-table td.ra-shelf-checkbox-cell {
    display: none;
}

/* 批量操作模式下显示复选框列 */
#shelfTableContainer.ra-shelf-select-mode .ra-shelf-table th.ra-shelf-checkbox-cell,
#shelfTableContainer.ra-shelf-select-mode .ra-shelf-table td.ra-shelf-checkbox-cell {
    display: table-cell !important;
}


.ra-shelf-btn-danger:hover {
    background-color: #C82634;
    border-color: #C82634;
}

.ra-shelf-btn-secondary {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #DCDCDC;
}

.ra-shelf-btn-secondary:hover {
    background-color: #F3F3F3;
    border-color: #DCDCDC;
}

.ra-shelf-btn-info {
    background-color: #059BE9;
    color: white;
    border-color: #059BE9;
}

.ra-shelf-btn-info:hover {
    background-color: #0478B9;
    border-color: #0478B9;
}

.ra-shelf-btn-warning {
    background-color: #ED7B2F;
    color: white;
    border-color: #ED7B2F;
}

.ra-shelf-btn-warning:hover {
    background-color: #D16426;
    border-color: #D16426;
}

.ra-shelf-btn-default {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #DCDCDC;
}

.ra-shelf-btn-default:hover {
    background-color: #F3F3F3;
    border-color: #DCDCDC;
}

/* ===== 货架列表区域 ===== */
.ra-shelf-shelf-section {
    background: white;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.05);
}

.ra-shelf-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ra-shelf-filter-label {
    font-size: 14px;
    color: #808080;
    white-space: nowrap;
}

.ra-shelf-filter-select {
    padding: 0 12px;
    height: 32px;
    border-radius: 3px;
    border: 1px solid #DCDCDC;
    background-color: white;
    color: #000000;
    font-size: 14px;
    min-width: 100px;
    transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
    cursor: pointer;
}

.ra-shelf-filter-select:hover {
    border-color: #0052D9;
}

.ra-shelf-filter-select:focus {
    outline: none;
    border-color: #0052D9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.ra-shelf-shelf-list-container {
    margin-top: 20px;
}

.ra-shelf-pagination-container {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

/* ===== 货架列表 ===== */
.ra-shelf-row-section {
    margin-bottom: 24px;
}

.ra-shelf-row-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #DCDCDC;
}

.ra-shelf-row-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ra-shelf-row-title i {
    color: #0052D9;
}

.ra-shelf-row-stats {
    font-size: 14px;
    color: #808080;
    background-color: #F3F3F3;
    padding: 4px 12px;
    border-radius: 3px;
    margin-left: auto;
}



.ra-shelf-shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ra-shelf-shelf-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9eaec;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ra-shelf-shelf-card:hover {
    box-shadow: 0 3px 10px rgba(0, 82, 217, 0.15);
    transform: translateY(-1px);
    border-color: #c9e2ff;
}

.ra-shelf-shelf-card-header {
    padding: 8px 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #f5f8ff 100%);
    border-bottom: 1px solid #e9eaec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding-left: 35px; /* 为选择框留出空间 */
}

.ra-shelf-shelf-header {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ra-shelf-shelf-code {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    font-family: 'Consolas', 'Monaco', monospace;
}

.ra-shelf-shelf-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
}

.ra-shelf-shelf-body {
    padding: 10px 12px;
    background: #fafbfc;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ra-shelf-shelf-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ra-shelf-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
}

.ra-shelf-info-label {
    font-size: 12px;
    color: #86909c;
    font-weight: 500;
    margin-bottom: 4px;
}

.ra-shelf-info-value {
    font-size: 12px;
    font-weight: 500;
    color: #1d2129;
    text-align: center;
}

.ra-shelf-shelf-footer {
    padding: 6px 10px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ra-shelf-shelf-create-time {
    font-size: 12px;
    color: #808080;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ra-shelf-shelf-create-time i {
    font-size: 12px;
}

.ra-shelf-shelf-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

/* 库位管理风格的删除按钮样式 */
.wh-loc-action-btn.wh-loc-action-btn-delete {
    background-color: #ffebee;
    color: #c62828;
}

.wh-loc-action-btn.wh-loc-action-btn-delete:hover {
    background-color: #ffcdd2;
}


/* ===== 空状态 ===== */
.ra-shelf-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #808080;
    grid-column: 1 / -1;
}

.ra-shelf-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #E7E7E7;
}

.ra-shelf-empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 400;
}

.ra-shelf-empty-state p {
    font-size: 14px;
    color: #808080;
}

/* ===== 模态框 ===== */
.ra-shelf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.ra-shelf-modal-content {
    background-color: white;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalAppear 0.3s cubic-bezier(0.38, 0, 0.24, 1);
}

/* 模态框尺寸变体 */
.ra-shelf-modal-large {
    max-width: 1200px;
    width: 95%;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ra-shelf-modal-header {
    background: linear-gradient(135deg, #0052D9 0%, #366EF6 100%);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.ra-shelf-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ra-shelf-modal-header h2 i {
    font-size: 24px;
}

.ra-shelf-close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ra-shelf-close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ra-shelf-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.ra-shelf-modal-footer {
    padding: 20px 24px;
    background-color: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    border-top: 1px solid #eee;
}

/* ===== 表单区域块 ===== */
.ra-shelf-form-section-block {
    margin-bottom: 28px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e7e7e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.ra-shelf-form-section-block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ra-shelf-form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ra-shelf-form-section-title i {
    color: #0052D9;
    font-size: 20px;
}

/* ===== 表单 ===== */
.ra-shelf-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* 调整单个表单项的底部间距 */
.ra-shelf-form-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 6px;
}

.ra-shelf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.ra-shelf-form-group .ra-shelf-form-control {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    height: 42px !important;
    transition: all 0.3s ease !important;
    background-color: #fff !important;
}

.ra-shelf-form-group .ra-shelf-form-control:focus {
    outline: none;
    border-color: #0052D9;
    box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.15);
}

.ra-shelf-form-group .ra-shelf-form-control:hover {
    border-color: #999;
}

.ra-shelf-form-group .ra-shelf-form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.ra-shelf-text-muted {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
    display: block;
}

/* ===== 代码规则提示 ===== */
.ra-shelf-code-rule-hint {
    font-size: 12px;
    color: #808080;
    margin-top: 8px;
    padding: 12px;
    background-color: #F3F3F3;
    border-radius: 3px;
    border-left: 3px solid #0052D9;
}

.ra-shelf-code-example {
    font-weight: 600;
    color: #0052D9;
}

/* ===== 表单与预览布局 ===== */
.ra-shelf-form-preview-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    margin-top: 20px;
}

.ra-shelf-form-section {
    min-width: 0;
}

.ra-shelf-form-right {
    order: 2;
}

.ra-shelf-preview-section {
    min-width: 0;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e7e7e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ra-shelf-preview-left {
    order: 1;
}

.ra-shelf-preview-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ra-shelf-preview-section h3 i {
    color: #00B48D;
    font-size: 20px;
}

.ra-shelf-shelf-preview-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    border: 1px solid #eee;
}

.ra-shelf-preview-code {
    font-weight: 600;
    color: #0052D9;
}

.ra-shelf-preview-stats {
    color: #666;
    font-weight: 500;
}

/* ===== 货架可视化 ===== */
.ra-shelf-shelf-visual {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 24px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    position: sticky;
    top: 20px;
}

.ra-shelf-shelf-visual .ra-shelf-shelf-layers {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: center;
}

.ra-shelf-empty-preview {
    text-align: center;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ra-shelf-empty-preview i {
    font-size: 72px;
    color: #ccc;
    margin-bottom: 20px;
}

.ra-shelf-empty-preview p {
    font-size: 16px;
    color: #888;
}

/* 货架层级显示 */
.ra-shelf-shelf-layers {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    width: 100%;
    max-width: 550px;
    position: relative;
    align-items: center;
}

.ra-shelf-shelf-layer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 500px;
    min-height: 60px;
    z-index: 1;
}

.ra-shelf-shelf-layer.ra-shelf-position-high {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #ef9a9a;
}

.ra-shelf-shelf-layer.ra-shelf-position-low {
    background: linear-gradient(135deg, #f0f8f0 0%, #c3e6cb 100%);
    border-color: #a5d6a7;
}

.ra-shelf-layer-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.ra-shelf-layer-label .ra-shelf-position-high {
    color: #c62828;
    font-weight: 700;
}

.ra-shelf-layer-label .ra-shelf-position-low {
    color: #2e7d32;
    font-weight: 700;
}

.ra-shelf-shelf-locations {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

.ra-shelf-location-cell {
    background: white;
    border: 2px solid #0052D9;
    border-radius: 6px;
    padding: 10px 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #0052D9;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 82, 217, 0.1);
}

/* 高位货架层的库位样式 */
.ra-shelf-shelf-layer.ra-shelf-position-high .ra-shelf-location-cell {
    border-color: #c62828;
    color: #c62828;
    box-shadow: 0 2px 4px rgba(198, 40, 40, 0.1);
}

/* 低位货架层的库位样式 */
.ra-shelf-shelf-layer.ra-shelf-position-low .ra-shelf-location-cell {
    border-color: #2e7d32;
    color: #2e7d32;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.1);
}

.ra-shelf-location-code {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.9;
}

/* 货架基座 */
.ra-shelf-shelf-base {
    margin-top: 16px;
    height: 28px;
    background: linear-gradient(to bottom, #6c757d, #495057);
    border-radius: 6px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.ra-shelf-shelf-base::before,
.ra-shelf-shelf-base::after {
    content: '';
    position: absolute;
    bottom: -12px;
    width: 60px;
    height: 12px;
    background: #495057;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.ra-shelf-shelf-base::before {
    left: 12%;
}

.ra-shelf-shelf-base::after {
    right: 12%;
}

/* 详情模态框选项卡样式 */
.ra-shelf-modal-tabs {
    display: flex;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.ra-shelf-modal-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #808080;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.ra-shelf-modal-tab:hover {
    color: #0052D9;
}

.ra-shelf-modal-tab.ra-shelf-active {
    color: #0052D9;
    border-bottom-color: #0052D9;
}

.ra-shelf-tab-content {
    display: none;
}

.ra-shelf-tab-content.ra-shelf-active {
    display: block;
}

/* ===== 批量打印相关样式 ===== */
.ra-shelf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ra-shelf-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 3px;
    transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
}

.ra-shelf-radio-option:hover {
    background-color: #F3F3F3;
}

.ra-shelf-radio-option input[type="radio"] {
    margin: 0;
}

.ra-shelf-radio-label {
    font-size: 14px;
    color: #000000;
}



/* ===== 批量创建确认弹窗样式 ===== */
.ra-shelf-shelf-creation-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px;
}

.ra-shelf-shelf-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

.ra-shelf-shelf-item:last-child {
    border-bottom: none;
}

.ra-shelf-shelf-item strong {
    color: #495057;
}

.ra-shelf-more-items {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    padding: 5px 0;
}

/* 确保库位编码在小屏幕上也能正常显示 */
.ra-shelf-shelf-item {
    word-break: break-all;
}

/* 优化库位编码的显示 */
.ra-shelf-shelf-item strong {
    display: inline-block;
    min-width: 80px;
}

/* 确保长文本不会溢出容器 */
.ra-shelf-shelf-creation-list {
    overflow-x: hidden;
}

/* 库位编码容器 */
.ra-shelf-location-codes-container {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
}

/* 每层分组 */
.ra-shelf-layer-group {
    margin-bottom: 12px;
}

.ra-shelf-layer-group:last-child {
    margin-bottom: 0;
}

/* 层级标题 */
.ra-shelf-layer-title {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    padding-left: 4px;
}

/* 库位编码容器 */
.ra-shelf-location-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* 库位编码标签 */
.ra-shelf-location-code-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #2c3e50;
    transition: all 0.2s;
    white-space: nowrap;
}

.ra-shelf-location-code-tag:hover {
    background-color: #e3f2fd;
    border-color: #2196F3;
    color: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== 库位高低位属性选择区域 ===== */
.ra-shelf-location-attributes-container {
    margin-top: 16px;
    border: 1px solid #DCDCDC;
    border-radius: 3px;
    padding: 16px;
    background-color: #FFFFFF;
}

/* 为库位高低位属性标签增加更大的间距 */
.ra-shelf-form-group.ra-shelf-position-attributes-group label {
    margin-top: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.ra-shelf-empty-attributes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #808080;
    text-align: center;
}

.ra-shelf-empty-attributes i {
    font-size: 24px;
    margin-bottom: 12px;
    color: #BBBBBB;
}

.ra-shelf-empty-attributes p {
    font-size: 14px;
    margin: 0;
}

.ra-shelf-location-attribute-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e7e7e7;
}

.ra-shelf-location-attribute-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ra-shelf-attribute-layer-label {
    min-width: 100px;
    font-weight: 500;
    color: #000000;
    font-size: 14px;
}

.ra-shelf-layer-label {
    min-width: 100px;
    font-weight: 500;
    color: #000000;
    font-size: 14px;
}

.ra-shelf-position-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #DCDCDC;
    border-radius: 3px;
    font-size: 14px;
    background-color: #FFFFFF;
    transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
}

.ra-shelf-position-select:focus {
    outline: none;
    border-color: #0052D9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 库位高低位属性样式 */
.ra-shelf-position-high {
    color: #e74c3c;
    font-weight: bold;
}

/* 为库位存储类型标签增加更大的间距 */
.ra-shelf-form-group.ra-shelf-storage-type-group label {
    margin-top: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
    color: #333333;
    display: flex;
    align-items: center;
}

.ra-shelf-form-group.ra-shelf-storage-type-group label::before {
    content: "📦";
    margin-right: 8px;
    font-size: 18px;
}

/* 存储类型选择器样式 */
#locationStorageType, #batchLocationStorageType {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #DCDCDC;
    border-radius: 3px;
    font-size: 14px;
    background-color: #FFFFFF;
    transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
}

#locationStorageType:focus, #batchLocationStorageType:focus {
    outline: none;
    border-color: #0052D9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 存储类型特殊样式标识 */
.ra-shelf-storage-good {
    color: #27ae60;
    font-weight: bold;
}

.ra-shelf-storage-defective {
    color: #f39c12;
    font-weight: bold;
}

.ra-shelf-storage-waste {
    color: #e74c3c;
    font-weight: bold;
}

/* 库位存储类型在预览中的样式 */
.ra-shelf-storage-good-tag {
    background-color: #d5f4e6;
    color: #27ae60;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 4px;
}

.ra-shelf-storage-defective-tag {
    background-color: #fef9e7;
    color: #f39c12;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 4px;
}

.ra-shelf-storage-waste-tag {
    background-color: #fadbd8;
    color: #e74c3c;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 4px;
}

/* ===== 库位存储类型选择区域 ===== */
.ra-shelf-storage-attributes-container {
    margin-top: 16px;
    border: 1px solid #DCDCDC;
    border-radius: 3px;
    padding: 16px;
    background-color: #FFFFFF;
}

/* 为库位存储类型标签增加更大的间距 */
.ra-shelf-form-group.ra-shelf-storage-type-group label {
    margin-top: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
    color: #333333;
    display: flex;
    align-items: center;
}

.ra-shelf-form-group.ra-shelf-storage-type-group label::before {
    content: "📦";
    margin-right: 8px;
    font-size: 18px;
}

.ra-shelf-storage-attribute-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e7e7e7;
}

.ra-shelf-storage-attribute-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ra-shelf-storage-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #DCDCDC;
    border-radius: 3px;
    font-size: 14px;
    background-color: #FFFFFF;
    transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
}

.ra-shelf-storage-select:focus {
    outline: none;
    border-color: #0052D9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 存储类型特殊样式标识 */
.ra-shelf-storage-good {
    color: #27ae60;
    font-weight: bold;
}

.ra-shelf-storage-defective {
    color: #f39c12;
    font-weight: bold;
}

.ra-shelf-storage-waste {
    color: #e74c3c;
    font-weight: bold;
}

.ra-shelf-position-low {
    color: #27ae60;
    font-weight: bold;
}

.ra-shelf-location-cell.ra-shelf-position-high {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #e74c3c;
}

.ra-shelf-location-cell.ra-shelf-position-low {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #27ae60;
}

/* ===== 详情模态框样式 ===== */
.ra-shelf-detail-modal .ra-shelf-modal-content {
    max-width: 700px;
}

.ra-shelf-detail-section {
    margin-bottom: 24px;
}

.ra-shelf-detail-section h3 {
    font-size: 16px;
    color: #000000;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7e7e7;
    font-weight: 600;
}

.ra-shelf-detail-row {
    display: flex;
    margin-bottom: 12px;
}

.ra-shelf-detail-label {
    width: 140px;
    color: #808080;
    font-size: 14px;
    flex: 0 0 auto;
}

.ra-shelf-detail-value {
    flex: 1;
    font-weight: 400;
    color: #000000;
    font-size: 14px;
}

/* ===== 日志功能样式 ===== */
.ra-shelf-log-container {
    max-height: 500px;
    overflow-y: auto;
}

.ra-shelf-log-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px;
    background-color: #F3F3F3;
    border-radius: 3px;
    border: 1px solid #e7e7e7;
}

.ra-shelf-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ra-shelf-filter-group label {
    font-size: 14px;
    color: #808080;
    white-space: nowrap;
}

.ra-shelf-log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ra-shelf-log-item {
    padding: 16px;
    border-radius: 3px;
    border: 1px solid #e7e7e7;
    background-color: #FFFFFF;
    transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
}

.ra-shelf-log-item:hover {
    box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.05);
}

.ra-shelf-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ra-shelf-log-time {
    font-size: 14px;
    color: #808080;
}

.ra-shelf-log-type-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ra-shelf-log-badge-create {
    background-color: #E3F9E9;
    color: #00A870;
}

.ra-shelf-log-badge-edit {
    background-color: #E8F3FF;
    color: #0052D9;
}

.ra-shelf-log-badge-status {
    background-color: #FFF1E9;
    color: #ED7B2F;
}

.ra-shelf-log-badge-location {
    background-color: #F3F3F3;
    color: #808080;
}

.ra-shelf-log-content {
    font-size: 14px;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.5;
}

.ra-shelf-log-user {
    font-size: 12px;
    color: #808080;
    text-align: right;
}

.ra-shelf-no-logs {
    text-align: center;
    padding: 40px 20px;
    color: #808080;
    font-size: 14px;
}

/* 日志类型特定样式 */
.ra-shelf-log-type-create {
    border-left: 4px solid #00A870;
}

.ra-shelf-log-type-edit {
    border-left: 4px solid #0052D9;
}

.ra-shelf-log-type-status {
    border-left: 4px solid #ED7B2F;
}

.ra-shelf-log-type-location {
    border-left: 4px solid #BBBBBB;
}

/* ===== 体积显示 ===== */
.ra-shelf-volume-display {
    background: #f8f9fa;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 15px;
    color: #495057;
    font-weight: 500;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ra-shelf-volume-value {
    font-size: 20px;
    font-weight: 700;
    color: #0052D9;
    margin-right: 6px;
}

/* ===== 详情区域样式 ===== */
.ra-shelf-detail-section {
    padding: 10px 0;
}

.ra-shelf-more-items {
    text-align: center;
    color: #808080;
    font-size: 14px;
    margin-top: 12px;
    padding: 8px;
    background-color: #F3F3F3;
    border-radius: 3px;
}

/* ===== 尺寸信息显示样式 ===== */
.ra-shelf-dimensions-display {
    display: flex;
    gap: 16px;
}

.ra-shelf-dimension-box {
    background-color: #F3F3F3;
    padding: 16px;
    border-radius: 3px;
    text-align: center;
    flex: 1;
    border: 1px solid #E7E7E7;
}

.ra-shelf-dimension-value {
    font-weight: 600;
    color: #000000;
    font-size: 20px;
}

.ra-shelf-dimension-label {
    font-size: 12px;
    color: #808080;
    margin-top: 4px;
}

/* ===== 库位网格样式 ===== */
.ra-shelf-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    background-color: white;
    border-radius: 3px;
    border: 1px solid #E7E7E7;
}

.ra-shelf-location-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #F3F3F3;
    border-radius: 3px;
    border: 1px solid #DCDCDC;
}

.ra-shelf-location-item-code {
    font-weight: 400;
    font-size: 12px;
    color: #000000;
}

.ra-shelf-location-item-status {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* 库位存储状态样式 */
.ra-shelf-location-status-idle {
    background-color: #00A870; /* 绿色表示空闲 */
}

.ra-shelf-location-status-occupied {
    background-color: #E34D59; /* 红色表示在用 */
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .ra-shelf-form-preview-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ra-shelf-form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .ra-shelf-shelf-grid {
        grid-template-columns: 1fr;
    }
    
    .ra-shelf-row-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .ra-shelf-row-stats {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .ra-shelf-shelf-card {
        margin-bottom: 15px;
    }
}



/* ===== 货架操作日志样式 - 参考库区操作日志 ===== */

/* 日志弹窗遮罩层 */
.ra-shelf-log-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ra-shelf-log-modal-overlay.show {
    opacity: 1;
}

/* 日志弹窗容器 */
.ra-shelf-log-modal-container {
    background: var(--td-bg-color-container, #ffffff);
    border-radius: var(--td-radius-large, 8px);
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--td-shadow-3, 0 8px 30px rgba(0, 0, 0, 0.12));
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ra-shelf-log-modal-overlay.show .ra-shelf-log-modal-container {
    transform: scale(1);
}

/* 弹窗头部区域 */
.ra-shelf-log-modal-header {
    padding: 20px 24px;
    background: var(--td-bg-color-container, #ffffff);
    border-bottom: 1px solid var(--td-border-level-1-color, #e7e7e7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ra-shelf-log-modal-title {
    font-size: var(--td-font-size-l, 18px);
    font-weight: 600;
    color: var(--td-text-color-primary, #1d2129);
    margin: 0;
    display: flex;
    align-items: center;
}

.ra-shelf-log-modal-title i {
    margin-right: 8px;
    color: var(--td-brand-color, #0052d9);
}

/* 关闭按钮 */
.ra-shelf-log-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--td-text-color-placeholder, #86909c);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--td-radius-default, 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.ra-shelf-log-close-btn:hover {
    background: var(--td-bg-color-component, #f2f3f5);
    color: var(--td-text-color-primary, #1d2129);
}

.ra-shelf-log-close-icon {
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    display: block;
}

/* 日志内容区域 - 可滚动 */
.ra-shelf-log-content-area {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(80vh - 140px);
}

/* 日志项样式 */
.ra-shelf-log-item {
    display: flex;
    margin-bottom: 24px;
    position: relative;
}

.ra-shelf-log-item:last-child {
    margin-bottom: 0;
}

.ra-shelf-log-timeline-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.ra-shelf-log-timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: var(--td-shadow-1, 0 2px 4px rgba(0, 0, 0, 0.08));
}

.ra-shelf-log-timeline-line {
    width: 2px;
    flex: 1;
    background: var(--td-border-level-1-color, #e7e7e7);
    margin-top: 8px;
}

.ra-shelf-log-item:last-child .ra-shelf-log-timeline-line {
    display: none;
}

.ra-shelf-log-content {
    flex: 1;
    background: var(--td-bg-color-secondarycontainer, #f8f9fa);
    border-radius: var(--td-radius-large, 8px);
    padding: 16px;
    border: 1px solid var(--td-border-level-1-color, #e7e7e7);
}

.ra-shelf-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ra-shelf-log-action-type {
    font-size: var(--td-font-size-m, 16px);
    font-weight: 600;
    color: var(--td-text-color-primary, #1d2129);
}

.ra-shelf-log-timestamp {
    font-size: var(--td-font-size-base, 14px);
    color: var(--td-text-color-placeholder, #86909c);
}

.ra-shelf-log-detail {
    font-size: var(--td-font-size-base, 14px);
    color: var(--td-text-color-secondary, #4e5969);
    margin-bottom: 12px;
    line-height: 1.5;
}

.ra-shelf-log-operator {
    font-size: var(--td-font-size-base, 14px);
    color: var(--td-text-color-secondary, #4e5969);
    display: flex;
    align-items: center;
}

.ra-shelf-log-operator i {
    margin-right: 4px;
    font-size: var(--td-font-size-base, 14px);
}

.ra-shelf-log-changes-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--td-border-level-1-color, #e7e7e7);
}

.ra-shelf-log-change-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: var(--td-font-size-base, 14px);
}

.ra-shelf-log-field-name {
    font-weight: 500;
    color: var(--td-text-color-primary, #1d2129);
    width: 100px;
    flex-shrink: 0;
}

.ra-shelf-log-field-values {
    display: flex;
    align-items: center;
    flex: 1;
}

.ra-shelf-log-old-value {
    color: var(--td-error-color, #e34d59);
    margin-right: 8px;
    text-decoration: line-through;
    opacity: 0.8;
}

.ra-shelf-log-new-value {
    color: var(--td-success-color, #00a870);
    font-weight: 500;
}

.ra-shelf-log-change-arrow {
    margin: 0 8px;
    color: var(--td-text-color-placeholder, #86909c);
}

.ra-shelf-log-modal-footer {
    padding: 16px 24px;
    background: var(--td-bg-color-secondarycontainer, #f8f9fa);
    border-top: 1px solid var(--td-border-level-1-color, #e7e7e7);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.ra-shelf-log-close-action-btn {
    padding: 8px 16px;
    border: 1px solid var(--td-border-level-2-color, #d1d5db);
    border-radius: var(--td-radius-default, 4px);
    background: var(--td-bg-color-container, #ffffff);
    color: var(--td-text-color-secondary, #4e5969);
    cursor: pointer;
    font-size: var(--td-font-size-base, 14px);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.ra-shelf-log-close-action-btn i {
    margin-right: 4px;
}

.ra-shelf-log-close-action-btn:hover {
    background: var(--td-bg-color-component, #f2f3f5);
    border-color: var(--td-brand-color, #0052d9);
    color: var(--td-brand-color, #0052d9);
}

/* 日志类型图标颜色 */
.ra-shelf-log-icon-create {
    background: var(--td-brand-color, #0052d9);
}

.ra-shelf-log-icon-edit {
    background: var(--td-warning-color, #ed7b2f);
}

.ra-shelf-log-icon-delete {
    background: var(--td-error-color, #e34d59);
}

.ra-shelf-log-icon-transfer {
    background: var(--td-brand-color, #0052d9);
}

.ra-shelf-log-icon-default {
    background: var(--td-text-color-placeholder, #86909c);
}

/* 空状态提示 */
.ra-shelf-log-empty-state {
    text-align: center;
    color: var(--td-text-color-placeholder, #86909c);
    padding: 60px 20px;
    font-size: var(--td-font-size-m, 16px);
}

.ra-shelf-log-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--td-border-level-1-color, #e7e7e7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ra-shelf-log-modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .ra-shelf-log-content-area {
        padding: 16px;
    }
    
    .ra-shelf-log-item {
        margin-bottom: 20px;
    }
    
    .ra-shelf-log-field-name {
        width: 80px;
    }
}