:root{
    --anniu:#0071E3;
    --anniushen:#0063cc;
    --biaoqianlan:#0A84FF;
    --biaoqianhui:#878787;
    --beijinghui:#f9f9f9;
    --anniulv:#4CD964;
    --anniuhong: #FF453A;
    --aranciochiaro:#fff8e5;
    --arancio:#ffc107;
    /* 针对ios */
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent; 
}
html{
    overflow: hidden;
    background-color: var(--beijinghui);
    overscroll-behavior: none; /* 阻止ios回弹效果 */
    height: 100%;
}
body {
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    font-size: 1em; /* 基本字体大小 */
    display: flex;
    justify-content: center;
    overflow-y: hidden;
    touch-action: manipulation;
    height: 100%;
}
.nodisplay {
    display: none;
}
.container {
    width: 95vw;
    max-width: 1000px; /* 可以设定一个最大宽度，适应大屏设备 */
    text-align: center;
    height: 100%;
}
.container *{
    max-width: 1000px;
}
.page,
.page-g,
.page-r,
.page-m,
.page-c{
    height: 100%;
    display: flex;
    flex-direction: column;
}
.line-info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}
.line-1-100{
    display: flex;
    width: 100%;
    margin-top: 5px;
    border: 1px solid #ccc;
    height: 30px;
    background-color: white;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 5px;
    line-height: 1.5;
    /* 超出的部分用...显示 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 5px;
}
.line-2-100{
    display: flex;
    width: 100%;
    margin-top: 5px;
    word-wrap: break-word;
    border: 1px solid #ccc;
    height: 55px;
    background-color: white;
    padding: 1px;
    box-sizing: border-box;
    border-radius: 5px;
    text-align: left;
}
.text-100{
    font-size: 1.3em;
    color: var(--biaoqianhui);
}
.width-20{
    font-size: 1.2em;
    width: 20%;
    padding-right: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    text-align: center;
    height: 30px;
    min-height: 30px;
    border-radius: 5px;
    line-height: 1.5;
    background-color: #fff;
    padding: 0px;
    margin-right: 5%;
}
.width-30{
    width: 30%;
    text-align: left;
}
.width-35{
    font-size: 1.2em;
    width: 35%;
    padding-right: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    text-align: center;
    height: 30px;
    min-height: 30px;
    border-radius: 5px;
    line-height: 1.5;
    background-color: #fff;
    padding: 0px;
}
.width-40{
    width: 40%;
    font-size: 1em;
    text-align: left;
}
.width-45{
    width: 45%;
    font-size: 1em;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    min-height: 30px;
    text-align: center;
}
.width-60{
    font-size: 1.2em;
    width: 60%;
    padding-right: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    text-align: center;
    height: 30px;
    min-height: 30px;
    border-radius: 5px;
    line-height: 1.5;
    background-color: #fff;
    padding: 0px;
}
.width-70{
    width: 70%;
    font-size: 1em;
    text-align: left;
}
.cerca-fornitore {
    padding-left: 5px;
    font-size: 1em;
    line-height: 1.8;
    /* text-align: left; */
    /* 超出的部分用...显示 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.input-code{
    font-size: 1em;
    width: 67%;
    height: 35px;
    padding: 3px 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 5px;
}
.but-20{
    width: 20%;
    padding: 0;
    font-size: 1em;
    box-sizing: border-box;
    background-color: var(--anniu);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: 30px;
}
.but-30{
    width: 30%;
    font-size: 1.1em;
    box-sizing: border-box;
    padding: 0 6%;
    background-color: var(--anniu);
    color: white;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align-last: justify;
}
.but-35{
    width: 35%;
    font-size: 1.1em;
    box-sizing: border-box;
    padding: 0 6%;
    background-color: var(--anniu);
    color: white;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align-last: justify;
}
.but-40{
    width: 40%;
    font-size: 1.1em;
    box-sizing: border-box;
    padding: 0 6%;
    background-color: var(--anniu);
    color: white;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align-last: justify;
}
.but-100 {
    margin-top: 5%;
    width: 100%;
    padding: 5px 35%;
    font-size: 1.2em;
    box-sizing: border-box;
    background-color: var(--anniu);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align-last: justify;
}
.but-45{
    width: 45%;
    padding: 5px 7%;
    font-size: 1.2em;
    box-sizing: border-box;
    background-color: var(--anniu);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align-last: justify;
}
.but-45-r{
    width: 45%;
    padding: 5px 7%;
    font-size: 1.2em;
    box-sizing: border-box;
    background-color: var(--anniuhong);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align-last: justify;
}
.but-50{
    width: 50%;
    padding: 5px 5%;
    font-size: 1.2em;
    box-sizing: border-box;
    background-color: var(--anniu);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align-last: justify;
}
.foot {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    box-sizing: border-box;
    padding: 5px 0;
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 0);    
    width: 100%;
    max-width: 1000px;
    height: 80px;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.foot-item {
    width:16%;
    text-align: center;
    /* 去除点击阴影 */
    -webkit-tap-highlight-color: transparent; 
}
.foot-item img{
    margin-top: 10px;
    width: 25px;
    height: 25px;
}
.foot-item div{
    font-size: 10px;
    text-align: center;
}

/* 搜索组件 */
.search-container {
    background-color: #fff;
    display: flex;
    width: 100%;
    height: 35px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}
.search-input {
    width: calc(100% - 25px);
    padding: 3px; /* Padding for the right icon space */
    border: 1px solid #ccc;
    border-right: 0;
    border-radius: 0px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    height: 35px;
}
.search-input:focus {
    outline: none;
    box-shadow: none;
}
.search-box{
    display: flex;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-left: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    align-items: center;
    padding: 0 5px;
}
.search-icon {
    width: 25px;
    height: 25px;
}
/* 返回组件 */
.back-container{
    width: 60px;
    display: flex;
    /* 元素上下对齐 */
    align-items: center;
    /* 元素左右对齐 */
    justify-content: center;
}
.back-container img{
    width: 20px;
    height: 20px;
}
.back-container div{
    font-size: 1.2em;
    line-height: 1.1;
    font-weight: bold;
    color: var(--anniu);
}
.c2-box{
    margin-bottom: 90px;
}
.displaybox{
    flex: 1;
    margin-bottom: 90px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    background-color: #fff;
}
.flex-center{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
}
.flex-between{
    display: flex;
    justify-content: space-between;
    vertical-align: middle;
}
.box-line{
    display: flex;
    justify-content: space-between;
    align-items: center; /* 让所有子元素垂直居中对齐 */
    padding: 3px 5px;
    border-radius: 3px;
    border-bottom: 0.8px solid #f1f1f1;
}
.box-code{
    font-size: 0.8em;
    width: 35%;
    text-align: left;
    line-height: 1.5;
}
.box-qta{
    font-size: 0.8em;
    width: 8%;
    text-align: right;
    padding-right: 15px;
    line-height: 1.5;
}
.box-x{
    width: 10%;
    text-align: center;
    font-size: 0.8em;
    font-weight: bold;
    border: 1px solid var(--anniuhong);
    box-sizing: border-box;
    color: var(--anniuhong);
    border-radius: 5px;
    line-height: 1.5;
    vertical-align: middle;
}
.box-text{
    font-size: 0.8em;
    width: 55%;
    text-align: left;
    line-height: 1.5;
    padding-right: 10px;
    /* 超出部分不显示 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
}
.title-100{
    font-size: 2em;
    font-weight: bold;
}
#risc-selectfor{
    width: 100%;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    padding: 0 5px;
}
.box-150{
    width: 100%;
    height: 150px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}
.box-250{
    width: 100%;
    height: 250px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}
.box-400{
    width: 100%;
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}
.r1-box-line{
    display: flex;
    justify-content: space-between;
    margin: 3px;
    border-radius: 3px;
}
.r1-box-date{
    font-size: 1.2em;
    padding-left: 10px;
}
.r1-box-tot{
    font-size: 1.2em;
    padding-right: 10px;
}
.r2-list-conto{
    color: var(--biaoqianhui);
}
.r2-box{
    overflow-y: auto;
    min-height: 120px;
}
.r2-boxline{
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}
.r2-boxline-l{
    width: 25%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    background-color: #ddd;
    border-radius: 5px;
    line-height: 2;
    text-align: center;
    height: 30px;
}
.r2-boxline-2{
    width: 25%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    background-color: #ddd;
    border-radius: 5px;
    line-height: 2;
    text-align: center;
    height: 30px;
}
.r2-boxline-3{
    width: 25%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    line-height: 2;
    text-align: center;
    height: 30px;
    font-size: 1em;
}
.r2-boxline-4{
    width: 20%;
    font-size: 1.2em;
    box-sizing: border-box;
    background-color: var(--anniu);
    border: 1px solid var(--anniu);
    color: #fff;
    border-radius: 5px;
    height: 30px;
    padding: 0;
}
.r2-line-1{
    width: 25%;
    text-align: center;
}
.r2-line-2{
    width: 25%;
    text-align: center;
}
.r2-line-3{
    width: 25%;
    text-align: center;
}
.r2-line-4{
    width: 20%;
    text-align: center;
    color: #fff;
}

.r-foot{
    position: absolute;
    bottom: 100px;
    width: 95%;
    display: flex;
    justify-content: space-between;
}
.r-foot-qta{
    font-size: 1.2em;
    margin: 0 10px;
    line-height: 2;
}
.r3-box{
    margin-top: 5px;
    border-top: 1px solid #ccc;
    padding-top: 5px;
    overflow-y: auto;
    padding-right: 2%;
}
.r3-box-line{
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 3px 0;
    /* 元素上下对齐 */
    align-items: center;
}
.width-75{
    width: 75%;
    font-size: 0.9em;
    text-align: left;
    /* 超出部分不显示 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
}
.set-logo{
    margin: 10% 0;
}
.width-50{
    text-align: center;
    width: 50%;
    font-size: 2em;
}
.c2-infogiacenza{
    padding-top: 3px;
    width: 65%;
    display: flex;
    align-items: center;
    font-size: 1.2em;
    line-height: 1.5;
    font-weight: bold;
}
.c2-title{
    margin-top: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}
.c2-box{
    overflow-y: auto;
    padding-right: 2%;
}
.c2-x{
    width: 5%;
    text-align: left;
    line-height: 1;
}
.c2-data{
    width: 40%;
    text-align: left;
    line-height: 1;
}
.c2-qta{
    width: 15%;
    text-align: right;
    line-height: 1;
}
.c2-prezzo{
    width: 15%;
    text-align: right;
    line-height: 1;
}
.c2-tot{
    width: 15%;
    text-align: right;
    line-height: 1;
}
.input-100{
    background-color: #f9f9f9;
    width: 100%;
    margin: 10px 0;
    font-size: 1em;
    padding: 10px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
}
.selected{
    background-color: var(--anniu);
    color: #fff;
}
.set-user{
    text-transform: capitalize;
    padding-left: 10px;
}
.w-30{
    width: 30%;
    font-size: 1.2em;
    text-align: left;
}
.w-60{
    width: 60%;
    font-size: 1.2em;
    border: none;
    text-align: center;
    border-radius: 0px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    color: #000;
    text-align: left;
    padding: px;
    border-bottom: 1px solid #ccc;
}
.bg_e {
    background-color: #eee;
    border-radius: 3px;
}
.line-35{
    width: 35%;
    text-align: left;
}
.line-65{
    width: 65%;
    text-align: left;
}
.giacenzabox{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 0;
    background-color: #fff;
}
.g-item{
    display: flex;
    flex-direction: column;
    padding: 0px 10px;
}
.g-itemf{
    font-size: 0.8em;
    color: #555;
    text-align: left;
}
.g-itemv{
    text-align: left;
    font-weight: bold;
    font-size: 1em;
}
.grid-2{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5px 20px;
}
.flex-column{
    display: flex;
    flex-direction: column;
}
.flex-column-1{
    font-size: 0.9em;
    color: #555;
    text-align: left;
}
.flex-column-2{
    text-align: left;
    font-size: 1.2em;
    padding: 0px 5px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nolast{
    text-align-last: auto;
}
.permesso-hidden {
    visibility: hidden;
}
.giacenza-all {
    margin-top: 10px;
}
.filiale {
    margin-top: 5px;
}
.cerca-descrizione {
    font-size: 1.1em;
}
#notification-container {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}
.notification {
    background-color: var(--anniushen);
    color: #fff;
    width: 80vw;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 5px; /* 提示框间距 */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    text-align: center;
}
.class-select{
    font-size: 1.2em;
    width: 70%;
    padding-right: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    text-align: center;
    height: 30px;
    min-height: 30px;
    border-radius: 5px;
    line-height: 1.5;
    background-color: #fff;
    padding: 0px;
}
#c1-modigiacenza{
    display: none;
}
.notifica-box{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
}
.notifica-background{
    position: fixed;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(5px); /* 背景模糊效果 */
}
.notifica-container{
    position: relative;
    top: 100px;
    border: 1px solid #ccc;
    background-color: var(--beijinghui);
    border-radius: 5px;
    margin-left: 5vw;
    width: 90vw;
    max-width: 1000px; /* 可以设定一个最大宽度，适应大屏设备 */
    height: 200px;
    border-radius: 5px;
    margin-bottom: 5px; /* 提示框间距 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10; /* 确保窗口在最前面 */
}
.notifica-head{
    display: flex;
    padding: 5px 5px;
    justify-content: space-between;
    align-items: center;
    background: #eee;
    border-bottom: 1px solid #ccc;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.notifica-title{
    font-size: 1.2em;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
}
.notifica-close{
    cursor: pointer;
    width: 30px;
    height: 30px;
}
.notifica-label-1{
    margin: 10px 0;
    font-size: 1em;
}
.notifica-input:focus{
    outline: none;
    box-shadow: none;
}
.scanner-container {
    width: 100%;
    background-color: var(--beijinghui);
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    overflow: hidden;
    transition: all 0.1s ease;
    text-align: center;
    z-index: 500;
}
.scanner-container.hidden {
    opacity: 0;
    visibility: hidden;
    z-index: -1;
}
.scanner-box {
    width: 95%;
    margin-left: 2.5%;
}
.instructions {
    width: 100%;
    box-sizing: border-box;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--aranciochiaro);
    border-radius: 8px;
    border: 0.8px solid var(--arancio);
    border-left: 4px solid var(--arancio);
    padding: 0px 2.5%;
}
.instructions p {
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
#video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    object-fit: cover;
    background-color: #000;
}
#canvas {
    display: none;
}
#scan-box{
    display: none;
    position: fixed;
    bottom: 150px;
    right: 5%;
    background-color: #fff;
    border-radius: 5px;
    border: 2px solid var(--anniu);
    padding: 5px 2px 0px 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 5;
}
#scan-box img{
    width: 70px;
}
#tastiera {
    background-color: transparent;
    position: fixed;
    left:0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    z-index: 1000;
    bottom: -100%; /* 初始在视野外 */
    transition: bottom 0.3s ease;
    padding: 8px;
}
.keys {
    position: absolute; /* 相对于父元素定位 */
    bottom: 0; /* 定位到底部 */
    left: 0;
    width: calc(100vw - 16px); /* 减去padding的宽度 */
    display: grid;
    border-top: 1px solid #ccc;
    grid-template-columns: repeat(4, 1fr);
    background-color: #D0D3DA;
    grid-gap: 8px;
    padding: 8px;
    padding-bottom: 25px;
}
.key {
    background-color: #fff;
    border: none;
    min-height: 50px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 400;
    align-items: center;
    border-bottom: 1.5px solid #999;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.1s ease;
    color: #000;
    overflow: hidden;
}
button {
    transition: all 0.1s ease;
}
button:active {
    transform: scale(0.97);
}
.key:active, .key.active {
    background-color: #e9e9eb;
    transform: scale(0.97);
}
.key.ripple::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    animation: ripple 0.6s ease-out;
}
@keyframes ripple {
    0% {
      transform: scale(0);
      opacity: 0.5;
    }
    100% {
      transform: scale(2);
      opacity: 0;
    }
}
.conferma {
    background-color: var(--anniu);
    border-bottom: 1.5px solid #065ab4;
    color: white;
    grid-row: span 3; 
    text-align-last: justify;
    padding: 40% 0;
    writing-mode: vertical-rl; /* 文字竖向排列 */
}
#tastiera.show {
    bottom: 0; /* 向上滑出 */
}
#tastiera.hidden {
    bottom: -100%; /* 向下隐藏 */
}
#iosHintBox {
    position: fixed;
    bottom: 80px;
    width: 220px;
    left: 5px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    padding: 5px;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    font-size: 0.95rem;
}
#closeHint {
    display: block;
    margin-top: 8px;
    margin-left: 10px;
    background: none;
    border: none;
    color: #007aff;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}
.c1-img-container {
    flex: 1;
    margin-top: 5px;
    background-color: #fff;
    border-radius: 5px;
    overflow: auto;
    display: flex;
    justify-content: center; /* 居中可选 */
    align-items: center;     /* 居中可选 */
}

.c1-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
/* 对货页样式 */
#con-selectfor{
    width: 100%;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    padding: 0 5px;
}
#page-con {
    background: var(--beijinghui);
    overflow-y: hidden;
}
#page-con .search-container {
    width: 80%;
}

#page-con .con-list {
    margin-top: 5px;
    display: none;
    flex-wrap: wrap;
    justify-content: space-between;
    height: calc(100vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#page-con .con-item {
    background: white;
    border-radius: 8px;
    width: 100%;
    height: 60vw;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    margin: 4px 0;
    position: relative;
}

@media (min-width: 768px) {
    #page-con .con-item {
        width: 49%;
        height: 44vw;
    }
}

#page-con .item-image {
    position: relative;
    text-align: center;
    height: calc(100% - 90px);
}

#page-con .item-image img {
    border: 1px solid #ccc;
    width: auto;
    max-width: 95%;
    margin-top: 5px;
    height: 100%;
    max-height: 300px;
}

#page-con .item-info {
    position: relative;
    height: 90px;
    padding-left: 5px; 
}

#page-con .item-name {
    text-align: left;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#page-con .item-code {
    text-align: left;
    width: 40%;
    color: #555;
    font-size: 12px;
}
#page-con .item-prendita,
#page-con .item-pordine {
    text-align: left;
    font-size: 12px;
    width: 20%;
    color: #555;
}
#page-con .item-qtaordine {
    width: 40%;
    text-align: left;
    font-size: 12px;
    color: #555;
}

#page-con .item-qta {
    width: 20%;
    text-align: left;
    font-size: 12px;
    color: #555;
}
#page-con .item-save {
    width: 20%;
}
#page-con .item-but {
    width: 80%;
    background-color: var(--beijinghui);
}
#page-con .item-input,
#page-con .item-but {
    width: 80%;
    height: 24px;
    text-align: center;
    box-sizing: border-box; /* 推荐统一 */
    font-size: 16px;
    padding: 0 10px;
    border: 1px solid var(--biaoqianlan);
    line-height: 1; /* 避免默认不一致 */
    border-radius: 5px;
}
#page-con .menu-button-showall {
    background-color: var(--biaoqianlan);
}
#page-con .menu-button-showcon {
    background-color: var(--anniulv);
}
#page-con .menu-button-showuncon {
    background-color: var(--anniuhong);
}
#page-con .con-box-line {
    display: flex;
    justify-content: space-between;
    padding: 3px 5px;
}
#page-con .con-buttons{
    padding-bottom: 50px;
}
/* 菜单按钮样式 */
.menu-button {
    position: static;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #0A84FF;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}

.menu-button span {
    font-size: 24px;
    font-weight: bold;
}

/* 菜单弹出层样式 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1090;
    display: none;
}

.menu-popup {
    position: absolute;
    top: 55px;
    left: 5vw;
    width: 250px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    padding: 15px;
    z-index: 1100;
    display: none;
}

.menu-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    position: relative;
}

.menu-close {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    width: 24px;
    height: 24px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
}

.menu-close:hover {
    background-color: #f0f0f0;
    color: var(--anniuhong);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.menu-item-label {
    font-size: 15px;
    color: #555;
}

.menu-item-value {
    font-size: 15px;
    font-weight: bold;
    color: #0A84FF;
}

.menu-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.menu-buttons button{
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 5px;
    padding-left:10%;
    padding-right:10%;
    font-size: 15px;
    text-align-last: justify;
    width: calc(50% - 5px);
}

.menu-button-send {
    background-color: var(--anniulv);
}

.menu-button-clear {
    background-color: var(--anniuhong);
}

.menu-button-showordinato,
.menu-button-back {
    background-color: #0A84FF;
}

/* 显示菜单时的样式 */
.menu-active .menu-overlay,
.menu-active .menu-popup {
    display: block;
}

/* 显示菜单时的样式 */
.menu-active .menu-overlay,
.menu-active .menu-popup {
    display: block;
}
.search-results-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.search-results-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0A84FF;
    color: white;
}
.search-results-header h3 {
    margin: 0;
    font-size: 16px;
}
.search-results-close {
    font-size: 24px;
    cursor: pointer;
    color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}
.search-results-close:hover {
    background-color: rgba(255,255,255,0.2);
}
.search-results-page .ordine-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
}
.scan-info{
    font-size: 16px;
    color: #555;
    text-align: center;
    margin: 60px 0;
}
.item-image {
    position: relative;
    text-align: center;
    height: calc(100% - 80px);
}
.item-image img {
    border: 1px solid #ccc;
    width: auto;
    max-width: 95%;
    margin-top: 5px;
    height: 100%;
    max-height: 300px;
}
.item-info {
    flex: 1;
    position: relative;
    height: 80px;
    padding-left: 5px;
    padding-top: 10px;
}
.item-code {
    color: #555;
    font-size: 12px;
}
.item-name {
    text-align: left;
    margin: 5px 0;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-ps{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 70px;
}
.item-price {
    text-align: left;
    color: #ff6b6b;
    font-size: 16px;
    font-weight: bold;
}
.item-price::before {
    content: "€";
    margin-right: 2px;
}
.item-stock {
    text-align: left;
    font-size: 12px;
    color: #555;
}
.item-stock::after {
    content: " u/c";
    margin-right: 2px;
}
.item-bnt {
    position: absolute;
    width:60px;
    display: flex;
    bottom: 10px;
    right: 10px;
    background-color: transparent;
    justify-content: space-between;
    align-items: center;
}
.item-bnt-meno{
    visibility: hidden;
    width: 25px;
    height: 25px;
}
.item-bnt-piu{
    width: 30px;
    height: 30px;
}
.item-ordine {
    position: absolute;
    top: 10px;
    left: 20px;
    background-color: var(--anniuhong);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 1;
}
.item-ordine::before {
    content: "+";
    margin-right: 2px;
}
.item-line {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    z-index: 1;
    color: #333;
}
.item-line::before {
    content: "ID:";
    margin-right: 2px;
}
.ordine-continua,
.ordine-load{
    display: block;
    height: 35px;
}
.item-codice {
    text-align: left;
    font-size: 12px;
    color: #555;
}
.ordine-totale {
    margin: 10px 15px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.totale-title {
    font-size: 16px;
    font-weight: bold;
    color: #0A84FF;
    margin-bottom: 5px;
}
.totale-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.totale-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.totale-items, .totale-price {
    font-weight: bold;
}

/* 分页控制器样式 */
.pagination-container {
    position: fixed;
    bottom: 120px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 5;
}
.pagination {
    background-color: #f8f8f8;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
}
.pagination button {
    background-color: #0A84FF;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 15px;
    margin: 0 10px;
    cursor: pointer;
}
.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.pagination span {
    margin: 0 5px;
}
.shadow-red{
    border: 3px solid var(--anniuhong);
    box-sizing: border-box;
}
.funzione {
    margin-top: 50px;
}
.funzione-but {
    width: 45%;
    font-size: 1.1em;
    box-sizing: border-box;
    padding: 0 10%;
    color: var(--anniu);
    height: 40px;
    background-color: #fff;
    border: 1px solid var(--anniu);
    border-radius: 5px;
    cursor: pointer;
    text-align-last: justify;
}
.margintop-10{
    margin-top: 10px;
}