

/* =========================================================
   REVENUE CYCLE TABLE
========================================================= */

.rc-cycle-table,
.rc-cycle-table * {
    box-sizing: border-box;
}

.rc-cycle-table {
    width: 100%;

    font-family: "Poppins", sans-serif;
}


/* =========================================================
   MAIN TABLE WRAPPER
========================================================= */

.rc-cycle-table-inner {
    width: 100%;

    overflow: hidden;

    /*background: #ffffff;*/

    border: 1px solid #DCE6EF;
    border-radius: 36px;

    box-shadow:
        0 28px 72px rgba(#071F491A);
}


/* =========================================================
   TABLE HEADER
========================================================= */

.rc-cycle-table-header {
    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    background: #2C96CA;

    border-bottom: 1px solid #DCE6EF;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;

    text-align: center;

    letter-spacing: 0.1px;
}


/* =========================================================
   ROW
========================================================= */

.rc-cycle-row {
    --number-bg: #2F98CC;
    --number-bg-rgb: 47, 152, 204;

    position: relative;

    display: grid;

    grid-template-columns:
        78px
        minmax(260px, 298px)
        minmax(0, 1fr);

    width: 100%;
    min-height: 83px;

    background: #ffffff;

    border-bottom: 1px solid #DCE6EF;

    transition:
        background-color 0.35s ease,
        box-shadow 0.35s ease;
}


/* Last row */

.rc-cycle-row:last-child {
    border-bottom: 0;
}


/* =========================================================
   ROW COLORS
========================================================= */

.rc-cycle-row.rc-blue {
    --number-bg: #2F98CC;
    --number-bg-rgb: 47, 152, 204;
}


.rc-cycle-row.rc-pink {
    --number-bg: #DF5D8D;
    --number-bg-rgb: 223, 93, 141;
}


.rc-cycle-row.rc-green {
    --number-bg: #59AD91;
    --number-bg-rgb: 89, 173, 145;
}


/* =========================================================
   NUMBER COLUMN
========================================================= */

.rc-cycle-number {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    background: var(--number-bg);

    color: #ffffff;

    font-size: 20px;
    font-weight: 700;
    line-height: 1;

    border-right: 1px solid #DCE6EF;

    overflow: hidden;

    transition:
        background-color 0.35s ease;
}


/* Subtle animated highlight */

.rc-cycle-number::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0) 15%,
            rgba(255,255,255,0.16) 50%,
            rgba(255,255,255,0) 85%
        );

    transform: translateX(-140%);

    transition:
        transform 0.65s cubic-bezier(.22, 1, .36, 1);

    pointer-events: none;
}


/* Number itself */

.rc-cycle-number span {
    position: relative;

    z-index: 2;

    transition:
        transform 0.38s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   TITLE COLUMN
========================================================= */

.rc-cycle-title {
    min-width: 0;

    display: flex;
    align-items: center;

    padding: 18px 14px;

    border-right: 1px solid #DCE6EF;

    color: #062653;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;

    letter-spacing: -0.15px;

    transition:
        color 0.3s ease,
        padding-left 0.35s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   DESCRIPTION COLUMN
========================================================= */

.rc-cycle-description {
    min-width: 0;

    display: flex;
    align-items: center;

    padding: 17px 22px;

    color: #667A9B;

    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.6;

    letter-spacing: -0.08px;

    transition:
        color 0.3s ease,
        padding-left 0.35s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   HOVER ANIMATION
========================================================= */

@media (hover: hover) and (pointer: fine) {

    .rc-cycle-row:hover {
        background:
            linear-gradient(
                90deg,
                rgba(var(--number-bg-rgb), 0.035) 0%,
                rgba(var(--number-bg-rgb), 0.018) 38%,
                rgba(255,255,255,0) 100%
            );

        box-shadow:
            inset 0 1px 0 rgba(var(--number-bg-rgb), 0.06),
            inset 0 -1px 0 rgba(var(--number-bg-rgb), 0.06);
    }


    /* Sweep over number block */

    .rc-cycle-row:hover
    .rc-cycle-number::before {
        transform: translateX(140%);
    }


    /* Number gently enlarges */

    .rc-cycle-row:hover
    .rc-cycle-number span {
        transform: scale(1.12);
    }


    /* Heading reacts */

    .rc-cycle-row:hover
    .rc-cycle-title {
        color: var(--number-bg);

        padding-left: 19px;
    }


    /* Description reacts slightly */

    .rc-cycle-row:hover
    .rc-cycle-description {
        color: #455D82;

        padding-left: 26px;
    }

}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media screen and (min-width: 1500px) {

    .rc-cycle-row {
        grid-template-columns:
            80px
            300px
            minmax(0, 1fr);

        min-height: 84px;
    }


    .rc-cycle-title {
        font-size: 14px;
    }


    .rc-cycle-description {
        font-size: 13.5px;
    }

}


/* =========================================================
   LAPTOP
========================================================= */

@media screen and (max-width: 1200px) {

    .rc-cycle-table-inner {
        border-radius: 30px;
    }


    .rc-cycle-row {
        grid-template-columns:
            70px
            minmax(225px, 27%)
            minmax(0, 1fr);

        min-height: 86px;
    }


    .rc-cycle-number {
        font-size: 18px;
    }


    .rc-cycle-title {
        padding:
            16px
            14px;

        font-size: 13px;
        line-height: 1.6;
    }


    .rc-cycle-description {
        padding:
            16px
            18px;

        font-size: 12.5px;
        line-height: 1.6;
    }

}


/* =========================================================
   SMALL LAPTOP / LARGE TABLET
========================================================= */

@media screen and (max-width: 992px) {

    .rc-cycle-table-inner {
        border-radius: 26px;
    }


    .rc-cycle-table-header {
        min-height: 52px;

        padding:
            11px
            20px;

        font-size: 14px;
    }


    .rc-cycle-row {
        grid-template-columns:
            64px
            minmax(205px, 30%)
            minmax(0, 1fr);

        min-height: 92px;
    }


    .rc-cycle-number {
        font-size: 17px;
    }


    .rc-cycle-title {
        padding:
            15px
            12px;

        font-size: 12.5px;
        line-height: 1.55;
    }


    .rc-cycle-description {
        padding:
            15px
            15px;

        font-size: 12px;
        line-height: 1.55;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 767px) {

    .rc-cycle-table-inner {
        border-radius: 22px;
    }


    .rc-cycle-table-header {
        min-height: 50px;

        padding:
            11px
            18px;

        font-size: 13.5px;
    }


    /*
       Responsive 2-column row.

       Number stays left.
       Title + description stack on the right.
    */

    .rc-cycle-row {
        grid-template-columns:
            60px
            minmax(0, 1fr);

        grid-template-areas:
            "number title"
            "number description";

        min-height: 0;
    }


    .rc-cycle-number {
        grid-area: number;

        font-size: 17px;

        border-right:
            1px solid #DCE6EF;
    }


    .rc-cycle-title {
        grid-area: title;

        min-height: 0;

        padding:
            16px
            16px
            5px;

        border-right: 0;

        font-size: 13px;
        line-height: 1.5;
    }


    .rc-cycle-description {
        grid-area: description;

        min-height: 0;

        padding:
            0
            16px
            16px;

        font-size: 12px;
        line-height: 1.6;
    }


    /* No positional hover shifts on tablet */

    .rc-cycle-row:hover
    .rc-cycle-title {
        padding-left: 16px;
    }


    .rc-cycle-row:hover
    .rc-cycle-description {
        padding-left: 16px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 520px) {

    .rc-cycle-table-inner {
        border-radius: 18px;
    }


    .rc-cycle-table-header {
        min-height: 48px;

        padding:
            11px
            15px;

        font-size: 13px;
    }


    .rc-cycle-row {
        grid-template-columns:
            52px
            minmax(0, 1fr);
    }


    .rc-cycle-number {
        font-size: 15px;
    }


    .rc-cycle-title {
        padding:
            14px
            13px
            5px;

        font-size: 12.5px;
        line-height: 1.5;
    }


    .rc-cycle-description {
        padding:
            0
            13px
            14px;

        font-size: 11.5px;
        line-height: 1.6;
    }


    .rc-cycle-row:hover
    .rc-cycle-title {
        padding-left: 13px;
    }


    .rc-cycle-row:hover
    .rc-cycle-description {
        padding-left: 13px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 380px) {

    .rc-cycle-table-inner {
        border-radius: 16px;
    }


    .rc-cycle-table-header {
        font-size: 12.5px;
    }


    .rc-cycle-row {
        grid-template-columns:
            46px
            minmax(0, 1fr);
    }


    .rc-cycle-number {
        font-size: 14px;
    }


    .rc-cycle-title {
        padding:
            13px
            11px
            5px;

        font-size: 12px;
    }


    .rc-cycle-description {
        padding:
            0
            11px
            13px;

        font-size: 11px;
        line-height: 1.55;
    }

}


/* =========================================================
   ULTRA SMALL MOBILE
========================================================= */

@media screen and (max-width: 320px) {

    .rc-cycle-row {
        grid-template-columns:
            42px
            minmax(0, 1fr);
    }


    .rc-cycle-number {
        font-size: 13px;
    }


    .rc-cycle-title {
        padding-left: 9px;
        padding-right: 9px;

        font-size: 11.5px;
    }


    .rc-cycle-description {
        padding-left: 9px;
        padding-right: 9px;

        font-size: 10.5px;
    }

}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .rc-cycle-row:hover {
        background: #ffffff;
        box-shadow: none;
    }


    .rc-cycle-row:hover
    .rc-cycle-number span {
        transform: none;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .rc-cycle-row,
    .rc-cycle-number,
    .rc-cycle-number::before,
    .rc-cycle-number span,
    .rc-cycle-title,
    .rc-cycle-description {

        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

}

