/* ======================================================================
 * 29 家装质保期限台账 · 日历 / 甘特式台账（独立版式）
 * 月份刻度带 + 质保条 + 临期分级 + 提醒节点 + 凭证表
 * ====================================================================== */
.h3-p29 {
    --h3-accent: #2c7458;
    --h3-accent-d: #8dd3ae;
    --h3-accent-2: #a97a28;
    --h3-accent-2-d: #e3be76;
}
.wl { max-width: 1180px; margin: 0 auto; padding: 0 26px 64px; }

/* ---------- 首屏：日历 ---------- */
.wl-hero {
    margin-top: 22px; border: 1px solid var(--h3-line); border-radius: 16px; overflow: hidden;
    background: var(--h3-card); box-shadow: var(--h3-shadow);
}
.wl-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; align-items: center; padding: 30px 34px 24px; }
.wl-hero .h3-title em { color: var(--h3-accent); }
.wl-cal { border: 1px solid var(--h3-line); border-radius: 10px; overflow: hidden; background: var(--h3-card-2); }
.wl-cal-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--h3-accent); color: #fff; font-size: 13px; font-weight: 700; }
:root[data-theme="dark"] .h3-p29 .wl-cal-h { color: #101713; }
.wl-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 12px; }
.wl-cal-grid span { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--h3-num); font-size: 11px; color: var(--h3-sub); border-radius: 5px; }
.wl-cal-grid span.hd { font-size: 10px; color: var(--h3-faint); aspect-ratio: auto; }
.wl-cal-grid span.is-today { background: var(--h3-accent); color: #fff; font-weight: 700; }
:root[data-theme="dark"] .h3-p29 .wl-cal-grid span.is-today { color: #101713; }
.wl-cal-grid span.is-mark { background: var(--h3-warn-soft); color: var(--h3-warn); font-weight: 700; }
.wl-cal-f { padding: 8px 14px; border-top: 1px dashed var(--h3-line); font-size: 11.5px; color: var(--h3-faint); }

.wl-quick { margin: 0 24px 24px; padding: 18px 20px; border: 1px solid var(--h3-line); border-top: 3px solid var(--h3-accent); border-radius: 10px; background: var(--h3-card-2); }
.wl-quick .h3-fields { grid-template-columns: repeat(5, minmax(0,1fr)); }
.wl-quick .h3-btns { margin-top: 16px; }

/* ---------- 工作区 ---------- */
.wl-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px; margin-top: 22px; }
.wl-ref { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.wl-ref button { border: 1px solid var(--h3-line); border-radius: 999px; padding: 6px 11px; background: var(--h3-card-2); color: var(--h3-sub); font-size: 12px; cursor: pointer; font-family: var(--h3-font); }
.wl-ref button:hover { border-color: var(--h3-accent); color: var(--h3-accent); }
.wl-row { display: grid; grid-template-columns: 24px minmax(0,1.2fr) minmax(0,1fr) 76px minmax(0,1fr) minmax(0,1fr) 26px; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--h3-line-2); }
.wl-row.wl-head { font-size: 11px; font-weight: 700; color: var(--h3-faint); border-bottom: 1px solid var(--h3-line); }
.wl-row input { width: 100%; padding: 7px 8px; font-size: 12.5px; border: 1px solid var(--h3-line); border-radius: 6px; background: var(--h3-card-2); color: var(--h3-ink); }
:root[data-theme="dark"] .h3-p29 .wl-row input { background: #131b17; }
.wl-row .wl-no { font-family: var(--h3-num); color: var(--h3-faint); font-size: 11.5px; text-align: center; }
.wl-row .wl-del { border: 0; background: transparent; color: var(--h3-bad); cursor: pointer; font-size: 17px; }
.wl-bulk { margin-top: 18px; }
.wl-bulk .h3-textarea { min-height: 76px; font-family: var(--h3-num); font-size: 12.5px; }
.wl-today { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.wl-today input { padding: 8px 10px; border: 1px solid var(--h3-line); border-radius: 7px; background: var(--h3-card-2); color: var(--h3-ink); font-family: var(--h3-num); font-size: 13px; }
:root[data-theme="dark"] .h3-p29 .wl-today input { background: #131b17; }

.wl-side { display: flex; flex-direction: column; gap: 18px; }
.wl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wl-stats div { padding: 11px 6px; text-align: center; border: 1px solid var(--h3-line); border-radius: 9px; background: var(--h3-card-2); }
.wl-stats b { display: block; font-family: var(--h3-num); font-size: 21px; color: var(--h3-accent); }
.wl-stats span { font-size: 11px; color: var(--h3-faint); }
.wl-bar-item { margin-bottom: 12px; }
.wl-bar-item-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 5px; }
.wl-bar-item-h b { color: var(--h3-ink); font-weight: 650; }
.wl-bar-track { height: 10px; border-radius: 999px; background: var(--h3-line-2); overflow: hidden; position: relative; }
.wl-bar-track i { display: block; height: 100%; border-radius: 999px; background: var(--h3-accent); }
.wl-bar-item.is-soon .wl-bar-track i { background: var(--h3-warn); }
.wl-bar-item.is-expired .wl-bar-track i { background: var(--h3-bad); }
.wl-bar-note { font-size: 11.5px; color: var(--h3-faint); margin-top: 4px; }
.wl-mile { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--h3-line); font-size: 12px; }
.wl-mile:last-child { border-bottom: 0; }
.wl-prose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wl-print-title { display: none; }

@media (max-width: 1000px) {
    .wl-hero-grid, .wl-layout, .wl-prose-cols { grid-template-columns: 1fr; }
    .wl-quick .h3-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .wl-cal { max-width: 320px; }
    .wl-row { grid-template-columns: 22px 1fr 1fr 70px 24px; }
}
@media (max-width: 620px) {
    .wl { padding: 0 16px 48px; }
    .wl-hero-grid { padding: 20px 16px; }
    .wl-quick { margin: 0 12px 16px; padding: 14px; }
    .wl-quick .h3-fields { grid-template-columns: 1fr; }
}
@media print { .h3-p29 .wl-print-title { display: block; font-size: 18px; font-weight: 700; margin-bottom: 12px; } }
