:root{
    --anniu:#0071E3;
    --anniushen:#0063cc;
    --biaoqianlan:#0A84FF;
    --biaoqianhui:#878787;
    --beijinghui:#f9f9f9;
    --anniulv:#4CD964;
    --anniuhong: #FF453A;
    --aranciochiaro:#fff8e5;
    --arancio:#ffc107;
    --lan:#0A84FF;
    --danlan:#EDF6FF;
    --qianlan:#49c2ef;
    /* 针对ios */
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent; 
}
html{
    padding: 0;
    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: 99%;
}
#canvas{
    display: none;
}
.container {
    width: 95vw;
    max-width: 1000px; /* 可以设定一个最大宽度，适应大屏设备 */
    text-align: center;
}
.container *{
    max-width: 1000px;
}
.page{
    display: flex;
    flex-direction: column;
    height: 100%;
}
.line-info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}
.line-1-95{
    margin-left: 2.5%;
    display: flex;
    width: 95%;
    border: 1px solid #ccc;
    height: 33px;
    background-color: white;
    box-sizing: border-box;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    font-size: 1em;
    text-overflow: ellipsis;
    text-transform: uppercase;
}
.line-1-100{
    display: flex;
    width: 100%;
    margin-top: 5px;
    border: 1px solid #ccc;
    height: 33px;
    background-color: white;
    padding: 3px;
    font-size: 1em;
    box-sizing: border-box;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.line-2-100{
    display: flex;
    width: 100%;
    margin-top: 5px;
    word-wrap: break-word;
    border: 1px solid #ccc;
    height: 50px;
    background-color: white;
    text-transform: uppercase;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 5px;
    text-align: left;
}
.line-35{
    line-height: 1.5;
    width: 35%;
    text-align: left;
}
.line-65{
    line-height: 1.5;
    width: 65%;
    text-align: left;
}
.text-100{
    font-size: 1.3em;
    color: var(--biaoqianhui);
}
.width-30{
    width: 30%;
    font-size: 1em;
    text-align: left;
}
.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{
    -webkit-appearance: none; /* 去掉 Safari 默认外观 */
    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{
    -webkit-appearance: none; /* 去掉 Safari 默认外观 */
    font-size: 1em;
    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: 2.0;
    background-color: #fff;
    padding: 0;
}
.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: 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-95{
    margin-top: 5%;
    width: 95%;
    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-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-100-r {
    margin-top: 5%;
    width: 100%;
    padding: 5px 35%;
    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-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-45-v {
    width: 45%;
    padding: 5px 7%;
    font-size: 1.2em;
    box-sizing: border-box;
    background-color: var(--anniulv);
    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;
}
.w-20{
    width: 20%;
}
.w-30{
    width: 30%;
}
.w-40{
    width: 40%;
}
.w-50{
    width: 50%;
}
.w-60{
    width: 60%;
}
.w-70{
    width: 70%;
}
.w-80{
    width: 80%;
}
.t-left{
    text-align: left;
}
.select-100{
    width: 100%;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    padding: 0 5px;
}
.cerca-add-descrizione{
    width: 100%;
    margin-top: 5px;
    border: 1px solid #ccc;
    height: 33px;
    background-color: white;
    font-size: 1em;
    box-sizing: border-box;
    border-radius: 5px;
    text-transform: uppercase;
}
.foot {
    background-color: #fff;
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    box-sizing: border-box;
    padding: 5px 0;
    position: fixed;
    bottom: 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;
}
.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;
}
.search-input {
    width: calc(100% - 25px);
    padding: 3px;
    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;
}
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);
}
.displaybox{
    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: 1;
    margin-bottom: 90px;
}
.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-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;
}
.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;
}
.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: 20% 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%;
    margin-bottom: 90px;
}
.c2-x{
    width: 5%;
    text-align: center;
    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;
}
.page-m,
.page-c {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.c1-img-container{
    margin-top: 10px;
    background-color: #fff;
    border-radius: 10px;
    flex: 1;
    margin-bottom: 90px;
    display: flex;             /* 用 flex 居中 */
    justify-content: center;  
    align-items: center;       
    overflow: hidden;     
}
.c1-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 保持比例缩放到容器内 */
}
.c1-add-art{
    display: none;
    margin-left: 2.5%;
    width: 95%;
    background-color: var(--beijinghui);
    height: 100%;
    position: fixed;
    top: 8px;
    left: 0px;
    overflow: hidden;
    transition: all 0.1s ease;
    text-align: center;
    z-index: 2;
}
.cerca-add {
    display: none;
}
.input-100{
    background-color: #fff;
    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;
}
.bg_e {
    background-color: #ddd;
    border-radius: 3px;
}
.bg_o {
    background-color: #ADD8E6;
    border-radius: 3px;
}
.cerca-modifica{
    display: none;
    transform: translateY(-225px); 
}
.cerca-modigiacenza{
    display: none;
    transform: translateY(-225px); 
}
#notification-container {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}
.notification {
    background-color: var(--anniushen);
    color: #fff;
    width: 85vw;
    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;
}
#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: 2.5vw;
    box-sizing: border-box;
    width: 95vw;
    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{
    margin: 10px 0;
    font-size: 1em;
}

/* 订单页面样式 */
#page-ordine {
    background: var(--beijinghui);
    overflow-y: hidden;
}
#page-ordine .search-container{
    width: 80%;
}
#page-ordine .ordine-buttons {
    padding-bottom: 100px;
}
.ordine-list {
    margin-top: 5px;
    display: none;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow-y: auto;
    height: calc(100vh - 130px);
}
.ordine-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) {
    .ordine-item {
        width: 49%;
        height: 44vw;
    }
}
.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: 100px;
    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;
    justify-content: center;
    margin: 20px auto;
    width: fit-content;
}
.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;
}

/* 菜单按钮样式 */
.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;
}

/* 按钮active状态样式 */
.menu-button-ordinato.active,
.menu-button-all.active {
    background-color: #FF6B35 !important;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.4);
}

/* 菜单弹出层样式 */
.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;
    align-items: center;
}

.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;
}
.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;
}

/* 存价页面样式 */
#page-save {
    background: var(--beijinghui);
    overflow-y: hidden;
}

#page-save .search-container {
    width: 80%;
}

#page-save .save-list {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    height: calc(100vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#page-save .save-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-save .save-item {
        width: 49%;
        height: 44vw;
    }
}

#page-save .item-image {
    position: relative;
    text-align: center;
    height: calc(100% - 90px);
}

#page-save .item-image img {
    border: 1px solid #ccc;
    width: auto;
    max-width: 95%;
    margin-top: 5px;
    height: 100%;
    max-height: 300px;
}

#page-save .item-info {
    position: relative;
    height: 90px;
    padding-left: 5px; 
}

#page-save .item-name {
    text-align: left;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#page-save .item-code {
    text-align: left;
    width: 30%;
    color: #555;
    font-size: 12px;
}

#page-save .item-pordine,
#page-save .item-presente {
    text-align: center;
    font-size: 12px;
    width: 30%;
    color: #333;
}

#page-save .item-pdifferenza {
    width: 10%;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
}

#page-save .item-qta {
    width: 20%;
    text-align: left;
    font-size: 12px;
    color: #555;
}

#page-save .item-percentuale {
    text-align: left;
    font-size: 12px;
    line-height: 30px;
    color: #555;
    width: 30%;
}
#page-save .item-presente {
    line-height: 30px;
}
#page-save .item-prendita {
    text-align: left;
    width: 20%;
}
#page-save .item-input{
    width: 60%;
    font-size: 14px;
    text-align: center;
    border-radius: 5px;
    height: 16px;
}

.save-continua,
.save-load {
    display: block;
    height: 35px;
}
.shadow-red{
    border: 3px solid var(--anniuhong);
    box-sizing: border-box;
}
.shadow-orange{
    border: 3px solid darkorange;
    box-sizing: border-box;
}
.menu-button-showunsave{
    background-color: var(--anniuhong);
}
.menu-button-showall{
    background-color: var(--anniulv);
}
.foot-altro {
    position: fixed;
    bottom: 70px;
    right: 0;
    background-color: #fff;
    width: 80px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none;
    gap: 5px;
    flex-direction: column;
    align-items: flex-end; /* 让元素靠右对齐 */
    margin-right: 3%;
    border-radius: 10px;
    padding: 2px 10px;
}
.foot-altro.show {
    display: block;
    /* 添加动画效果 */
    animation: scaletoshow 0.3s ease-out;
    transform-origin: bottom right;
    /* transform-origin: center; */
}
@keyframes scaletoshow {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.foot-altro.hidden {
    display: block;
    /* 添加动画效果 */
    animation: scaletohide 0.3s ease-out;
    transform-origin: bottom right;
    /* transform-origin: center; */
}
@keyframes scaletohide {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.3);
        opacity: 0;
    }
}

.altro-item + .altro-item {
    border-top: 1px solid #ccc;
}
.altro-item {
    background-color: #fff;
    display: flex;
    justify-content: flex-end; /* 让元素靠右对齐 */
    align-items: center;
    gap: 8px;
    height: 45px;
    width: 100%;
    margin-right: 10px;
}

.altro-item img {
    height: 25px;
    width: 25px;
    display: block;
}

.altro-item div {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    color: var(--biaoqianhui);
}

/* 对货页样式 */
#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;
}
#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;
}
#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;
}
#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;
}
/* 显示菜单时的样式 */
.foto-active .foto-overlay,
.foto-active .foto-popup {
    display: block;
}
.foto-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1090;
    display: none;
}
.foto-popup {
    position: absolute;
    top: 20%;
    left: 5vw;
    width: 90vw;
    height: auto;
    align-items: center;
    background-color: white;
    z-index: 1100;
    display: none;
    border-radius: 10px;
}
.foto-popup img{
    width: 100%;
    border-radius: 10px;
    height: auto;
}
/* 键盘样式 */
#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%; /* 向下隐藏 */
}
#page-conto .title {
    font-size: 1em;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}
.conto-time-title {
    font-size: 1.2em;
    text-align: left;
    width: 20%;
}
.conto-time {
    font-size: 1.2em;
    text-align: left;
    width: 20%;
    display: grid;
    grid-template-columns: 2ch 1ch 3ch; /* 小时、冒号、分钟宽度 */
}
.conto-time-hour {
    text-align: right; /* 小时靠右 */
}

.conto-time-colon {
    text-align: center; /* 冒号居中 */
}

.conto-time-minute {
    text-align: left; /* 分钟靠左 */
}
.conto-qta {
    font-size: 1.2em;
    text-align: right;
    width: 25%;
}
.conto-unita {
    font-size: 1.2em;
    text-align: right;
    width: 25%;
}
.conto-tot {
    font-size: 1.2em;
    text-align: right;
    width: 30%;
}


#page-vendita .search-container{
    width: 80%;
}
.ven-box-line {
    padding: 2px 5px;
    text-align: left;
}
.ven-box-line.hidden {
    display: none;
}
.v-page.hidden{
    display: none;
}
.vendita-list,
#ven-results {
    margin-top: 5px;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow-y: auto;
    height: calc(100vh - 130px);
}
.vendita-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) {
    .vendita-item {
        width: 49%;
        height: 44vw;
    }
}
.vitem-giacenza,
.vitem-codice{
    text-align: left;
}
.vitem-pordine,
.vitem-pvendita,
.vitem-venduto,
.vitem-ordinato{
    text-align: right;
}
.ven-menu-fornitore{
    flex: 1;
    text-align: left;
}

/* 历史功能框样式 */
#ven-history {
    display: none; /* 默认隐藏 */
    margin-top: 15px;
}
.menu-item-select {
    width: 60%;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    padding: 0 5px;
}