/* 记账前台 - 现代自适应 UI */

:root {
    --jz-primary: #4f46e5;
    --jz-primary-light: #6366f1;
    --jz-primary-dark: #4338ca;
    --jz-success: #10b981;
    --jz-danger: #ef4444;
    --jz-warning: #f59e0b;
    --jz-bg: #f0f2f8;
    --jz-sidebar: #1e1b4b;
    --jz-sidebar-hover: #312e81;
    --jz-card: #ffffff;
    --jz-text: #1f2937;
    --jz-muted: #6b7280;
    --jz-border: #e5e7eb;
    --jz-radius: 12px;
    --jz-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.jz-app {
    background: var(--jz-bg);
    min-height: 100vh;
    color: var(--jz-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.jz-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.jz-sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--jz-sidebar) 0%, #312e81 100%);
    color: #c7d2fe;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 4px 0 24px rgba(30, 27, 75, .15);
}

.jz-brand {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.jz-brand a {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .3px;
}

.jz-brand i {
    margin-right: 10px;
    color: #a5b4fc;
    font-size: 20px;
}

.jz-user-panel {
    display: flex;
    align-items: center;
    padding: 20px;
    margin: 12px;
    background: rgba(255, 255, 255, .06);
    border-radius: var(--jz-radius);
}

.jz-user-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .2);
}

.jz-user-meta {
    margin-left: 12px;
    overflow: hidden;
}

.jz-user-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jz-user-mobile {
    font-size: 12px;
    color: #a5b4fc;
    margin-top: 2px;
}

.jz-nav {
    flex: 1;
    padding: 8px 12px;
}

.jz-nav-item {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: #c7d2fe;
    text-decoration: none;
    transition: all .2s;
    font-weight: 500;
}

.jz-nav-item i {
    width: 22px;
    margin-right: 10px;
    font-size: 16px;
}

.jz-nav-item:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
}

.jz-nav-item.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    box-shadow: inset 3px 0 0 #a5b4fc;
}

.jz-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.jz-logout-btn {
    display: flex;
    align-items: center;
    color: #a5b4fc;
    text-decoration: none;
    padding: 10px 0;
    transition: color .2s;
}

.jz-logout-btn i {
    margin-right: 8px;
}

.jz-logout-btn:hover {
    color: #fff;
    text-decoration: none;
}

/* 主区域 */
.jz-main {
    flex: 1;
    margin-left: 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.jz-topbar {
    background: var(--jz-card);
    border-bottom: 1px solid var(--jz-border);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    box-shadow: var(--jz-shadow);
}

.jz-page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--jz-text);
}

.jz-content {
    padding: 20px 24px 32px;
    flex: 1;
}

/* 统计卡片 */
.jz-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.jz-stat-card {
    background: var(--jz-card);
    border-radius: var(--jz-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--jz-shadow);
    transition: transform .2s, box-shadow .2s;
}

.jz-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, .1);
}

.jz-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.jz-stat-card.is-expense .jz-stat-icon {
    background: #fef2f2;
    color: var(--jz-danger);
}

.jz-stat-card.is-income .jz-stat-icon {
    background: #ecfdf5;
    color: var(--jz-success);
}

.jz-stat-card.is-balance .jz-stat-icon {
    background: #eef2ff;
    color: var(--jz-primary);
}

.jz-stat-card.is-count .jz-stat-icon {
    background: #fffbeb;
    color: var(--jz-warning);
}

.jz-stat-label {
    font-size: 13px;
    color: var(--jz-muted);
    margin-bottom: 4px;
}

.jz-stat-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.jz-stat-sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--jz-muted);
}

.jz-stat-value.is-negative,
.jz-stat-card .jz-stat-value.is-negative {
    color: var(--jz-danger);
}

.jz-stat-card.is-balance .jz-stat-value.is-positive {
    color: var(--jz-primary);
}

@media (min-width: 992px) {
    .jz-stats-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.jz-stat-card.is-expense .jz-stat-value { color: var(--jz-danger); }
.jz-stat-card.is-income .jz-stat-value { color: var(--jz-success); }
.jz-stat-card.is-balance .jz-stat-value { color: var(--jz-primary); }

.jz-share-tip {
    background: linear-gradient(90deg, #eef2ff, #f5f3ff);
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #4338ca;
    font-size: 13px;
}

.jz-share-tip i {
    margin-right: 8px;
}

/* 面板 */
.jz-panel {
    background: var(--jz-card);
    border-radius: var(--jz-radius);
    box-shadow: var(--jz-shadow);
    padding: 20px 24px;
}

.jz-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.jz-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.jz-panel-title i {
    color: var(--jz-primary);
    margin-right: 8px;
}

.jz-panel-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.jz-btn-export {
    border-radius: 8px;
}

.jz-btn-add {
    background: linear-gradient(135deg, var(--jz-primary), var(--jz-primary-light));
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
}

.jz-btn-add:hover {
    background: linear-gradient(135deg, var(--jz-primary-dark), var(--jz-primary));
    box-shadow: 0 6px 20px rgba(79, 70, 229, .45);
}

.jz-toolbar {
    margin-bottom: 16px;
}

.jz-filter-form .form-group {
    margin-right: 8px;
    margin-bottom: 8px;
}

.jz-input-icon {
    position: relative;
}

.jz-input-icon > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jz-muted);
    z-index: 1;
}

.jz-input-icon .form-control {
    padding-left: 34px;
    border-radius: 8px;
    border-color: var(--jz-border);
    min-width: 160px;
}

.jz-filter-form .form-control {
    border-radius: 8px;
    border-color: var(--jz-border);
}

.jz-btn-search {
    border-radius: 8px;
}

/* 表格 */
.jz-table-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--jz-border);
}

.jz-table thead th {
    background: #f9fafb;
    border-bottom: 2px solid var(--jz-border) !important;
    font-weight: 600;
    color: var(--jz-muted);
    font-size: 13px;
}

.jz-table tbody tr:hover {
    background: #f9fafb;
}

.jz-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.jz-tag-default { background: #f3f4f6; color: #4b5563; }
.jz-tag-danger { background: #fef2f2; color: var(--jz-danger); }
.jz-tag-success { background: #ecfdf5; color: var(--jz-success); }

.jz-amount-expense { color: var(--jz-danger); font-weight: 600; }
.jz-amount-income { color: var(--jz-success); font-weight: 600; }

/* 移动端 */
.jz-header-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    background: var(--jz-sidebar);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.jz-menu-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
}

.jz-menu-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 1px;
}

.jz-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.jz-mobile-item {
    background: var(--jz-card);
    border-radius: var(--jz-radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--jz-shadow);
    border-left: 4px solid var(--jz-danger);
}

.jz-mobile-item.is-income {
    border-left-color: var(--jz-success);
}

.jz-mobile-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.jz-mobile-date {
    color: var(--jz-muted);
    font-size: 13px;
    margin-right: 8px;
}

.jz-mobile-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--jz-danger);
}

.jz-mobile-item.is-income .jz-mobile-amount {
    color: var(--jz-success);
}

.jz-mobile-meta {
    font-size: 13px;
    color: var(--jz-muted);
    margin-top: 8px;
}

.jz-mobile-meta i {
    margin-right: 4px;
}

.jz-mobile-remark {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 13px;
    color: #4b5563;
}

.jz-mobile-item-actions {
    margin-top: 12px;
    text-align: right;
}

.jz-mobile-item-actions .btn {
    border-radius: 8px;
    margin-left: 6px;
}

.jz-mobile-tags {
    margin-bottom: 4px;
}

/* 弹窗 */
.jz-modal .modal-content {
    border: none;
    border-radius: var(--jz-radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .15);
}

.jz-modal .modal-header {
    border-bottom: 1px solid var(--jz-border);
    padding: 16px 24px;
}

.jz-modal .modal-title {
    font-weight: 600;
}

.jz-modal .modal-body {
    padding: 20px 24px;
}

.jz-modal {
    z-index: 1100;
}

.modal-backdrop.in {
    z-index: 1090;
}

.jz-type-switch {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.jz-type-item {
    flex: 1;
    text-align: center;
    padding: 14px;
    border: 2px solid var(--jz-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    margin: 0;
    font-weight: 600;
}

.jz-type-item i {
    margin-right: 6px;
}

.jz-type-item.active[data-type="expense"] {
    border-color: var(--jz-danger);
    background: #fef2f2;
    color: var(--jz-danger);
}

.jz-type-item.active[data-type="income"] {
    border-color: var(--jz-success);
    background: #ecfdf5;
    color: var(--jz-success);
}

.jz-amount-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--jz-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s;
}

.jz-amount-input:focus-within {
    border-color: var(--jz-primary);
}

.jz-amount-input span {
    padding: 0 14px;
    font-size: 20px;
    font-weight: 700;
    color: var(--jz-muted);
    background: #f9fafb;
}

.jz-amount-input .form-control {
    border: none;
    box-shadow: none;
    font-size: 24px;
    font-weight: 700;
    height: 52px;
}

.jz-btn-save {
    background: var(--jz-primary);
    border-color: var(--jz-primary);
    border-radius: 8px;
    padding: 8px 24px;
}

/* 登录页 */
.jz-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.jz-login-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4f46e5 100%);
    z-index: 0;
}

.jz-login-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.jz-login-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

.jz-login-wrap {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.jz-login-card {
    background: rgba(255, 255, 255, .98);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
    padding: 40px 36px 32px;
    backdrop-filter: blur(10px);
}

.jz-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.jz-login-logo {
    width: 72px;
    height: 72px;
    line-height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--jz-primary), #764ba2);
    color: #fff;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, .4);
}

.jz-login-header h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--jz-text);
}

.jz-login-header p {
    margin: 0;
    color: var(--jz-muted);
    font-size: 14px;
}

.jz-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.jz-input-wrap {
    position: relative;
}

.jz-input-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jz-muted);
    font-size: 16px;
}

.jz-input-wrap .form-control {
    padding-left: 42px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--jz-border);
    font-size: 15px;
}

.jz-input-wrap .form-control:focus {
    border-color: var(--jz-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

.jz-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: var(--jz-muted);
}

.jz-checkbox input {
    margin-right: 8px;
}

.jz-login-btn {
    height: 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--jz-primary), #764ba2);
    border: none;
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, .35);
}

.jz-login-btn:hover {
    background: linear-gradient(135deg, var(--jz-primary-dark), #6d28d9);
    box-shadow: 0 10px 28px rgba(79, 70, 229, .45);
}

.jz-login-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 991px) {
    .jz-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .jz-stats-grid-3 {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 992px) {
    .jz-stats-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .jz-stats-grid-revenue {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .jz-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .jz-sidebar-open .jz-sidebar {
        transform: translateX(0);
    }

    .jz-sidebar-open .jz-mask {
        display: block;
    }

    .jz-main {
        margin-left: 0;
        padding-top: 56px;
    }

    .jz-header-mobile.visible-xs {
        display: flex !important;
    }

    .jz-content {
        padding: 12px;
    }

    .jz-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .jz-stat-card {
        padding: 14px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .jz-stat-value {
        font-size: 18px;
    }

    .jz-panel {
        padding: 16px;
    }

    .jz-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .jz-btn-add {
        width: 100%;
    }

    .jz-filter-form .form-group,
    .jz-filter-form .btn {
        width: 100%;
        margin-right: 0;
    }

    .jz-filter-form .form-control,
    .jz-input-icon .form-control {
        width: 100%;
        min-width: 0;
    }

    #bill-modal .modal-dialog {
        margin: 10px;
    }
}

@media (min-width: 768px) {
    .jz-mobile-list,
    .jz-mobile-pagination {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .jz-table-wrap {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .jz-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .jz-login-card {
        padding: 32px 24px 24px;
    }
}

.jz-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--jz-muted);
}

.jz-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: .4;
}

.jz-empty p {
    margin: 0;
    font-size: 14px;
}

.jz-thumb,
.table .jz-thumb.img-center {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--jz-border);
    margin-right: 4px;
    cursor: pointer;
    vertical-align: middle;
}

.jz-mobile-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.jz-mobile-images .jz-thumb-link {
    display: block;
}

.jz-mobile-images .jz-thumb {
    width: 56px;
    height: 56px;
    margin-right: 0;
}

/* 人员考勤日历 */
.jz-attendance-panel {
    overflow: visible;
}

.jz-attendance-panel.jz-panel {
    padding: 20px;
}

.jz-attendance-calendar-wrap {
    width: 100%;
    min-width: 0;
}

.jz-attendance-stats-wrap {
    margin-bottom: 16px;
}

.jz-attendance-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.jz-attendance-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jz-attendance-month {
    min-width: 120px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--jz-text);
}

.jz-attendance-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.jz-attendance-weekdays span {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--jz-muted);
    padding: 8px 0;
}

.jz-attendance-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.jz-cal-cell {
    min-height: 120px;
    background: var(--jz-card);
    border: 1px solid var(--jz-border);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}

.jz-cal-cell:hover {
    border-color: var(--jz-primary-light);
    box-shadow: 0 4px 16px rgba(79, 70, 229, .12);
}

.jz-cal-cell.is-other {
    opacity: .45;
    background: #f8fafc;
    cursor: default;
}

.jz-cal-cell.is-other:hover {
    border-color: var(--jz-border);
    box-shadow: none;
}

.jz-cal-cell.is-today {
    border-color: var(--jz-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, .15);
}

.jz-cal-day {
    font-size: 14px;
    font-weight: 700;
    color: var(--jz-text);
    margin-bottom: 6px;
}

.jz-cal-items {
    flex: 1;
    overflow: visible;
}

.jz-cal-item {
    font-size: 11px;
    line-height: 1.35;
    padding: 3px 6px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: #eef2ff;
    color: #3730a3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jz-cal-name {
    font-weight: 600;
    margin-right: 4px;
}

.jz-cal-shift {
    color: #6366f1;
}

.jz-attendance-day-list {
    margin-bottom: 12px;
}

.jz-attendance-empty {
    margin: 0 0 8px;
}

.jz-attendance-record {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--jz-bg);
    border-radius: 8px;
    border: 1px solid var(--jz-border);
}

.jz-attendance-record-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.jz-tag-primary {
    background: #eef2ff;
    color: #4338ca;
}

@media (max-width: 767px) {
    .jz-attendance-panel.jz-panel {
        padding: 12px;
    }

    .jz-attendance-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .jz-attendance-head .jz-panel-title {
        font-size: 16px;
        text-align: center;
        margin: 0;
    }

    .jz-attendance-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .jz-attendance-nav .btn-sm {
        padding: 6px 10px;
    }

    .jz-attendance-month {
        font-size: 15px;
        min-width: 96px;
        flex: 1;
        max-width: 140px;
    }

    .jz-attendance-stats-wrap {
        margin-bottom: 10px;
    }

    .jz-attendance-stats-wrap .jz-stats-grid-2 {
        gap: 8px;
    }

    .jz-attendance-stats-wrap .jz-stat-card {
        padding: 10px;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 8px;
    }

    .jz-attendance-stats-wrap .jz-stat-card:hover {
        transform: none;
    }

    .jz-attendance-stats-wrap .jz-stat-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
        border-radius: 8px;
        margin-right: 0;
    }

    .jz-attendance-stats-wrap .jz-stat-label {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .jz-attendance-stats-wrap .jz-stat-value {
        font-size: 17px;
    }

    .jz-attendance-stats-wrap .jz-stat-sub {
        font-size: 10px;
        margin-top: 2px;
        line-height: 1.3;
    }

    .jz-attendance-panel .jz-share-tip {
        font-size: 12px;
        padding: 8px 10px;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .jz-attendance-weekdays {
        gap: 2px;
        margin-bottom: 4px;
        padding: 0;
    }

    .jz-attendance-weekdays span {
        font-size: 11px;
        padding: 4px 0;
    }

    .jz-attendance-grid {
        gap: 3px;
    }

    .jz-cal-cell {
        min-height: 56px;
        padding: 3px 2px;
        border-radius: 6px;
    }

    .jz-cal-day {
        font-size: 12px;
        margin-bottom: 2px;
        text-align: center;
        line-height: 1.2;
    }

    .jz-cal-items {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .jz-cal-item {
        font-size: 9px;
        line-height: 1.2;
        padding: 1px 2px;
        margin-bottom: 0;
        border-radius: 3px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .jz-cal-name {
        font-size: 9px;
        font-weight: 700;
        margin-right: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .jz-cal-shift {
        font-size: 8px;
        line-height: 1.15;
        color: #6366f1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .jz-attendance-modal .modal-dialog {
        margin: 8px;
        width: auto;
        max-width: none;
    }

    .jz-attendance-modal .modal-body {
        padding: 14px 16px;
    }

    .jz-attendance-modal .modal-header {
        padding: 12px 16px;
    }

    .jz-attendance-modal .form-horizontal .control-label {
        text-align: left;
        padding-top: 0;
        margin-bottom: 6px;
        font-size: 13px;
    }

    .jz-attendance-modal .form-group {
        margin-bottom: 14px;
    }

    .jz-attendance-modal .jz-shift-switch.jz-type-switch {
        margin-bottom: 0;
        gap: 8px;
    }

    .jz-attendance-modal .jz-type-item {
        padding: 10px 6px;
        font-size: 13px;
    }

    .jz-attendance-modal .jz-type-item i {
        margin-right: 4px;
    }

    .jz-attendance-modal .jz-btn-save {
        width: 100%;
    }

    .jz-attendance-record {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .jz-attendance-record-main {
        flex: 1;
        min-width: 0;
    }

    .jz-attendance-record-actions {
        flex-shrink: 0;
        margin-left: auto;
    }
}

@media (max-width: 360px) {
    .jz-attendance-grid {
        gap: 2px;
    }

    .jz-cal-cell {
        min-height: 50px;
        padding: 2px 1px;
    }

    .jz-cal-day {
        font-size: 11px;
    }

    .jz-cal-name {
        font-size: 8px;
    }

    .jz-cal-shift {
        font-size: 7px;
    }

    .jz-attendance-stats-wrap .jz-stat-value {
        font-size: 15px;
    }
}

/* 基础设置 */
.jz-setting-panel {
    max-width: 960px;
}

.jz-setting-form {
    padding: 8px 4px 24px;
}

.jz-setting-section {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--jz-card);
    border: 1px solid var(--jz-border);
    border-radius: var(--jz-radius);
}

.jz-setting-section-title {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--jz-text);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--jz-border);
}

.jz-setting-section-title i {
    margin-right: 8px;
    color: var(--jz-primary);
}

.jz-setting-actions {
    padding: 8px 4px;
}

.jz-setting-actions .btn-lg {
    min-width: 160px;
    border-radius: 10px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .jz-setting-section {
        padding: 16px;
    }

    .jz-setting-form .control-label {
        text-align: left;
        margin-bottom: 6px;
    }
}

/* 营业额统计 */
.jz-stats-grid-revenue {
    grid-template-columns: repeat(3, 1fr);
}

.jz-revenue-stats-compact {
    gap: 10px;
    margin-bottom: 12px;
}

.jz-revenue-stats-compact .jz-stat-card {
    padding: 12px 14px;
    gap: 10px;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}

.jz-revenue-stats-compact .jz-stat-card:hover {
    transform: translateY(-1px);
}

.jz-revenue-stats-compact .jz-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 8px;
}

.jz-revenue-stats-compact .jz-stat-label {
    font-size: 12px;
    margin-bottom: 2px;
}

.jz-revenue-stats-compact .jz-stat-value {
    font-size: 18px;
    line-height: 1.2;
}

.jz-revenue-stats-compact .jz-stat-sub {
    font-size: 11px;
    line-height: 1.3;
}

.jz-revenue-channel.is-meituan {
    border-left-color: #ffc300;
}

.jz-revenue-channel.is-meituan .jz-revenue-channel-label {
    color: #b45309;
}

.jz-revenue-fee {
    font-size: 12px;
    line-height: 1.4;
}

.jz-revenue-net {
    font-size: 13px;
    font-weight: 600;
    color: var(--jz-success);
    line-height: 1.4;
}

.jz-revenue-total {
    font-weight: 700;
    color: var(--jz-text);
}

.jz-table-revenue td {
    vertical-align: middle !important;
    min-width: 90px;
}

.jz-salary-payable {
    font-size: 16px;
    font-weight: 700;
    color: var(--jz-success);
}

.jz-salary-share {
    font-size: 16px;
    font-weight: 700;
    color: #1677ff;
}

.jz-salary-receive {
    font-size: 17px;
    font-weight: 700;
    color: #b45309;
}

.jz-salary-month-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jz-salary-month {
    border: 1px solid var(--jz-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.jz-salary-month-head {
    padding: 14px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid var(--jz-border);
}

.jz-salary-month-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--jz-text);
}

.jz-salary-month-title i {
    margin-right: 6px;
    color: var(--jz-primary);
}

.jz-salary-month-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: var(--jz-muted);
}

.jz-salary-month-stats strong {
    color: var(--jz-text);
    font-weight: 700;
}

.jz-salary-month-stats .is-highlight strong {
    color: #1677ff;
}

.jz-salary-month-table-wrap {
    padding: 0 12px 12px;
}

.jz-salary-month-table {
    margin-bottom: 0;
}

.jz-salary-month-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--jz-border);
    white-space: nowrap;
}

.jz-salary-month-table td {
    vertical-align: middle !important;
}

.jz-table-salary td {
    vertical-align: middle !important;
}

.jz-salary-mobile-item {
    border-left: 3px solid var(--jz-success);
}

.jz-salary-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.jz-salary-mobile-month {
    font-weight: 600;
    color: var(--jz-text);
}

.jz-salary-mobile-payable {
    font-size: 18px;
    font-weight: 700;
    color: var(--jz-success);
}

.jz-salary-mobile-body {
    font-size: 13px;
    color: var(--jz-muted);
}

.jz-salary-mobile-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    line-height: 1.5;
}

.jz-salary-mobile-row strong {
    color: var(--jz-text);
}

@media (max-width: 767px) {
    .jz-salary-month-head {
        padding: 12px;
    }

    .jz-salary-month-stats {
        flex-direction: column;
        gap: 6px;
    }

    .jz-salary-month-table-wrap {
        padding: 0 8px 8px;
        overflow-x: auto;
    }

    .jz-salary-month-table {
        min-width: 680px;
    }
}

@media (max-width: 991px) {
    .jz-stats-grid-revenue {
        grid-template-columns: repeat(2, 1fr);
    }

    .jz-revenue-stats-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 营业额 · 手机端统计缩小 */
@media (max-width: 767px) {
    .jz-revenue-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-bottom: 10px;
    }

    .jz-revenue-stats .jz-stat-card {
        padding: 8px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
        box-shadow: 0 1px 6px rgba(15, 23, 42, .06);
    }

    .jz-revenue-stats .jz-stat-card:hover {
        transform: none;
    }

    .jz-revenue-stats .jz-stat-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 6px;
    }

    .jz-revenue-stats .jz-stat-label {
        font-size: 10px;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .jz-revenue-stats .jz-stat-value {
        font-size: 14px;
        line-height: 1.2;
    }

    .jz-revenue-stats .jz-stat-sub {
        font-size: 9px;
        margin-top: 2px;
        line-height: 1.25;
    }
}

@media (max-width: 360px) {
    .jz-revenue-stats .jz-stat-value {
        font-size: 13px;
    }

    .jz-revenue-stats .jz-stat-sub {
        font-size: 8px;
    }
}

/* 营业额 · 手机端列表 */
.jz-revenue-mobile-item {
    border-left-color: var(--jz-primary);
    padding: 14px;
}

.jz-revenue-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.jz-revenue-mobile-date-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jz-revenue-mobile-date {
    font-size: 13px;
    color: var(--jz-muted);
    white-space: nowrap;
}

.jz-revenue-mobile-date i {
    margin-right: 4px;
}

.jz-revenue-weekday {
    color: var(--jz-text);
    font-weight: 600;
    font-size: 13px;
}

.jz-table-revenue td[data-field="record_date"] {
    white-space: nowrap;
}

.jz-revenue-mobile-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--jz-primary);
    white-space: nowrap;
}

.jz-revenue-mobile-summary {
    font-size: 13px;
    color: var(--jz-text);
    margin-bottom: 10px;
}

.jz-revenue-mobile-summary strong {
    color: var(--jz-success);
}

.jz-revenue-mobile-fee {
    color: var(--jz-muted);
    margin-left: 6px;
    font-size: 12px;
}

.jz-revenue-mobile-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}

.jz-revenue-channel {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid var(--jz-border);
}

.jz-revenue-channel.is-alipay {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.jz-revenue-channel.is-wechat {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.jz-revenue-channel.is-douyin {
    background: #f5f5f5;
    border-color: #d4d4d4;
}

.jz-revenue-channel-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--jz-muted);
    margin-bottom: 4px;
}

.jz-revenue-channel-val {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--jz-text);
    line-height: 1.2;
}

.jz-revenue-channel-net {
    display: block;
    font-size: 10px;
    color: var(--jz-success);
    margin-top: 2px;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .jz-revenue-mobile-channels {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .jz-revenue-channel {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 10px 12px;
    }

    .jz-revenue-channel-label {
        margin-bottom: 0;
        min-width: 48px;
    }

    .jz-revenue-channel-val {
        flex: 1;
        text-align: center;
    }

    .jz-revenue-channel-net {
        margin-top: 0;
        min-width: 72px;
        text-align: right;
    }
}

@media (max-width: 575px) {
    .jz-stats-grid-revenue:not(.jz-revenue-stats) {
        grid-template-columns: 1fr;
    }
}

/* 座位计时 */
.jz-stats-grid-seat {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .jz-stats-grid-seat {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 座位计时 · 手机端统计缩小 */
@media (max-width: 767px) {
    .jz-stats-grid-seat {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin-bottom: 12px;
    }

    .jz-stats-grid-seat .jz-stat-card {
        padding: 8px 4px;
        gap: 4px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: 8px;
        box-shadow: 0 1px 6px rgba(15, 23, 42, .06);
    }

    .jz-stats-grid-seat .jz-stat-card:hover {
        transform: none;
        box-shadow: 0 1px 6px rgba(15, 23, 42, .06);
    }

    .jz-stats-grid-seat .jz-stat-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
        border-radius: 6px;
    }

    .jz-stats-grid-seat .jz-stat-label {
        font-size: 10px;
        margin-bottom: 0;
        line-height: 1.2;
        white-space: nowrap;
    }

    .jz-stats-grid-seat .jz-stat-value {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.1;
    }
}

@media (max-width: 360px) {
    .jz-stats-grid-seat {
        gap: 4px;
    }

    .jz-stats-grid-seat .jz-stat-card {
        padding: 6px 2px;
    }

    .jz-stats-grid-seat .jz-stat-icon {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .jz-stats-grid-seat .jz-stat-label {
        font-size: 9px;
    }

    .jz-stats-grid-seat .jz-stat-value {
        font-size: 14px;
    }
}

.jz-seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.jz-seat-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--jz-muted);
}

.jz-seat-legend-item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.jz-seat-legend-item.is-idle::before { background: #e2e8f0; }
.jz-seat-legend-item.is-active::before { background: #3b82f6; }
.jz-seat-legend-item.is-fullday::before { background: #8b5cf6; }
.jz-seat-legend-item.is-expired::before { background: #ef4444; }

.jz-seat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .jz-seat-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.jz-seat-card {
    position: relative;
    background: var(--jz-card);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}

.jz-seat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

/* 空闲：灰、虚线、弱化 */
.jz-seat-card.is-idle {
    border: 2px dashed #cbd5e1;
    background: #f1f5f9;
    opacity: .82;
}

.jz-seat-card.is-idle .jz-seat-no {
    color: #94a3b8;
    font-size: 15px;
}

.jz-seat-card.is-idle .jz-seat-state,
.jz-seat-card.is-idle .jz-seat-remain {
    color: #94a3b8;
    font-weight: 500;
}

.jz-seat-card.is-idle:hover {
    opacity: 1;
    border-color: #94a3b8;
    background: #e2e8f0;
}

/* 计时中：实心蓝框 + 阴影 + 角标 */
.jz-seat-card.is-active {
    border: 3px solid #2563eb;
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
    box-shadow: 0 4px 20px rgba(37, 99, 235, .35);
    opacity: 1;
    transform: scale(1.02);
}

.jz-seat-card.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.jz-seat-card.is-active .jz-seat-no {
    color: #1d4ed8;
    font-size: 18px;
}

.jz-seat-card.is-active .jz-seat-state {
    color: #1e40af;
    font-weight: 600;
}

.jz-seat-card.is-active .jz-seat-remain {
    font-size: 20px;
    font-weight: 800;
    color: #1d4ed8;
    letter-spacing: 1px;
}

.jz-seat-card.is-active:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, .45);
}

/* 全天：紫色强调 */
.jz-seat-card.is-fullday {
    border: 3px solid #7c3aed;
    background: linear-gradient(180deg, #ede9fe 0%, #f5f3ff 100%);
    box-shadow: 0 4px 20px rgba(124, 58, 237, .3);
    opacity: 1;
    transform: scale(1.02);
}

.jz-seat-card.is-fullday::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.jz-seat-card.is-fullday .jz-seat-no {
    color: #6d28d9;
    font-size: 18px;
}

.jz-seat-card.is-fullday .jz-seat-state {
    color: #5b21b6;
    font-weight: 600;
}

.jz-seat-card.is-fullday .jz-seat-remain {
    font-size: 15px;
    font-weight: 700;
    color: #7c3aed;
}

/* 已到点：红色闪烁 */
.jz-seat-card.is-expired {
    border: 3px solid #dc2626;
    background: linear-gradient(180deg, #fecaca 0%, #fef2f2 100%);
    box-shadow: 0 4px 20px rgba(220, 38, 38, .4);
    opacity: 1;
    transform: scale(1.03);
    animation: jz-seat-pulse 1s ease-in-out infinite;
}

.jz-seat-card.is-expired::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #dc2626;
}

.jz-seat-card.is-expired .jz-seat-no {
    color: #b91c1c;
    font-size: 18px;
}

.jz-seat-card.is-expired .jz-seat-remain {
    font-size: 16px;
    font-weight: 800;
    color: #dc2626;
}

.jz-seat-live-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .5px;
}

.jz-seat-card.is-active .jz-seat-live-badge {
    background: #2563eb;
    color: #fff;
    animation: jz-seat-badge-blink 1.5s ease-in-out infinite;
}

.jz-seat-card.is-fullday .jz-seat-live-badge {
    background: #7c3aed;
    color: #fff;
}

.jz-seat-card.is-expired .jz-seat-live-badge {
    background: #dc2626;
    color: #fff;
    animation: jz-seat-badge-blink .8s ease-in-out infinite;
}

@keyframes jz-seat-badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .65; }
}

.jz-seat-no {
    font-size: 16px;
    font-weight: 700;
    color: var(--jz-text);
}

.jz-seat-unit {
    font-size: 12px;
    font-weight: 600;
    margin-left: 2px;
}

.jz-seat-card.is-active .jz-seat-unit,
.jz-seat-card.is-fullday .jz-seat-unit,
.jz-seat-card.is-expired .jz-seat-unit {
    font-size: 13px;
}

.jz-seat-state {
    font-size: 12px;
    color: var(--jz-muted);
}

.jz-seat-remain {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--jz-primary);
}

.jz-seat-card.is-expired .jz-seat-remain {
    color: #ef4444;
}

.jz-seat-card.is-fullday .jz-seat-remain {
    color: #7c3aed;
}

@keyframes jz-seat-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(220, 38, 38, .4); }
    50% { box-shadow: 0 4px 28px rgba(220, 38, 38, .65), 0 0 0 6px rgba(239, 68, 68, .2); }
}

/* 顾客端座位看板（免登录） */
.jz-seatboard {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.jz-seatboard-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.jz-seatboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.jz-seatboard-card {
    cursor: default;
    pointer-events: none;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 10px;
}

.jz-seatboard-card:hover {
    transform: none;
}

.jz-seatboard-card .jz-seat-no {
    margin-bottom: 8px;
}

.jz-seatboard-card .jz-seat-remain {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.jz-seatboard-card.is-idle .jz-seat-remain {
    font-size: 18px;
    font-weight: 500;
    color: var(--jz-muted);
}

.jz-seatboard-card.is-active .jz-seat-remain {
    color: #2563eb;
}

.jz-seatboard-card.is-expired .jz-seat-remain {
    color: #dc2626;
}

.jz-seatboard-card.is-fullday .jz-seat-remain {
    font-size: 18px;
    color: #7c3aed;
}

.jz-seatboard-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    color: var(--jz-muted);
    font-size: 15px;
}

@media (max-width: 767px) {
    .jz-seatboard-wrap {
        padding: 12px;
    }

    .jz-seatboard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .jz-seatboard-card {
        min-height: 84px;
        padding: 10px 6px;
    }

    .jz-seatboard-card .jz-seat-no {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .jz-seatboard-card .jz-seat-remain {
        font-size: 17px;
    }

    .jz-seatboard-card.is-idle .jz-seat-remain,
    .jz-seatboard-card.is-fullday .jz-seat-remain {
        font-size: 15px;
    }
}

.jz-duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px 0;
}

.jz-duration-btn {
    min-width: 88px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
}

.jz-seat-detail-body {
    padding: 8px 0;
}

.jz-seat-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--jz-border);
    font-size: 15px;
}

.jz-seat-detail-row span {
    color: var(--jz-muted);
}

.jz-seat-remaining {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--jz-primary);
}

.jz-seat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.jz-seat-badge.is-idle { background: #f1f5f9; color: #64748b; }
.jz-seat-badge.is-active { background: #dbeafe; color: #2563eb; }
.jz-seat-badge.is-fullday { background: #ede9fe; color: #7c3aed; }
.jz-seat-badge.is-expired { background: #fee2e2; color: #dc2626; }

/* 到时全屏红色提醒 */
.jz-seat-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(220, 38, 38, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: jz-alert-bg-pulse 1.2s ease-in-out infinite;
}

.jz-seat-alert-overlay.is-visible {
    display: flex !important;
}

@keyframes jz-alert-bg-pulse {
    0%, 100% { background: rgba(220, 38, 38, .92); }
    50% { background: rgba(185, 28, 28, .96); }
}

.jz-seat-alert-box {
    text-align: center;
    color: #fff;
    max-width: 520px;
    width: 100%;
    margin: auto;
    padding: 12px 0 24px;
}

.jz-seat-alert-icon {
    font-size: 72px;
    margin-bottom: 16px;
    animation: jz-alert-shake .6s ease-in-out infinite;
}

@keyframes jz-alert-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-12deg); }
    75% { transform: rotate(12deg); }
}

.jz-seat-alert-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.jz-seat-alert-seat {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

.jz-seat-alert-sub {
    font-size: 18px;
    opacity: .9;
    margin-bottom: 32px;
}

.jz-seat-alert-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.jz-seat-alert-btn {
    min-width: 148px;
    min-height: 52px;
    font-weight: 700;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    color: #991b1b !important;
}

.jz-seat-alert-btn-primary {
    background: #fff !important;
    color: #991b1b !important;
}

.jz-seat-alert-btn-primary:hover,
.jz-seat-alert-btn-primary:focus {
    background: #fef2f2 !important;
    color: #7f1d1d !important;
}

.jz-seat-alert-btn-secondary {
    background: rgba(255, 255, 255, .2) !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.jz-seat-alert-btn-secondary:hover,
.jz-seat-alert-btn-secondary:focus {
    background: rgba(255, 255, 255, .35) !important;
    color: #fff !important;
}

@media (max-width: 575px) {
    .jz-seat-alert-title {
        font-size: 32px;
    }

    .jz-seat-alert-seat {
        font-size: 48px;
    }

    .jz-seat-alert-icon {
        font-size: 56px;
    }

    .jz-seat-alert-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .jz-seat-alert-btn {
        width: 100%;
    }
}

/* 冲卡管理 */
.jz-punch-btn-lg {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    min-height: 44px;
}

.jz-punch-btn-secondary {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    min-height: 44px;
}

.jz-punch-op-btn {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
}

.jz-punch-op-btn-secondary {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
}

.jz-punch-list-empty {
    text-align: center;
    padding: 40px 16px;
    color: #94a3b8;
}

.jz-punch-list-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.jz-punch-list-empty p {
    margin: 0;
    font-size: 14px;
}

.jz-punch-result-wrap {
    padding: 0 0 8px;
}

.jz-punch-quick-panel {
    margin-bottom: 16px;
}

.jz-punch-log-section {
    border-top: 1px solid var(--jz-border);
    margin: 0 16px 16px;
    padding-top: 16px;
}

.jz-punch-log-section-head {
    margin-bottom: 12px;
}

.jz-punch-log-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--jz-text);
}

.jz-punch-log-section .jz-punch-list-empty {
    padding: 24px 16px;
}

.jz-punch-log-section .jz-mobile-list {
    padding: 0;
}

.jz-punch-suffix-input {
    width: 120px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}

.jz-punch-quick-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: 0 16px 16px;
}

.jz-punch-quick-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 16px;
}

.jz-punch-quick-card {
    border: 1px solid var(--jz-border);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.jz-punch-quick-card.is-empty {
    opacity: .75;
    background: #f8fafc;
}

.jz-punch-quick-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 8px;
}

.jz-punch-quick-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.jz-punch-quick-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--jz-text);
    line-height: 1.3;
}

.jz-punch-quick-mobile {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.jz-punch-quick-times {
    font-size: 15px;
    margin-bottom: 6px;
}

.jz-punch-quick-times strong {
    font-size: 22px;
    color: var(--jz-primary);
}

.jz-punch-quick-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.jz-punch-quick-card-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
}

.jz-tag-warning {
    background: #fef3c7;
    color: #b45309;
}

.jz-tag-success {
    background: #dcfce7;
    color: #15803d;
}

.jz-log-change-recharge {
    color: #15803d;
}

.jz-log-change-punch {
    color: #b45309;
}

.jz-punch-log-mobile-item {
    border-left: 3px solid #94a3b8;
}

.jz-punch-log-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.jz-punch-log-mobile-body {
    font-size: 13px;
    line-height: 1.6;
}

.jz-punch-log-mobile-body .is-recharge {
    color: #15803d;
}

.jz-punch-log-mobile-body .is-punch {
    color: #b45309;
}

.jz-table-punchcard-log td {
    vertical-align: middle !important;
}

.jz-punch-remain {
    color: var(--jz-primary);
    font-size: 16px;
}

.jz-punch-mobile-item {
    border-left: 3px solid var(--jz-primary);
}

.jz-punch-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.jz-punch-mobile-body {
    margin-bottom: 10px;
    font-size: 14px;
}

.jz-punch-mobile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.jz-punch-mobile-actions .btn {
    min-height: 44px;
}

.jz-table-punchcard td {
    vertical-align: middle !important;
}

@media (max-width: 767px) {
    .jz-punch-quick-form .form-group,
    .jz-punch-quick-form .btn {
        width: 100%;
        margin-right: 0;
    }

    .jz-punch-suffix-input {
        width: 100%;
    }

    .jz-punch-quick-list {
        grid-template-columns: 1fr;
        padding: 0 12px 12px;
    }
}
