/* ============================================================
 * 收银台样式
 * ============================================================ */

/* ---------- 登录 ---------- */
.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 22px;
    padding: 40px 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.login-card h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
}
.login-card .sub {
    text-align: center;
    color: var(--text2);
    font-size: 14px;
    margin-bottom: 24px;
}
.login-card .icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 12px;
}
.login-card .admin-link {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text2);
}
.login-card .admin-link a { color: var(--blue); }
.field { margin-bottom: 14px; }
.field span {
    display: block;
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 6px;
    font-weight: 500;
}
.field input {
    width: 100%;
    padding: 13px 16px;
    font-size: 16px;
    border-radius: 12px;
    background: #f5f5f7;
    border: 1.5px solid transparent;
    transition: .2s;
    color: var(--text);
    box-sizing: border-box;
}
.field input:focus {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0,122,255,.12);
}
.err-msg {
    color: var(--red);
    font-size: 13px;
    text-align: center;
    min-height: 18px;
    margin-bottom: 8px;
}

/* ---------- 锁屏 ---------- */
.lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px;
}
.lock-icon { font-size: 60px; margin-bottom: 20px; }
.lock h2 { font-size: 22px; margin-bottom: 8px; }
.lock p { color: var(--text2); }

/* ---------- 顶部导航 ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007aff, #5856d6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.nav-shop { font-size: 16px; font-weight: 600; white-space: nowrap; }
.nav-sub { font-size: 12px; color: var(--text2); white-space: nowrap; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.04);
    flex-shrink: 0;
    white-space: nowrap;
}
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.nav-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.nav-role {
    font-size: 11px;
    color: var(--text2);
    white-space: nowrap;
}
.nav-center {
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
@media (max-width: 640px) {
    .nav-center { display: none; }
}

/* ---------- 主布局基础 ---------- */
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card-lg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* ---------- 扫码区 ---------- */
.scan-row { display: flex; gap: 10px; }
.scan-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f7;
    border-radius: 14px;
    padding: 0 16px;
    border: 1.5px solid transparent;
    transition: .2s;
    min-width: 0;
}
.scan-input:focus-within {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0,122,255,.12);
}
.scan-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 0;
    font-size: 17px;
    font-weight: 500;
    min-width: 0;
    outline: none;
}
.scan-input .ico { font-size: 18px; opacity: .5; }
.scan-btn {
    padding: 0 28px;
    font-size: 15px;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.member-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}
.member-input {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 0 14px;
    border: 1.5px solid transparent;
    transition: .2s;
}
.member-input:focus-within {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0,122,255,.12);
}
.member-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 0;
    font-size: 15px;
    min-width: 0;
    outline: none;
}
.member-info { font-size: 14px; font-weight: 500; color: var(--green); padding: 0 4px; }

/* ---------- 购物车 ---------- */
.cart-card { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cart-head h2 { font-size: 17px; }
.cart-count { background: #f5f5f7; color: var(--text2); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.cart-list { flex: 1; overflow: auto; min-height: 300px; }
.cart-list table { width: 100%; border-collapse: collapse; }

.cart-list th:nth-child(1) { /* 商品 */ }
.cart-list th:nth-child(2) { width: 110px; text-align: right; }  /* 单价 */
.cart-list th:nth-child(3) { width: 100px; text-align: right; }  /* 数量 */
.cart-list th:nth-child(4) { width: 110px; text-align: right; }  /* 小计 */
.cart-list th:nth-child(5) { width: 44px; }                       /* 删除 */

.cart-list th {
    font-size: 12px;
    color: var(--text2);
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cart-list td { padding: 14px 12px; font-size: 15px; border-bottom: 1px solid var(--line2); }
.cart-list tr:last-child td { border-bottom: none; }
.td-num { text-align: right; color: var(--text2); font-variant-numeric: tabular-nums; }
.td-sub { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.td-act { text-align: right; width: 44px; }
.del {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f5f5f7;
    color: var(--text2);
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .15s;
    cursor: pointer;
    border: none;
}
.del:hover { background: var(--red); color: #fff; }
.cart-empty { text-align: center; color: var(--text2); font-size: 14px; padding: 60px 20px; }

/* 购物车商品图片 */
.td-prod {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f7;
    flex-shrink: 0;
    display: block;
}
.cart-name {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

/* 购物车数量输入框 */
.qty-input {
    width: 70px;
    padding: 6px 8px;
    text-align: right;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    border: 1.5px solid #e5e5ea;
    border-radius: 8px;
    outline: none;
    transition: .15s;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input:hover {
    border-color: #c7c7cc;
}
.qty-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0,122,255,.12);
}

/* ---------- 合计卡 ---------- */
.total-card {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: #fff;
    text-align: center;
    padding: 26px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,122,255,.25);
}
.total-label { font-size: 13px; opacity: .8; font-weight: 500; letter-spacing: .05em; }
.total-value {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -.03em;
    margin: 6px 0 4px;
    font-variant-numeric: tabular-nums;
}
.total-sub { font-size: 13px; opacity: .75; }

/* ---------- 支付方式 ---------- */
.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: 14px;
    background: #f5f5f7;
    transition: .18s;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    border: none;
}
.pay:hover { transform: translateY(-1px); }
.pay:active { transform: scale(.97); }
.pay-icon { font-size: 22px; }
.pay-key {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    color: var(--text2);
    font-weight: 600;
    background: rgba(0,0,0,.06);
    padding: 1px 5px;
    border-radius: 4px;
}
.pay-cash { background: rgba(255,149,0,.12); color: #c26a00; }
.pay-cash:hover { background: rgba(255,149,0,.2); }
.pay-wechat { background: rgba(7,193,96,.12); color: #06a04d; }
.pay-wechat:hover { background: rgba(7,193,96,.2); }
.pay-alipay { background: rgba(22,119,255,.12); color: #0d5fd0; }
.pay-alipay:hover { background: rgba(22,119,255,.2); }
.pay-card { background: rgba(175,82,222,.12); color: #8e3eb8; }
.pay-card:hover { background: rgba(175,82,222,.2); }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-hold {
    background: var(--orange);
    color: #fff;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
}
.btn-clear {
    background: var(--red);
    color: #fff;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
}
.btn-full {
    width: 100%;
    margin-top: 10px;
    background: transparent;
    color: var(--text2);
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}
.btn-full:hover { background: rgba(0,0,0,.05); color: var(--text); }
.kbd {
    background: rgba(255,255,255,.25);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* ---------- 弹窗 ---------- */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    min-width: 320px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal h3 { font-size: 18px; margin-bottom: 16px; }
.hold-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f5f7;
    margin-bottom: 8px;
}
.hold-item b { font-size: 15px; }
.hold-item small { color: var(--text2); font-size: 12px; display: block; margin-top: 2px; }

/* ---------- 打印 ---------- */
#print { display: none; }

@media print {
    @page { margin: 0; size: 58mm auto; }
    html, body {
        width: 58mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        height: auto !important;
        overflow: visible !important;
    }
    body > *:not(#print) { display: none !important; }
    #print {
        display: block !important;
        width: 58mm;
        font-size: 12px;
        font-family: "Courier New", monospace;
        color: #000;
        margin: 0;
        padding: 0 3mm;
        position: static;
    }
    #print > div { margin: 0; padding: 0; }
}

/* ============================================================
 * 收银台四栏布局（导航 + 快捷 + 中 + 右）
 * ============================================================ */

.cashier-layout {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-height: calc(100vh - 69px);
    width: 100%;
    padding: 20px 24px;
    background: var(--bg);
    box-sizing: border-box;
}

/* ---------- 1. 最左侧：导航栏（与后台 .side 同一套视觉） ---------- */
.cashier-nav-side {
    width: 220px;
    flex: 0 0 220px;
    background: #fff;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: 20px 12px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    height: calc(100vh - 89px);
    box-sizing: border-box;
    overflow-y: auto;
}

.cashier-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: .15s;
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-bottom: 2px;
}

.cashier-nav-item:hover {
    background: #f5f5f7;
    color: var(--text);
}

.cashier-nav-item .nav-icon {
    font-size: 17px;
    margin-bottom: 0;
    line-height: 1;
}

/* ---------- 2. 左侧：快捷商品 ---------- */
.quick-side {
    width: 260px;
    flex: 0 0 260px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 14px;
    max-height: calc(100vh - 109px);
    overflow-y: auto;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.quick-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}
.quick-side-head h2 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
}
.quick-side-head button {
    padding: 5px 10px;
    font-size: 12px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.quick-item {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    background: #f5f5f7;
    border-radius: 10px;
    padding: 6px 4px;
    cursor: pointer;
    position: relative;
    text-align: center;
    transition: .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    box-sizing: border-box;
}
.quick-item:hover {
    background: #eef4ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,122,255,.15);
}
.quick-item:active { transform: scale(.96); }

.quick-item-img {
    width: 56%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 6%;
    background: #fff;
    flex-shrink: 0;
}

.quick-item-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    color: var(--text);
}
.quick-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    margin-top: 2px;
}

.quick-item-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.25);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.quick-item:hover .quick-item-del { display: flex; }
.quick-item-del:hover { background: var(--red); }

.quick-empty {
    text-align: center;
    color: var(--text2);
    font-size: 13px;
    padding: 40px 12px;
    line-height: 1.8;
}

/* ---------- 3. 中间：购物车区域 (自适应) ---------- */
.cashier-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    min-height: calc(100vh - 105px);
}

/* 中间区域扫码和会员的微调 */
.cashier-center .scan-input input {
    padding: 13px 0;
    font-size: 16px;
}
.cashier-center .member-input input {
    padding: 10px 0;
}

/* ---------- 4. 右侧：合计、支付、挂单区 (缩窄) ---------- */
.cashier-right {
    width: 280px; /* 比原版缩小一半左右 */
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* 针对右栏缩窄后的细节优化 */
.cashier-right .total-card {
    padding: 20px 14px;
}
.cashier-right .total-value {
    font-size: 32px; /* 字体调小 */
}
.cashier-right .card-lg {
    padding: 16px 14px;
}
.cashier-right .pay-grid {
    gap: 8px;
}
.cashier-right .pay {
    padding: 12px 4px; /* 减少内边距 */
}
.cashier-right .action-grid {
    gap: 8px;
}
.cashier-right .btn-hold, 
.cashier-right .btn-clear,
.cashier-right .btn-holdlist,
.cashier-right .btn-shift {
    padding: 10px 4px;
    font-size: 13px;
}

/* 购物车表格在中间栏的适配 */
.cart-list {
    min-height: 300px;
}

/* ============================================================
 * 挂单 / 交班 并排按钮（跟上面的挂单/清空同风格）
 * ============================================================ */
.btn-holdlist {
    background: #007aff;
    color: #fff;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    transition: .15s;
}
.btn-holdlist:hover { background: #0066d6; }
.btn-holdlist:active { transform: scale(.97); }

.btn-shift {
    background: #af52de;
    color: #fff;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    transition: .15s;
}
.btn-shift:hover { background: #9a3fc8; }
.btn-shift:active { transform: scale(.97); }

/* ---------- 响应式调整 ---------- */
@media (max-width: 1200px) {
    .quick-side { display: none; } /* 中屏隐藏快捷商品 */
}

/* 大屏（收银一体机 / 1920 宽显示器）：
   快捷商品加宽，中间的扫码、会员、购物清单固定占一半宽度 */
@media (min-width: 1500px) {
    .quick-side {
        flex: 1 1 auto;
        width: auto;
        min-width: 380px;
        max-height: calc(100vh - 105px);
    }
    .quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
        gap: 10px;
    }
    .cashier-center {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 900px) {
    .cashier-layout {
        flex-direction: column;
        padding: 12px;
    }
    .cashier-nav-side {
        flex-direction: row;
        width: 100%;
        flex: 0 0 auto;
        height: auto;
        overflow-x: auto;
        overflow-y: visible;
        padding: 8px;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
    }
    .cashier-nav-item {
        width: auto;
        flex: 0 0 auto;
        flex-direction: column;
        gap: 2px;
        padding: 6px 10px;
        font-size: 12px;
    }
    .cashier-nav-item .nav-icon {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .cashier-center,
    .cashier-right {
        width: 100%;
        flex: 1 1 auto;
        min-height: auto;
    }
    .cashier-right {
        width: 100%;
    }
    .cart-list { min-height: auto; }
}
.pay-custom {
    background: rgba(142, 142, 147, 0.12);
    color: #6e6e73;
}
.pay-custom:hover {
    background: rgba(142, 142, 147, 0.2);
}
/* 2026-11-12 brand header */
.nav-left{padding:3px 10px;border:1px solid color-mix(in srgb,var(--brand-color,#0f766e) 28%,#fff);border-radius:16px;background:linear-gradient(180deg,#fff,rgba(255,255,255,.72));}
.nav-logo{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,var(--brand-color,#0f766e),color-mix(in srgb,var(--brand-color,#0f766e) 55%,#2dd4bf));color:#fff;box-shadow:0 6px 14px color-mix(in srgb,var(--brand-color,#0f766e) 24%,transparent);}
.nav-logo svg{width:23px;height:23px;}
.nav-brand{display:flex;flex-direction:column;gap:2px;min-width:0;}
.nav-system{font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--text2);text-decoration:none;}
.nav-system:hover{color:var(--brand-color,#0f766e);text-decoration:none;}
.nav-shop-row{display:flex;align-items:center;gap:7px;min-width:0;}
.nav-shop{font-size:15px;font-weight:700;line-height:1.15;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.nav-sid{font-size:10px;color:var(--text2);background:rgba(0,0,0,.05);border-radius:5px;padding:1px 5px;white-space:nowrap;}
.nav-sub{display:flex;align-items:center;gap:6px;font-size:10px;}
.nav-license{font-weight:600;color:var(--brand-color,#0f766e);}
.nav-connect{display:inline-flex;align-items:center;gap:4px;color:var(--text2);}
#cloudDot{width:6px;height:6px;border-radius:50%;background:#8e8e93;display:inline-block;}
.nav-ver{color:var(--text2);}
@media(max-width:1200px){.nav-sid,.nav-ver{display:none}.nav-shop{max-width:130px}}

/* 2026-11 brand header */
.nav-brand-card{display:flex;align-items:center;gap:10px;padding:6px 12px 6px 8px;border:1.5px solid var(--brand-color,#0f766e);border-radius:14px;background:#fff;max-width:340px;line-height:1.2}
.nav-brand-card .nav-logo{width:40px;height:40px;border-radius:11px;font-size:20px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--brand-color,#0f766e) 12%,#fff);flex:0 0 auto}
.nav-brand-body{min-width:0}
.nav-brand-name{font-size:14px;font-weight:700;color:#111827;white-space:nowrap}
.nav-brand-store{font-size:12px;color:#374151;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-brand-id{font-size:11px;color:#6b7280;margin-left:6px}
.nav-brand-meta{display:flex;gap:6px;margin-top:2px;font-size:10px;color:#6b7280;white-space:nowrap}
.nav-brand-meta span{padding:0 5px;border-radius:6px;background:#f3f4f6}


/* 2026-11-12 compact brand card */
.nav-left { padding: 2px 10px; border-radius: 13px; }
.nav-brand-card { padding: 4px 11px 4px 6px; gap: 8px; max-width: 390px; border-width: 1px; border-radius: 12px; align-items: center; }
.nav-brand-card .nav-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 0; background: var(--brand-color, #0f766e); box-shadow: none; }
.nav-brand-card .nav-logo::before { content: "富"; font-size: 15px; font-weight: 800; color: #fff; line-height: 1; }
.nav-brand-name { font-size: 13px; line-height: 1.2; }
.nav-brand-store { font-size: 11px; line-height: 1.2; margin-top: 1px; }
.nav-brand-meta { font-size: 9px; gap: 4px; margin-top: 1px; line-height: 1.25; }
.nav-brand-meta span { padding: 0 4px; border-radius: 4px; }
.nav-brand-id { font-size: 10px; }

/* 2026-11-12 single brand frame + user table wrap */
.nav-left { border: 0 !important; background: transparent !important; padding: 0 !important; }
.nav-brand-card { border-width: 1px !important; }
.mu-card table td { word-break: break-word; white-space: normal; }
.mu-card table th { white-space: nowrap; }

/* 2026-11-12 brand text containment */
.nav-brand-name { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav-brand-store { max-width: 100%; }
.side-brand-card .sb-name { overflow: hidden; text-overflow: ellipsis; }
.side-brand-card .sb-store { max-width: 100%; }

/* 2026-11-12 show full system name in cashier brand card */
.nav-left { flex: 0 0 auto; }
.nav-brand-card {
    width: max-content;
    max-width: min(420px, calc(100vw - 520px));
    flex: 0 0 auto;
}
.nav-brand-body { flex: 1 1 auto; min-width: max-content; }
.nav-brand-name {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap;
}
