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

/* Overview: payslip breakdown card */
.tp-payroll-overview-visual-frame {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

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

.tp-payroll-payslip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tp-payroll-payslip-head strong {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.tp-payroll-payslip-head span {
    color: rgba(168, 240, 223, 0.9);
    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-payroll-payslip-rows {
    display: grid;
    gap: 0.55rem;
}

.tp-payroll-payslip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 600;
}

.tp-payroll-payslip-row span:first-child {
    color: rgba(255, 255, 255, 0.75);
}

.tp-payroll-payslip-row span:last-child {
    color: #a8f0df;
}

.tp-payroll-payslip-row--deduct span:last-child {
    color: rgba(255, 180, 180, 0.9);
}

.tp-payroll-payslip-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(168, 240, 223, 0.16);
    border: 1px solid rgba(168, 240, 223, 0.35);
}

.tp-payroll-payslip-total span:first-child {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 700;
}

.tp-payroll-payslip-total span:last-child {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
}

/* Problems: horizontal pipeline */
.tp-payroll-problems-pipeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    position: relative;
    margin-top: 2rem;
}

.tp-payroll-problems-pipeline::before {
    content: '';
    position: absolute;
    top: 1.4rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 140, 140, 0.15) 0%, rgba(255, 140, 140, 0.45) 50%, rgba(255, 140, 140, 0.15) 100%);
    z-index: 0;
}

.tp-payroll-problem-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.75rem;
}

.tp-payroll-problem-marker {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(255, 140, 140, 0.45);
    color: #c45c5c;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1.15rem;
    box-shadow: 0 8px 22px rgba(196, 92, 92, 0.12);
}

.tp-payroll-problem-card {
    width: 100%;
    padding: 1.25rem 1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(8, 62, 69, 0.1);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-payroll-problem-card p {
    margin: 0;
    color: #243b40;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Workflow: convergence hub */
.tp-payroll-workflow-section {
    padding: 4.5rem 0;
    background: #f7fbfb;
}

.tp-payroll-workflow-hub {
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(168, 240, 223, 0.14), transparent 28%),
        linear-gradient(135deg, #062f35 0%, #083e45 45%, #0b5560 100%);
    box-shadow: 0 28px 60px rgba(8, 62, 69, 0.2);
    padding: 2.75rem 2rem 2rem;
}

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

.tp-payroll-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-payroll-workflow-title {
    color: #ffffff;
    font-size: clamp(1.65rem, 2.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.tp-payroll-workflow-diagram {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.tp-payroll-workflow-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tp-payroll-workflow-sources {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tp-payroll-workflow-source {
    padding: 1.15rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.tp-payroll-workflow-source-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.12);
    color: #a8f0df;
    margin-bottom: 0.85rem;
}

.tp-payroll-workflow-source-icon .tp-outline-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.tp-payroll-workflow-source h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.tp-payroll-workflow-core {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.tp-payroll-workflow-core-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.1rem 2rem;
    border-radius: 18px;
    background: rgba(168, 240, 223, 0.18);
    border: 1.5px solid rgba(168, 240, 223, 0.55);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    text-align: center;
}

.tp-payroll-workflow-core-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tp-payroll-workflow-core-box strong {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.tp-payroll-workflow-output {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    max-width: 420px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(8, 62, 69, 0.1);
    box-shadow: 0 14px 36px rgba(8, 62, 69, 0.12);
}

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

.tp-payroll-workflow-output-icon .tp-outline-svg {
    width: 1.3rem;
    height: 1.3rem;
}

.tp-payroll-workflow-output h3 {
    margin: 0;
    color: #083e45;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.tp-payroll-workflow-footnote {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 2rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.tp-payroll-workflow-footnote-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #a8f0df;
}

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

.tp-payroll-workflow-footnote p {
    margin: 0;
    padding-top: 0.35rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    line-height: 1.55;
    font-size: 0.98rem;
}

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

    .tp-payroll-problems-pipeline {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .tp-payroll-problems-pipeline::before {
        display: none;
    }

    .tp-payroll-problem-step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 0;
    }

    .tp-payroll-problem-marker {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .tp-payroll-problem-card {
        min-height: auto;
        justify-content: flex-start;
    }

    .tp-payroll-workflow-hub {
        padding: 2rem 1.25rem 1.5rem;
    }

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

    .tp-payroll-workflow-lines {
        display: none;
    }

    .tp-payroll-workflow-output {
        flex-direction: column;
        text-align: center;
        max-width: none;
    }
}

@media (max-width: 575px) {
    .tp-payroll-problem-step {
        flex-direction: column;
        text-align: center;
    }
}
