/* =========================================================
   CHURCH FINANCE SYSTEM
   FONT: MANROPE
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');


/* =========================================================
   GLOBAL RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   GLOBAL CFS FONT
   ========================================================= */

.cfs-layout,
.cfs-layout *,
.cfs-sidebar,
.cfs-sidebar *,
.cfs-content,
.cfs-content *,
.cfs-dashboard,
.cfs-dashboard *,
.cfs-form,
.cfs-form *,
.cfs-card,
.cfs-card *,
.cfs-hero,
.cfs-hero * {
    font-family: 'Manrope', sans-serif !important;
}


/* =========================================================
   MAIN DASHBOARD
   ========================================================= */

.cfs-dashboard {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.cfs-page-title {
    font-family: 'Manrope', sans-serif !important;

    font-size: 56px;
    font-weight: 800;

    color: #334867;

    line-height: 1.1;
    letter-spacing: -1px;

    margin: 0 0 35px;
}


/* =========================================================
   PAGE SUBTITLE
   ========================================================= */

.cfs-page-subtitle {
    font-family: 'Manrope', sans-serif !important;

    font-size: 20px;

    color: #6b7c97;

    margin-top: 12px;
    margin-bottom: 35px;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.cfs-summary {
    display: flex;

    width: 100%;

    gap: 20px;

    justify-content: center;
    align-items: stretch;

    margin: 35px 0;
}


/* =========================================================
   DASHBOARD CARDS
   ========================================================= */

.cfs-card {
    display: flex;

    align-items: center;

    gap: 20px;

    background: #fff;

    padding: 25px;

    border-radius: 18px;

    border: 1px solid #edf2f7;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);

    transition: .25s;

    min-width: 0;

    flex: 1 1 0;
}


/* =========================================================
   CARD INFO
   ========================================================= */

.cfs-card-info {
    flex: 1;

    min-width: 0;
}


/* Card heading */

.cfs-card-info h3 {
    font-family: 'Manrope', sans-serif !important;

    margin: 0;

    font-size: 18px;

    font-weight: 500;

    color: #666;

    line-height: 1.2;
}


/* Card number */

.cfs-card-info h2 {
    font-family: 'Manrope', sans-serif !important;

    margin: 8px 0 0 0 !important;

    font-size: 30px !important;

    font-weight: 800 !important;

    color: #334867 !important;

    line-height: 1.1 !important;

    letter-spacing: -0.5px !important;

    white-space: nowrap !important;

    overflow: visible !important;
}


/* =========================================================
   CARD ICON
   ========================================================= */

.cfs-card-icon {
    width: 68px;
    height: 68px;

    border: 2px solid #334867;

    border-radius: 50%;

    display: flex;

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

    flex-shrink: 0;
}


.cfs-card-icon img {
    width: 34px;
    height: 34px;

    object-fit: contain;
}


/* =========================================================
   FORMS
   ========================================================= */

.cfs-form {
    width: 100%;
    max-width: 100%;

    margin-top: 35px;

    background: #ffffff;

    border-radius: 20px;

    padding: 35px;

    border: 1px solid #edf2f7;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}


.cfs-form label {
    display: block;

    margin-bottom: 6px;

    font-family: 'Manrope', sans-serif !important;

    font-weight: 600;
}


.cfs-form input[type="number"],
.cfs-form input[type="date"] {
    width: 100%;
    max-width: 100%;

    padding: 12px;

    margin-bottom: 15px;

    border: 1px solid #ddd;

    border-radius: 6px;

    font-family: 'Manrope', sans-serif !important;
}


.cfs-form input,
.cfs-form select,
.cfs-form textarea {
    max-width: 100%;

    font-family: 'Manrope', sans-serif !important;
}


/* =========================================================
   FORM SUBMIT
   ========================================================= */

.cfs-form input[type="submit"] {
    background: #334867;

    color: #fff;

    border: none;

    border-radius: 12px;

    padding: 18px 34px;

    min-width: 220px;

    font-family: 'Manrope', sans-serif !important;

    font-size: 18px;

    font-weight: 700;

    cursor: pointer;

    transition: all .25s ease;

    box-shadow: 0 8px 20px rgba(51, 72, 103, .18);
}


.cfs-form input[type="submit"]:hover {
    background: #172d4c;

    color: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(51, 72, 103, .15);
}


/* =========================================================
   SAVE BUTTON
   ========================================================= */

.cfs-save-btn {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    background: #334867;

    color: #fff;

    border: none;

    border-radius: 12px;

    padding: 18px 34px;

    min-width: 220px;

    justify-content: center;

    font-family: 'Manrope', sans-serif !important;

    font-size: 18px;

    font-weight: 700;

    cursor: pointer;

    transition: .25s;

    box-shadow: 0 8px 20px rgba(51, 72, 103, .18);
}


.cfs-save-btn:hover {
    background: #eef3fa;

    color: #334867;

    transform: translateY(-3px);
}


.cfs-save-btn .dashicons {
    font-size: 20px;

    width: 20px;
    height: 20px;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.cfs-layout {
    display: flex;

    align-items: stretch;

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    gap: 35px;

    padding: 25px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.cfs-sidebar {
    width: 280px;

    min-width: 280px;

    flex: 0 0 280px;

    min-height: 100vh;

    background: #eef3fa;

    padding: 55px 35px;

    border-radius: 0;

    box-sizing: border-box;
}


.cfs-sidebar h1 {
    font-family: 'Manrope', sans-serif !important;

    font-size: 54px;

    line-height: 1.1;

    color: #334867;

    font-weight: 800;

    margin: 0 0 25px;
}


.cfs-sidebar-description {
    font-family: 'Manrope', sans-serif !important;

    color: #7a8798;

    font-size: 18px;

    line-height: 1.8;

    margin-bottom: 50px;
}


/* =========================================================
   SIDEBAR MENU
   ========================================================= */

.cfs-sidebar-menu {
    width: 100%;
}


.cfs-sidebar-menu a {
    display: flex;

    align-items: center;

    width: 100%;

    min-height: 52px;

    padding: 12px 20px;

    margin-bottom: 12px;

    background: #ffffff;

    border: 1px solid #d9e3ef;

    border-radius: 14px;

    text-decoration: none;

    color: #334867;

    font-family: 'Manrope', sans-serif !important;

    font-size: 20px;

    font-weight: 600;

    transition: .25s;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .05);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.cfs-sidebar-menu a:hover {
    transform: translateY(-2px);

    border-color: #334867;
}


/* =========================================================
   CONTENT
   ========================================================= */

.cfs-content {
    flex: 1 1 auto;

    min-width: 0;

    width: auto;

    display: flex;

    justify-content: center;
}


/* =========================================================
   DASHBOARD HEADINGS
   ========================================================= */

.cfs-dashboard h2 {
    font-family: 'Manrope', sans-serif !important;

    font-size: 48px;

    color: #334867;

    font-weight: 800;

    margin-bottom: 6px;
}


.cfs-welcome-text {
    font-family: 'Manrope', sans-serif !important;

    color: #7b8797;

    font-size: 18px;

    line-height: 1.7;

    margin-bottom: 35px;
}


/* =========================================================
   HERO
   ========================================================= */

.cfs-hero {
    width: 100%;

    max-width: 100%;

    background: linear-gradient(
        135deg,
        #334867 0%,
        #00acbb  100%
    );

    border-radius: 24px;

    padding: 45px 50px;

    margin-top: 0;

    margin-bottom: 35px;

    color: #fff;

    position: relative;

    overflow: hidden;
}


.cfs-hero::before {
    content: "";

    position: absolute;

    top: -120px;
    right: -80px;

    width: 300px;
    height: 300px;

    background: rgba(255, 255, 255, .18);

    border-radius: 50%;
}


.cfs-hero::after {
    content: "";

    position: absolute;

    left: -120px;
    bottom: -120px;

    width: 260px;
    height: 260px;

    background: rgba(255, 255, 255, .08);

    border-radius: 50%;
}


.cfs-hero h1,
.cfs-hero h2 {
    max-width: 100%;

    overflow-wrap: break-word;
}


.cfs-hero h2 {
    font-family: 'Manrope', sans-serif !important;

    margin: 0;

    font-size: 58px;

    font-weight: 800;

    color: #fff;

    line-height: 1.1;
}


.cfs-hero p {
    font-family: 'Manrope', sans-serif !important;

    margin-top: 10px;

    font-size: 20px;

    color: rgba(255, 255, 255, .92);

    position: relative;

    z-index: 2;
}


/* =========================================================
   WORDPRESS CONTENT
   ========================================================= */

.page,
.site,
.site-content,
.entry-content {
    max-width: 100% !important;

    width: 100% !important;
}


/* =========================================================
   TABLES
   ========================================================= */

.cfs-dashboard table {
    width: 100%;

    max-width: 100%;

    box-sizing: border-box;

    font-family: 'Manrope', sans-serif !important;
}


.cfs-dashboard table th,
.cfs-dashboard table td {
    font-family: 'Manrope', sans-serif !important;
}


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

@media (max-width: 1399px) {

    .cfs-layout {
        max-width: 1200px;

        gap: 25px;

        padding: 20px;
    }

    .cfs-sidebar {
        width: 250px;

        min-width: 250px;

        flex-basis: 250px;
    }

    .cfs-dashboard {
        max-width: 100%;
    }

    .cfs-card-info h2 {
        font-size: 34px !important;
    }
}


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

@media (max-width: 1024px) {

    .cfs-layout {
        gap: 20px;

        padding: 18px;
    }

    .cfs-sidebar {
        width: 220px;

        min-width: 220px;

        flex-basis: 220px;

        padding: 30px 18px;
    }

    .cfs-sidebar h1 {
        font-size: 34px;

        line-height: 1.05;
    }

    .cfs-sidebar-description {
        font-size: 15px;

        line-height: 1.7;
    }

    .cfs-sidebar-menu a {
        min-height: 48px;

        padding: 10px 15px;

        font-size: 15px;
    }

    .cfs-hero {
        padding: 30px;
    }

    .cfs-hero h1,
    .cfs-hero h2 {
        font-size: 42px;
    }

    .cfs-summary {
        gap: 15px;
    }

    .cfs-card {
        padding: 25px 18px;
    }

    .cfs-card-info h3 {
        font-size: 16px;
    }

    .cfs-card-info h2 {
        font-size: 30px !important;
    }
}


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

@media (max-width: 768px) {

    html,
    body {
        width: 100%;

        max-width: 100%;

        overflow-x: hidden;
    }


    .cfs-layout {
        display: flex;

        flex-direction: column;

        width: 100%;

        max-width: 100%;

        gap: 20px;

        padding: 15px;

        margin: 0;
    }


    /* -----------------------------------------------------
       SIDEBAR
       ----------------------------------------------------- */

    .cfs-sidebar {
        display: block !important;

        width: 100% !important;

        min-width: 0 !important;

        flex: none !important;

        height: auto !important;

        min-height: 0 !important;

        margin: 0 !important;

        padding: 18px 14px 70px !important;

        box-sizing: border-box !important;

        position: static !important;

        overflow: visible !important;
    }


    .cfs-sidebar h1 {
        display: block !important;

        float: none !important;

        position: static !important;

        width: 100% !important;

        margin: 0 0 8px 0 !important;

        padding: 0 !important;

        font-size: 28px !important;

        line-height: 1.05 !important;

        text-align: left !important;
    }


    .cfs-sidebar-description {
        display: block !important;

        float: none !important;

        position: static !important;

        width: 100% !important;

        margin: 0 0 14px 0 !important;

        padding: 0 !important;

        font-size: 12px !important;

        line-height: 1.45 !important;

        text-align: left !important;
    }


    /* -----------------------------------------------------
       SIDEBAR MENU
       ----------------------------------------------------- */

    .cfs-sidebar-menu {
        display: grid !important;

        position: static !important;

        float: none !important;

        width: 100% !important;

        height: auto !important;

        min-height: 0 !important;

        margin: 0 !important;

        padding: 0 !important;

        clear: both !important;

        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        ) !important;

        gap: 8px !important;

        align-content: start !important;

        align-items: start !important;
    }


    .cfs-sidebar-menu a {
        display: flex !important;

        position: static !important;

        float: none !important;

        width: 100% !important;

        min-width: 0 !important;

        max-width: 100% !important;

        min-height: 40px !important;

        height: auto !important;

        margin: 0 !important;

        padding: 7px 6px !important;

        box-sizing: border-box !important;

        align-items: center !important;

        justify-content: center !important;

        text-align: center !important;

        font-size: 12px !important;

        line-height: 1.2 !important;

        border-radius: 9px !important;
    }


    .cfs-sidebar-menu a:last-child {
        grid-column: 1 / -1 !important;

        width: 50% !important;

        justify-self: center !important;

        margin-top: 0 !important;
    }


    /* -----------------------------------------------------
       CONTENT
       ----------------------------------------------------- */

    .cfs-content {
        width: 100%;

        min-width: 0;
    }


    .cfs-dashboard {
        width: 100%;

        max-width: 100%;

        padding: 0;

        margin: 0;
    }


    /* -----------------------------------------------------
       PAGE TITLE
       ----------------------------------------------------- */

    .cfs-page-title {
        font-size: 38px;

        line-height: 1.1;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .cfs-hero {
        width: 100%;

        padding: 28px 24px;

        margin: 0 0 20px;

        border-radius: 20px;
    }


    .cfs-hero h1,
    .cfs-hero h2 {
        font-size: 34px;

        line-height: 1.1;

        margin-bottom: 10px;
    }


    .cfs-hero p {
        font-size: 16px;

        line-height: 1.5;
    }


    /* -----------------------------------------------------
       SUMMARY
       ----------------------------------------------------- */

    .cfs-summary {
        display: grid;

        grid-template-columns: 1fr;

        gap: 14px;

        width: 100%;
    }


    /* -----------------------------------------------------
       CARDS
       ----------------------------------------------------- */

    .cfs-card {
        display: flex;

        flex-direction: row;

        align-items: center;

        justify-content: flex-start;

        width: 100%;

        min-width: 0;

        padding: 18px 14px;

        gap: 16px;

        text-align: left;

        overflow: hidden;
    }


    .cfs-card-info {
        min-width: 0;
    }


    .cfs-card-info h3 {
        width: auto;

        margin: 0;

        font-family: 'Manrope', sans-serif !important;

        font-size: 17px;

        line-height: 1.2;

        text-align: left;
    }


    .cfs-card-info h2 {
        width: auto;

        margin: 5px 0 0 0 !important;

        font-family: 'Manrope', sans-serif !important;

        font-size: 27px !important;

        font-weight: 800 !important;

        line-height: 1.1 !important;

        text-align: left;

        white-space: nowrap !important;

        overflow: visible !important;
    }


    /* -----------------------------------------------------
       FORMS
       ----------------------------------------------------- */

    .cfs-form {
        width: 100%;

        max-width: 100%;

        padding: 25px 20px;

        margin: 0;
    }


    .cfs-form input,
    .cfs-form select,
    .cfs-form textarea {
        width: 100%;

        max-width: 100%;
    }


    .cfs-form input[type="submit"],
    .cfs-form button {
        width: 100%;

        max-width: 100%;
    }
}


/* =========================================================
   WEEKLY & MONTHLY REPORT
   DESKTOP
   ========================================================= */

@media (min-width: 769px) {

    .cfs-report-page .cfs-summary {
        display: grid !important;

        grid-template-columns: repeat(2, 1fr) !important;

        gap: 24px !important;

        width: 100% !important;
    }


    .cfs-report-page .cfs-summary .cfs-card {
        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        justify-content: center !important;

        width: 100% !important;

        min-width: 0 !important;

        padding: 25px 20px !important;

        text-align: center !important;
    }


    .cfs-report-page .cfs-summary .cfs-card h3 {
        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;

        text-align: center !important;

        font-family: 'Manrope', sans-serif !important;

        font-size: 20px !important;

        line-height: 1 !important;
    }


    .cfs-report-page .cfs-summary .cfs-card h2 {
        width: 100% !important;

        margin: 5px 0 0 0 !important;

        padding: 0 !important;

        text-align: center !important;

        font-family: 'Manrope', sans-serif !important;

        font-size: 42px !important;

        line-height: 1 !important;

        font-weight: 800 !important;

        white-space: nowrap !important;
    }
}


/* =========================================================
   WEEKLY & MONTHLY REPORT
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .cfs-report-page .cfs-summary {
        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 14px !important;

        width: 100% !important;
    }


    .cfs-report-page .cfs-summary .cfs-card {
        display: block !important;

        width: 100% !important;

        min-width: 0 !important;

        max-width: 100% !important;

        padding: 20px 15px !important;

        text-align: center !important;

        overflow: hidden !important;
    }


    .cfs-report-page .cfs-summary .cfs-card h3 {
        display: block !important;

        width: 100% !important;

        margin: 0 0 8px !important;

        padding: 0 !important;

        text-align: center !important;

        font-family: 'Manrope', sans-serif !important;

        font-size: 17px !important;

        line-height: 1.2 !important;
    }


    .cfs-report-page .cfs-summary .cfs-card h2 {
        display: block !important;

        width: 100% !important;

        max-width: 100% !important;

        min-width: 0 !important;

        margin: 0 !important;

        padding: 0 !important;

        text-align: center !important;

        font-family: 'Manrope', sans-serif !important;

        font-size: 27px !important;

        line-height: 1.1 !important;

        font-weight: 800 !important;

        white-space: nowrap !important;

        overflow: hidden !important;
    }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

    .cfs-layout {
        padding: 10px;

        gap: 15px;
    }


    .cfs-sidebar {
        padding: 16px 12px 70px !important;
    }


    .cfs-sidebar h1 {
        font-size: 28px !important;

        line-height: 1.05 !important;

        margin-bottom: 8px !important;
    }


    .cfs-sidebar-description {
        font-size: 12px !important;

        line-height: 1.4 !important;

        margin-bottom: 14px !important;
    }


    .cfs-sidebar-menu {
        gap: 7px !important;

        margin: 0 !important;
    }


    .cfs-sidebar-menu a {
        min-height: 38px !important;

        padding: 7px 6px !important;

        font-size: 12px !important;
    }


    .cfs-sidebar-menu a:last-child {
        width: 50% !important;

        margin-top: 0 !important;
    }


    .cfs-hero {
        padding: 25px 18px;

        border-radius: 18px;
    }


    .cfs-hero h1,
    .cfs-hero h2 {
        font-size: 30px;
    }


    .cfs-hero p {
        font-size: 15px;
    }


    .cfs-summary {
        gap: 12px;
    }


    .cfs-card {
        padding: 20px 15px;
    }


    .cfs-card-info h3 {
        font-size: 15px;
    }


    .cfs-card-info h2 {
        font-family: 'Manrope', sans-serif !important;

        font-size: 24px !important;

        font-weight: 800 !important;
    }


    .cfs-form {
        padding: 22px 16px;
    }


    .cfs-form-title {
        font-size: 32px !important;
    }


    .cfs-form-subtitle {
        font-size: 15px;
    }


    .cfs-report-page .cfs-summary .cfs-card h2 {
        font-family: 'Manrope', sans-serif !important;

        font-size: 24px !important;

        font-weight: 800 !important;
    }
}


/* =========================================================
   VERY SMALL PHONE
   ========================================================= */

@media (max-width: 360px) {

    .cfs-layout {
        padding: 8px;
    }


    .cfs-sidebar {
        padding: 20px 12px 70px !important;
    }


    .cfs-sidebar h1 {
        font-size: 29px !important;
    }


    .cfs-sidebar-menu a {
        font-size: 13px !important;
    }


    .cfs-hero h1,
    .cfs-hero h2 {
        font-size: 27px;
    }


    .cfs-card-info h2 {
        font-family: 'Manrope', sans-serif !important;

        font-size: 25px !important;

        font-weight: 800 !important;
    }


    .cfs-form-title {
        font-size: 29px !important;
    }
}

/* =========================================================
   RESPONSIVE LAYOUT FIX ONLY
   IMPORTANT: NO FONT STYLE OR FONT SIZE CHANGES
   ========================================================= */

/* 1025px - 1399px
   Keep the existing typography exactly as-is.
   Only make the dashboard fit safely. */
@media (min-width: 1025px) and (max-width: 1399px) {

    .cfs-layout {
        width: 100% !important;
        max-width: 1200px !important;
        gap: 20px !important;
        padding: 18px !important;
    }

    .cfs-sidebar {
        width: 250px !important;
        min-width: 250px !important;
        flex: 0 0 250px !important;
        box-sizing: border-box !important;
    }

    .cfs-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .cfs-dashboard {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .cfs-hero {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Stack cards so long amounts have the same safe layout
       without changing their existing typography. */
    .cfs-summary {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 15px !important;
    }

    .cfs-summary .cfs-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .cfs-summary .cfs-card-info {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .cfs-summary .cfs-card-info h2 {
        max-width: 100% !important;
        overflow: visible !important;
    }

    .cfs-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}


/* 769px - 1024px
   Fix the 899px screenshot using the existing tablet
   typography exactly as already defined above. */
@media (min-width: 769px) and (max-width: 1024px) {

    .cfs-layout {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 20px !important;
        padding: 18px !important;
        box-sizing: border-box !important;
    }

    .cfs-sidebar {
        width: 220px !important;
        min-width: 220px !important;
        flex: 0 0 220px !important;
        box-sizing: border-box !important;
    }

    .cfs-content {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .cfs-dashboard {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .cfs-hero {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* The key fix for 899px:
       one summary card per row. */
    .cfs-summary {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 15px !important;
    }

    .cfs-summary .cfs-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .cfs-summary .cfs-card-info {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .cfs-summary .cfs-card-info h2 {
        max-width: 100% !important;
        overflow: visible !important;
    }

    .cfs-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .cfs-form input,
    .cfs-form select,
    .cfs-form textarea {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* 769px - 850px
   Only tighten layout spacing. Typography remains untouched. */
@media (min-width: 769px) and (max-width: 850px) {

    .cfs-layout {
        gap: 14px !important;
        padding: 14px !important;
    }

    .cfs-sidebar {
        width: 205px !important;
        min-width: 205px !important;
        flex-basis: 205px !important;
    }
}


/* Up to 768px
   Keep the existing mobile rules, with only width safety. */
@media (max-width: 768px) {

    .cfs-layout,
    .cfs-content,
    .cfs-dashboard,
    .cfs-summary,
    .cfs-card,
    .cfs-form {
        max-width: 100% !important;
    }

    .cfs-card-info {
        min-width: 0 !important;
    }
}

