﻿body {
    background-color: #f3f9fe;
    font-family: 'Roboto', sans-serif; /* 将字体更改为 Roboto 或任何其他字体 */
    font-size: 16px; /* 设置默认字体大小 */
    line-height: 1.6; /* 设置默认行高 */
    color: #383838; /* 设置默认文本颜色 */
}

a {
    color: inherit; /* 继承父元素的颜色 */
    text-decoration: none; /* 移除下划线 */
    outline: none; /* 移除轮廓，例如在元素获得焦点时显示的轮廓 */
}

a:hover,
a:active,
a:focus {
    text-decoration: none; /* 确保悬停、激活和聚焦状态也没有下划线 */
    color: inherit; /* 确保悬停、激活和聚焦状态颜色不变 */
}

.weui-grids {
    margin: 10px
}

.fun_icon {
    background-color: white;
    height: 76px;
    border-radius: 14px;
    margin: 10px 8px;
    padding: 0 6px;
    box-shadow:  4px 4px 10px #d9e2ec,
    -4px -4px 10px #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: box-shadow .15s ease;
}
.fun_icon:active{
    box-shadow:inset 4px 4px 10px #d9e2ec,
    inset -4px -4px 10px #ffffff;
}

/* 首页第一行：与顶部头像卡片拉开距离 */
.weui-flex.first-row {
    padding-top: 14px;
}

.icon_image {
    height: 30px;
    width: 30px;
}

.fun_header {
    position: relative; /* 建立定位上下文 */
    padding-top: 5px;
    background-color: #0371ec;
}

.head_image {
    background-color: green;
    width: 50px;
    border-radius: 50px;
    z-index: 100
}

.header_container {
    padding-top: 35px;
    margin: 45px 8px 25px 8px; /* 左右与下方卡片外边缘(8px)对齐 */
    height: 65px;
    background-color: white;
    border-radius: 10px;
    position: relative;
    overflow: visible; /* 允许内容超出边界 */
    bottom: -30px; /* 使div下边缘超出header 10px */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ccc;
    position: absolute;
    top: -45px; /* 负数值使得头像的下半部分超出div */
    left: calc(50% - 50px); /* 左侧位置调整以使头像居中 */
    z-index: 2;
    overflow: hidden; /* 确保多余的图片被裁剪 */
}

    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%; /* 保持图片圆形 */
    }

.avatar-ring {
    width: calc(100px + 10px);
    height: calc(100px + 10px);
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: -50px; /* 调整以匹配头像的位置 */
    left: calc(50% - 55px);
    z-index: 1;
}

.icon_label {
    margin-left: 6px;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
}

.header_title {
    position: absolute;
    color: white;
}

.header_title_p {
    font-size: 12px;
    margin: 20px 0 0 25px;
}

.header_title_p2 {
    margin: 38px 0 0 25px;
    font-size: 10px;
}

.login_out {
    position: absolute; /* 绝对定位以便于放置在右上角 */
    top: 20px; /* 根据需要调整 */
    right: 15px; /* 根据需要调整 */
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 5px; /* 根据需要调整内边距 */
    display: flex; /* 使用 flexbox */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

    .login_out img {
        height: 20px;
        width: 20px;
    }

    .login_out button {
        font-size: 10px;
        margin-left: 0px; /* 根据需要调整左右边距 */
        color: #0371ec;
        font-weight: bold;
        border: 0;
        background: transparent;
    }

.avatar-name {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 其他样式保持不变 */
}
#loginOutBtn{
    cursor:pointer
}
.function-header {
    height: 70px;
    background-color: #0371ec;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;    
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0; /* 距离顶部的距离 */
    z-index:5;
}
.function-body {
    position: fixed;
    overflow-y: scroll;
    margin-bottom: 74px;
    font-size:10px;
    max-height:calc(100% - 250px);
    width: 100%;
}
.function-body-no-bottom{
    position: fixed;
    overflow-y: scroll;
    margin-bottom: 74px;
    font-size:10px;
    max-height:calc(100% - 100px);
    width: 100%;
}
.function-body-with-btn{
    position: fixed;
    overflow-y: scroll;
    margin-bottom: 74px;
    font-size:10px;
    max-height:calc(100% - 230px);;
    width: 100%;
}

#back-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.material-title {
    position: absolute;
    top: 50%; /* 在垂直方向上居中 */
    left: 50%; /* 在水平方向上居中 */
    transform: translate(-50%, -50%); /* 调整位置，精确居中 */
    margin: 0; /* 移除默认的外边距 */
}

.search-bar {
    height: 70px;
    display: flex;
    align-items: center;
    margin-left: 10px;
    margin-right: 10px;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top:70px;
    z-index:5;
}

.search-input {
    position: relative;
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 5px 0px 0px 5px;
    padding-left: 45px;
}




.search-icon {
    position: absolute;
    right: 20px;
    font-size: 24px;
}

.search-input:focus {
    outline: none; /* 取消轮廓线 */
    border-color: transparent; /* 如果你的输入框有边框，可以在这里设置为透明，以去除选中状态下的边框颜色变化 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.quantity {
    margin-left: auto;
}

.primary-btn {
    background-color: #0371ec;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding:10px;
}
.primary-btn:active {
     box-shadow: inset 5px 5px 10px #0360c9,
     inset -5px -5px 10px #0382ff;
}

.secondary-btn {
    background: linear-gradient(25deg,#F98E25 0%,#FFC301 100%),linear-gradient(90deg,#FFF1EB 0%,#ACE0F9 100%);
    background: -webkit-linear-gradient(25deg,#F98E25 0%,#FFC301 100%),-webkit-linear-gradient(90deg,#FFF1EB 0%,#ACE0F9 100%);
    background: -moz-linear-gradient(25deg,#F98E25 0%,#FFC301 100%),-moz-linear-gradient(90deg,#FFF1EB 0%,#ACE0F9 100%);
    background: -o-linear-gradient(25deg,#F98E25 0%,#FFC301 100%),-o-linear-gradient(90deg,#FFF1EB 0%,#ACE0F9 100%);
    background: -ms-linear-gradient(25deg,#F98E25 0%,#FFC301 100%),-ms-linear-gradient(90deg,#FFF1EB 0%,#ACE0F9 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.btn-container {
    display: flex;
    justify-content: center;
    padding: 0 15px;
    margin: 0;
}

.confirm-button {
    width: calc(100% - 20px); 
    margin-top:10px;
    margin-bottom: 15px;    
    margin-left: 10px;
    z-index:50;
}

.search-btn {
    width: 80px;
    height: 40px;
    margin: 15px 0;
    border-radius: 0px 5px 5px 0px;
    text-wrap: nowrap;
    z-index: 1;
}

#search_camera {
    position: absolute;
    margin-left: 12px;
    font-size: 20px;
    color: #5f5f5f;
    z-index: 1;
}
.material-list {
    font-size: 13px;
    font-weight: bold;
}
.choose-all-btn{
    margin:10px;
}
.choose-all-btn::before {
    font-family: 'FontAwesome';
    content: '\f00c';
    margin-right:5px;
}
.print-btn::before {
    font-family: 'FontAwesome';
    content: '\f02f';
    font-weight: lighter;
    margin-right: 5px;
}
.no-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 500px;
}
    .no-content-container img {
        max-width: 60%;
        height: auto;
    }

    .no-content-container label {
        margin-top: 1rem; /* 可以调整间距 */
    }
.icon_color{
    color: #0371ec;
    font-size:20px;
}

.add-btn{
    margin-left:10px;
    margin-bottom: 5px;
}
.add-btn:active{
    box-shadow: inset 5px 5px 10px #d68d12,
    inset -5px -5px 10px #ffbf18;
}
.close-btn {
    font-size: 25px;
    color: #0371ec;
    cursor: pointer;    
    font-size: 25px;    
    float: right;
    margin-right: 15px;
    margin-top: 15px;
}
.add-modal-container{
    display:flex;
    flex-flow:column;
}
.weui-photo-browser-modal{
    z-index: 9999;
}
.badge {
    position: relative;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border-radius: 50%; /* 圆形 */
    padding: 5px 7px;
    font-size: 12px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    box-sizing: border-box;
}
.flex-vertical{
    display: flex;
    flex-direction: column;
}
.list-right{
    margin-left: 10px;
}
.pagination-container {
    width: 100%;
    position: fixed;
    bottom: 10px;
    font-size: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-input-item {
    position: relative;
    width: 100%;
    height: 39px;
    border: 1px solid lightblue;
    padding-left: 10px;
}
.search-input-item:focus {
    outline: none; /* 取消轮廓线 */
    border-color: transparent; /* 如果你的输入框有边框，可以在这里设置为透明，以去除选中状态下的边框颜色变化 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weui-uploader__files{
    display: flex;
    flex-wrap: wrap;
}
.upload-delete-button{
    border-radius: 10px;
    background-color: lightgray;
    padding: 0 5px;
    position: relative;
    font-size: 15px;
    top: -13px;
    right: 20px;
    z-index: 2;
    cursor: pointer;
}
.upload-img-container{
    overflow: visible;
}
.weui-uploader__bd{
    overflow: visible !important;
}
.weui-uploader__bd{
    display: flex;
    flex-wrap: wrap;
}
.login_out:active{
    box-shadow:inset 6px 6px 12px #d3d3d3,
    inset -6px -6px 12px #ffffff;
}

.scan-btn{
    width:95px;
    font-size: 17px;
}

.action-container{
    width: 50px;
    color: #ff9d00;
    margin-left: auto;
}
.scan_ico{
    z-index: 15;
    position: absolute;
    margin-left: -22px;
    font-size:21px
}
.gallary-btn-container{
    display: flex;
    justify-content: center;
    position: fixed;
    z-index: 50000;
    width: 100%;
    bottom: 1px;
}

.gallary-btn{
    border: 1px solid #383838;
    width: 50%;
    display: flex;
    justify-content: center;
    font-size: 25px;
    padding: 10px;
    cursor: pointer;
}




.weui-cells_form {
    margin:10px !important;
}
.proSearch{
    padding-left :10px !important;;
}
.take-btn{
    float: right;
    width: 50px;
    color: white;
    height: 30px;
    margin-top: 10px;
}
.store-btn{
    background-color: #FF8D1A;
    float: right;
    width: 50px;
    color: white;
    height: 30px;
    margin-top: 10px;
}
.qrcode {
    display: flex;
    top: 0;
    left: 0;
    height: 100vh;
}

#reader {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}
#reader video {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
}

.btn-right{
    float: right ;
}

.form-item{
    padding:10px;
    background-color: #f3f9fe;
}


/* ==================== 生产入库：执行状态列表 ==================== */
[x-cloak] {
    display: none !important;
}

.status-panel {
    margin: 6px 10px 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(3, 113, 236, 0.08);
    overflow: hidden;
}

/* 滑出动画（配合 alpine x-transition:enter/leave 的 class） */
.status-anim {
    transition: transform .28s ease, opacity .28s ease;
}
.status-anim-start {
    opacity: 0;
    transform: translateY(-14px);
}
.status-anim-end {
    opacity: 1;
    transform: translateY(0);
}

.status-panel-head {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #383838;
    border-bottom: 1px solid #f0f3f7;
}
.status-panel-title i {
    color: #0371ec;
    margin-right: 4px;
}
.status-panel-summary {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: #8b94a3;
}
.status-panel-toggle {
    color: #8b94a3;
    margin-left: 10px;
    padding: 4px 2px;
}

.status-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 6px 8px 8px;
}

.status-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 10px;
    margin: 6px 2px;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s ease;
}
/* 成功/手动移除：向右划走 */
.status-item.st-leaving {
    transform: translateX(120%);
    opacity: 0;
}

.st-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 7px;
    margin-right: 8px;
    background-color: #c7ccd6;
}
.st-body {
    flex: 1;
    min-width: 0;
}
.st-row1 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.st-no {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    word-break: break-all;
}
.st-badge {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 18px;
    padding: 0 7px;
    border-radius: 9px;
    background-color: #eef1f6;
    color: #6b7280;
}
.st-row2 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    font-size: 12px;
    color: #8b94a3;
}
.st-msg {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #b42318;
    word-break: break-all;
}

/* 处理中 */
.status-item.st-running {
    background-color: #fff8eb;
    border-left-color: #f5a623;
}
.st-running .st-dot {
    background-color: #f5a623;
    animation: st-pulse 1.2s ease-in-out infinite;
}
.st-running .st-badge {
    background-color: #fdeecd;
    color: #a15c00;
}

/* 成功 */
.status-item.st-success {
    background-color: #eefaf2;
    border-left-color: #1aa35a;
}
.st-success .st-dot {
    background-color: #1aa35a;
}
.st-success .st-badge {
    background-color: #d5f3e2;
    color: #0f7a42;
}

/* 失败 */
.status-item.st-failed {
    background-color: #fef3f2;
    border-left-color: #d92d20;
}
.st-failed .st-dot {
    background-color: #d92d20;
}
.st-failed .st-badge {
    background-color: #fde2e0;
    color: #b42318;
}

@keyframes st-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, .55);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(245, 166, 35, 0);
    }
}

.status-empty {
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: #a8b0bd;
}

/* 收起后仍有处理中任务时的悬浮提示 */
.status-fab {
    position: fixed;
    right: 14px;
    bottom: 24px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 13px;
    color: #ffffff;
    background-color: #f5a623;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(245, 166, 35, .35);
}

#confirm-button[disabled] {
    opacity: .7;
}
