/* 装修延期违约金 /css/tools/renovation-delay-penalty.css */

.rdp-total-box {
    border-radius: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(217, 119, 6, 0.3);
    margin-bottom: 12px;
}
.rdp-level {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 8px;
}
.rdp-level.is-ok { background: rgba(16, 185, 129, 0.12); color: #059669; }
.rdp-level.is-low { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.rdp-level.is-high { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.rdp-level.is-none { background: rgba(100, 116, 139, 0.14); color: #64748b; }

.rdp-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rdp-total-row .k { font-size: 13px; font-weight: 800; color: var(--c-text-sub); }
.rdp-total-row .v { font-size: 32px; font-weight: 900; color: #d97706; line-height: 1.1; }
.rdp-head { font-size: 12.5px; color: var(--c-text-sub); margin-top: 4px; }
.rdp-cond { font-size: 12px; color: var(--c-text-muted); margin-top: 6px; }

.rdp-block-title { font-size: 13px; font-weight: 800; color: var(--c-text-sub); margin: 14px 0 8px; }

.rdp-detail {
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 6px 14px;
    margin-bottom: 12px;
    background: var(--c-surface-soft);
}
.rdp-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 12.5px;
    color: var(--c-text-sub);
    line-height: 2.1;
    border-bottom: 1px dashed var(--c-border);
}
.rdp-row:last-child { border-bottom: none; }
.rdp-row .v { font-weight: 700; color: var(--c-text); white-space: nowrap; }
.rdp-row.is-muted { color: var(--c-text-muted); font-size: 12px; }

.rdp-advice {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--c-text-sub);
    margin-bottom: 12px;
    background: rgba(217, 119, 6, 0.07);
    border: 1px solid rgba(217, 119, 6, 0.28);
}

.rdp-evidence {
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--c-surface-soft);
}
.rdp-ev-item {
    font-size: 12px;
    line-height: 2;
    color: var(--c-text-muted);
}

.rdp-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;
}
.rdp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

[data-theme="dark"] .rdp-total-row .v { color: #fbbf24; }
[data-theme="dark"] .rdp-level.is-ok { color: #34d399; }
[data-theme="dark"] .rdp-level.is-low { color: #fbbf24; }
[data-theme="dark"] .rdp-level.is-high { color: #f87171; }
[data-theme="dark"] .rdp-level.is-none { color: #94a3b8; }
[data-theme="dark"] .rdp-toast { background: rgba(226, 232, 240, 0.95); color: #0f172a; }

@media (max-width: 640px) {
    .rdp-total-row .v { font-size: 26px; }
}
