/* 利侨成本数据库 Vue3 页面样式 */
/* 基于独立版 index_standalone.html 提取 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f7fa;
}

/* Vue应用容器 */
.lqdb-vue-container {
    display: flex;
    height: 100%;
}
.lqdb-sidebar {
    width: 220px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
}
.lqdb-sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lqdb-sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #4fc3f7;
}
.lqdb-sidebar-header p {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
.lqdb-sidebar-menu {
    flex: 1;
    padding: 10px 0;
}
.lqdb-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.lqdb-menu-item:hover {
    background: rgba(255,255,255,0.05);
}
.lqdb-menu-item.active {
    background: rgba(79, 195, 247, 0.15);
    border-left-color: #4fc3f7;
    color: #4fc3f7;
}
.lqdb-menu-item i {
    margin-right: 10px;
    font-size: 18px;
}
.lqdb-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 工具栏 */
.lqdb-toolbar {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    flex-wrap: wrap;
}
.lqdb-content-area {
    flex: 1;
    padding: 20px;
    overflow: auto;
}

/* 表格样式 */
.lqdb-product-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.price-cell {
    transition: background 0.2s;
    font-weight: 500;
    cursor: pointer;
}
.price-cell:hover {
    background: #ecf5ff;
    color: #409eff;
}
.price-cell.estimate {
    color: #409eff;
}
.price-cell.manual {
    color: #67c23a;
    text-decoration: underline dotted;
}

/* 展开详情 */
.expand-detail {
    padding: 10px 20px;
    background: #fafafa;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}
.detail-item {
    display: flex;
    flex-direction: column;
}
.detail-label {
    font-size: 12px;
    color: #909399;
    margin-bottom: 5px;
}
.detail-value {
    font-size: 14px;
    color: #303133;
    font-weight: 500;
}

/* 参数配置样式 */
.params-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}
.param-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.param-card h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #409eff;
    color: #303133;
}
.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.param-row:hover {
    background: #f5f7fa;
}

/* 导入导出样式 */
.import-export-container {
    max-width: 800px;
    margin: 0 auto;
}
.import-export-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.stat-card.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.stat-card.orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.stat-card.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.stat-value {
    font-size: 32px;
    font-weight: bold;
}
.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 价格编辑对话框 */
.price-editor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* 紧凑表格样式 */
.product-table .el-table__body td, .product-table .el-table__body th {
    line-height: 1.3;
}
.product-table .price-cell {
    display: inline-block;
    min-width: 50px;
    text-align: right;
}
.el-table--small .el-table__cell {
    padding: 2px 4px;
}
/* 统计卡片紧凑 */
.stat-card {
    padding: 8px 14px !important;
}
.stat-card .stat-num {
    font-size: 20px !important;
}

/* 价格列自动均分 + 数字换行 */
.product-table .el-table__body td .cell,
.product-table .el-table__header th .cell {
    white-space: normal !important;
    line-height: 1.3;
    word-break: break-all;
}
.product-table .price-cell {
    display: inline-block;
    text-align: center;
    white-space: normal;
    word-break: break-all;
    line-height: 1.2;
}

/* ========== 尺寸查询表 - 暖金禅意配色 ========== */

/* 尺寸表表头：暖金渐变 */
.size-table-compact .el-table__header th.el-table__cell {
    background: linear-gradient(180deg, #F8F0E3 0%, #F0E4D0 100%) !important;
    border-bottom: 1px solid #E0D0B0 !important;
}

.size-table-compact .el-table__header th.el-table__cell .cell {
    color: #6B5A3E !important;
    font-weight: 600 !important;
}

/* 斑马纹：淡金底色 */
.size-table-compact .el-table__row:nth-child(even) td {
    background-color: #FFFBF5 !important;
}

.size-table-compact .el-table__row:nth-child(odd) td {
    background-color: #FFFFFF !important;
}

/* 行悬停：淡天蓝 */
.size-table-compact .el-table__body tr:hover > td {
    background-color: #EBF5FB !important;
}

/* 表格边框：淡金色 */
.size-table-compact.el-table--border,
.size-table-compact.el-table--border th,
.size-table-compact.el-table--border td {
    border-color: #E8DCC8 !important;
}

/* 尺寸列高亮：暗金 */
.size-table-compact .size-col-highlight {
    color: #B8860B !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

/* 模具编号列：淡蓝色突出 */
.size-table-compact .mold-code-col {
    color: #3A7CA5 !important;
    font-weight: 600 !important;
    font-family: 'Courier New', monospace;
}

/* Tab 切换样式：暖金选中 */
.size-tab-wrap .el-tabs__item.is-active {
    color: #8B6914 !important;
}

.size-tab-wrap .el-tabs__active-bar {
    background-color: #C9A961 !important;
    height: 3px !important;
}

.size-tab-wrap .el-tabs__item:hover {
    color: #B8860B !important;
}

/* 新增模具按钮：暖金主题 */
.btn-size-add {
    background: linear-gradient(135deg, #D4A853 0%, #C19A4A 100%) !important;
    border: 1px solid #B8956A !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(212, 168, 83, 0.3) !important;
    transition: all 0.2s !important;
}

.btn-size-add:hover {
    background: linear-gradient(135deg, #E0B865 0%, #D4A853 100%) !important;
    box-shadow: 0 3px 10px rgba(212, 168, 83, 0.45) !important;
    transform: translateY(-1px) !important;
}

/* 搜索框聚焦：天蓝边框 */
.size-search-input .el-input__inner:focus {
    border-color: #5B9BD5 !important;
    box-shadow: 0 0 0 2px rgba(91, 155, 213, 0.15) !important;
}

/* 数量统计文字 */
.size-count-text {
    color: #8B7355 !important;
    font-weight: 500;
}

.size-count-text b {
    color: #B8860B !important;
    font-size: 15px;
    margin: 0 2px;
}

/* 新增模具弹窗标题：暖金顶栏 */
.size-add-dialog .el-dialog__header {
    background: linear-gradient(90deg, #F8F0E3 0%, #F5E6D3 100%);
    margin-right: 0 !important;
    padding: 14px 20px 14px 20px !important;
    border-bottom: 1px solid #E0D0B0;
    border-radius: 6px 6px 0 0;
}

.size-add-dialog .el-dialog__title {
    color: #6B5A3E !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.size-add-dialog .el-dialog__body {
    padding: 16px 20px !important;
}

.size-add-dialog .el-dialog__footer {
    padding: 10px 20px 16px !important;
    border-top: 1px solid #F0E8D8;
    background: #FFFBF5;
    border-radius: 0 0 6px 6px;
}


/* ========== 报价中心 - 整体配色改造 ========== */

/* 报价主表格：表头暖金渐变 */
.quote-main-table .el-table__header th.el-table__cell {
    background: linear-gradient(180deg, #F8F0E3 0%, #F0E4D0 100%) !important;
    border-bottom: 1px solid #E0D0B0 !important;
}

.quote-main-table .el-table__header th.el-table__cell .cell {
    color: #6B5A3E !important;
    font-weight: 600 !important;
}

/* 表格边框：淡金色 */
.quote-main-table.el-table--border,
.quote-main-table.el-table--border th,
.quote-main-table.el-table--border td {
    border-color: #E8DCC8 !important;
}

/* 行底色：按印刷类型区分（覆盖stripe） */
/* 定制彩印：淡金底（主力产品，标准利润） */
.el-table.quote-main-table .el-table__body tr.row-caiprint td,
.el-table.quote-main-table .el-table__body tr.el-table__row--striped.row-caiprint td {
    background-color: #FFF8EC !important;
}

.el-table.quote-main-table .el-table__body tr.row-caiprint:hover td,
.el-table.quote-main-table .el-table__body tr.el-table__row--striped.row-caiprint:hover td {
    background-color: #FDEFC8 !important;
}

/* 库存颜色：淡绿底（性价比，走量款） */
.el-table.quote-main-table .el-table__body tr.row-stockcolor td,
.el-table.quote-main-table .el-table__body tr.el-table__row--striped.row-stockcolor td {
    background-color: #F0F9F0 !important;
}

.el-table.quote-main-table .el-table__body tr.row-stockcolor:hover td,
.el-table.quote-main-table .el-table__body tr.el-table__row--striped.row-stockcolor:hover td {
    background-color: #D8EFD8 !important;
}

/* 银色：淡蓝底（低价引流） */
.el-table.quote-main-table .el-table__body tr.row-silver td,
.el-table.quote-main-table .el-table__body tr.el-table__row--striped.row-silver td {
    background-color: #EAF4FB !important;
}

.el-table.quote-main-table .el-table__body tr.row-silver:hover td,
.el-table.quote-main-table .el-table__body tr.el-table__row--striped.row-silver:hover td {
    background-color: #CFE6F5 !important;
}

/* 展开行内部样式 */
.quote-main-table .el-table__expanded-cell {
    background-color: #FFFBF5 !important;
}

/* 价格单元格：暖金高亮 */
.quote-main-table .price-cell.estimate {
    color: #B8860B;
    font-weight: 600;
}

.quote-main-table .price-cell.manual {
    color: #3A7CA5;
    font-weight: 600;
}

/* 统计卡片：统一暖金渐变 */
.stat-card {
    background: linear-gradient(135deg, #F5E6D3 0%, #E8D4B8 100%) !important;
    border: 1px solid #D4BC94 !important;
    box-shadow: 0 2px 8px rgba(180, 140, 80, 0.15) !important;
}

.stat-card .stat-value {
    color: #6B5A3E !important;
}

.stat-card .stat-label {
    color: #8B7355 !important;
}

/* 主要按钮：暖金主题 */
.el-button--primary {
    background: linear-gradient(135deg, #D4A853 0%, #C19A4A 100%) !important;
    border: 1px solid #B8956A !important;
    color: #fff !important;
    transition: all 0.2s !important;
}

.el-button--primary:hover {
    background: linear-gradient(135deg, #E0B865 0%, #D4A853 100%) !important;
    box-shadow: 0 3px 10px rgba(212, 168, 83, 0.4) !important;
    border-color: #C9A961 !important;
}

.el-button--primary:active {
    background: linear-gradient(135deg, #B8943A 0%, #A88535 100%) !important;
}

/* 成功按钮：暖绿 */
.el-button--success {
    background: linear-gradient(135deg, #67A86B 0%, #5A9A5E 100%) !important;
    border: 1px solid #4E8A52 !important;
}

.el-button--success:hover {
    background: linear-gradient(135deg, #7AB87E 0%, #67A86B 100%) !important;
}

/* 危险按钮：暖红 */
.el-button--danger {
    background: linear-gradient(135deg, #D46B5A 0%, #C15A49 100%) !important;
    border: 1px solid #B04A39 !important;
}

.el-button--danger:hover {
    background: linear-gradient(135deg, #E07D6A 0%, #D46B5A 100%) !important;
}

/* 警告按钮：暖橙 */
.el-button--warning {
    background: linear-gradient(135deg, #E8A84C 0%, #D4963A 100%) !important;
    border: 1px solid #C18530 !important;
    color: #fff !important;
}

.el-button--warning:hover {
    background: linear-gradient(135deg, #F0B85C 0%, #E8A84C 100%) !important;
}

/* Tab切换：暖金选中 */
.el-tabs__item.is-active {
    color: #8B6914 !important;
}

.el-tabs__active-bar {
    background-color: #C9A961 !important;
}

.el-tabs__item:hover {
    color: #B8860B !important;
}

/* 工具栏背景：淡金 */
.toolbar {
    background: linear-gradient(180deg, #FFFBF5 0%, #F8F0E3 100%) !important;
    border-bottom: 1px solid #E0D0B0 !important;
    padding: 10px 16px !important;
}

/* 输入框聚焦：暖金边框 */
.el-input__inner:focus,
.el-textarea__inner:focus {
    border-color: #D4A853 !important;
    box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.15) !important;
}

/* 分页：暖金选中 */
.el-pagination.is-background .el-pager li:not(.disabled).is-active {
    background: linear-gradient(135deg, #D4A853 0%, #C19A4A 100%) !important;
}

.el-pagination.is-background .el-pager li:hover {
    color: #B8860B !important;
}

/* select下拉选中：暖金 */
.el-select-dropdown__item.selected {
    color: #8B6914 !important;
    font-weight: 600 !important;
}

/* dialog标题栏：暖金 */
.el-dialog__header {
    background: linear-gradient(90deg, #F8F0E3 0%, #F5E6D3 100%);
    border-bottom: 1px solid #E0D0B0;
    padding: 14px 20px !important;
    margin-right: 0 !important;
    border-radius: 6px 6px 0 0;
}

.el-dialog__title {
    color: #6B5A3E !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.el-dialog__footer {
    border-top: 1px solid #F0E8D8;
    background: #FFFBF5;
    padding: 10px 20px 16px !important;
    border-radius: 0 0 6px 6px;
}

.el-dialog {
    border-radius: 6px !important;
    overflow: hidden;
}

/* 颜色类型标签样式 */
.color-type-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.color-type-tag.caiprint {
    background: #FDEFC8;
    color: #8B6914;
}

.color-type-tag.stockcolor {
    background: #D8EFD8;
    color: #3E7D3E;
}

.color-type-tag.silver {
    background: #CFE6F5;
    color: #2E6D9A;
}

/* 左侧导航：暖金激活态 */
.sidebar-menu .menu-item.active {
    background: linear-gradient(90deg, rgba(212, 168, 83, 0.2) 0%, transparent 100%) !important;
    border-left-color: #D4A853 !important;
    color: #D4A853 !important;
}

/* ===== 操作列按钮配色（暖金禅意风） ===== */
.el-button--primary.is-link,
.el-button--success.is-link,
.el-button--warning.is-link,
.el-button--danger.is-link,
.el-button--info.is-link {
  background: linear-gradient(180deg, #FDF6E8 0%, #F8EED8 100%) !important;
  color: #3A7CA5 !important;
  border: 1px solid #E8D9B8 !important;
  border-radius: 4px !important;
  padding: 4px 10px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  height: auto !important;
  line-height: 1.4 !important;
}

.el-button--primary.is-link:hover,
.el-button--success.is-link:hover,
.el-button--warning.is-link:hover,
.el-button--danger.is-link:hover,
.el-button--info.is-link:hover {
  background: linear-gradient(180deg, #F8EED8 0%, #F0E0BE 100%) !important;
  color: #2C6B90 !important;
  border-color: #D4B88A !important;
}
