/* ============================================================
   shift.css · 便利店收银（打工）
   任务列表顶部的卡片 + 收银弹层
   ============================================================ */

/* ---------- 任务列表里的那一行 ---------- */
/* 便利店收银直接复用 .task-card，这里只补「待开工」的中性状态；
   浅色主题下同样保证对比度 */
.task-card-status.idle {
    background: rgba(246, 240, 244, .07);
    color: var(--text-dim);
    border: 1px solid rgba(246, 240, 244, .18);
}
html[data-mode="day"] .task-card-status.idle {
    background: rgba(36, 26, 34, .05) !important;
    color: var(--day-dim) !important;
    border-color: rgba(36, 26, 34, .2) !important;
}
.shift-btn {
    flex: 1; height: 38px;
    border: 0; border-radius: 12px;
    font-size: 13px; letter-spacing: .04em;
    color: var(--text-dim);
    background: rgba(246, 240, 244, .06);
    box-shadow: inset 0 0 0 1px rgba(246, 240, 244, .10);
    cursor: pointer; font-family: inherit;
}
.shift-btn.on {
    color: #1B0C14;
    background: linear-gradient(180deg, #E07BA2, #C4577F);
    box-shadow: 0 10px 22px -14px rgba(212, 106, 147, .8);
}

/* ---------- 收银弹层 ---------- */
.shift-game {
    position: absolute;
    inset: 0;
    z-index: 900;
    display: none;
}
.shift-game.active { display: block; }
.shift-mask {
    position: absolute; inset: 0;
    background: rgba(6, 4, 10, .58);
    backdrop-filter: blur(6px);
}
.shift-sheet {
    position: absolute;
    left: 12px; right: 12px; bottom: 18px;
    max-height: 76%;
    overflow-y: auto;
    border-radius: 20px;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, #171020, #100A17);
    box-shadow: inset 0 0 0 1px rgba(246, 240, 244, .09), 0 30px 60px -30px rgba(0, 0, 0, .95);
}
html[data-mode="day"] .shift-sheet {
    background: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(36, 26, 34, .10), 0 30px 50px -30px rgba(36, 26, 34, .5);
}
.shift-hd {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; letter-spacing: .04em;
}
.shift-x {
    border: 0; background: none; padding: 2px 0;
    font-size: 12px; color: var(--text-dim); opacity: .7;
    cursor: pointer; font-family: inherit;
}
.shift-progress {
    margin-top: 10px;
    font-size: 10.5px; letter-spacing: .12em;
    color: var(--primary);
}
.shift-items { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.shift-item {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--text);
}
.shift-item i { font-style: normal; color: var(--text-dim); opacity: .7; font-size: 11px; }
.shift-total {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid rgba(246, 240, 244, .08);
    font-size: 12px; letter-spacing: .1em; color: var(--text-dim);
}
html[data-mode="day"] .shift-total { border-top-color: rgba(36, 26, 34, .10); }
.shift-total span:last-child { font-size: 21px; color: var(--text); letter-spacing: 0; }
html[data-mode="day"] .shift-total span:last-child { color: var(--day-ink); }
.shift-feedback { margin-top: 10px; font-size: 12px; line-height: 1.6; }
.shift-feedback .ok { color: #7FD3A3; }
.shift-feedback .warn { color: #E0B36A; }
.shift-feedback .bad { color: #E06A6A; }
.shift-pay { display: flex; gap: 8px; margin-top: 12px; }
.shift-input {
    flex: 1; height: 46px;
    border-radius: 13px;
    border: 1px solid rgba(246, 240, 244, .14);
    background: rgba(246, 240, 244, .04);
    color: var(--text);
    padding: 0 14px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}
html[data-mode="day"] .shift-input {
    border-color: rgba(36, 26, 34, .12);
    background: #FFF;
    color: var(--day-ink);
}
.shift-pay .shift-btn { flex: 0 0 96px; height: 46px; border-radius: 13px; }
.shift-hint {
    margin-top: 10px;
    font-size: 10.5px; line-height: 1.7;
    color: var(--text-dim); opacity: .6;
}

/* 结算 */
.shift-sum { margin-top: 14px; }
.shift-sum-row {
    display: flex; justify-content: space-between;
    font-size: 12.5px; color: var(--text-dim);
    padding: 7px 0;
}
.shift-sum-row .minus { color: #E06A6A; }
.shift-sum-total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: 8px; padding-top: 10px;
    border-top: 1px solid rgba(246, 240, 244, .08);
    font-size: 12px; letter-spacing: .1em; color: var(--text-dim);
}
.shift-sum-total span:last-child { font-size: 24px; color: var(--text); letter-spacing: 0; }
.shift-actions { margin-top: 16px; display: flex; gap: 8px; }
.shift-result { text-align: center; padding: 18px 0 6px; }
.shift-result-pay {
    font-size: 34px; letter-spacing: .02em;
    color: var(--primary);
}
.shift-result-desc {
    margin-top: 10px;
    font-size: 11.5px; line-height: 1.8;
    color: var(--text-dim); opacity: .72;
}
