/* Handovers page extras (handovers.js + handovers-extra.js) */
.ho-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}
.ho-chip {
    border: 1px solid var(--border-light, #cbd5e1);
    background: var(--bg-card, #fff);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
}
.ho-chip.on {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}
.ho-sum12 {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}
/* alerts + e-mail hints */
.ho-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}
.ho-alert {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.82rem;
}
.ho-alert.late {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.08);
}
.ho-alert.hint {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.07);
}
.ho-alert > div {
    flex: 1;
    min-width: 0;
}
.ho-alert small {
    display: block;
    color: var(--text-muted, #64748b);
    overflow: hidden;
    text-overflow: ellipsis;
}
/* timeline zoom + drag */
.ho-zoom {
    display: inline-flex;
    gap: 2px;
    margin-left: 1rem;
}
.ho-zbtn {
    border: 1px solid var(--border-light, #cbd5e1);
    background: transparent;
    padding: 0.1rem 0.55rem;
    font-size: 0.72rem;
    cursor: pointer;
}
.ho-zbtn:first-child {
    border-radius: 6px 0 0 6px;
}
.ho-zbtn:last-child {
    border-radius: 0 6px 6px 0;
}
.ho-zbtn.on {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}
.ho-dot.est.drag {
    cursor: ew-resize;
    touch-action: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    z-index: 3;
}
.ho-dragnote {
    margin: 0 0 0.3rem;
}
/* confidence colouring of the realistic date */
.ho-real.conf-high {
    color: #16a34a;
}
.ho-real.conf-medium {
    color: #d97706;
}
.ho-real.conf-low {
    color: #dc2626;
}
.ho-conf {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
    vertical-align: middle;
}
.ho-conf.conf-high {
    background: #22c55e;
}
.ho-conf.conf-medium {
    background: #f59e0b;
}
.ho-conf.conf-low {
    background: #ef4444;
}
.ho-dot.real.conf-high {
    background: #22c55e;
}
.ho-dot.real.conf-low {
    background: #ef4444;
}
.ho-dot.real.conf-medium {
    background: #f59e0b;
}
.ho-short {
    font-size: 0.8rem;
}
/* extra cards + sections */
.ho-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.ho-grid2 > .ix-card {
    margin-bottom: 0;
}
.ho-chart-wrap {
    position: relative;
    width: 100%;
}
.ho-flagline {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #b91c1c;
}
.ho-bad {
    color: #dc2626;
    font-weight: 600;
}
.ho-good {
    color: #16a34a;
}
.ho-cashu {
    font-size: 0.8rem;
    padding: 0.2rem 0;
}
.ho-details {
    margin-top: 0.5rem;
    font-size: 0.82rem;
}
.ho-details summary {
    cursor: pointer;
    font-weight: 600;
}
.ho-x {
    margin-top: 0.6rem;
    border-top: 1px dashed var(--border-light, #e2e8f0);
    padding-top: 0.5rem;
}
.ho-xline {
    font-size: 0.82rem;
    padding: 0.15rem 0;
}
.ho-xline span {
    color: var(--text-muted, #64748b);
    margin-right: 0.4rem;
}
.ho-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}
.ho-flag {
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}
.ho-flag.red {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}
.ho-flag.amber {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}
.ho-pace {
    max-width: 460px;
    margin: 0.4rem 0;
}
.ho-check-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    margin: 0.4rem 0 0.15rem;
}
.ho-step {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    padding: 0.15rem 0;
    font-weight: 400;
}
.ho-step.done {
    color: #16a34a;
}
.ho-step small {
    color: var(--text-muted, #64748b);
}
.ho-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}
.ho-photo {
    width: 96px;
    margin: 0;
    cursor: pointer;
    font-size: 0.65rem;
    text-align: center;
}
.ho-photo img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    background: #e2e8f0;
}
.ho-photo.add {
    height: 72px;
    border: 2px dashed var(--border-light, #cbd5e1);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #64748b);
}
.ho-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}
.ho-lightbox img {
    max-width: 94vw;
    max-height: 80vh;
    border-radius: 8px;
}
.ho-lb-bar {
    display: flex;
    gap: 0.5rem;
}
/* narrow screens (folded phone): one unit under the other instead of a wide table / timeline */
@media (max-width: 700px) {
    .ho-table,
    .ho-table tbody,
    .ho-table tr,
    .ho-table td {
        display: block;
        width: 100%;
    }
    .ho-table thead {
        display: none;
    }
    .ho-table tr {
        border: 1px solid var(--border-light, #e2e8f0);
        border-left: 4px solid #6366f1;
        border-radius: 8px;
        margin-bottom: 0.6rem;
        padding: 0.3rem 0.6rem;
    }
    .ho-table td {
        display: flex;
        justify-content: space-between;
        gap: 0.8rem;
        border: 0;
        padding: 0.15rem 0;
        text-align: right;
    }
    .ho-table td::before {
        color: var(--text-muted, #64748b);
        font-size: 0.7rem;
        text-align: left;
    }
    .ho-table td:nth-child(2)::before {
        content: 'Original';
    }
    .ho-table td:nth-child(3)::before {
        content: "Developer's date";
    }
    .ho-table td:nth-child(4)::before {
        content: 'Realistic';
    }
    .ho-table td:nth-child(5)::before {
        content: 'Built';
    }
    .ho-table td:nth-child(6)::before {
        content: 'Late';
    }
    .ho-table td:nth-child(7)::before {
        content: 'Method';
    }
    .ho-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    .ho-axis {
        margin: 0 0 0 0;
    }
    .ho-alert {
        flex-wrap: wrap;
    }
    .ho-grid2 {
        grid-template-columns: 1fr;
    }
}
