/* Till overview: coloured values, colourful action buttons, violet waiting-hand-over card, flow cards.
   No coloured edge lines anywhere. */

#tillContent .till-gold-card,
:is(#tillContent, #dashHandovers) .till-pending-handovers-card {
    --ov-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- three big figures ---------- */
#tillContent .till-stat {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 18px 12px;
    text-align: center;
    border-radius: 22px;
}

#tillContent .till-stat .till-stat-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 16px;
    color: #fff;
    font-size: 27px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--c) 68%, #fff), var(--c));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 30%, transparent);
}

#tillContent .till-stat .till-stat-icon i { color: #fff; }

#tillContent .till-stat .till-stat-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

#tillContent .till-stat .till-stat-value {
    font-size: 30px;
    line-height: 1.2;
    color: var(--c);
}

#tillContent .till-stat small { color: var(--text2); }

/* ---------- action buttons: each its own colour, white text and icon ---------- */
#tillContent .till-act {
    --c: #2f5077;
    --c2: #5d86b6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--c2), var(--c));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 28%, transparent);
}

#tillContent .till-act i,
#tillContent .till-act .till-act-lock { color: #fff; font-size: 18px; }

#tillContent .till-act.is-transfer.is-locked { opacity: .62; border: 0; }
#tillContent .till-act.is-excel { --c: #3c9a6a; --c2: #79cfa1; }

#tillContent .till-lock-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--text2) 8%, transparent);
}

/* ---------- waiting hand-overs: one violet card, a card for each ---------- */
:is(#tillContent, #dashHandovers) .till-pending-handovers-card { padding: 16px; }

:is(#tillContent, #dashHandovers) .till-pending-handovers-card .till2-sec-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(145deg, var(--sec-n), var(--sec-l));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--sec-l) 30%, transparent);
}

:is(#tillContent, #dashHandovers) .till-pending-handovers-card .till2-sec-icon i { color: #fff; }

:is(#tillContent, #dashHandovers) .till-pending-pills span {
    padding: 1px 12px;
    border-radius: 99px;
    color: var(--sec-l);
    background: color-mix(in srgb, var(--sec-l) 14%, transparent);
    border: 0;
}

#tillContent .till-pending-tile { border-radius: 20px; }

#tillContent .till-pending-avatar {
    color: #fff;
    background: linear-gradient(145deg, var(--sec-n), var(--sec-l));
}

#tillContent .till-pending-amount { color: var(--sec-l); font-size: 26px; }

#tillContent .till-pending-tile .btn,
#tillContent .till-pending-tile .btn-primary,
#tillContent .till-pending-tile button.btn {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #3fae7a, #1f7a4d);
    box-shadow: 0 8px 20px color-mix(in srgb, #1f7a4d 28%, transparent);
}

#tillContent .till-pending-tile .btn i { color: #fff; }

#tillContent .till-pending-more {
    width: 100%;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--sec-n), var(--sec-l));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--sec-l) 28%, transparent);
}

#tillContent .till-pending-more i { color: #fff; }

/* ---------- cash in / cash out ---------- */
#tillContent .till2-flow-card .till2-sec-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--c) 68%, #fff), var(--c));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 30%, transparent);
}

#tillContent .till2-flow-card .till2-sec-icon i { color: #fff; }
#tillContent .till2-flow-card .till2-sec-hint,
#tillContent .till2-flow-card .till2-sec-hint b { color: var(--c); font-weight: 700; font-size: 17px; }
#tillContent .till2-flow-card .till2-flow-chevron { color: var(--text2); }

/* these buttons also get colour from older till-theme rules, so they are named again with more weight */
#tillContent .till-pending-tile .btn.btn-primary,
#tillContent .till-pending-tile .btn.btn-primary.btn-sm {
    color: #fff !important;
    border: 0 !important;
    background: linear-gradient(135deg, #3fae7a, #1f7a4d) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, #1f7a4d 28%, transparent) !important;
}

#tillContent .till-pending-tile .btn.btn-primary i { color: #fff !important; }

:is(#tillContent, #dashHandovers) .till-pending-handovers-card .btn.till-pending-more {
    color: #fff !important;
    border: 0 !important;
    background: linear-gradient(135deg, var(--sec-n), var(--sec-l)) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--sec-l) 28%, transparent) !important;
}

:is(#tillContent, #dashHandovers) .till-pending-handovers-card .btn.till-pending-more i { color: #fff !important; }

#tillContent .till-act.is-print i, #tillContent .till-act.is-excel i { color: #fff !important; }

#tillContent .till-operation-buttons .till-act {
    color: #fff !important;
    border: 0 !important;
    background: linear-gradient(135deg, var(--c2), var(--c)) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 28%, transparent) !important;
}

#tillContent .till-operation-buttons .till-act i { color: #fff !important; }
