/* 婚礼当天流程执行表 /css/tools/wedding-timeline-runbook.css */

.wtr-total-box {
    border-radius: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(244, 114, 182, 0.08));
    border: 1px solid rgba(236, 72, 153, 0.3);
    margin-bottom: 12px;
}
.wtr-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wtr-total-row .k { font-size: 13px; font-weight: 800; color: var(--c-text-sub); }
.wtr-total-row .v { font-size: 24px; font-weight: 900; color: #db2777; line-height: 1.2; }
.wtr-cond { font-size: 12px; color: var(--c-text-muted); margin-top: 6px; }

/* 提醒 */
.wtr-notes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.wtr-note {
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12.5px;
    line-height: 1.7;
}
.wtr-note.is-warn {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #b45309;
}
.wtr-note.is-info {
    background: rgba(236, 72, 153, 0.07);
    border: 1px solid rgba(236, 72, 153, 0.25);
    color: var(--c-text-sub);
}

/* 时间轴 */
.wtr-timeline { padding: 2px 2px 4px; }
.wtr-sec-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #db2777;
    margin: 14px 0 6px;
    padding-left: 2px;
    letter-spacing: 0.5px;
}
.wtr-sec-title:first-child { margin-top: 2px; }

.wtr-item {
    display: grid;
    grid-template-columns: 92px 18px 1fr;
    gap: 8px;
    align-items: start;
    padding: 4px 0;
}
.wtr-time {
    font-size: 12px;
    font-weight: 800;
    color: var(--c-text-sub);
    padding-top: 9px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    line-height: 1.4;
}
.wtr-dot {
    position: relative;
    width: 18px;
    justify-self: center;
    height: 100%;
    min-height: 40px;
}
.wtr-dot::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(236, 72, 153, 0.22);
    transform: translateX(-50%);
}
.wtr-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 12px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ec4899;
    border: 2px solid var(--c-surface, #fff);
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.25);
    z-index: 1;
}
.wtr-item:last-child .wtr-dot::before { bottom: 50%; }

.wtr-card {
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 8px 12px;
    background: var(--c-surface-soft);
    margin-bottom: 2px;
}
.wtr-item.is-point .wtr-card { background: transparent; border-style: dashed; }
.wtr-item.is-anchor .wtr-card {
    border-color: rgba(236, 72, 153, 0.45);
    background: rgba(236, 72, 153, 0.07);
}
.wtr-item.is-anchor .wtr-dot::after { background: #db2777; width: 11px; height: 11px; }
.wtr-name { font-size: 13px; font-weight: 700; color: var(--c-text); line-height: 1.5; }
.wtr-owner { font-size: 11.5px; color: var(--c-text-muted); margin-top: 2px; }
.wtr-key {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    color: #fff;
    background: #db2777;
    border-radius: 99px;
    padding: 1px 8px;
    margin-bottom: 4px;
}

/* 纯文本区 */
.wtr-textarea {
    width: 100%;
    min-height: 240px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.9;
    font-family: ui-monospace, Menlo, Consolas, "Microsoft YaHei", monospace;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    resize: vertical;
}
.wtr-textarea:focus { outline: none; border-color: rgba(236, 72, 153, 0.5); }
.wtr-text-actions { display: flex; gap: 10px; margin-top: 10px; }
.wtr-text-actions .btn { flex: 1; }

/* 自定义环节行 */
.wtr-crow {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr 0.9fr;
    gap: 8px;
    margin-bottom: 8px;
}
.wtr-crow .calc-input { font-size: 12.5px; }
.wtr-crow select.calc-input { padding-right: 6px; }

.wtr-adv-toggle {
    background: none;
    border: none;
    color: var(--c-text-muted);
    font-size: 12.5px;
    cursor: pointer;
    padding: 4px 0;
    width: 100%;
    text-align: left;
}
.wtr-adv-toggle:hover { color: #db2777; }

.wtr-toast {
    position: fixed;
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 99px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    max-width: 86vw;
    text-align: center;
}
.wtr-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

[data-theme="dark"] .wtr-total-row .v { color: #f472b6; }
[data-theme="dark"] .wtr-sec-title { color: #f472b6; }
[data-theme="dark"] .wtr-note.is-warn { color: #fbbf24; }
[data-theme="dark"] .wtr-key { background: #ec4899; }
[data-theme="dark"] .wtr-toast { background: rgba(226, 232, 240, 0.95); color: #0f172a; }

@media print {
    .detail-breadcrumb, .calc-layout .calc-card:first-child, .calc-table-card,
    .detail-tabs, .tab-panel, .related, .calc-disclaim, .wtr-text-actions,
    .wtr-toast, .ft-btns, .btn { display: none !important; }
    .wtr-item { break-inside: avoid; }
}

@media (max-width: 640px) {
    .wtr-total-row .v { font-size: 20px; }
    .wtr-item { grid-template-columns: 78px 16px 1fr; gap: 6px; }
    .wtr-time { font-size: 11px; }
    .wtr-crow { grid-template-columns: 1fr 1fr; }
}
