/* TruPeople Leave Management — page-specific styles */

.tp-leave-overview-visual-frame {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.tp-leave-overview-calendar {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 50px rgba(4, 30, 34, 0.35);
    padding: 1.25rem;
    backdrop-filter: blur(4px);
}

.tp-leave-overview-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tp-leave-overview-calendar-head strong {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.tp-leave-overview-calendar-head span {
    color: rgba(168, 240, 223, 0.85);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(168, 240, 223, 0.14);
    border: 1px solid rgba(168, 240, 223, 0.3);
}

.tp-leave-overview-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.tp-leave-overview-day {
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-leave-overview-day--leave {
    background: rgba(168, 240, 223, 0.35);
    border-color: rgba(168, 240, 223, 0.6);
}

.tp-leave-overview-day--pending {
    background: rgba(255, 214, 140, 0.3);
    border-color: rgba(255, 214, 140, 0.55);
}

.tp-leave-overview-calendar-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tp-leave-overview-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    font-weight: 600;
}

.tp-leave-overview-calendar-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
}

.tp-leave-overview-calendar-legend .tp-leave-legend-approved {
    background: rgba(168, 240, 223, 0.7);
}

.tp-leave-overview-calendar-legend .tp-leave-legend-pending {
    background: rgba(255, 214, 140, 0.7);
}

/* Workflow — split header + card panel (inventory-style) */
.tp-leave-workflow-section {
    position: relative;
    padding: 4.5rem 0 5rem;
    background-color: #eef8f9;
    overflow: hidden;
}

.tp-leave-workflow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52%;
    min-height: 300px;
    background: linear-gradient(135deg, #062f35 0%, #083e45 42%, #0b5560 100%);
    pointer-events: none;
}

.tp-leave-workflow-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52%;
    min-height: 300px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.35;
    pointer-events: none;
}

.tp-leave-workflow-section .container {
    position: relative;
    z-index: 1;
}

.tp-leave-workflow-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.tp-leave-workflow-tag {
    display: inline-block;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(168, 240, 223, 0.35);
    color: #a8f0df;
}

.tp-leave-workflow-title {
    color: #ffffff;
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.tp-leave-workflow-panel {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(8, 62, 69, 0.12);
    box-shadow: 0 24px 60px rgba(8, 62, 69, 0.14);
}

.tp-leave-workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-leave-workflow-item {
    position: relative;
    padding: 2rem 2.25rem;
    border-right: 1px solid rgba(8, 62, 69, 0.08);
    border-bottom: 1px solid rgba(8, 62, 69, 0.08);
    transition: background-color 0.25s ease;
}

.tp-leave-workflow-item:hover {
    background: rgba(168, 240, 223, 0.1);
}

.tp-leave-workflow-item:nth-child(2n) {
    border-right: none;
}

.tp-leave-workflow-item:nth-child(n+3) {
    border-bottom: none;
}

.tp-leave-workflow-step {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    color: rgba(8, 62, 69, 0.18);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.tp-leave-workflow-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(8, 62, 69, 0.08);
    color: var(--tp-base-color);
    margin-bottom: 1.1rem;
}

.tp-leave-workflow-icon .tp-outline-svg {
    width: 1.5rem;
    height: 1.5rem;
}

.tp-leave-workflow-item-title {
    color: #083e45;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    max-width: 16rem;
}

.tp-leave-workflow-footnote {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.5rem;
    background: linear-gradient(135deg, rgba(168, 240, 223, 0.22) 0%, rgba(168, 240, 223, 0.08) 100%);
    border-top: 1px solid rgba(8, 62, 69, 0.1);
}

.tp-leave-workflow-footnote-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(8, 62, 69, 0.08);
    color: var(--tp-base-color);
}

.tp-leave-workflow-footnote-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.tp-leave-workflow-footnote p {
    margin: 0;
    padding-top: 0.35rem;
    color: #3d5a5f;
    font-weight: 600;
    line-height: 1.55;
    font-size: 0.98rem;
}

@media (max-width: 991px) {
    .tp-leave-overview-visual-frame {
        min-height: 280px;
    }

    .tp-leave-workflow-grid {
        grid-template-columns: 1fr;
    }

    .tp-leave-workflow-item {
        border-right: none;
        border-bottom: 1px solid rgba(8, 62, 69, 0.08);
    }

    .tp-leave-workflow-item:last-child {
        border-bottom: none;
    }

    .tp-leave-workflow-item:nth-child(n+3) {
        border-bottom: 1px solid rgba(8, 62, 69, 0.08);
    }
}

@media (max-width: 575px) {
    .tp-leave-workflow-item {
        padding: 1.5rem 1.35rem;
    }

    .tp-leave-workflow-step {
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
    }
}
