/* Shared toast + confirm modal (desktop HR + ESS) */
.notify-stack {
    position: fixed;
    right: 16px;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 110;
    pointer-events: none;
}
.notify-stack--ess {
    right: 12px;
    left: 12px;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    z-index: 1300;
}
.notify-toast {
    min-width: 220px;
    max-width: 380px;
    border-radius: 6px;
    padding: 0.75rem 0.85rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
    opacity: 0;
    transform: translateY(8px);
    transition: all .2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    pointer-events: auto;
}
.notify-stack--ess .notify-toast {
    max-width: none;
    width: 100%;
}
.notify-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.notify-toast.success { background: #3ec100; }
.notify-toast.info { background: #3f73e0; }
.notify-toast.warning { background: #f39a00; }
.notify-toast.error { background: #ed121d; }
.notify-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: rgba(0, 0, 0, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.05rem;
}
.notify-toast-text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.notify-toast-close {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 120;
    padding: 1rem;
}
.confirm-overlay--ess {
    /* Above ESS day-detail (20000) and selfie modals so logout/cancel confirms always win. */
    z-index: 27000;
}
.confirm-overlay.open { display: flex; }
.confirm-card {
    width: min(420px, 94vw);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    padding: 0.9rem;
}
.confirm-title {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
}
.confirm-text {
    margin: 0;
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.45;
}
.confirm-actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}
.confirm-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 999px;
    padding: 0.34rem 0.74rem;
    font-size: 0.76rem;
    cursor: pointer;
}
.confirm-btn.primary {
    border-color: #2f6b45;
    background: #2f6b45;
    color: #fff;
}
.confirm-btn.primary.danger {
    border-color: #b91c1c;
    background: #b91c1c;
}
