/* site-17-person-imputations.css: "Imputaciones" in the person's record (Person/Info). Loaded after the others. */

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

.person-imputations .pi-title {
    margin: 0;
}

/* The icon keeps the color of the other sections (.record-section-title i) */

.person-imputations .pi-count {
    font-size: .85rem;
    font-weight: 500;
    color: #0369a1;                         /* the blue of the section icons, a shade darker to read well */
    background: rgba(56, 189, 248, 0.14);   /* the same tint as the icons */
    border-radius: 999px;
    padding: 5px 13px;
}

.person-imputations .pi-empty {
    margin: 0;
    padding: 14px 18px;
    border: 1px dashed #c3cede;
    border-radius: 12px;
    color: #64748b;
}

/* With many imputations the list scrolls inside: the page does not grow */
.person-imputations .pi-list {
    max-height: 470px;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .person-imputations .pi-list::-webkit-scrollbar { width: 10px; }
    .person-imputations .pi-list::-webkit-scrollbar-thumb { background: #c3cede; border-radius: 10px; }
    .person-imputations .pi-list::-webkit-scrollbar-track { background: transparent; }

.person-imputations .pi-item {
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.person-imputations .pi-date {
    width: 68px;
    flex: none;
    border-radius: 10px;
    background: #e9edf5;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.person-imputations .pi-day { font-size: 1.35rem; font-weight: 700; line-height: 1; color: #1e293b; }
.person-imputations .pi-month { font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: #475569; }
.person-imputations .pi-year { font-size: .75rem; color: #64748b; }

.person-imputations .pi-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.person-imputations .pi-summary {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.person-imputations .pi-crime {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #9a4a12;
}

.person-imputations .pi-meta {
    margin: 0;
    font-size: .82rem;
    color: #5b6778;
}
