/* Home sidebar: photo/screenshot OCR + delivery list pending/time rows */

.home-photo-scan-card {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.home-photo-scan-head strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.home-photo-scan-head p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.45;
}

.home-photo-scan-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.home-photo-scan-previews img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.home-photo-scan-pdf-thumb {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
    font-size: 1.75rem;
}

.home-photo-scan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.home-photo-scan-msg {
    font-size: 0.75rem;
    margin: 0.6rem 0 0 0;
    line-height: 1.4;
}

/* Wizard Quick — step 1: stessa funzione, ingombro leggermente ridotto */
.home-photo-scan-wizard {
    margin: 0.75rem 0;
}

.home-photo-scan-wizard .home-photo-scan-head strong {
    font-size: 0.85rem;
}

.home-photo-scan-wizard .home-photo-scan-head p {
    font-size: 0.72rem;
    margin-bottom: 0.5rem;
}

/* Wizard Quick: elenco consegne (conferma indirizzi / fasce) */
.wizard-loaded-deliveries {
    margin: 0.75rem 0 0.5rem;
    padding: 0.65rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.wizard-loaded-deliveries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.wizard-loaded-deliveries-title {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.wizard-clear-deliveries-btn {
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
}

.wizard-deliveries-list {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
}

.delivery-item {
    align-items: flex-start;
}

.delivery-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.delivery-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.delivery-item-pending {
    border-left: 3px solid var(--warning-color);
    padding-left: 0.5rem;
    margin-left: -0.25rem;
}

.delivery-list-label {
    font-size: 0.68rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.15rem;
}

.delivery-list-address-input {
    width: 100%;
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box;
}

.delivery-item-pending-actions {
    margin-top: 0.35rem;
}

.delivery-item-resolved-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.expert-deliveries-list .delivery-list-section + .delivery-list-section,
#deliveries-list .delivery-list-section + .delivery-list-section {
    margin-top: 0.65rem;
}

.delivery-list-tw-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.delivery-list-tw-appointment-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.35rem;
    font-size: 0.72rem;
    cursor: pointer;
}

.delivery-list-tw-appointment-label input {
    margin: 0;
}

.delivery-list-tw-start,
.delivery-list-tw-end {
    padding: 0.2rem 0.35rem;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
}
