/* Nachtrag-Feierabend-Modal: erscheint, wenn der User an einem Vortag vergessen hat,
   den Feierabend zu stempeln. Listet alle offenen Tage, pro Tag Time-Input + Save. */

.lp-pending-co {
    position: fixed;
    inset: 0;
    z-index: 10055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: lpPendingCoFadeIn 180ms ease-out;
}

.lp-pending-co--hidden {
    display: none;
}

.lp-pending-co-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.lp-pending-co-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 28px 32px 22px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.06);
    animation: lpPendingCoPopIn 220ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.lp-pending-co-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.lp-pending-co-title {
    font-size: 19px;
    font-weight: 900;
    color: #0f172a;
    text-align: center;
    margin-bottom: 6px;
}

.lp-pending-co-sub {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 16px;
}

.lp-pending-co-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.lp-pending-co-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.lp-pending-co-item:last-child {
    margin-bottom: 0;
}

.lp-pending-co-item-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.lp-pending-co-item-head strong {
    font-size: 14px;
    color: #0f172a;
    text-transform: capitalize;
}

.lp-pending-co-item-ci {
    font-size: 12px;
    color: #64748b;
}

.lp-pending-co-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-pending-co-item-row label {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    margin: 0;
}

.lp-pending-co-time {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    flex: 0 0 auto;
}

.lp-pending-co-time:focus {
    outline: none;
    border-color: #3399ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.lp-pending-co-save {
    margin-left: auto;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.lp-pending-co-save:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.4);
}

.lp-pending-co-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lp-pending-co-err {
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
}

.lp-pending-co-close {
    background: none;
    border: none;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
    align-self: center;
}

.lp-pending-co-close:hover {
    color: #0f172a;
}

@keyframes lpPendingCoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes lpPendingCoPopIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
