body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
}

#app {
    min-height: 100vh;
}

.el-container {
    height: 100vh;
}

.el-header {
    background-color: #409EFF;
    color: white;
    text-align: center;
    line-height: 60px;
    padding: 0;
}

.el-main {
    padding: 20px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.user-input-area {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.current-total {
    font-size: 16px;
    color: #606266;
}

.current-total .amount {
    color: #f56c6c;
    font-weight: bold;
    font-size: 18px;
}

/* 已选商品显示区域样式 */
.selected-products {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #EBEEF5;
}

.selected-title {
    color: #606266;
    font-size: 14px;
    margin-bottom: 8px;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-item {
    background-color: #ecf5ff;
    color: #409EFF;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
}

/* 表格选中行样式 */
.el-table .selected-row {
    background-color: #e1f3d8 !important;
}

/* 确保斑马纹和选中行样式正确叠加 */
.el-table--striped .el-table__body tr.selected-row td.el-table__cell {
    background-color: #d4ecc7 !important;
}

/* 鼠标悬停时的样式 */
.el-table .selected-row:hover > td.el-table__cell {
    background-color: #c7e6b8 !important;
}

.product-list, .order-statistics, .admin-panel, .content-panel {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    height: calc(100vh - 220px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.content-panel {
    padding-top: 0;
}

.content-panel .el-tabs__header {
    margin: 0;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
    padding-top: 20px;
}

.content-panel .el-tabs__content {
    overflow-y: auto;
    height: calc(100% - 55px);
}

.product-list h3, .order-statistics h3, .admin-panel h3 {
    margin: 0;
    color: #303133;
    font-size: 18px;
    border-bottom: 1px solid #EBEEF5;
    padding: 20px;
    background-color: white;
    z-index: 10;
    margin: -20px -20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* 创建表格容器 */
.table-container {
    flex: 1;
    overflow-y: auto;
    padding-top: 10px;
}

/* 调整表格样式 */
.product-list .el-table,
.order-statistics .el-table {
    margin: 0;
}

/* 移除表头固定定位 */
.el-table__header-wrapper {
    background-color: white;
}

/* 确保表内容可以正常滚动 */
.el-table__body-wrapper {
    overflow-y: auto;
}

.function-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EBEEF5;
}

.function-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.function-group h4 {
    margin: 0 0 15px 0;
    color: #606266;
    font-size: 14px;
}

.el-table {
    margin-bottom: 20px;
}

/* 自定义斑马纹颜色 */
.el-table--striped .el-table__body tr.el-table__row--striped td {
    background-color: #fafafa;
}

.el-input-number {
    width: 100%;
}

.order-item {
    margin-bottom: 5px;
    line-height: 1.5;
    color: #606266;
}

.order-item:last-child {
    margin-bottom: 5px;
}

.order-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #EBEEF5;
    color: #303133;
    font-weight: bold;
}

.order-name {
    font-weight: bold;
    color: #303133;
    margin-bottom: 4px;
}

.order-time {
    font-size: 12px;
    color: #909399;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .el-main {
        padding: 10px;
    }
    
    .el-table {
        width: 100%;
        overflow-x: auto;
    }

    .product-list, .order-statistics, .admin-panel, .content-panel {
        padding: 10px;
        height: auto;
        margin-bottom: 20px;
    }

    .content-panel {
        padding-top: 0;
    }

    .user-input-area {
        padding: 10px;
    }

    .current-total {
        margin: 10px 0;
        text-align: center;
    }

    .submit-btn {
        width: 100%;
        margin-top: 10px;
    }

    .deadline-info {
        margin: 10px 0;
    }

    .input-row > .el-col {
        margin-bottom: 10px;
    }

    .main-col {
        margin-bottom: 20px;
    }

    .product-list h3, .order-statistics h3 {
        font-size: 16px;
        padding: 15px;
    }

    .table-container {
        max-height: none;
        height: auto;
    }

    .el-table {
        margin-bottom: 0 !important;
    }

    .el-table__body-wrapper {
        overflow-x: auto;
    }

    .selected-products {
        margin-top: 10px;
    }

    .selected-items {
        gap: 5px;
    }

    .selected-item {
        font-size: 12px;
        padding: 3px 8px;
    }

    .notice-area {
        margin: 10px 0;
        padding: 10px;
        font-size: 13px;
    }

    .notice-area h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .notice-area ul {
        padding-left: 20px;
        margin: 0;
    }

    .notice-area li {
        margin-bottom: 5px;
    }

    .order-header {
        flex-direction: column;
        gap: 10px;
    }

    .search-input {
        width: 100%;
    }

    .header-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .total-persons {
        font-size: 12px;
    }

    .order-item {
        font-size: 12px;
        line-height: 1.4;
    }

    .order-total {
        font-size: 13px;
    }

    .el-input-number {
        width: 100px;
    }
}

/* 添加横向滚动条样式 */
.el-table__body-wrapper::-webkit-scrollbar {
    height: 6px;
}

.el-table__body-wrapper::-webkit-scrollbar-thumb {
    background: #909399;
    border-radius: 3px;
}

.el-table__body-wrapper::-webkit-scrollbar-track {
    background: #f5f7fa;
}

/* 优化表格在移动端的显示 */
.el-table {
    font-size: 14px;
}

@media (max-width: 480px) {
    .el-table {
        font-size: 12px;
    }

    .el-button {
        padding: 8px 15px;
        font-size: 13px;
    }

    .el-input-number {
        width: 90px;
    }

    .el-input-number__decrease,
    .el-input-number__increase {
        width: 24px;
    }
}

/* 添加新的基础样式 */
.input-row {
    display: flex;
    flex-wrap: wrap;
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.search-input {
    max-width: 200px;
}

/* 优化表格内容溢出处理 */
.el-table .cell {
    word-break: break-word;
}

/* 优化按钮样式 */
.submit-btn {
    display: block;
}

/* 优化警告提示样式 */
.el-alert {
    margin: 0;
}

/* 优化表格高度 */
@media (max-width: 768px) {
    .table-container {
        max-height: 400px;
    }
}

.el-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.notice-area {
    background-color: #fef0f0;
    border: 1px solid #fde2e2;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.notice-area h4 {
    color: #f56c6c;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.notice-area ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    line-height: 1.6;
}

.notice-area li {
    margin-bottom: 5px;
}

.notice-area li:last-child {
    margin-bottom: 0;
} 

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -20px -20px 0;
    padding: 20px;
    background-color: white;
    border-bottom: 1px solid #EBEEF5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.order-header h3 {
    margin: 0;
    color: #303133;
    font-size: 18px;
    border-bottom: none;
    padding: 0;
    box-shadow: none;
}

.search-input {
    width: 200px;
    margin-left: 20px;
} 

/* 登录页面样式 */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f7fa;
}

.login-box {
    width: 400px;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #303133;
}

/* 头部样式调整 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content h2 {
    margin: 0;
} 

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-persons {
    color: #409EFF;
    font-size: 14px;
} 

/* 管理页面表格容器样式 */
.function-group .table-container {
    height: calc(100vh - 300px);
    overflow-y: auto;
    margin-top: 10px;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.group-header h4 {
    margin: 0;
} 

/* 调整内容面板的高度和滚动 */
.content-panel {
    height: calc(100vh - 100px);
    overflow: hidden;
}

.content-panel .el-tabs__content {
    height: calc(100% - 60px);
    overflow-y: auto;
    padding: 20px;
}

/* 确保表格在容器中正确显示 */
.el-table {
    width: 100%;
}

.el-table__body-wrapper {
    overflow-y: auto !important;
}

/* 调整功能组的间距 */
.function-group {
    margin-bottom: 20px;
}

.function-group:last-child {
    margin-bottom: 0;
} 

/* 内部标签页样式 */
.inner-tabs {
    margin-top: 20px;
}

.inner-tabs .el-tabs__content {
    padding: 20px;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tab-header h4 {
    margin: 0;
    color: #409EFF;
}

.button-group {
    display: flex;
    gap: 10px;
}

/* 调整表格容器的高度 */
.inner-tabs .el-table {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

/* 确保表格头部固定 */
.inner-tabs .el-table__header-wrapper {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: white;
}

/* 调整内部标签页的内容区域度 */
.inner-tabs .el-tab-pane {
    height: calc(100vh - 350px);
    overflow-y: auto;
}

/* 美化表格样式 */
.inner-tabs .el-table th {
    background-color: #f5f7fa;
    color: #606266;
    font-weight: bold;
}

.inner-tabs .el-table td {
    padding: 8px 0;
}

/* 调整按钮组样式 */
.group-header .button-group {
    display: flex;
    gap: 10px;
    align-items: center;
} 

.deadline-info {
    margin: 0 10px;
}

.deadline-info .el-alert {
    padding: 8px 16px;
}

.deadline-info .el-alert__title {
    font-size: 18px;
    line-height: 18px;
}

.deadline-info .el-alert__description {
    font-size: 18px;
    margin: 5px 0 0;
}

/* 调整日期选择器在管理页面的样式 */
.button-group .el-date-editor {
    margin-right: 10px;
    width: 190px;
} 

/* 确认对话框样式 */
.confirm-dialog {
    max-width: 600px;
}

.confirm-content {
    padding: 10px;
}

.confirm-user {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EBEEF5;
}

.confirm-items {
    margin-bottom: 20px;
}

.items-list {
    margin-top: 10px;
}

.confirm-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background-color: #f5f7fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.confirm-item:last-child {
    margin-bottom: 0;
}

.confirm-total {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #EBEEF5;
}

.confirm-content .label {
    color: #606266;
    font-size: 14px;
    margin-right: 10px;
}

.confirm-content .value {
    color: #303133;
    font-weight: bold;
}

.confirm-total .value {
    color: #f56c6c;
    font-size: 18px;
}

.item-name {
    font-weight: bold;
    color: #303133;
    flex: 1;
    min-width: 150px;
}

.item-quantity {
    color: #409EFF;
}

.item-price {
    color: #606266;
}

.item-subtotal {
    color: #f56c6c;
}

.dialog-footer {
    text-align: right;
    margin-top: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .confirm-dialog {
        width: 95% !important;
        margin: 0 auto;
    }

    .confirm-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .item-name {
        min-width: auto;
    }

    .confirm-content {
        padding: 0;
    }

    .confirm-user, .confirm-total {
        padding: 10px 0;
    }

    .items-list {
        margin-top: 5px;
    }
} 
