/* Reporting page
   Same patterns as Calendar, Online Booking, Client Management and Telemedicine. */

.rep-page {
    --rep-ink: #111827;
    --rep-text: #58616f;
    --rep-muted: #7b8492;
    --rep-border: #e8edef;
    --rep-teal: #137f8c;
    --rep-gold: #d99a2b;
    background: #ffffff;
    color: var(--rep-ink);
    float: left;
    overflow: hidden;
    width: 100%;
}

header {
    background-color: #001d33;
}

.rep-page * {
    box-sizing: border-box;
}

.rep-page ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rep-page figure {
    margin: 0;
}

.rep-container {
    margin: 0 auto;
    max-width: 1210px;
    padding: 0 24px;
    width: 100%;
}

.rep-section {
    padding: 72px 0;
}

.rep-nowrap {
    white-space: nowrap;
}

/* Type */
.rep-page h1,
.rep-page h2,
.rep-page h3 {
    color: var(--rep-ink);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.rep-page h1 {
    font-size: 56px;
    line-height: 1.05;
    text-wrap: balance;
}

.rep-page h2 {
    font-size: 38px;
    line-height: 1.16;
    text-wrap: balance;
}

.rep-page p {
    color: var(--rep-text);
    font-size: 17px;
    line-height: 1.58;
    margin: 0;
}

.rep-eyebrow {
    color: #58616f !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.4 !important;
    margin: 0 0 12px !important;
}

/* Hero */
.rep-hero {
    background:
        radial-gradient(circle at 10% 28%, rgba(167, 234, 242, 0.55), transparent 28%),
        radial-gradient(circle at 88% 34%, rgba(255, 205, 116, 0.34), transparent 30%),
        linear-gradient(145deg, #f4fbfc 0%, #ffffff 50%, #fff8ec 100%);
    padding: 126px 0 72px;
    position: relative;
}

.rep-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    bottom: 0;
    content: "";
    height: 120px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.rep-hero > .rep-container {
    position: relative;
    z-index: 1;
}

.rep-hero-grid {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.rep-hero-copy {
    min-width: 0;
}

.rep-page .rep-lede {
    margin-top: 22px;
    max-width: 36em;
}

/* Framed landscape photo + floating cards */
.rep-visual {
    min-width: 0;
    position: relative;
}

.rep-frame {
    aspect-ratio: 3 / 2;
    background: #ffffff;
    border: 6px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(42, 64, 82, 0.1);
    overflow: hidden;
    padding: 10px;
    width: 100%;
}

.rep-frame img {
    border-radius: 12px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.rep-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(17, 24, 39, 0.04),
        0 18px 36px -12px rgba(30, 60, 80, 0.28);
    display: flex;
    font-family: 'Roboto', sans-serif;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    position: absolute;
    z-index: 2;
}

.rep-card-tr { right: -26px; top: -22px; }

.rep-card-icon {
    align-items: center;
    background: #e3f4f6;
    border-radius: 10px;
    color: var(--rep-teal);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
}

.rep-card-icon-gold {
    background: #fdf3df;
    color: #c27a12;
}

.rep-card-icon svg,
.rep-icon svg {
    display: block;
}

.rep-card-body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.rep-card-body strong {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.rep-card-body small {
    color: #7b8492;
    font-size: 12px;
}

/* Placeholders (remove as real images land) */
.rep-placeholder {
    align-items: center;
    background: repeating-linear-gradient(135deg, #f3f8f9 0, #f3f8f9 14px, #fbfcfc 14px, #fbfcfc 28px);
    border: 1px dashed #cfe3e6;
    border-radius: 12px;
    color: var(--rep-muted);
    display: flex;
    font-size: 14px;
    font-weight: 600;
    height: 100%;
    justify-content: center;
    padding: 12px;
    text-align: center;
    width: 100%;
}

/* Split sections */
.rep-split {
    align-items: center;
    display: grid;
    gap: 64px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.rep-split-reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.rep-copy {
    min-width: 0;
}

.rep-copy > p {
    margin-top: 20px;
    max-width: 36em;
}

/* Copy on a white card with the brand gradient edge */
.rep-edge-card {
    background: #ffffff;
    border-radius: 6px 20px 20px 6px;
    box-shadow: 0 14px 34px rgba(30, 43, 56, 0.07);
    padding: 40px 40px 38px 44px;
    position: relative;
}

.rep-edge-card::before {
    background: linear-gradient(180deg, #29b8c7 0%, #78bd42 50%, #f2b41e 100%);
    border-radius: 4px;
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.rep-page .rep-chips-label {
    color: var(--rep-ink);
    font-size: 15px;
    font-weight: 600;
    margin-top: 26px;
}

.rep-page .rep-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.rep-chips li {
    background: #f1f9fa;
    border: 1px solid #d4ecef;
    border-radius: 999px;
    color: #0f6773;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.3;
    padding: 8px 16px;
}

/* Thin teal checks (shared pattern) */
.rep-page .rep-checks {
    display: grid;
    gap: 14px;
}

.rep-page .rep-checks-2col {
    gap: 16px 48px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 920px;
}

.rep-checks li {
    color: var(--rep-ink);
    font-size: 17px;
    line-height: 1.5;
    padding-left: 28px;
    position: relative;
}

.rep-checks li::before {
    border: solid var(--rep-teal);
    border-width: 0 1.75px 1.75px 0;
    content: "";
    height: 11px;
    left: 5px;
    position: absolute;
    top: 0.32em;
    transform: rotate(45deg);
    width: 5.5px;
}

/* Final CTA (shared panel) */
.rep-final-cta {
    padding: 24px 0 40px;
}

.rep-cta-panel {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(242, 180, 30, 0.22), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(41, 184, 199, 0.22), transparent 55%),
        linear-gradient(135deg, #fffaf2 0%, #f1fbfc 100%);
    border: 1px solid #e6edf2;
    border-radius: 28px;
    margin: 0 auto;
    max-width: 1000px;
    padding: 80px 64px;
    text-align: center;
}

.rep-page .rep-cta-eyebrow {
    color: #b0620f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.rep-page .rep-cta-panel h2 {
    font-size: 44px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.rep-page .rep-cta-lead {
    color: var(--rep-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    margin: 0 auto;
    max-width: 640px;
}

.rep-cta-btn {
    align-items: center;
    background: linear-gradient(90deg, #e35d24 0%, #f2b41e 100%);
    border-radius: 999px;
    box-shadow: 0 14px 28px -12px rgba(227, 93, 36, 0.55);
    color: #ffffff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    margin-top: 28px;
    min-height: 56px;
    padding: 16px 34px;
    text-decoration: none;
    transition: box-shadow 160ms ease;
}

.rep-cta-btn:hover,
.rep-cta-btn:focus {
    box-shadow: 0 18px 32px -12px rgba(227, 93, 36, 0.65);
    color: #ffffff;
    text-decoration: none;
}

.rep-cta-btn:focus-visible {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px rgba(19, 127, 140, 0.55);
    outline: none;
}

/* Responsive */
@media (max-width: 1199px) {
    .rep-page h1 {
        font-size: 50px;
    }

    .rep-hero-grid,
    .rep-split {
        gap: 44px;
    }

    .rep-card-tr { right: -12px; }
}

@media (max-width: 991px) {
    .rep-hero {
        padding: 112px 0 64px;
    }

    .rep-hero-grid,
    .rep-split,
    .rep-split-reverse {
        grid-template-columns: 1fr;
    }

    .rep-hero-copy {
        text-align: center;
    }

    .rep-page .rep-lede {
        margin-left: auto;
        margin-right: auto;
    }

    .rep-visual {
        margin: 24px auto 0;
        max-width: 640px;
        width: 100%;
    }

    .rep-copy {
        margin: 0 auto;
        max-width: 640px;
        width: 100%;
    }

    .rep-export .rep-copy {
        order: -1;
    }

    .rep-section {
        padding: 62px 0;
    }

    .rep-cta-panel {
        padding: 64px 48px;
    }

    .rep-page .rep-cta-panel h2 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .rep-container {
        padding: 0 18px;
    }

    .rep-page h1 {
        font-size: 40px;
    }

    .rep-page h2 {
        font-size: 31px;
    }

    .rep-page p {
        font-size: 16px;
    }

}

/* Phones: cards stack above and below the photo */
@media (max-width: 575px) {
    .rep-hero {
        padding: 96px 0 40px;
    }

    .rep-page h1 {
        font-size: 34px;
    }

    .rep-page h2 {
        font-size: 28px;
    }

    .rep-section {
        padding: 52px 0;
    }

    .rep-visual {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .rep-card {
        inset: auto;
        margin: 0 auto;
        max-width: 300px;
        position: relative;
        width: 100%;
    }

    .rep-card-tr { order: 1; }

    .rep-frame { order: 2; }

    .rep-card-bl { order: 3; }

    .rep-edge-card {
        padding: 28px 22px 26px 26px;
    }

    .rep-nowrap {
        white-space: normal;
    }

    .rep-final-cta {
        padding: 10px 0 24px;
    }

    .rep-cta-panel {
        border-radius: 22px;
        padding: 48px 22px;
    }

    .rep-page .rep-cta-panel h2 {
        font-size: 28px;
    }
}

/* Section heading */
.rep-heading {
    margin: 0 auto 40px;
    max-width: 840px;
    text-align: center;
}

.rep-heading p {
    margin: 16px auto 0;
    max-width: 46em;
}

/* Thin teal checks: two columns */
.rep-page .rep-checks-2col {
    gap: 12px 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
}

/* App UI cards built in HTML (sample data) */
.rep-ui {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(17, 24, 39, 0.04),
        0 22px 44px -18px rgba(30, 60, 80, 0.3);
    font-family: 'Roboto', sans-serif;
    min-width: 0;
    overflow: hidden;
}

.rep-ui-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 18px 12px;
}

.rep-ui-head strong {
    color: #111827;
    font-size: 14.5px;
}

.rep-ui-search {
    border: 1px solid #e3e8ec;
    border-radius: 999px;
    color: #9aa3ae;
    font-size: 12px;
    padding: 5px 12px;
}

.rep-ui-status,
.rep-approval-head span {
    background: #eef8e6;
    border-radius: 999px;
    color: #3d7f20;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
}

.rep-ui-cols,
.rep-ui-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 1.3fr 1.1fr 88px;
    padding: 9px 18px;
}

.rep-ui-cols {
    background: #9b3c6f;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rep-ui-row {
    border-top: 1px solid #eef1f3;
    color: #1f2937;
    font-size: 13px;
}

.rep-ui-row span:nth-child(2) {
    color: #6b7280;
}

.rep-ui-row span:last-child {
    justify-self: end;
}

.rep-ui-add {
    border: 1px solid #c9e4e8;
    border-radius: 6px;
    color: var(--rep-teal);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
}

.rep-ui-tag {
    background: #fdf3df;
    border-radius: 999px;
    color: #9a5f0c;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    white-space: nowrap;
}

.rep-ui-foot {
    border-top: 1px solid #eef1f3;
    color: #9aa3ae;
    font-size: 11.5px;
    padding: 10px 18px;
}


.rep-card-icon-green {
    background: #eef8e6;
    color: #4fa82a;
}

.rep-card-bl { bottom: -24px; left: -24px; }

.rep-frame-tall {
    aspect-ratio: 4 / 3;
}

.rep-page h3 {
    font-size: 20px;
    line-height: 1.3;
}

/* Built-in reporting: chart + track list */
.rep-built-grid {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Powerful Reporting visual */
.rep-built-visual {
    min-width: 0;
    padding-bottom: 46px;
    position: relative;
}





















































.rep-card-rank {
    bottom: 0;
    right: -22px;
}

.rep-page .rep-more {
    color: var(--rep-muted);
    font-size: 14.5px;
    margin-top: 16px;
}

.rep-track {
    min-width: 0;
}

.rep-page .rep-checks-2col {
    gap: 12px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.rep-page .rep-chips li {
    font-size: 13.5px;
    padding: 6px 13px;
}

/* Every area */
.rep-areas {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 18%, #f8fbfb 82%, #ffffff 100%);
}

.rep-areas-layout {
    align-items: stretch;
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.rep-areas-photo {
    display: flex;
    min-width: 0;
}

/* Daily Appointments mock fills the full height of the card grid */
.rep-day {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rep-day-nav {
    background: #0f2233;
    display: flex;
    gap: 4px;
    padding: 10px 14px;
}

.rep-day-nav b,
.rep-day-nav i {
    border-radius: 6px;
    color: #c5d0da;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    padding: 4px 8px;
}

.rep-day-nav .rep-day-on {
    background: rgba(41, 184, 199, 0.22);
    color: #ffffff;
}

.rep-day .rep-ui-head {
    padding: 16px 18px 10px;
}

.rep-day-sum {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 18px 14px;
}

.rep-day-sum span {
    background: #f7fafb;
    border: 1px solid #eef2f4;
    border-radius: 10px;
    color: #7b8492;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.3;
    padding: 8px 10px;
}

.rep-day-sum b {
    color: #111827;
    font-size: 17px;
}

.rep-day-body {
    border-top: 1px solid #eef1f3;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    justify-content: space-around;
    padding: 12px 0 16px;
}

.rep-page .rep-day-prov {
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 18px 6px;
    text-transform: uppercase;
}

.rep-day-cols,
.rep-day-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
    padding: 6px 18px;
}

.rep-day-cols {
    background: #9b3c6f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rep-day-row {
    border-top: 1px solid #f0f2f4;
    color: #1f2937;
    font-size: 12px;
}

.rep-day-row span:nth-child(2),
.rep-day-row span:nth-child(3) {
    color: #6b7280;
}

.rep-page .rep-area-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rep-area-grid li {
    background: #ffffff;
    border: 1px solid var(--rep-border);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(30, 43, 56, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px 24px;
}

.rep-area-grid .rep-icon {
    align-items: center;
    background: #fdf6e8;
    border-radius: 12px;
    color: var(--rep-gold);
    display: inline-flex;
    height: 48px;
    justify-content: center;
    margin-bottom: 6px;
    width: 48px;
}

.rep-area-grid .rep-icon svg {
    height: 24px;
    width: 24px;
}

.rep-page .rep-area-grid p {
    font-size: 15.5px;
}

/* Grow */
.rep-grow-panel {
    background: #f8f6f2;
    border-radius: 24px;
    padding: 52px 48px 48px;
}

.rep-grow-panel .rep-heading {
    margin-bottom: 32px;
}

.rep-grow-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rep-grow-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(30, 43, 56, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px 24px;
}

.rep-page .rep-grow-card p {
    font-size: 15.5px;
}

.rep-tile {
    align-items: center;
    background: linear-gradient(135deg, #e6f6f8 0%, #eef9ee 100%);
    border-radius: 12px;
    color: var(--rep-teal);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    margin-bottom: 6px;
    width: 44px;
}

.rep-tile svg {
    display: block;
}

.rep-tile-gold {
    background: #fdf3df;
    color: #c27a12;
}

.rep-tile-green {
    background: #eef8e6;
    color: #4fa82a;
}

@media (max-width: 991px) {
    .rep-built-grid {
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .rep-page .rep-area-grid,
    .rep-grow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rep-areas-layout {
        grid-template-columns: 1fr;
    }

    .rep-areas-photo {
        margin: 0 auto;
        max-width: 640px;
        width: 100%;
    }

    .rep-grow-panel {
        padding: 40px 28px;
    }

    .rep-card-bl { left: -12px; }

    .rep-built-visual {
        margin: 0 auto;
        max-width: 640px;
        width: 100%;
    }

}

@media (max-width: 575px) {
    .rep-page .rep-checks-2col,
    .rep-page .rep-area-grid,
    .rep-grow-grid {
        grid-template-columns: 1fr;
    }

    .rep-card-bl { order: 3; }











    .rep-card-rank {
        display: none;
    }

    .rep-built-visual {
        padding-bottom: 0;
    }

    .rep-grow-panel {
        padding: 32px 18px;
    }
}

/* Dashboard mock in the Medical Director section (sample data) */
.rep-director-visual {
    padding-bottom: 36px;
}

.rep-page .rep-director .rep-checks {
    margin-top: 24px;
}

.rep-dash {
    padding-bottom: 6px;
}

.rep-dash .rep-ui-head {
    padding: 16px 18px 4px;
}

.rep-dash-top {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 8px 18px 4px;
}

.rep-dash-tile {
    background: #f7fafb;
    border: 1px solid #eef2f4;
    border-radius: 12px;
    min-width: 0;
    padding: 2px 14px 14px;
}



.rep-dash-donut {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.rep-dash-donut svg {
    flex: 0 0 auto;
    height: 92px;
    width: 92px;
}

.rep-dash-donut ul {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rep-dash-donut li {
    align-items: center;
    color: #374151;
    display: flex;
    font-size: 12px;
    gap: 6px;
    line-height: 1.25;
}

.rep-dash-donut b {
    color: #111827;
    margin-left: auto;
    padding-left: 6px;
}

.rep-dash-dot {
    background: var(--c);
    border-radius: 50%;
    flex: 0 0 8px;
    height: 8px;
}

.rep-page .rep-dash-total {
    color: #111827;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin: 6px 0 8px;
}

.rep-dash-total small {
    color: #7b8492;
    display: block;
    font-size: 11px;
    font-weight: 500;
}

.rep-dash-rank li {
    align-items: center;
    border-top: 1px solid #edf1f3;
    color: #1f2937;
    display: flex;
    font-size: 12.5px;
    justify-content: space-between;
    padding: 5px 0;
}

.rep-dash-pill {
    background: #e9eef2;
    border-radius: 999px;
    color: #374151;
    font-size: 11.5px;
    padding: 2px 9px;
}

.rep-dash-pill-top {
    background: #137f8c;
    color: #ffffff;
}

.rep-page .rep-dash-label {
    margin: 14px 18px 8px;
}

.rep-dash .rep-dash-cols,
.rep-dash .rep-dash-row {
    grid-template-columns: 1fr 1.35fr 0.6fr 0.95fr;
}

.rep-dash-row span:nth-child(2),
.rep-dash-row span:nth-child(3) {
    color: #6b7280;
}

.rep-dash-row span:last-child {
    text-align: right;
}

.rep-dash-tag {
    background: #fbefe8;
    border-radius: 999px;
    color: #a2573a;
    display: inline-block;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    padding: 3px 9px;
    white-space: nowrap;
}

.rep-dash-tag-alt {
    background: #f4ecf1;
    color: #85587a;
}

.rep-dash-pill-top {
    background: #1f7f88;
}

.rep-dash-cols span:last-child {
    text-align: right;
}


@media (max-width: 575px) {
    .rep-dash-top {
        grid-template-columns: 1fr;
    }

    .rep-dash .rep-dash-cols,
    .rep-dash .rep-dash-row {
        grid-template-columns: 1fr auto auto;
    }

    .rep-dash-cols span:nth-child(3),
    .rep-dash-row span:nth-child(3) {
        display: none;
    }

    .rep-director-visual {
        padding-bottom: 0;
    }
}

/* Phones: floating cards sit in the normal flow (overrides the later desktop offsets) */
@media (max-width: 575px) {
    .rep-visual .rep-card {
        inset: auto;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }
}

@media (max-width: 1199px) {
    .rep-card-rank { right: -12px; }
}

@media (max-width: 575px) {
    .rep-day-nav i {
        display: none;
    }
}

/* Phones: compact area cards with the icon beside the title */
@media (max-width: 575px) {
    .rep-page .rep-area-grid {
        gap: 12px;
    }

    .rep-area-grid li {
        column-gap: 14px;
        display: grid;
        grid-template-columns: 40px 1fr;
        padding: 18px;
        row-gap: 4px;
    }

    .rep-area-grid .rep-icon {
        grid-row: 1 / span 2;
        height: 40px;
        margin: 0;
        width: 40px;
    }

    .rep-area-grid .rep-icon svg {
        height: 20px;
        width: 20px;
    }

    .rep-page .rep-area-grid h3 {
        align-self: center;
        font-size: 17px;
    }

    .rep-page .rep-area-grid p {
        font-size: 14.5px;
        line-height: 1.5;
    }
}

/* Director donut legend: keep each label on one line */
.rep-dash-donut li {
    font-size: 11.5px;
    white-space: nowrap;
}

.rep-dash-donut {
    gap: 12px;
}

.rep-dash-donut svg {
    height: 76px;
    width: 76px;
}

/* Grow cards: gold icon tiles to match the rest of the page */
.rep-grow-card .rep-tile,
.rep-grow-card .rep-tile-gold,
.rep-grow-card .rep-tile-green {
    background: #fdf6e8;
    color: var(--rep-gold);
}

/* Phones: compact grow cards with the icon beside the title */
@media (max-width: 575px) {
    .rep-grow-grid {
        gap: 12px;
    }

    .rep-grow-card {
        column-gap: 14px;
        display: grid;
        grid-template-columns: 40px 1fr;
        padding: 18px;
        row-gap: 4px;
    }

    .rep-grow-card .rep-tile {
        grid-row: 1 / span 2;
        height: 40px;
        margin: 0;
        width: 40px;
    }

    .rep-page .rep-grow-card h3 {
        align-self: center;
        font-size: 17px;
    }

    .rep-page .rep-grow-card p {
        font-size: 14.5px;
        line-height: 1.5;
    }
}

/* Daily Appointment Tools mock (80/20, sample data) */
.rep-ui.rdl {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    width: 100%;
}

.rdl-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.rdl-head {
    align-items: center;
    background: #f4f7fa;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    padding: 9px 12px;
}

.rdl-head strong { color: #111827; font-size: 14px; }

.rdl-win { align-items: center; display: inline-flex; gap: 9px; }
.rdl-win i { color: #6b7280; font-style: normal; font-weight: 700; line-height: 1; }
.rdl-win .rdl-i-print { border: 1.5px solid #9aa3ae; border-radius: 2px; height: 10px; width: 12px; }
.rdl-win .rdl-i-help { border: 1.5px solid #9aa3ae; border-radius: 50%; color: #9aa3ae; font-size: 9px; height: 13px; line-height: 10px; text-align: center; width: 13px; }
.rdl-win .rdl-i-close { color: #111827; font-size: 16px; }

.rdl-tabs { border-bottom: 1px solid #eef1f3; display: flex; gap: 14px; margin-top: 8px; }
.rdl-tabs b, .rdl-tabs i { font-size: 11px; font-style: normal; padding: 6px 0 7px; white-space: nowrap; }
.rdl-tabs b { box-shadow: inset 0 -2px 0 #9b3c6f; color: #111827; }
.rdl-tabs i { color: #6b7280; font-weight: 500; }

.rdl-filters { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; margin: 10px 0 2px; }
.rdl-filters span { border: 1px solid #e3e8ec; border-radius: 6px; color: #374151; font-size: 10px; padding: 3px 7px; }
.rdl-filters .rdl-search { color: #9aa3ae; min-width: 70px; }
.rdl-filters .rdl-date { background: #fbf3f7; border-color: #ead3df; color: #7a2f57; font-weight: 600; }

.rdl-body { display: flex; flex: 1; flex-direction: column; justify-content: space-around; }

.rep-page .rdl-prov { color: #9b3c6f; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; margin: 10px 0 4px; text-transform: uppercase; }

.rdl-cols, .rdl-row {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: 1.05fr 1.3fr 1fr 0.95fr 0.6fr;
    padding: 6px 8px;
}

.rdl-cols { background: #9b3c6f; border-radius: 7px 7px 0 0; color: #ffffff; font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.rdl-cols span:last-child { text-align: right; }
.rdl-row { border-top: 1px solid #f0f2f4; color: #1f2937; font-size: 11px; }
.rdl-row span:nth-child(2), .rdl-row span:nth-child(3) { color: #6b7280; }
.rdl-row-block { color: #9aa3ae; font-style: italic; }

.rdl-dot { border-radius: 50%; display: inline-block; height: 7px; margin-right: 5px; vertical-align: 1px; width: 7px; }
.rdl-a { background: #1f7f88; }
.rdl-y { background: #d99a2b; }
.rdl-n { background: #b8bfc7; }
.rdl-x { background: #d98a8a; }

.rdl-act { display: flex; gap: 4px; justify-content: flex-end; }
.rdl-act i { border: 1.3px solid #a9cfc4; color: #5e9a90; display: inline-block; font-size: 8px; font-style: normal; font-weight: 700; height: 11px; line-height: 8px; text-align: center; width: 11px; }
.rdl-act .rdl-i-text { border-radius: 50%; }
.rdl-act .rdl-i-mail { border: 0; font-size: 11px; }
.rdl-act .rdl-i-doc { border-color: #d9a7bd; border-radius: 1px 4px 1px 1px; width: 9px; }

/* Medical Director Dashboard mock (80/20, sample data) */
.rep-ui.rmd { font-family: 'Roboto', sans-serif; }
.rmd .rep-ui-head { padding: 16px 18px 10px; }
.rmd-tabs { display: inline-flex; gap: 4px; }
.rmd-tabs b, .rmd-tabs i { border-radius: 999px; font-size: 11.5px; font-style: normal; padding: 4px 10px; }
.rmd-tabs b { background: #e3f4f6; color: #0f6773; }
.rmd-tabs i { color: #7b8492; font-weight: 500; }

.rmd-stats { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2px 18px 16px; }
.rmd-stats span { border: 1px solid #eef1f3; border-radius: 10px; display: flex; flex-direction: column; line-height: 1.3; padding: 9px 12px; }
.rmd-stats small { color: #7b8492; font-size: 11px; }
.rmd-stats b { color: #111827; font-size: 20px; }

.rmd-cols, .rmd-row { align-items: center; display: grid; gap: 8px; grid-template-columns: 1fr 1.4fr 0.7fr 0.95fr; padding: 8px 18px; }
.rmd-cols { background: #9b3c6f; color: #ffffff; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rmd-row { border-top: 1px solid #eef1f3; color: #1f2937; font-size: 12.5px; }
.rmd-row span:nth-child(2), .rmd-row span:nth-child(3) { color: #6b7280; }
.rmd-row span:last-child, .rmd-cols span:last-child { text-align: right; }
.rmd-tag { background: #fbefe8; border-radius: 999px; color: #a2573a; display: inline-block; font-size: 10.5px; font-style: normal; font-weight: 700; padding: 3px 9px; white-space: nowrap; }

/* Filter list: gold dots, not pills */
.rep-page .rep-dotlist { display: grid; gap: 8px 22px; grid-template-columns: repeat(3, max-content); list-style: none; margin: 12px 0 0; padding: 0; }
.rep-dotlist li { color: #374151; font-size: 15px; line-height: 1.4; padding-left: 15px; position: relative; }
.rep-dotlist li::before { background: #d99a2b; border-radius: 50%; content: ""; height: 6px; left: 0; position: absolute; top: 0.55em; width: 6px; }

/* Downloadable Reports: plain white card */
.rep-plain-card { background: #ffffff; border-radius: 20px; box-shadow: 0 14px 34px rgba(30, 43, 56, 0.07); padding: 40px; }

@media (max-width: 575px) {
    .rep-page .rep-dotlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rep-plain-card { padding: 28px 22px; }

    .rdl-inner { padding: 10px; }
    .rdl-tabs i, .rdl-filters { display: none; }
    .rdl-cols, .rdl-row { grid-template-columns: 1fr 1.15fr 0.95fr; }
    .rdl-cols span:nth-child(3), .rdl-row span:nth-child(3),
    .rdl-cols span:nth-child(5), .rdl-row span:nth-child(5) { display: none; }

    .rmd .rep-ui-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .rmd-stats { gap: 6px; padding: 2px 12px 12px; }
    .rmd-stats b { font-size: 16px; }
    .rmd-cols, .rmd-row { grid-template-columns: 1fr 1.2fr auto; padding: 8px 12px; }
    .rmd-cols span:nth-child(3), .rmd-row span:nth-child(3) { display: none; }

    /* Hero and export photo: compact cards half on the frame edge, inset from the screen edges */
    .rep-hero .rep-visual,
    .rep-export .rep-visual {
        display: block;
        padding: 34px 0 34px;
        position: relative;
    }

    .rep-hero .rep-visual .rep-card,
    .rep-export .rep-visual .rep-card {
        gap: 10px;
        inset: auto;
        margin: 0;
        max-width: none;
        padding: 9px 14px 9px 9px;
        position: absolute;
        width: auto;
    }

    .rep-hero .rep-visual .rep-card-tr { bottom: auto; left: auto; right: 10px; top: 0; }
    .rep-hero .rep-visual .rep-card-bl,
    .rep-export .rep-visual .rep-card-bl { bottom: 0; left: 10px; right: auto; top: auto; }
    .rep-export .rep-visual { padding-top: 0; }

    .rep-hero .rep-card-icon,
    .rep-export .rep-card-icon { flex: 0 0 34px; height: 34px; width: 34px; }

    .rep-hero .rep-card-body strong,
    .rep-export .rep-card-body strong { font-size: 13px; }

    .rep-hero .rep-card-body small,
    .rep-export .rep-card-body small { font-size: 11px; white-space: nowrap; }
}

/* Downloadable reports: "And more." sits in the grid as the 8th item, with a small teal plus in the check spot */
.rep-checks li.rep-checks-more {
    color: var(--rep-text);
}

.rep-checks li.rep-checks-more::before {
    border: 0;
    color: var(--rep-teal);
    content: "+";
    font-size: 18px;
    font-weight: 300;
    height: auto;
    left: 3px;
    line-height: 1;
    top: 0.08em;
    transform: none;
    width: auto;
}

/* Dashboard mock in Powerful Reporting (modeled on the new dashboard; 80/20, sample data) */
.rep-ui.rdx { background: #f4f6f9; color: #111827; font-family: 'Roboto', sans-serif; }
.rdx-nav { align-items: center; background: linear-gradient(90deg, #2f3338 0%, #4a4f55 100%); display: flex; gap: 12px; padding: 8px 14px; }
.rep-ui.rdx img.rdx-logo { border-radius: 6px; flex: 0 0 24px; height: 24px; width: 24px; }
.rdx-links { display: flex; flex: 1; font-size: 10.5px; font-weight: 700; gap: 14px; min-width: 0; }
.rdx-links i { color: rgba(255, 255, 255, 0.78); font-style: normal; }
.rdx-links b { border-bottom: 2px solid #f2b41e; color: #ffffff; padding-bottom: 1px; }
.rdx-av { align-items: center; background: #e6e9ed; border-radius: 50%; color: #374151; display: inline-flex; flex: 0 0 24px; font-size: 9px; font-weight: 700; height: 24px; justify-content: center; }
.rdx-body { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.rdx-greet { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.rdx-greet > span:first-child { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rdx-greet strong { font-size: 14px; }
.rdx-greet small { color: #6b7280; font-size: 10px; }
.rdx-view { background: #ffffff; border: 1px solid #e5e9ee; border-radius: 8px; display: inline-flex; font-size: 10px; font-weight: 600; padding: 2px; }
.rdx-view i, .rdx-view b { border-radius: 6px; font-style: normal; padding: 4px 9px; }
.rdx-view i { color: #4b5563; }
.rdx-view b { background: #3f7f78; color: #ffffff; }
.rdx-kpis { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rdx-kpi { align-items: center; background: #ffffff; border-radius: 10px; box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05); display: flex; gap: 7px; min-width: 0; padding: 8px; }
.rdx-kpi > span:last-child { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rdx-kpi strong { font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdx-kpi small { color: #6b7280; font-size: 8.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdx-ring { --c: #3aa79a; align-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #edf0f3 0); border-radius: 50%; display: inline-flex; flex: 0 0 32px; height: 32px; justify-content: center; position: relative; }
.rdx-ring::before { background: #ffffff; border-radius: 50%; content: ""; inset: 4px; position: absolute; }
.rdx-ring b { font-size: 8.5px; position: relative; }
.rdx-r-blue { --c: #4f8fd9; }
.rdx-r-violet { --c: #7c6fd6; }
.rdx-r-gold { --c: #e2a93b; }
.rdx-mid, .rdx-bottom { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rdx-panel { background: #ffffff; border-radius: 10px; box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05); min-width: 0; padding: 10px; }
.rep-page .rdx-title { align-items: center; color: #111827; display: flex; font-size: 10.5px; font-weight: 700; justify-content: space-between; line-height: 1.3; margin: 0 0 8px; }
.rdx-prev { border: 1px solid #c9d0d8; border-radius: 5px; color: #374151; font-size: 8.5px; font-weight: 600; padding: 2px 6px; }
.rdx-status, .rdx-types { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rdx-status span { border-radius: 7px; color: #ffffff; display: grid; gap: 0 5px; grid-template-columns: auto 1fr; padding: 6px 7px; }
.rdx-status i { align-items: center; background: rgba(255, 255, 255, 0.3); border-radius: 50%; display: inline-flex; font-size: 7.5px; font-style: normal; font-weight: 700; height: 14px; justify-content: center; width: 14px; }
.rdx-status b { font-size: 12.5px; line-height: 14px; }
.rdx-status small { font-size: 8px; font-weight: 600; grid-column: 1 / -1; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdx-s-blue { background: #4f74ad; }
.rdx-s-gold { background: #c89a45; }
.rdx-s-red { background: #c4646b; }
.rdx-s-violet { background: #7c6aa8; }
.rdx-s-teal { background: #5795a8; }
.rdx-s-green { background: #5e9a72; }
.rdx-types span { border-radius: 7px; display: flex; flex-direction: column; line-height: 1.25; padding: 6px 8px; }
.rdx-types b { font-size: 12.5px; }
.rdx-types small { font-size: 8.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdx-t-gold { background: #fdf3df; color: #a8701a; }
.rdx-t-rose { background: #fbe9ea; color: #b4464f; }
.rdx-t-blue { background: #e9eefb; color: #3f63c4; }
.rdx-t-gray { background: #f1f3f5; color: #4b5563; }
.rdx-t-pink { background: #fce8ef; color: #c2416c; }
.rdx-t-mint { background: #e5f6f1; color: #2f8a76; }
.rdx-bars { display: flex; flex-direction: column; gap: 7px; padding-top: 2px; }
.rdx-bars div { align-items: center; display: grid; gap: 6px; grid-template-columns: 84px minmax(0, 1fr); }
.rdx-bars span { color: #4b5563; font-size: 8.5px; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.rdx-bars i { background: #6d9eeb; border-radius: 4px; display: block; height: 14px; position: relative; width: var(--w); }
.rdx-bars b { color: #1e3a6e; font-size: 8px; font-style: normal; left: calc(100% + 4px); line-height: 14px; position: absolute; white-space: nowrap; }
.rdx-bars div:first-child b { color: #ffffff; left: auto; right: 5px; }
.rdx-inv { align-items: center; display: flex; gap: 10px; }
.rdx-donut { align-items: center; background: conic-gradient(#4fbfa8 0 38.5%, #6d9eeb 38.5% 41.6%, #f3b23f 41.6% 77%, #e86f8f 77% 100%); border-radius: 50%; display: inline-flex; flex: 0 0 76px; height: 76px; justify-content: center; position: relative; }
.rdx-donut > span { align-items: center; background: #ffffff; border-radius: 50%; display: flex; flex-direction: column; inset: 14px; justify-content: center; line-height: 1.1; position: absolute; }
.rdx-donut small { color: #6b7280; font-size: 7.5px; }
.rdx-donut b { font-size: 13px; }
.rdx-legend { display: flex; flex: 1; flex-direction: column; gap: 4px; list-style: none; margin: 0; min-width: 0; padding: 0; }
.rdx-legend li { align-items: center; color: #374151; display: flex; font-size: 8.5px; font-weight: 600; gap: 5px; white-space: nowrap; }
.rdx-legend i { border-radius: 50%; flex: 0 0 7px; height: 7px; width: 7px; }
.rdx-legend b { margin-left: auto; }
.rdx-k1 { background: #4fbfa8; }
.rdx-k2 { background: #6d9eeb; }
.rdx-k3 { background: #f3b23f; }
.rdx-k4 { background: #e86f8f; }

.rep-built-visual .rep-card-rank { bottom: -14px; right: -22px; }

/* Laptops: the visual column is narrower */
@media (min-width: 992px) and (max-width: 1199px) {
    .rdx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rdx-links i:first-child { display: none; }
}

@media (max-width: 575px) {
    .rdx-body { gap: 8px; padding: 8px; }
    .rdx-links i:nth-child(-n+2) { display: none; }
    .rdx-view i:first-child { display: none; }
    .rdx-kpis, .rdx-mid, .rdx-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .rdx-mid, .rdx-bottom { grid-template-columns: 1fr; }
    .rdx-types-panel, .rdx-inv-panel { display: none; }
    .rep-built-visual .rep-card-rank { display: flex; margin: 14px auto 0; position: relative; inset: auto; width: max-content; max-width: 100%; }
}
