/* Handovers waiting for the till, at the top of the dashboard of whoever confirms them: one per row,
   with the sender's photo and the whole document number. The card itself keeps the till page's look
   (till-page.css and till-overview.css style it inside #dashHandovers too). */
#dashHandovers {
    margin-bottom: 16px;
}

#dashHandovers .dash-handovers .till-pending-handovers-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

#dashHandovers .dash-handovers .ho-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, #c58a12 22%, var(--theme-stroke, rgba(255, 255, 255, .7)));
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, #e3a53a 12%, transparent), transparent 55%),
        color-mix(in srgb, var(--panel, #fff) 82%, transparent);
    box-shadow: inset 0 1px 0 var(--theme-highlight, rgba(255, 255, 255, .8));
    animation: ho-in .45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes ho-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

#dashHandovers .dash-handovers .ho-photo {
    position: relative;
    width: 58px;
    height: 58px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: visible;
    background: linear-gradient(145deg, #f0c36a, #c58a12);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--panel, #fff) 90%, transparent), 0 8px 18px rgba(197, 138, 18, .28);
}

#dashHandovers .dash-handovers .ho-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* the waiting mark on the photo: a small hourglass that turns */
#dashHandovers .dash-handovers .ho-wait {
    position: absolute;
    bottom: -3px;
    inset-inline-end: -3px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e3a53a;
    border: 2px solid var(--panel, #fff);
    color: #fff;
    font-size: 12px;
}

#dashHandovers .dash-handovers .ho-wait i {
    animation: ho-turn 2.6s ease-in-out infinite;
}

@keyframes ho-turn {
    0%, 40% {
        transform: rotate(0);
    }

    60%, 100% {
        transform: rotate(180deg);
    }
}

#dashHandovers .dash-handovers .ho-who b {
    display: block;
    color: var(--text1);
    font-size: 15.5px;
    font-weight: 800;
}

#dashHandovers .dash-handovers .ho-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 5px;
    color: var(--text2);
    font-size: 12.5px;
}

#dashHandovers .dash-handovers .ho-meta i {
    font-size: 15px;
    vertical-align: -2px;
}

/* the whole document number, never cut, with its copy button */
#dashHandovers .dash-handovers .ho-doc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px 3px 10px;
    border-radius: 10px;
    border: 1px dashed color-mix(in srgb, #c58a12 40%, transparent);
    background: color-mix(in srgb, #e3a53a 8%, transparent);
    color: var(--text1);
    font-family: 'Cascadia Mono', Consolas, monospace;
    font-size: 12.5px;
    direction: ltr;
}

#dashHandovers .dash-handovers .ho-doc button {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #b07712;
    font-size: 15px;
    cursor: pointer;
}

#dashHandovers .dash-handovers .ho-doc button:hover {
    background: color-mix(in srgb, #e3a53a 18%, transparent);
}

#dashHandovers .dash-handovers .ho-amount {
    color: var(--text1);
    font-size: 24px;
    font-weight: 900;
    white-space: nowrap;
}

#dashHandovers .dash-handovers .ho-amount small {
    margin-inline-start: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text2);
}

@media (max-width: 760px) {
    #dashHandovers .dash-handovers .ho-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    #dashHandovers .dash-handovers .ho-amount {
        grid-column: 2;
    }

    #dashHandovers .dash-handovers .ho-row .btn {
        grid-column: 1 / -1;
    }
}
