/* ==========================================================================
   咖啡点餐系统 - 主样式
   主题：温暖咖啡色调 / 清爽留白 / 移动优先
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg:           #faf6f0;
    --bg-card:     #ffffff;
    --bg-soft:     #f3ece1;
    --line:        #e7ddc9;
    --line-soft:   #f0e8d8;
    --ink:         #1c1714;
    --ink-2:       #4a3f37;
    --ink-3:       #897a6b;
    --ink-4:       #c0b29c;
    --espresso:    #2c1810;
    --crema:       #c89968;
    --accent:      #b86b3a;        /* 咖啡橙 */
    --accent-soft: #f5e9d9;
    --green:       #4a7c59;
    --red:         #c14d3d;
    --yellow:      #d49b3a;
    --shadow-sm:   0 1px 2px rgba(28,23,20,.04), 0 2px 6px rgba(28,23,20,.04);
    --shadow-md:   0 4px 16px rgba(28,23,20,.06), 0 12px 32px rgba(28,23,20,.04);
    --shadow-lg:   0 12px 48px rgba(28,23,20,.12);
    --radius:      14px;
    --radius-sm:   8px;
    --radius-lg:   20px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body { padding-bottom: env(safe-area-inset-bottom); }

a { color: var(--accent); text-decoration: none; }

h1, h2, h3, h4, .display {
    font-family: 'Fraunces', 'PingFang SC', serif;
    font-weight: 600;
    color: var(--espresso);
    letter-spacing: -0.01em;
}

h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 0 0 8px; }
h3 { font-size: 18px; margin: 0 0 6px; }

/* ============== 布局 ============== */
.app {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 18px 100px;
}
.app-wide { max-width: 1200px; }

.topbar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(250, 246, 240, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
    padding: 14px 18px;
    display: flex; align-items: center; gap: 12px;
}
.topbar .brand {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 19px;
    color: var(--espresso);
    letter-spacing: -0.01em;
}
.topbar .brand small {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-left: 6px;
}
.topbar .spacer { flex: 1; }
.topbar .ico-btn {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--bg-soft);
    color: var(--ink-2);
    border: none; cursor: pointer; font-size: 16px;
    transition: background .15s;
}
.topbar .ico-btn:hover { background: var(--line); }
.topbar .user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-soft); border-radius: 999px;
    font-size: 13px; color: var(--ink-2);
}
.topbar .user-chip .avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--espresso); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
}

/* ============== 卡片 ============== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--ink-3);
}
.empty .ico { font-size: 42px; margin-bottom: 8px; opacity: .5; }

/* ============== 商品列表 ============== */
.hero-greeting {
    margin: 18px 0 18px;
}
.hero-greeting .h-title {
    font-family: 'Fraunces', serif;
    font-size: 32px; font-weight: 600;
    color: var(--espresso);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.hero-greeting .h-title em {
    font-style: italic;
    color: var(--accent);
}
.hero-greeting .h-sub {
    color: var(--ink-3); font-size: 14px; margin-top: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.product-card .img {
    aspect-ratio: 1 / 1;
    background: var(--bg-soft) center/cover no-repeat;
    position: relative;
}
.product-card .img::before {
    /* 没图时的咖啡占位图 */
    content: '☕';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: var(--ink-4); opacity: .4;
}
.product-card .img.has-img::before { display: none; }
.product-card .info { padding: 12px 14px 14px; }
.product-card .name {
    font-family: 'Fraunces', serif;
    font-weight: 600; font-size: 16px;
    color: var(--espresso);
    margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .price {
    font-family: 'Fraunces', serif;
    color: var(--accent);
    font-size: 18px; font-weight: 600;
}
.product-card .price small {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px; font-weight: 500;
    color: var(--ink-3); margin-left: 4px;
}

@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ============== 商品详情 ============== */
.product-detail .hero-img {
    width: 100%; aspect-ratio: 1 / 1;
    background: var(--bg-soft) center/cover no-repeat;
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
    position: relative; overflow: hidden;
}
.product-detail .hero-img::before {
    content: '☕';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 100px; color: var(--ink-4); opacity: .35;
}
.product-detail .hero-img.has-img::before { display: none; }

.product-detail .name {
    font-family: 'Fraunces', serif;
    font-size: 28px; font-weight: 600;
    color: var(--espresso); letter-spacing: -0.02em;
}
.product-detail .desc { color: var(--ink-3); margin: 6px 0 16px; }

.section-title {
    font-size: 13px; font-weight: 500;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 18px 0 10px;
}

.opt-group { display: flex; gap: 10px; flex-wrap: wrap; }
.opt-pill {
    flex: 1; min-width: 120px;
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: all .15s;
    display: flex; align-items: center; justify-content: space-between;
    user-select: none;
}
.opt-pill:hover { border-color: var(--ink-4); }
.opt-pill.active {
    border-color: var(--espresso);
    background: var(--espresso);
    color: #fff;
}
.opt-pill.active .price { color: var(--crema); }
.opt-pill.disabled {
    opacity: .35; cursor: not-allowed;
    background: var(--bg-soft);
}
.opt-pill .label {
    font-weight: 600;
}
.opt-pill .label small {
    display: block; font-weight: 400;
    font-size: 11px; opacity: .6;
    margin-top: 2px;
}
.opt-pill .price {
    font-family: 'Fraunces', serif;
    font-weight: 600; font-size: 17px;
    color: var(--accent);
}

/* 表单 */
.field { margin-bottom: 14px; }
.field label {
    display: block; font-size: 13px; font-weight: 500;
    color: var(--ink-2); margin-bottom: 6px;
}
.input, .select, .textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-family: inherit; font-size: 15px;
    color: var(--ink);
    transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--espresso);
}
.textarea { min-height: 90px; resize: vertical; }

/* ============== 底部支付栏 ============== */
.pay-bar {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-soft);
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 14px;
}
.pay-bar .total {
    flex: 1;
}
.pay-bar .total small {
    display: block;
    font-size: 11px; color: var(--ink-3);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.pay-bar .total .amount {
    font-family: 'Fraunces', serif;
    font-size: 26px; font-weight: 600;
    color: var(--accent);
}
.pay-bar .total .amount.was {
    text-decoration: line-through;
    color: var(--ink-4);
    font-size: 14px; margin-right: 6px;
}

/* ============== 按钮 ============== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: none; cursor: pointer;
    transition: transform .1s, background .15s, opacity .15s;
    font-family: inherit;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
    background: var(--espresso); color: #fff;
}
.btn-primary:hover { background: #1a0e08; }

.btn-accent {
    background: var(--accent); color: #fff;
}
.btn-accent:hover { background: #a55c2e; }

.btn-ghost {
    background: var(--bg-soft); color: var(--ink-2);
}
.btn-ghost:hover { background: var(--line); }

.btn-outline {
    background: transparent; color: var(--ink-2);
    border: 1.5px solid var(--line);
}

.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ============== 模态层 ============== */
.modal-mask {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(28,23,20,.55);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 480px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } }

.modal-title {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 600;
    color: var(--espresso);
    margin-bottom: 14px;
}
.modal-actions {
    display: flex; gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* QR 大图 */
.qr-fullscreen {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(28,23,20,.92);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 24px;
    animation: fadeIn .2s ease;
}
.qr-fullscreen .qr-img {
    max-width: min(90vw, 400px);
    max-height: 70vh;
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
}
.qr-fullscreen .tip {
    color: rgba(255,255,255,.72);
    font-size: 14px; margin-top: 16px;
}
.qr-fullscreen .close {
    position: absolute; top: 24px; right: 24px;
    color: #fff; background: rgba(255,255,255,.15);
    width: 40px; height: 40px; border-radius: 50%;
    border: none; cursor: pointer; font-size: 18px;
}

/* ============== 兑换券卡 ============== */
.voucher-row {
    background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .15s;
    position: relative; overflow: hidden;
}
.voucher-row::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: var(--accent);
}
.voucher-row:hover { transform: translateX(2px); }
.voucher-row.selected {
    background: linear-gradient(135deg, var(--accent-soft), #fff);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(184, 107, 58, .15);
}
.voucher-row.disabled, .voucher-row.used, .voucher-row.expired {
    opacity: .5; background: var(--bg-soft);
}
.voucher-row .info { flex: 1; min-width: 0; }
.voucher-row .name {
    font-family: 'Fraunces', serif; font-weight: 600;
    color: var(--espresso); font-size: 15px;
}
.voucher-row .meta {
    font-size: 12px; color: var(--ink-3); margin-top: 4px;
}
.voucher-row .badge {
    background: var(--accent); color: #fff;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
}

/* ============== 订单列表 ============== */
.order-row {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    display: flex; gap: 14px;
    align-items: center;
}
.order-row .thumb {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    background: var(--bg-soft) center/cover;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--ink-4);
}
.order-row .info { flex: 1; min-width: 0; }
.order-row .name {
    font-weight: 600; color: var(--espresso);
    font-size: 15px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.order-row .meta {
    font-size: 12px; color: var(--ink-3); margin-top: 2px;
}
.order-row .right { text-align: right; flex-shrink: 0; }
.order-row .price {
    font-family: 'Fraunces', serif;
    font-weight: 600; color: var(--accent);
    font-size: 16px;
}

.status-tag {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 500;
}
.status-tag.pending { background: #fff3e0; color: var(--yellow); }
.status-tag.paid    { background: #e3f1e8; color: var(--green); }
.status-tag.used    { background: var(--bg-soft); color: var(--ink-3); }
.status-tag.expired { background: #fbe9e6; color: var(--red); }
.status-tag.unused  { background: var(--accent-soft); color: var(--accent); }

/* ============== 登录 ============== */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background:
        radial-gradient(at 20% 10%, var(--accent-soft) 0%, transparent 45%),
        radial-gradient(at 90% 90%, #ece4d2 0%, transparent 50%),
        var(--bg);
}
.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    width: 100%; max-width: 400px;
    box-shadow: var(--shadow-md);
}
.login-card .brand {
    font-family: 'Fraunces', serif;
    font-size: 30px; font-weight: 600;
    color: var(--espresso);
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.login-card .brand em {
    color: var(--accent); font-style: italic;
}
.login-card .sub {
    text-align: center; color: var(--ink-3);
    font-size: 13px; margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ============== 管理端 ============== */
.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--espresso);
    color: #fff;
    padding: 24px 18px;
    position: sticky; top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar .brand {
    font-family: 'Fraunces', serif;
    font-size: 22px; font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}
.admin-sidebar .brand em { color: var(--crema); font-style: italic; }
.admin-sidebar .sub {
    color: rgba(255,255,255,.5);
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 30px;
}
.admin-sidebar nav a {
    display: block;
    color: rgba(255,255,255,.7);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 14px;
    transition: all .15s;
}
.admin-sidebar nav a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}
.admin-sidebar nav a.active {
    background: rgba(200,153,104,.18);
    color: var(--crema);
}
.admin-sidebar .user-area {
    margin-top: auto; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
    font-size: 12px;
}

.admin-main {
    padding: 28px 32px;
    background: var(--bg);
    overflow-x: auto;
}
.admin-main .page-title {
    font-family: 'Fraunces', serif;
    font-size: 26px; font-weight: 600;
    color: var(--espresso);
    margin-bottom: 4px;
}
.admin-main .page-sub {
    color: var(--ink-3); font-size: 13px;
    margin-bottom: 22px;
}

.toolbar {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 18px; align-items: center;
}
.toolbar .grow { flex: 1; }
.toolbar .input, .toolbar .select { padding: 8px 12px; font-size: 14px; }

table.t {
    width: 100%; border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
table.t thead {
    background: var(--bg-soft);
}
table.t th, table.t td {
    text-align: left;
    padding: 12px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--line-soft);
}
table.t th {
    font-weight: 600; color: var(--ink-2);
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.06em;
}
table.t tr:last-child td { border-bottom: none; }
table.t tr:hover td { background: rgba(243,236,225,.4); }
table.t .row-img {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-soft) center/cover;
    display: inline-block;
    vertical-align: middle;
}

.row-actions { display: inline-flex; gap: 6px; }
.row-actions .btn { padding: 6px 12px; font-size: 12px; }

@media (max-width: 800px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: relative; height: auto;
        padding: 16px;
    }
    .admin-sidebar nav {
        display: flex; gap: 6px; overflow-x: auto;
    }
    .admin-sidebar nav a {
        white-space: nowrap; flex-shrink: 0;
        margin-bottom: 0;
    }
    .admin-sidebar .sub { display: none; }
    .admin-sidebar .user-area { display: none; }
    .admin-main { padding: 20px 16px; }
    table.t { font-size: 12px; }
    table.t th, table.t td { padding: 10px 10px; }
}

/* ============== Toast ============== */
.toast {
    position: fixed; left: 50%; top: 24px;
    transform: translateX(-50%);
    background: var(--espresso);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    animation: toastIn .25s ease;
    max-width: 90vw;
}
@keyframes toastIn {
    from { transform: translate(-50%, -10px); opacity: 0; }
}
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }

/* ============== 杂项 ============== */
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.muted { color: var(--ink-3); }
.text-sm { font-size: 12px; }
.divider { height: 1px; background: var(--line-soft); margin: 16px 0; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.hidden { display: none !important; }

/* tab */
.tabs {
    display: flex; gap: 4px;
    background: var(--bg-soft);
    padding: 4px; border-radius: var(--radius);
    margin-bottom: 16px;
}
.tabs .tab {
    flex: 1; padding: 9px 12px;
    text-align: center; cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500;
    color: var(--ink-3);
    transition: all .15s;
}
.tabs .tab.active {
    background: #fff; color: var(--espresso);
    box-shadow: var(--shadow-sm);
}

/* 文件上传按钮 */
.upload-box {
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s;
}
.upload-box:hover { border-color: var(--accent); }
.upload-box img {
    max-width: 100%; max-height: 120px;
    border-radius: var(--radius-sm);
}
.upload-box .ph {
    color: var(--ink-3); font-size: 13px;
    padding: 18px 0;
}

/* ===========================
   员工兑换券页面专用样式
   =========================== */
.card-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.card-block .block-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--espresso);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.gift-form .form-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.user-picker { position: relative; }
.user-suggest {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 30;
}
.suggest-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
    transition: background .12s;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover { background: var(--bg-soft); }
.suggest-item .muted { font-size: 12px; }
.suggest-empty {
    padding: 14px; text-align: center;
    color: var(--ink-3); font-size: 13px;
}
.picked-user { margin-top: 8px; }
.picked-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--crema);
    border: 1px solid var(--line);
    color: var(--espresso);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
}
.picked-clear {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    margin-left: 4px;
}
.picked-clear:hover { text-decoration: underline; }

.num-badge {
    display: inline-block;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink-2);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
}
.num-badge.ok {
    background: #e8f5ec;
    color: #2f7a44;
}

.t-mini { font-size: 13px; }
.t-mini code {
    background: var(--bg-soft);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--espresso);
}

.modal.modal-wide {
    max-width: 920px;
    width: calc(100vw - 40px);
}
.voucher-detail-body {
    max-height: 60vh;
    overflow-y: auto;
    margin: 8px 0 4px;
}

@media (max-width: 720px) {
    .card-block { padding: 16px; }
    .modal.modal-wide { width: calc(100vw - 24px); }
}
