/* Cash (till) overview page: green balance card, gold section cards,
   folded in/out cards and a tidy queue of handovers waiting for confirmation.
   The tab bar above keeps the look it already has. */

#tillContent {
    --tp-line: #e3d6b8;
    --tp-chip: #fffdf8;
    --tp-ink: #2a2433;
    --tp-mut: #7a7160;
    --tp-gold: #c58a1b;
    --tp-gold2: #e5b04a;
    --tp-goldbg: #fbf0d6;
    --tp-goldsoft: #fff8e8;
    --tp-green: #1f7a4d;
    --tp-greenbg: #e1f4e8;
    --tp-red: #c4553a;
    --tp-redbg: #fbe6df;
    --tp-navy: #2f5077;
    --tp-ease: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="dark"] #tillContent {
    --tp-line: #4a3f26;
    --tp-chip: #211c12;
    --tp-ink: #f3eddc;
    --tp-mut: #b0a58a;
    --tp-gold: #f0b64a;
    --tp-gold2: #c58a1b;
    --tp-goldbg: #3d3115;
    --tp-goldsoft: #2f2813;
    --tp-green: #5fd391;
    --tp-greenbg: #153324;
    --tp-red: #f09479;
    --tp-redbg: #3b221b;
    --tp-navy: #6e9bd0;
}

/* ---------- green balance card ---------- */
#tillContent .till2-cash-hero {
    position: relative;
}

#tillContent .till2-cash-hero .till2-hero-value {
    color: var(--tp-green);
}

#tillContent .till2-info-btn {
    flex: none;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--tp-green) 30%, var(--tp-line));
    background: var(--tp-chip);
    color: var(--tp-green);
    font-size: 18px;
    cursor: pointer;
    transition: transform .2s var(--tp-ease);
}

#tillContent .till2-info-btn:hover {
    transform: rotate(15deg) scale(1.08);
}

#tillContent .till2-info-pop {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--tp-green) 25%, var(--tp-line));
    background: var(--tp-chip);
    color: var(--tp-mut);
    font-size: 12px;
    line-height: 1.9;
    animation: tpRise .3s var(--tp-ease);
}

#tillContent .till2-info-pop[hidden] {
    display: none;
}

#tillContent button.till2-cash-mini-row {
    width: 100%;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: transform .2s var(--tp-ease), box-shadow .2s ease;
}

#tillContent button.till2-cash-mini-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(31, 48, 74, .14);
}

#tillContent .till2-cash-mini-row > i {
    position: relative;
    z-index: 1;
    color: var(--tp-mut);
}

/* ---------- gold cards ---------- */
#tillContent .till-gold-card,
:is(#tillContent, #dashHandovers) .till-pending-handovers-card {
    padding: 20px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--tp-gold) 30%, var(--tp-line));
    background:
        radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--tp-gold2) 18%, transparent), transparent 45%),
        linear-gradient(145deg, var(--tp-goldsoft), var(--panel, #fff));
    box-shadow: 0 12px 30px rgba(120, 90, 30, .1);
    animation: tpRise .6s var(--tp-ease) backwards;
}

:is(#tillContent, #dashHandovers) .till-pending-handovers-card {
    margin: 16px 0;
}

#tillContent .till-gold-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

#tillContent .till-gold-head h2 {
    margin: 0;
    color: var(--tp-ink);
    font-size: 17px;
}

#tillContent .till-gold-icon,
:is(#tillContent, #dashHandovers) .till-pending-handovers-card .till2-sec-icon {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff !important;
    font-size: 23px;
    background: linear-gradient(145deg, var(--tp-gold2), var(--tp-gold)) !important;
    box-shadow: 0 8px 18px rgba(197, 138, 27, .32);
}

:is(#tillContent, #dashHandovers) .till-pending-handovers-card .till2-sec-icon i {
    animation: tpSway 3s ease-in-out infinite;
}

/* period switch */
#tillContent .till-seg {
    margin-inline-start: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--tp-goldbg);
    border: 1px solid var(--tp-line);
}

#tillContent .till-seg button {
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--tp-mut);
    cursor: pointer;
    transition: .25s var(--tp-ease);
}

#tillContent .till-seg button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--tp-gold2), var(--tp-gold));
    box-shadow: 0 6px 14px rgba(197, 138, 27, .35);
}

#tillContent .till-date-range {
    margin-bottom: 14px;
    animation: tpRise .3s var(--tp-ease);
}

/* three number cards */
#tillContent .till-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#tillContent .till-stat {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 16px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid var(--tp-line);
    background: linear-gradient(160deg, var(--tp-goldbg), var(--tp-chip));
    transition: transform .25s var(--tp-ease), box-shadow .25s ease;
}

#tillContent .till-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(197, 138, 27, .18);
}

#tillContent .till-stat::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
    transform: translateX(120%);
    transition: transform .7s;
}

#tillContent .till-stat:hover::after {
    transform: translateX(-120%);
}

#tillContent .till-stat-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    font-size: 23px;
}

#tillContent .till-stat.is-wait .till-stat-icon i {
    animation: tpSway 3s ease-in-out infinite;
}

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

#tillContent .till-stat-value {
    font-size: 26px;
}

#tillContent .till-stat small {
    color: var(--tp-mut);
    font-size: 11px;
    line-height: 1.7;
}

/* last count and actions */
#tillContent .till-count-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--tp-line);
}

#tillContent .till-last {
    display: grid;
    gap: 2px;
    min-width: 0;
}

#tillContent .till-last > span {
    color: var(--tp-mut);
    font-size: 12px;
}

#tillContent .till-last > b {
    color: var(--tp-ink);
    font-size: 15px;
}

#tillContent .till-last small {
    color: var(--tp-mut);
    font-size: 12px;
}

#tillContent .till-actions {
    position: relative;
    margin-inline-start: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#tillContent .till-actions .btn {
    border-radius: 14px;
    font-weight: 700;
    transition: transform .2s var(--tp-ease), box-shadow .2s ease;
}

#tillContent .till-actions .btn:hover {
    transform: translateY(-2px);
}

#tillContent .till-actions .btn.btn-primary {
    position: relative;
    overflow: hidden;
    border-color: transparent !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--tp-gold2), var(--tp-gold)) !important;
    box-shadow: 0 8px 18px rgba(197, 138, 27, .35) !important;
}

#tillContent .till-actions .btn.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
    transform: translateX(120%);
    animation: tpShine 3.6s infinite;
}

/* each action has its own colour and icon motion */
#tillContent .till-act {
    --act: var(--tp-gold);
    --act2: var(--tp-gold2);
    gap: 9px;
    animation: tpRise .5s var(--tp-ease) backwards;
}

#tillContent .till-act i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 17px;
    transition: transform .35s var(--tp-ease);
}

#tillContent .till-actions .btn.till-act:not(.btn-primary) {
    color: color-mix(in srgb, var(--act) 80%, var(--tp-ink));
    border: 1px solid color-mix(in srgb, var(--act) 35%, var(--tp-line));
    background: linear-gradient(135deg, color-mix(in srgb, var(--act2) 20%, var(--tp-chip)), color-mix(in srgb, var(--act) 9%, var(--tp-chip)));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--act) 14%, transparent);
}

#tillContent .till-actions .btn.till-act:not(.btn-primary) i {
    color: #fff;
    background: linear-gradient(145deg, var(--act2), var(--act));
    box-shadow: 0 5px 10px color-mix(in srgb, var(--act) 35%, transparent);
}

#tillContent .till-actions .btn.till-act:not(.btn-primary):hover {
    border-color: var(--act);
    box-shadow: 0 12px 22px color-mix(in srgb, var(--act) 28%, transparent);
}

#tillContent .till-act:hover i {
    animation: tpWiggle .6s ease;
}

#tillContent .till-act.is-count i {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

#tillContent .till-act.is-close {
    --act: #4a62c9;
    --act2: #7d92ee;
    animation-delay: .06s;
}

#tillContent .till-act.is-transfer {
    --act: #8454c7;
    --act2: #b08ae6;
    animation-delay: .12s;
}

#tillContent .till-act.is-print {
    --act: #1f9488;
    --act2: #4cc3b4;
    animation-delay: .18s;
}

#tillContent .till-act.is-excel {
    --act: #1f7a4d;
    --act2: #4cbb82;
    animation-delay: .24s;
}

html[data-theme="dark"] #tillContent .till-act.is-close {
    --act: #8ea3f2;
}

html[data-theme="dark"] #tillContent .till-act.is-transfer {
    --act: #bb9aee;
}

html[data-theme="dark"] #tillContent .till-act.is-print {
    --act: #5fd6c7;
}

html[data-theme="dark"] #tillContent .till-act.is-excel {
    --act: #6fd79d;
}

@keyframes tpWiggle {
    25% {
        transform: rotate(-14deg) scale(1.12);
    }
    60% {
        transform: rotate(10deg) scale(1.12);
    }
}

/* ---------- handovers waiting for confirmation ---------- */
:is(#tillContent, #dashHandovers) .till-pending-handovers-card .till2-sec-head {
    margin-bottom: 16px;
}

:is(#tillContent, #dashHandovers) .till-pending-pills {
    margin-inline-start: auto;
    display: flex;
    gap: 8px;
}

:is(#tillContent, #dashHandovers) .till-pending-pills span {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--tp-line);
    background: var(--tp-goldbg);
    color: var(--tp-gold);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

#tillContent .till-pending-handovers-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
}

#tillContent .till-pending-tile {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--tp-line);
    background: linear-gradient(135deg, var(--tp-goldbg), var(--tp-chip));
    transition: transform .25s var(--tp-ease), box-shadow .25s ease;
    animation: tpRise .5s var(--tp-ease) backwards;
}

#tillContent .till-pending-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(197, 138, 27, .18);
}

:is(#tillContent, #dashHandovers) .till-pending-handovers-card:not(.is-expanded) .till-pending-tile.is-extra {
    display: none;
}

#tillContent .till-pending-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

#tillContent .till-pending-avatar {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(145deg, var(--tp-gold2), var(--tp-gold));
}

#tillContent .till-pending-who {
    min-width: 0;
    display: grid;
    gap: 2px;
}

#tillContent .till-pending-who b {
    color: var(--tp-ink);
    font-size: 15px;
}

#tillContent .till-pending-who span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--tp-mut);
    font-size: 12px;
}

#tillContent .till-pending-amount {
    margin-inline-start: auto;
    color: var(--tp-gold);
    font-size: 22px;
    white-space: nowrap;
}

#tillContent .till-pending-amount small {
    margin-inline-start: 4px;
    font-size: 12px;
    font-weight: 400;
}

#tillContent .till-pending-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#tillContent .till-pending-foot .btn.btn-primary {
    border-radius: 14px;
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #3b6191, var(--tp-navy));
    box-shadow: 0 8px 16px rgba(47, 80, 119, .28);
}

#tillContent .till-doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px dashed var(--tp-line);
    background: var(--tp-chip);
    color: var(--tp-mut);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

#tillContent .till-doc-chip:hover {
    color: var(--tp-gold);
}

#tillContent .till-pending-flag {
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--tp-red);
    background: var(--tp-redbg);
    font-size: 12px;
    font-weight: 700;
}

#tillContent .till-pending-more {
    width: 100%;
    margin-top: 12px;
    justify-content: center;
    border-style: dashed;
    border-radius: 14px;
    color: var(--tp-gold);
    font-weight: 700;
}

:is(#tillContent, #dashHandovers) .till-pending-handovers-card.is-expanded .till-pending-more {
    display: none;
}

/* ---------- income and expense: folded cards ---------- */
#tillContent .till2-flow-grid {
    align-items: start;
}

#tillContent .till2-flow-card {
    padding: 0;
    animation: tpRise .6s var(--tp-ease) backwards;
}

#tillContent .till2-flow-card .till2-sec-head {
    margin: 0;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
}

#tillContent .till2-flow-card .till2-sec-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #fff !important;
    font-size: 23px;
    background: linear-gradient(145deg, #35a56f, var(--tp-green)) !important;
    box-shadow: 0 8px 18px rgba(31, 122, 77, .3);
}

#tillContent .till2-flow-out .till2-sec-icon {
    background: linear-gradient(145deg, #e58a70, #c4553a) !important;
    box-shadow: 0 8px 18px rgba(196, 85, 58, .3);
}

#tillContent .till2-flow-card .till2-sec-hint {
    font-size: 17px;
    font-weight: 700;
}

#tillContent .till2-flow-chevron {
    margin-inline-start: auto;
    color: var(--tp-mut);
    font-size: 20px;
    transition: transform .3s var(--tp-ease);
}

#tillContent .till2-flow-card.is-open .till2-flow-chevron {
    transform: rotate(180deg);
}

#tillContent .till2-flow-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s var(--tp-ease);
}

#tillContent .till2-flow-card.is-open .till2-flow-body {
    grid-template-rows: 1fr;
}

#tillContent .till2-flow-body > div {
    min-height: 0;
    overflow: hidden;
}

#tillContent .till2-flow-body .till2-flow-steps {
    margin: 0;
    padding: 0 18px 18px;
}

#tillContent .till2-flow-empty {
    margin: 0 18px;
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed var(--tp-line);
    color: var(--tp-mut);
    font-size: 13px;
    text-align: center;
}

#tillContent .till2-flow-body .till2-flow-empty + .till2-flow-steps {
    padding-top: 12px;
}

@keyframes tpRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

@keyframes tpSway {
    50% {
        transform: rotate(14deg);
    }
}

@keyframes tpShine {
    60%, 100% {
        transform: translateX(-120%);
    }
}

@media (max-width: 760px) {
    #tillContent .till-stats,
    #tillContent .till-pending-handovers-list {
        grid-template-columns: minmax(0, 1fr);
    }

    #tillContent .till-seg {
        width: 100%;
        margin-inline-start: 0;
    }

    #tillContent .till-seg button {
        flex: 1;
        padding: 8px 6px;
    }

    #tillContent .till-actions {
        width: 100%;
    }

    #tillContent .till-actions .btn.btn-primary {
        flex: 1;
        justify-content: center;
    }

    :is(#tillContent, #dashHandovers) .till-pending-pills {
        display: none;
    }

    #tillContent .till-pending-foot .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tillContent .till-gold-card,
    :is(#tillContent, #dashHandovers) .till-pending-handovers-card,
    #tillContent .till-pending-tile,
    #tillContent .till2-flow-card,
    #tillContent .till-act,
    #tillContent .till-actions .btn.btn-primary::after,
    #tillContent .till-stat.is-wait .till-stat-icon i,
    :is(#tillContent, #dashHandovers) .till-pending-handovers-card .till2-sec-icon i {
        animation: none;
    }
}

/* the handover button when nobody is chosen yet: dim and locked, but it still answers when pressed */
#tillContent .till-actions .btn.till-act.is-locked {
    --act: #8c8678;
    --act2: #b3ad9f;
    opacity: .78;
    filter: saturate(.4);
    border-style: dashed;
}

#tillContent .till-act-lock {
    width: auto !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: 15px !important;
}

#tillContent .till-lock-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    color: var(--tp-mut);
    font-size: 12px;
    font-weight: 700;
}

#tillContent .till-next-note {
    margin-top: 12px;
}

/* ---------- settings: who runs the till, who is next, and how the handover goes ---------- */
.till-role-settings-card {
    --tr-gold: #c08a1e;
    --tr-gold2: #e5b04a;
    --tr-violet: #8454c7;
    --tr-violet2: #b08ae6;
    --tr-green: #1f7a4d;
}

html[data-theme="dark"] .till-role-settings-card {
    --tr-gold: #f0b64a;
    --tr-gold2: #c58a1b;
    --tr-violet: #bb9aee;
    --tr-violet2: #8454c7;
    --tr-green: #5fd391;
}

.till-role-settings-card .till-role-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.till-role-settings-card .till-role-grid:not(:has(.till-role-timeline)) {
    grid-template-columns: minmax(0, 1fr);
}

.till-role-settings-card .till-role-people {
    display: grid;
    gap: 12px;
    align-content: start;
}

.till-role-settings-card .till-role-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel, #fff);
    animation: trRise .5s cubic-bezier(.2, .9, .3, 1.1) backwards;
}

.till-role-settings-card .till-role-person.is-current {
    border-color: color-mix(in srgb, var(--tr-gold) 40%, var(--border));
    background: linear-gradient(145deg, color-mix(in srgb, var(--tr-gold2) 18%, var(--panel, #fff)), var(--panel, #fff));
}

.till-role-settings-card .till-role-person.is-next {
    border-color: color-mix(in srgb, var(--tr-violet) 40%, var(--border));
    background: linear-gradient(145deg, color-mix(in srgb, var(--tr-violet2) 16%, var(--panel, #fff)), var(--panel, #fff));
    animation-delay: .08s;
}

.till-role-settings-card .till-role-avatar {
    width: 48px;
    height: 48px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    background: linear-gradient(145deg, var(--tr-gold2), var(--tr-gold));
}

.till-role-settings-card .is-next .till-role-avatar {
    background: linear-gradient(145deg, var(--tr-violet2), var(--tr-violet));
}

.till-role-settings-card .till-role-person small {
    display: block;
    color: var(--text2);
    font-size: 12px;
}

.till-role-settings-card .till-role-person b {
    font-size: 1.05em;
}

.till-role-settings-card .till-role-chip {
    margin-inline-start: auto;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--tr-gold);
    background: color-mix(in srgb, var(--tr-gold) 14%, transparent);
    font-size: 11px;
    font-weight: 800;
}

.till-role-settings-card .is-next .till-role-chip {
    color: var(--tr-violet);
    background: color-mix(in srgb, var(--tr-violet) 12%, transparent);
}

.till-role-settings-card .till-role-timeline {
    display: grid;
    align-content: start;
}

.till-role-settings-card .till-role-step {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
}

.till-role-settings-card .till-role-step:not(:last-child)::before {
    content: "";
    position: absolute;
    inset-inline-start: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.till-role-settings-card .till-role-step.is-done:not(:last-child)::before {
    background: var(--tr-green);
}

.till-role-settings-card .till-role-dot {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--panel, #fff);
    color: var(--text2);
    font-size: 16px;
}

.till-role-settings-card .is-done .till-role-dot {
    color: #fff;
    border-color: transparent;
    background: var(--tr-green);
}

.till-role-settings-card .is-now .till-role-dot {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(145deg, var(--tr-violet2), var(--tr-violet));
    animation: trPulse 1.8s infinite;
}

.till-role-settings-card .till-role-step b {
    display: block;
    font-size: 14px;
}

.till-role-settings-card .till-role-step small {
    color: var(--text2);
    font-size: 12px;
}

.till-role-settings-card .till-role-keep {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary, #5b63e0) 8%, transparent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.9;
}

.till-role-settings-card .till-role-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.till-role-settings-card .till-role-emergency {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px dashed color-mix(in srgb, #c4553a 45%, var(--border));
    border-radius: 18px;
    background: color-mix(in srgb, #c4553a 6%, transparent);
}

.till-role-settings-card .till-role-emergency > i {
    color: #c4553a;
    font-size: 24px;
}

.till-role-settings-card .till-role-emergency p {
    flex: 1 1 260px;
    margin: 0;
    color: var(--text2);
    font-size: 12px;
    line-height: 1.9;
}

@keyframes trRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes trPulse {
    50% {
        box-shadow: 0 0 0 7px color-mix(in srgb, var(--tr-violet) 22%, transparent);
    }
}

@media (max-width: 760px) {
    .till-role-settings-card .till-role-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .till-role-settings-card .till-role-person,
    .till-role-settings-card .is-now .till-role-dot {
        animation: none;
    }
}
