/* =========================================
   ToolNest
   Main Stylesheet
========================================= */

:root {
    --toolnest-primary: #4f46e5;
    --toolnest-primary-dark: #3730a3;
    --toolnest-text: #1f2937;
    --toolnest-muted: #6b7280;
    --toolnest-light: #f8fafc;
    --toolnest-border: #e5e7eb;
}


/* =========================================
   General
========================================= */

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--toolnest-text);

    background: #fbfcff;
}

a {
    text-decoration: none;
}


/* =========================================
   Brand
========================================= */

.brand-icon {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--toolnest-primary);
    color: #ffffff;

    border-radius: 10px;

    font-weight: 700;
    font-size: 1.1rem;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--toolnest-text);
}


/* =========================================
   Header / Navigation
========================================= */

.site-header {
    z-index: 1000;
}

.site-header .navbar {
    min-height: 72px;

    background: rgba(255, 255, 255, 0.96) !important;

    backdrop-filter: blur(10px);

    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.05);
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.nav-link {
    color: #374151 !important;

    font-weight: 500;

    padding: 0.7rem 1rem !important;

    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--toolnest-primary) !important;
}

.navbar-toggler {
    border: 1px solid #e5e7eb;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* =========================================
   Footer
========================================= */

.site-footer {
    margin-top: 0;

    background: #111827;

    color: #d1d5db;
}

.site-footer .footer-brand .brand-name {
    color: #ffffff;
}

.site-footer .footer-brand .brand-icon {
    background: var(--toolnest-primary);
    color: #ffffff;
}

.site-footer .footer-brand p {
    max-width: 420px;

    color: #9ca3af;

    line-height: 1.7;
}

.footer-heading {
    margin-bottom: 1.2rem;

    color: #ffffff;

    font-size: 0.95rem;

    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #9ca3af;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.10);

    opacity: 1;
}

.site-footer .copyright {
    color: #6b7280;
}

/* =========================================
   Footer Bottom
========================================= */

.footer-bottom {
    padding: 18px 0;

    background: #0b1220;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    color: #6b7280;

    font-size: 0.85rem;
}

/* =========================================
   Hero
========================================= */

.hero-section {
    position: relative;

    padding: 95px 0 90px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(99, 102, 241, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(59, 130, 246, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #f4f7ff 0%,
            #fbfcff 100%
        );

    overflow: hidden;
}

.hero-badge {
    display: inline-block;

    padding: 7px 14px;

    background: #eef2ff;
    color: var(--toolnest-primary);

    border-radius: 50px;

    font-size: 0.85rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-title span {
    color: var(--toolnest-primary);
}

.hero-description {
    max-width: 650px;
    margin: 20px auto 0;

    font-size: 1.15rem;
    line-height: 1.7;

    color: var(--toolnest-muted);
}

.hero-search {
    max-width: 650px;
}

.hero-search .form-control,
.hero-search .input-group-text {
    border-color: var(--toolnest-border);
}

.hero-search .form-control:focus {
    box-shadow: none;
    border-color: var(--toolnest-primary);
}

.hero-search .input-group-text {
    color: var(--toolnest-muted);
}


/* =========================================
   Sections
========================================= */

.section-heading h2 {
    font-size: 2rem;
    font-weight: 700;
}

.section-heading p {
    color: var(--toolnest-muted);
}


/* =========================================
   Tool Cards
========================================= */

.tool-card {
    display: block;

    padding: 28px;

    background: #ffffff;

    border: 1px solid var(--toolnest-border);

    border-radius: 16px;

    color: var(--toolnest-text);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tool-card:hover {
    color: var(--toolnest-text);

    transform: translateY(-4px);

    border-color: #c7d2fe;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.08);
}

.tool-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    background: #eef2ff;

    color: var(--toolnest-primary);

    border-radius: 12px;

    font-size: 1.4rem;
    font-weight: 700;
}

.tool-card h3 {
    font-size: 1.15rem;
    font-weight: 650;
}

.tool-card p {
    color: var(--toolnest-muted);
    line-height: 1.6;
}

.tool-link {
    display: inline-block;

    margin-top: 5px;

    color: var(--toolnest-primary);

    font-weight: 600;
}


/* =========================================
   Categories
========================================= */

.categories-section {
    background:
        linear-gradient(
            180deg,
            #f3f6ff 0%,
            #f8faff 100%
        );

    border-top: 1px solid #edf0f7;
    border-bottom: 1px solid #edf0f7;
}

.category-card {
    display: block;

    padding: 35px;

    background: #ffffff;

    border: 1px solid var(--toolnest-border);

    border-radius: 18px;

    color: var(--toolnest-text);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.category-card:hover {
    color: var(--toolnest-text);

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 650;
}

.category-card p {
    color: var(--toolnest-muted);
    line-height: 1.7;
}

.category-card span {
    color: var(--toolnest-primary);
    font-weight: 600;
}


/* =========================================
   Features
========================================= */

.feature-item {
    padding: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    background: #eef2ff;

    color: var(--toolnest-primary);

    border-radius: 50%;

    font-weight: 700;
}

.feature-item h5 {
    font-weight: 650;
}

.feature-item p {
    color: var(--toolnest-muted);
    font-size: 0.95rem;
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 767px) {

    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-search .btn {
        display: none;
    }

    .hero-search .input-group-text {
        padding-left: 15px;
    }

}

/* =========================================
   Latest Tools
========================================= */

.latest-tool-card {
    display: block;

    padding: 18px;

    background: #ffffff;

    border: 1px solid var(--toolnest-border);

    border-radius: 14px;

    color: var(--toolnest-text);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.latest-tool-card:hover {
    color: var(--toolnest-text);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.07);
}

.latest-tool-card h5 {
    font-size: 0.95rem;
    font-weight: 650;
}

.latest-tool-card small {
    display: block;

    max-width: 180px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   Tool Page
========================================= */

.tool-page {
    min-height: 600px;
}

.tool-page-header {
    padding: 20px 0 10px;
}

.tool-page-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    background: #eef2ff;

    color: var(--toolnest-primary);

    border-radius: 18px;

    font-size: 2rem;
}

.tool-page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 700;

    letter-spacing: -0.8px;
}

.tool-workspace {
    padding: 35px;

    background: #ffffff;

    border: 1px solid var(--toolnest-border);

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.05);
}

.tool-placeholder {
    min-height: 250px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.tool-placeholder h3 {
    font-weight: 650;
}

.tool-description {
    line-height: 1.8;
}

.tool-description h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* =========================================
   Category Page
========================================= */

.category-page {
    min-height: 600px;
}

.category-page-header {
    padding: 20px 0;
}

.category-page-icon {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    background: #eef2ff;

    border-radius: 20px;

    font-size: 2.2rem;
}

.category-page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);

    font-weight: 700;

    letter-spacing: -0.7px;
}

/* =========================================
   All Tools Page
========================================= */

.tools-page {
    min-height: 600px;
}

.tools-page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);

    font-weight: 700;

    letter-spacing: -0.7px;
}

/* =========================================
   TOOLNEST CALCULATOR
========================================= */

.calculator-container {
    max-width: 950px;
    margin: 35px auto 0;
}


/* Calculator Panel */

.calculator-panel {
    position: relative;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.calculator-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.09);
}


/* Number */

.calculator-panel-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: #eaf2ff;
    color: #0d6efd;

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 18px;
}


/* Heading */

.calculator-panel-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #182230;
    margin-bottom: 8px;
}


.calculator-panel-description {
    color: #6c757d;
    margin-bottom: 25px;
}


/* Formula */

.calculator-formula {
    background: linear-gradient(
        135deg,
        #f5f9ff,
        #eef5ff
    );

    border: 1px solid #dce9ff;

    border-radius: 14px;

    padding: 18px 20px;

    margin-bottom: 28px;
}


.calculator-formula-label {
    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.2px;

    color: #0d6efd;

    margin-bottom: 8px;
}


.calculator-formula-text {
    font-size: 1rem;
    font-weight: 600;
    color: #26364a;
    line-height: 1.7;
}


.calculator-formula-note {
    margin-top: 8px;

    font-size: 0.85rem;

    color: #6c757d;

    line-height: 1.6;
}


/* Labels */

.calculator-label {
    display: block;

    font-size: 0.9rem;

    font-weight: 600;

    color: #344054;

    margin-bottom: 8px;
}


/* Inputs */

.calculator-input-wrapper {
    position: relative;
}


.calculator-input {
    width: 100%;

    min-height: 54px;

    border: 2px solid #e4e7ec;

    border-radius: 12px;

    padding: 12px 16px;

    font-size: 1.05rem;

    font-weight: 500;

    color: #182230;

    background: #fff;

    outline: none;

    transition: all 0.2s ease;
}

.bmi-unit-select {
    width: 40%;

    min-height: 54px;

    border: 2px solid #e4e7ec;

    border-radius: 12px;

    padding: 12px 16px;

    font-size: 1.05rem;

    font-weight: 500;

    color: #182230;

    background: #fff;

    outline: none;

    transition: all 0.2s ease;
}

.bmi-unit-input {
    width: 40%;

    min-height: 54px;

    border: 2px solid #e4e7ec;

    border-radius: 12px;

    padding: 12px 16px;

    font-size: 1.05rem;

    font-weight: 500;

    color: #182230;

    background: #fff;

    outline: none;

    transition: all 0.2s ease;
}


.calculator-input:focus {
    border-color: #0d6efd;

    box-shadow:
        0 0 0 4px
        rgba(13, 110, 253, 0.10);
}


.calculator-input::placeholder {
    color: #adb5bd;
}


/* Input Symbol */

.calculator-input-wrapper
.calculator-input {
    padding-right: 50px;
}


.calculator-input-symbol {
    position: absolute;

    right: 17px;

    top: 50%;

    transform: translateY(-50%);

    font-weight: 700;

    color: #6c757d;
}


/* Button */

.calculator-button {
    width: 100%;

    min-height: 54px;

    border: none;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #0d6efd,
        #0a58ca
    );

    color: #fff;

    font-weight: 700;

    padding: 12px 15px;

    cursor: pointer;

    transition: all 0.2s ease;

    box-shadow:
        0 6px 16px
        rgba(13, 110, 253, 0.20);
}


.calculator-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 9px 20px
        rgba(13, 110, 253, 0.28);
}


.calculator-button:active {
    transform: translateY(0);
}


/* Result */

.calculator-result {
    margin-top: 25px;

    padding: 22px;

    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #ecfdf3,
        #f4fff8
    );

    border: 1px solid #c9f0d8;

    text-align: center;

    animation: resultAppear 0.25s ease;
}


.result-label {
    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.2px;

    color: #198754;

    margin-bottom: 5px;
}


.result-value {
    font-size: 2rem;

    font-weight: 800;

    color: #146c43;

    line-height: 1.3;

    margin: 5px 0;
}


.result-explanation {
    color: #4b6356;

    font-size: 0.9rem;

    margin-top: 6px;
}


@keyframes resultAppear {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   TOOL HERO
========================================= */

.tool-hero {
    max-width: 800px;

    margin: 15px auto 35px;

    padding: 20px;
}


.tool-hero-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: linear-gradient(
        135deg,
        #0d6efd,
        #6610f2
    );

    color: #fff;

    font-size: 2rem;

    box-shadow:
        0 10px 25px
        rgba(13, 110, 253, 0.20);
}


.tool-hero-title {
    font-size: 2.4rem;

    font-weight: 800;

    color: #182230;

    margin-bottom: 10px;
}


.tool-hero-description {
    color: #667085;

    font-size: 1.05rem;

    max-width: 650px;

    margin: auto;

    line-height: 1.7;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .calculator-panel {
        padding: 22px 18px;

        border-radius: 16px;
    }


    .calculator-panel-title {
        font-size: 1.25rem;
    }


    .calculator-button {
        margin-top: 5px;
    }


    .tool-hero-title {
        font-size: 1.9rem;
    }


    .tool-hero-description {
        font-size: 0.95rem;
    }


    .result-value {
        font-size: 1.7rem;
    }

}

/* =========================================
   AGE CALCULATOR
========================================= */

.age-stat-card {
    background: #f8fafc;

    border: 1px solid #e8edf3;

    border-radius: 16px;

    padding: 22px 15px;

    text-align: center;

    height: 100%;

    transition: all 0.2s ease;
}


.age-stat-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.07);

    background: #ffffff;
}


.age-stat-icon {
    font-size: 1.5rem;

    margin-bottom: 8px;
}


.age-stat-value {
    font-size: 1.45rem;

    font-weight: 800;

    color: #182230;

    line-height: 1.3;
}


.age-stat-label {
    color: #667085;

    font-size: 0.85rem;

    margin-top: 4px;
}


.birthday-result {
    background: linear-gradient(
        135deg,
        #f5f9ff,
        #eef5ff
    );

    border: 1px solid #dce9ff;

    border-radius: 15px;

    padding: 25px;

    text-align: center;

    color: #344054;

    font-size: 1rem;
}

/* =========================================
   LOAN CALCULATOR
========================================= */

.loan-stat-card {
    background: #f8fafc;

    border: 1px solid #e8edf3;

    border-radius: 16px;

    padding: 22px 18px;

    text-align: center;

    height: 100%;

    transition: all 0.2s ease;
}


.loan-stat-card:hover {
    transform: translateY(-3px);

    background: #ffffff;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.07);
}


.loan-stat-label {
    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.8px;

    color: #667085;

    margin-bottom: 8px;
}


.loan-stat-value {
    font-size: 1.35rem;

    font-weight: 800;

    color: #182230;

    word-break: break-word;
}


/* Loan Breakdown */

.loan-breakdown {
    border: 1px solid #e8edf3;

    border-radius: 14px;

    overflow: hidden;
}


.loan-breakdown-row {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 15px 18px;

    border-bottom: 1px solid #edf0f3;

    color: #475467;
}


.loan-breakdown-row:last-child {
    border-bottom: none;
}


.loan-breakdown-row strong {
    color: #182230;

    text-align: right;
}


.loan-total-row {
    background: #f8fafc;

    font-size: 1.02rem;

    font-weight: 700;
}


/* Amortization Table */

.loan-table {
    margin-bottom: 0;

    vertical-align: middle;
}


.loan-table thead th {
    background: #f8fafc;

    color: #344054;

    font-size: 0.78rem;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    white-space: nowrap;

    border-bottom: 1px solid #e4e7ec;
}


.loan-table tbody td {
    color: #475467;

    font-size: 0.9rem;

    white-space: nowrap;

    padding-top: 13px;

    padding-bottom: 13px;
}


.loan-table tbody tr:hover {
    background: #f8fafc;
}


/* Disclaimer */

.loan-disclaimer {
    max-width: 950px;

    margin: 0 auto 40px;

    padding: 18px 20px;

    border-radius: 14px;

    background: #fff8e6;

    border: 1px solid #ffe5a3;

    color: #705d24;

    font-size: 0.85rem;

    line-height: 1.7;
}


/* Mobile */

@media (max-width: 767px) {

    .loan-stat-value {
        font-size: 1.1rem;
    }


    .loan-breakdown-row {
        font-size: 0.9rem;
    }


    .loan-table {
        font-size: 0.85rem;
    }

}

.calculator-secondary-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 10px 16px;

    border: 1px solid #d0d5dd;

    border-radius: 10px;

    background: #ffffff;

    color: #344054;

    font-weight: 600;

    font-size: 0.9rem;

    cursor: pointer;

    transition: all 0.2s ease;
}


.calculator-secondary-button:hover {

    background: #f8fafc;

    border-color: #98a2b3;

    transform: translateY(-1px);

}

/* =========================================
   BMI CALCULATOR
========================================= */

.bmi-unit-switch {
    display: inline-flex;

    padding: 4px;

    background: #f2f4f7;

    border-radius: 12px;

    border: 1px solid #e4e7ec;
}


.bmi-unit-button {
    border: none;

    background: transparent;

    padding: 9px 20px;

    border-radius: 9px;

    color: #667085;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}


.bmi-unit-button.active {
    background: #ffffff;

    color: #182230;

    box-shadow:
        0 2px 6px
        rgba(0, 0, 0, 0.08);
}


/* BMI Score */

.bmi-score-card {
    text-align: center;

    padding: 30px 20px;

    border-radius: 20px;

    background: #f8fafc;

    border: 1px solid #e8edf3;
}


.bmi-score-label {
    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 1px;

    color: #667085;
}


.bmi-score {
    font-size: 3.8rem;

    line-height: 1.1;

    font-weight: 900;

    color: #182230;

    margin: 8px 0;
}


.bmi-category {
    display: inline-block;

    padding: 7px 15px;

    border-radius: 30px;

    background: #ffffff;

    border: 1px solid #e4e7ec;

    font-weight: 700;

    color: #344054;
}


/* BMI Scale */

.bmi-scale-container {
    position: relative;

    padding-top: 25px;
}


.bmi-scale {
    display: flex;

    height: 42px;

    overflow: hidden;

    border-radius: 10px;
}


.bmi-scale-segment {
    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    font-size: 0.72rem;

    font-weight: 700;

    text-align: center;

    padding: 4px;
}


.bmi-underweight {
    width: 14%;

    background: #5b8def;
}


.bmi-normal {
    width: 26%;

    background: #43a047;
}


.bmi-overweight {
    width: 20%;

    background: #f5a623;
}


.bmi-obese {
    width: 40%;

    background: #e55353;
}


.bmi-marker {
    position: absolute;

    top: 3px;

    transform: translateX(-50%);

    font-size: 20px;

    font-weight: 900;

    color: #182230;

    transition: left 0.4s ease;
}


.bmi-scale-labels {
    display: flex;

    justify-content: space-between;

    margin-top: 8px;

    color: #667085;

    font-size: 0.75rem;

    font-weight: 600;
}


/* Information cards */

.bmi-info-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}


.bmi-info-card {
    padding: 20px;

    border-radius: 15px;

    border: 1px solid #e8edf3;

    background: #ffffff;
}


.bmi-info-label {
    font-size: 0.7rem;

    letter-spacing: 0.7px;

    font-weight: 800;

    color: #667085;

    margin-bottom: 7px;
}


.bmi-info-value {
    font-size: 1rem;

    font-weight: 800;

    color: #182230;
}


/* Category List */

.bmi-category-list {
    border: 1px solid #e8edf3;

    border-radius: 15px;

    overflow: hidden;
}


.bmi-category-row {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 17px 20px;

    border-bottom: 1px solid #edf0f3;
}


.bmi-category-row:last-child {
    border-bottom: none;
}


.bmi-category-row strong {
    display: block;

    color: #182230;
}


.bmi-category-row small {
    display: block;

    margin-top: 3px;

    color: #667085;
}


.bmi-category-dot {
    width: 13px;

    height: 13px;

    flex: 0 0 13px;

    border-radius: 50%;
}


.underweight-dot {
    background: #5b8def;
}


.normal-dot {
    background: #43a047;
}


.overweight-dot {
    background: #f5a623;
}


.obese-dot {
    background: #e55353;
}


/* Mobile */

@media (max-width: 767px) {

    .bmi-info-grid {
        grid-template-columns: 1fr;
    }


    .bmi-scale-segment {
        font-size: 0.6rem;
    }


    .bmi-score {
        font-size: 3rem;
    }

}

/* =========================================
   DISCOUNT CALCULATOR
========================================= */

.discount-result-card {
    padding: 24px;

    border-radius: 18px;

    background: #f8fafc;

    border: 1px solid #eaecf0;

    text-align: center;

    height: 100%;
}


.discount-final-card {
    background: #f0fdf4;

    border-color: #bbf7d0;
}


.discount-result-label {
    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #667085;

    margin-bottom: 10px;
}


.discount-result-value {
    font-size: 24px;

    font-weight: 800;

    color: #101828;
}


.discount-final-card .discount-result-value {
    color: #15803d;
}


.discount-summary {
    padding: 20px;

    border-radius: 14px;

    background: #f8fafc;

    text-align: center;

    color: #475467;
}


.discount-summary strong {
    color: #101828;
}


.discount-calculation {
    border: 1px solid #eaecf0;

    border-radius: 16px;

    overflow: hidden;
}


.discount-calculation-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 16px 20px;

    border-bottom: 1px solid #eaecf0;

    color: #475467;
}


.discount-calculation-row:last-child {
    border-bottom: none;
}


.discount-calculation-row strong {
    color: #101828;
}


.discount-total {
    background: #f0fdf4;

    font-size: 18px;

    font-weight: 700;
}


.discount-total strong {
    color: #15803d;

    font-size: 20px;
}

/* =========================================
   UNIT CONVERTER
========================================= */

.unit-conversion-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px 10px;
}

.unit-conversion-side {
    flex: 1;
    text-align: center;
    padding: 25px 15px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eaecf0;
}

.unit-conversion-final {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.unit-conversion-value {
    font-size: 30px;
    font-weight: 800;
    color: #101828;
    word-break: break-word;
}

.unit-conversion-final .unit-conversion-value {
    color: #15803d;
}

.unit-conversion-label {
    margin-top: 8px;
    font-size: 14px;
    color: #667085;
}

.unit-conversion-arrow {
    font-size: 32px;
    font-weight: 700;
    color: #98a2b3;
}

@media (max-width: 576px) {

    .unit-conversion-display {
        gap: 10px;
    }

    .unit-conversion-value {
        font-size: 22px;
    }

    .unit-conversion-arrow {
        font-size: 24px;
    }

}

/* =========================================
   AVERAGE CALCULATOR
========================================= */

.average-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.7;
}


.average-values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.average-value-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;

    border-radius: 30px;

    background: #f8fafc;

    border: 1px solid #eaecf0;

    font-weight: 600;

    color: #344054;
}


.average-value-number {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: #e4e7ec;

    font-size: 11px;

    font-weight: 800;

    color: #475467;
}

/* =========================================
   GPA CALCULATOR
========================================= */

#gpaTable th {
    font-size: 13px;
    color: #667085;
    white-space: nowrap;
}

#gpaTable td {
    vertical-align: middle;
}

#gpaTable input,
#gpaTable select {
    min-height: 46px;
}

@media (max-width: 576px) {

    #gpaTable {
        min-width: 650px;
    }

}

/* =========================================
   CGPA CALCULATOR
========================================= */

.calculator-section-heading h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #344054;
}

.calculator-section-heading {
    padding-bottom: 10px;
    border-bottom: 1px solid #eaecf0;
}

/* ==========================================
   INVOICE GENERATOR
========================================== */

.invoice-preview-wrapper {
    background: #f1f3f6;
}


.invoice-preview {

    background: #ffffff;

    padding: 40px;

    border-radius: 10px;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.08);

    min-height: 700px;

}


.invoice-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 30px;

}


.invoice-business-name {

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 5px;

}


.invoice-business-details {

    color: #6c757d;

    font-size: 13px;

    white-space: pre-line;

    line-height: 1.6;

}


.invoice-header h1 {

    font-size: 36px;

    font-weight: 800;

    margin: 0;

    letter-spacing: 1px;

}


.invoice-small-text {

    font-size: 13px;

    color: #6c757d;

    line-height: 1.6;

    white-space: pre-line;

}


.invoice-table {

    margin-top: 20px;

}


.invoice-table thead th {

    background: #f1f3f5;

    border-bottom: 2px solid #dee2e6;

    font-size: 13px;

    text-transform: uppercase;

}


.invoice-table tbody td {

    padding-top: 12px;

    padding-bottom: 12px;

}


.invoice-total-row {

    display: flex;

    justify-content: space-between;

    padding: 7px 0;

}


.invoice-grand-total {

    display: flex;

    justify-content: space-between;

    margin-top: 10px;

    padding: 14px 0;

    border-top: 2px solid #212529;

    font-size: 20px;

    font-weight: 800;

}


.invoice-footer-info {

    border-top: 1px solid #dee2e6;

    padding-top: 20px;

}


.invoice-footer-info h5 {

    font-size: 15px;

    font-weight: 700;

}


.invoice-thank-you {

    color: #6c757d;

    font-size: 14px;

    font-weight: 500;

}


/* Mobile */

@media (max-width: 767px) {

    .invoice-preview {

        padding: 20px;

    }


    .invoice-header {

        flex-direction: column;

    }


    .invoice-header .text-end {

        text-align: left !important;

    }


    .invoice-header h1 {

        font-size: 28px;

    }

}

.invoice-business-logo {

    max-width: 120px;

    max-height: 70px;

    object-fit: contain;

    display: block;

    margin-bottom: 10px;

}

.invoice-payment-status {

    display: inline-block;

    margin-top: 8px;

    padding: 5px 12px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .5px;

}


.status-paid {

    background: #d1e7dd;

    color: #0f5132;

}


.status-unpaid {

    background: #f8d7da;

    color: #842029;

}


.status-partial {

    background: #fff3cd;

    color: #664d03;

}

/* ==========================================
   RECEIPT GENERATOR
========================================== */

.receipt-preview-wrapper {

    background: #f1f3f6;

}


.receipt-preview {

    background: #fff;

    max-width: 700px;

    margin: auto;

    padding: 35px;

    border-radius: 12px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.08);

}


.receipt-business {

    text-align: center;

}


.receipt-business-logo {

    width: auto;

    max-width: 120px;

    max-height: 70px;

    height: auto;

    object-fit: contain;

    margin: 0 auto 10px;

}


.receipt-business-name {

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 5px;

}


.receipt-small-text {

    color: #6c757d;

    font-size: 13px;

    line-height: 1.6;

    white-space: pre-line;

}


.receipt-title {

    text-align: center;

    font-size: 28px;

    font-weight: 800;

    margin: 25px 0 15px;

    letter-spacing: 1px;

}


.receipt-meta {

    display: flex;

    justify-content: space-between;

    font-size: 13px;

}


.receipt-table {

    margin-top: 20px;

}


.receipt-table thead th {

    background: #f1f3f5;

    font-size: 12px;

    text-transform: uppercase;

}


.receipt-total-area {

    margin-top: 20px;

}


.receipt-total-row {

    display: flex;

    justify-content: space-between;

    padding: 7px 0;

}


.receipt-grand-total {

    display: flex;

    justify-content: space-between;

    padding: 14px 0;

    margin-top: 8px;

    border-top: 2px solid #222;

    font-size: 20px;

    font-weight: 800;

}


.receipt-payment {

    margin-top: 20px;

    padding: 12px;

    background: #f8f9fa;

    border-radius: 8px;

    font-size: 14px;

}


.receipt-notes {

    padding: 10px 0;

    color: #6c757d;

    white-space: pre-line;

    font-size: 13px;

}


.receipt-thank-you {

    text-align: center;

    margin-top: 35px;

    color: #6c757d;

    font-size: 14px;

    font-weight: 500;

}


@media (max-width: 767px) {

    .receipt-preview {

        padding: 20px;

    }


    .receipt-meta {

        flex-direction: column;

        gap: 5px;

    }

}

/* ==========================================
   QUOTATION GENERATOR
========================================== */

.quotation-preview-wrapper {

    background: #f1f3f6;

}


.quotation-preview {

    background: #fff;

    padding: 40px;

    border-radius: 12px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.08);

    min-height: 700px;

}


.quotation-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 30px;

}


.quotation-header h1 {

    margin: 0;

    font-size: 34px;

    font-weight: 800;

    letter-spacing: 1px;

}


.quotation-business-logo {

    width: auto;

    max-width: 120px;

    max-height: 70px;

    height: auto;

    object-fit: contain;

    display: block;

    margin-bottom: 10px;

}


.quotation-business-name {

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 5px;

}


.quotation-small-text {

    color: #6c757d;

    font-size: 13px;

    line-height: 1.6;

    white-space: pre-line;

}


.quotation-table {

    margin-top: 20px;

}


.quotation-table thead th {

    background: #f1f3f5;

    font-size: 12px;

    text-transform: uppercase;

}


.quotation-total-row {

    display: flex;

    justify-content: space-between;

    padding: 7px 0;

}


.quotation-grand-total {

    display: flex;

    justify-content: space-between;

    padding: 14px 0;

    margin-top: 8px;

    border-top: 2px solid #222;

    font-size: 20px;

    font-weight: 800;

}


.quotation-footer-info {

    border-top: 1px solid #dee2e6;

    padding-top: 20px;

}


.quotation-footer-info h5 {

    font-size: 15px;

    font-weight: 700;

}


.quotation-thank-you {

    color: #6c757d;

    font-size: 14px;

}


@media (max-width: 767px) {

    .quotation-preview {

        padding: 20px;

    }


    .quotation-header {

        flex-direction: column;

    }


    .quotation-header .text-end {

        text-align: left !important;

    }

}


/* ==========================================
   PAYSLIP GENERATOR
========================================== */

.payslip-preview-wrapper {

    background: #f1f3f6;

}


.payslip-preview {

    background: #fff;

    padding: 40px;

    border-radius: 12px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.08);

    min-height: 700px;

}


.payslip-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 30px;

}


.payslip-header h1 {

    margin: 0;

    font-size: 34px;

    font-weight: 800;

    letter-spacing: 1px;

}


.payslip-logo {

    width: auto;

    max-width: 120px;

    max-height: 70px;

    height: auto;

    object-fit: contain;

    display: block;

    margin-bottom: 10px;

}


.payslip-company-name {

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 5px;

}


.payslip-small-text {

    color: #6c757d;

    font-size: 13px;

    line-height: 1.6;

    white-space: pre-line;

}


.payslip-employee-box {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    background: #f5f6f8;

    padding: 18px;

    border-radius: 8px;

    margin: 20px 0;

}


.payslip-employee-box span {

    display: block;

    font-size: 10px;

    color: #6c757d;

    text-transform: uppercase;

    margin-bottom: 5px;

    letter-spacing: .5px;

}


.payslip-employee-box strong {

    font-size: 13px;

}


.payslip-period {

    display: flex;

    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid #dee2e6;

    font-size: 13px;

}


.payslip-section-title {

    font-size: 17px;

    font-weight: 700;

    margin-bottom: 12px;

}


.payslip-preview-row {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 8px 0;

    border-bottom: 1px solid #eee;

    font-size: 13px;

}


.payslip-total-row {

    display: flex;

    justify-content: space-between;

    padding: 12px 0;

    border-top: 2px solid #222;

    margin-top: 8px;

}


.payslip-net-pay {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 30px;

    padding: 18px 20px;

    border: 2px solid #222;

    border-radius: 8px;

    font-size: 22px;

    font-weight: 800;

}


.payslip-notes {

    border-top: 1px solid #dee2e6;

    padding-top: 20px;

    font-size: 13px;

    white-space: pre-line;

}


.payslip-thank-you {

    margin-top: 40px;

    color: #6c757d;

    font-size: 12px;

}


@media (max-width: 767px) {

    .payslip-preview {

        padding: 20px;

    }


    .payslip-header {

        flex-direction: column;

    }


    .payslip-header .text-end {

        text-align: left !important;

    }


    .payslip-employee-box {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .payslip-period {

        flex-direction: column;

        gap: 5px;

    }

}

/* ==========================================
   CERTIFICATE GENERATOR
========================================== */

.certificate-preview-wrapper {
    background: #eef1f5;
}

.certificate-preview {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.10);
}

.certificate-inner {
    min-height: 680px;
    border: 8px double #222;
    padding: 45px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificate-logo {
    max-width: 100px;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.certificate-organization {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.certificate-contact {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.certificate-heading {
    margin-top: 25px;
}

.certificate-small-heading {
    font-size: 11px;
    letter-spacing: 4px;
    color: #777;
}

.certificate-heading h1 {
    margin: 8px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
}

.certificate-presented {
    margin-top: 28px;
    color: #777;
    font-size: 13px;
}

.certificate-recipient {
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
}

.certificate-line {
    width: 65%;
    border-bottom: 1px solid #444;
    margin-top: 5px;
}

.certificate-achievement {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 700;
}

.certificate-description {
    max-width: 650px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

.certificate-footer {
    width: 75%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.certificate-signature-box,
.certificate-date-box {
    width: 170px;
    text-align: center;
}

.certificate-signature {
    display: block;
    max-width: 140px;
    max-height: 55px;
    width: auto;
    height: auto;
    margin: 0 auto 5px;
    object-fit: contain;
}

.certificate-signature-line {
    border-bottom: 1px solid #333;
    margin-bottom: 6px;
}

.certificate-signature-box strong {
    display: block;
    font-size: 12px;
}

.certificate-signature-box small,
.certificate-date-box small {
    display: block;
    font-size: 10px;
    color: #777;
    margin-top: 3px;
}

.certificate-number {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
}

.certificate-disclaimer {
    position: absolute;
    bottom: 15px;
    left: 50px;
    right: 50px;
    color: #999;
    font-size: 8px;
    line-height: 1.4;
    text-align: center;
}


@media (max-width: 767px) {

    .certificate-inner {
        min-height: 600px;
        padding: 25px 15px;
    }

    .certificate-organization {
        font-size: 18px;
    }

    .certificate-heading h1 {
        font-size: 24px;
    }

    .certificate-recipient {
        font-size: 25px;
    }

    .certificate-footer {
        width: 95%;
    }

    .certificate-signature-box,
    .certificate-date-box {
        width: 130px;
    }

    .certificate-disclaimer {
        left: 20px;
        right: 20px;
    }

}

/* =========================================
   STUDY HOUR CALCULATOR
========================================= */

.study-subjects-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.study-subject-row {
    display: grid;
    grid-template-columns: 45px 1fr 180px;
    gap: 12px;
    align-items: center;
}


.study-subject-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.04);
}


.study-subject-row .calculator-input {
    width: 100%;
}


.study-allocation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.study-allocation-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
}


.study-allocation-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.study-allocation-info strong {
    font-size: 16px;
}


.study-allocation-info span {
    font-size: 13px;
    opacity: 0.7;
}


.study-allocation-hours {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}


.study-allocation-percent {
    min-width: 65px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.75;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .study-subject-row {
        grid-template-columns: 40px 1fr;
        gap: 10px;
    }


    .study-subject-number {
        width: 38px;
        height: 38px;
    }


    .study-subject-name {
        width: 100%;
    }


    .study-subject-priority {
        grid-column: 2;
    }


    .study-allocation-row {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }


    .study-allocation-percent {
        grid-column: 2;
        grid-row: 1;
        min-width: auto;
    }


    .study-allocation-hours {
        grid-column: 1 / -1;
        padding-top: 8px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

}

/* =========================================
   STUDY TIMETABLE
========================================= */

.study-timetable-days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.study-day-option {
    cursor: pointer;
    position: relative;
}


.study-day-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.study-day-option span {
    display: block;
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}


.study-day-option input:checked + span {
    font-weight: 600;
    border-color: currentColor;
    background: rgba(0, 0, 0, 0.06);
}


.study-timetable-subjects {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.study-timetable-subject-row {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 12px;
    align-items: center;
}


.study-timetable-subject-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}


.study-timetable-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}


.study-timetable-secondary-button {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    padding: 11px 20px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
}


.study-timetable-wrapper {
    width: 100%;
    overflow-x: auto;
}


.study-timetable-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    table-layout: fixed;
}


.study-timetable-table th,
.study-timetable-table td {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
}


.study-timetable-table th {
    font-weight: 700;
    padding: 15px 10px;
}


.study-timetable-table th:first-child {
    width: 125px;
}


.study-timetable-time {
    white-space: nowrap;
    line-height: 1.5;
}


.study-timetable-time span {
    font-size: 12px;
    opacity: 0.65;
}


.study-timetable-cell {
    min-height: 55px;
    cursor: text;
    font-weight: 500;
    transition: 0.2s ease;
}


.study-timetable-cell:hover {
    outline: 2px dashed rgba(0, 0, 0, 0.15);
    outline-offset: -2px;
}


.study-timetable-cell:focus {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .study-timetable-days {
        gap: 7px;
    }


    .study-day-option span {
        padding: 8px 12px;
        font-size: 13px;
    }


    .study-timetable-subject-row {
        grid-template-columns: 40px 1fr;
        gap: 10px;
    }


    .study-timetable-subject-number {
        width: 38px;
        height: 38px;
    }


    .study-timetable-table {
        min-width: 700px;
    }


    .study-timetable-actions {
        flex-direction: column;
    }


    .study-timetable-actions button {
        width: 100%;
    }

}

/* =========================================
   CLASS TIMETABLE
========================================= */

.class-subject-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.class-subject-row {
    display: grid;
    grid-template-columns: 45px 1fr 1fr;
    gap: 12px;
    align-items: center;
}


.class-subject-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}


.class-days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.class-day-option {
    cursor: pointer;
    position: relative;
}


.class-day-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.class-day-option span {
    display: block;
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}


.class-day-option input:checked + span {
    font-weight: 600;
    border-color: currentColor;
    background: rgba(0, 0, 0, 0.06);
}


.class-timetable-header {
    text-align: center;
    margin-bottom: 22px;
}


.class-timetable-header h3 {
    margin-bottom: 8px;
}


.class-timetable-meta {
    font-size: 14px;
    margin-bottom: 5px;
}


.class-timetable-teacher {
    font-size: 14px;
    margin-top: 5px;
}


.class-timetable-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}


.class-secondary-button {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    padding: 11px 20px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
}


.class-timetable-wrapper {
    width: 100%;
    overflow-x: auto;
}


.class-timetable-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    table-layout: fixed;
}


.class-timetable-table th,
.class-timetable-table td {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
}


.class-timetable-table th {
    font-weight: 700;
    padding: 15px 8px;
}


.class-timetable-table th:first-child {
    width: 145px;
}


.class-period-time {
    white-space: nowrap;
    line-height: 1.5;
}


.class-period-time span {
    font-size: 11px;
    opacity: 0.7;
}


.class-timetable-cell {
    min-height: 65px;
    cursor: text;
    line-height: 1.4;
}


.class-timetable-cell:hover {
    outline: 2px dashed rgba(0, 0, 0, 0.15);
    outline-offset: -2px;
}


.class-timetable-cell:focus {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}


.class-timetable-cell small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    opacity: 0.65;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .class-subject-row {
        grid-template-columns: 40px 1fr;
        gap: 10px;
    }


    .class-subject-number {
        width: 38px;
        height: 38px;
    }


    .class-subject-row > div:last-child {
        grid-column: 2;
    }


    .class-day-option span {
        padding: 8px 12px;
        font-size: 13px;
    }


    .class-timetable-actions {
        flex-direction: column;
    }


    .class-timetable-actions button {
        width: 100%;
    }


    .class-timetable-table {
        min-width: 750px;
    }

}

/* =========================================
   LESSON PLAN
========================================= */

.lesson-dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.lesson-list-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
}


.lesson-list-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}


.lesson-add-button {
    margin-top: 15px;
    padding: 10px 17px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
}


.lesson-stage {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}


.lesson-stage:last-child {
    border-bottom: none;
}


.lesson-stage-title {
    font-size: 18px;
    margin-bottom: 20px;
}


.lesson-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}


.lesson-secondary-button {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    padding: 11px 20px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
}


.lesson-plan-document {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 30px;
    color: #222;
    line-height: 1.5;
}


.lesson-plan-print-header {
    text-align: center;
    margin-bottom: 25px;
}


.lesson-plan-print-header h1 {
    margin: 0;
    font-size: 25px;
}


.lesson-plan-print-header h2 {
    margin: 7px 0 0;
    font-size: 19px;
}


.lesson-plan-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(0, 0, 0, 0.25);
}


.lesson-plan-info-item {
    padding: 10px;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}


.lesson-plan-info-item span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 3px;
}


.lesson-plan-section {
    margin-top: 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
}


.lesson-plan-section h3 {
    margin: -15px -15px 15px;
    padding: 9px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 16px;
}


.lesson-plan-topic {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.lesson-plan-topic span {
    font-size: 13px;
    opacity: 0.7;
}


.lesson-plan-section ol {
    margin-bottom: 0;
    padding-left: 25px;
}


.lesson-plan-section li {
    margin-bottom: 7px;
}


.lesson-plan-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


.lesson-plan-presentation {
    overflow-x: auto;
}


.lesson-plan-presentation table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}


.lesson-plan-presentation th,
.lesson-plan-presentation td {
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 10px;
    vertical-align: top;
    text-align: left;
}


.lesson-plan-presentation th {
    text-align: center;
    font-weight: 700;
}


.lesson-plan-signatures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    text-align: center;
}


.lesson-plan-signatures div {
    border-top: 1px solid rgba(0, 0, 0, 0.4);
    padding-top: 8px;
    font-size: 13px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .lesson-plan-document {
        padding: 18px;
    }


    .lesson-plan-info-grid {
        grid-template-columns: 1fr;
    }


    .lesson-plan-two-column {
        grid-template-columns: 1fr;
    }


    .lesson-plan-actions {
        flex-direction: column;
    }


    .lesson-plan-actions button {
        width: 100%;
    }


    .lesson-plan-signatures {
        grid-template-columns: 1fr;
        gap: 45px;
    }

}

.about-feature-list {
    padding-left: 1.2rem;
}

.about-feature-list li {
    margin-bottom: 12px;
}

.about-feature-list strong {
    font-weight: 700;
}

/* =========================================
   STUDENT ID GENERATOR
========================================= */

.student-id-preview-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0 20px;
}


.student-id-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    min-width: 730px;
    padding: 15px;
}


.student-id-card {
    width: 340px;
    height: 215px;
    flex: 0 0 340px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    background: #fff;
    color: #222;
}


.student-id-header {
    height: 65px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}


.student-id-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 10px;
}


.student-id-logo-placeholder {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    font-size: 22px;
    font-weight: bold;
    margin-right: 10px;
}


.student-id-school {
    min-width: 0;
}


.student-id-school-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}


.student-id-card-title {
    font-size: 7px;
    margin-top: 4px;
    opacity: 0.7;
}


.student-id-body {
    display: flex;
    gap: 12px;
    padding: 12px;
}


.student-id-photo-container {
    flex: 0 0 78px;
}


.student-id-photo,
.student-id-photo-placeholder {
    width: 78px;
    height: 92px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.2);
}


.student-id-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    background: rgba(0, 0, 0, 0.04);
}


.student-id-main-details {
    flex: 1;
    min-width: 0;
}


.student-id-student-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}


.student-id-detail {
    display: flex;
    gap: 5px;
    font-size: 8px;
    margin-bottom: 4px;
}


.student-id-detail span {
    font-weight: 700;
}


.student-id-detail strong {
    overflow-wrap: anywhere;
}


.student-id-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 7px 10px;
    font-size: 8px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}


/* =========================================
   BACK OF CARD
========================================= */

.student-id-back {
    padding: 15px;
}


.student-id-back-title {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}


.student-id-back-details {
    margin-top: 8px;
}


.student-id-back-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 7px;
    margin-bottom: 5px;
}


.student-id-back-row span {
    font-weight: 700;
}


.student-id-back-row strong {
    text-align: right;
    max-width: 65%;
}


.student-id-back-note {
    font-size: 7px;
    text-align: center;
    margin-top: 8px;
    padding: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}


.student-id-back-session {
    font-size: 7px;
    text-align: center;
    margin-top: 4px;
}


/* =========================================
   CARD STYLES
========================================= */

.student-id-modern {
    border-radius: 15px;
}


.student-id-modern .student-id-header {
    border-bottom-width: 2px;
}


.student-id-simple {
    border-radius: 4px;
}


.student-id-simple .student-id-header {
    height: 58px;
}


/* =========================================
   ACTIONS
========================================= */

.student-id-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}


.student-id-secondary-button {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    padding: 11px 20px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .student-id-cards {
        justify-content: flex-start;
    }


    .student-id-actions {
        flex-direction: column;
    }


    .student-id-actions button {
        width: 100%;
    }

}

/* =========================================
   STUDENT ID GENERATOR
========================================= */

.student-id-generator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 30px;
    align-items: start;
}


.student-id-form-panel,
.student-id-preview-panel {
    min-width: 0;
}


.student-id-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


.student-id-preview-panel {
    position: sticky;
    top: 20px;
}


.student-id-preview-area {
    width: 100%;
    overflow-x: auto;
    padding: 5px 0 10px;
}


.student-id-preview-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: .65;
}


.student-id-card-preview {
    width: 100%;
    display: flex;
    justify-content: center;
}


.student-id-live-card {
    width: 340px;
    height: 215px;
    flex: 0 0 340px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 12px;
    background: #fff;
    color: #222;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}


/* =========================================
   FRONT
========================================= */

.student-id-live-header {
    height: 65px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}


.student-id-preview-logo,
.student-id-preview-logo-placeholder {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin-right: 10px;
}


.student-id-preview-logo {
    object-fit: contain;
}


.student-id-preview-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    font-size: 22px;
    font-weight: 700;
}


.student-id-live-school {
    min-width: 0;
}


.student-id-live-school-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}


.student-id-live-title {
    font-size: 7px;
    margin-top: 4px;
    opacity: .7;
}


.student-id-live-body {
    display: flex;
    gap: 12px;
    padding: 12px;
}


.student-id-preview-photo,
.student-id-preview-photo-placeholder {
    width: 78px;
    height: 92px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, .2);
}


.student-id-preview-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 9px;
}


.student-id-live-info {
    flex: 1;
    min-width: 0;
}


.student-id-live-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}


.student-id-live-row {
    display: flex;
    gap: 5px;
    font-size: 8px;
    margin-bottom: 4px;
}


.student-id-live-row span {
    font-weight: 700;
}


.student-id-live-row strong {
    overflow-wrap: anywhere;
}


.student-id-live-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 7px;
    text-align: center;
    font-size: 8px;
    border-top: 1px solid rgba(0, 0, 0, .12);
}


/* =========================================
   BACK
========================================= */

.student-id-live-back {
    padding: 15px;
}


.student-id-live-back-title {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}


.student-id-live-back-content {
    margin-top: 8px;
}


.student-id-live-back-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 7px;
    margin-bottom: 5px;
}


.student-id-live-back-row span {
    font-weight: 700;
}


.student-id-live-back-row strong {
    max-width: 65%;
    text-align: right;
    overflow-wrap: anywhere;
}


.student-id-live-back-note {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, .12);
    text-align: center;
    font-size: 7px;
}


.student-id-live-back-session {
    text-align: center;
    font-size: 7px;
    margin-top: 4px;
}


/* =========================================
   CARD STYLES
========================================= */

.student-id-style-modern {
    border-radius: 16px;
}


.student-id-style-modern .student-id-live-header {
    border-bottom-width: 2px;
}


.student-id-style-simple {
    border-radius: 4px;
    box-shadow: none;
}


.student-id-style-simple .student-id-live-header {
    height: 58px;
}


/* =========================================
   PRINT BUTTON
========================================= */

.student-id-print-button {
    width: 100%;
    margin-top: 20px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 991px) {

    .student-id-generator {
        grid-template-columns: 1fr;
    }


    .student-id-preview-panel {
        position: static;
    }

}


@media (max-width: 575px) {

    .student-id-card-preview {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

}

/* =========================================================
   ToolNest Static Pages
   ========================================================= */

.static-page {
    padding: 50px 0 70px;
}


/* Hero */

.static-page-hero {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 45px;
}

.static-page-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;

    border-radius: 22px;

    background: linear-gradient(
        135deg,
        #eef4ff,
        #f7f0ff
    );

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}

.static-page-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.static-page-hero p {
    font-size: 18px;
    line-height: 1.7;
    color: #6c757d;
}


/* Main cards */

.static-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);

    border-radius: 22px;

    padding: 32px;

    margin-bottom: 25px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.static-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.09);
}


.static-card h2 {
    font-size: 25px;
    font-weight: 750;
    margin-bottom: 18px;
}

.static-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
}

.static-card p {
    color: #5f6670;
    line-height: 1.8;
    margin-bottom: 15px;
}

.static-card ul {
    padding-left: 22px;
}

.static-card li {
    color: #5f6670;
    line-height: 1.8;
    margin-bottom: 8px;
}


/* Small section label */

.static-label {
    display: inline-block;

    padding: 6px 12px;

    border-radius: 50px;

    background: #f1f5ff;

    color: #4f6df5;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.6px;

    margin-bottom: 12px;
}


/* Feature cards */

.static-feature {
    height: 100%;

    padding: 28px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.06);

    border-radius: 20px;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.05);

    transition: all 0.2s ease;
}

.static-feature:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 38px rgba(0, 0, 0, 0.08);
}

.static-feature-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #f5f7ff;

    font-size: 25px;

    margin-bottom: 18px;
}

.static-feature h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.static-feature p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 0;
}


/* Contact information */

.contact-box {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 22px;

    background: #f8f9ff;

    border-radius: 18px;

    margin-bottom: 15px;
}

.contact-box-icon {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #ffffff;

    font-size: 23px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.06);
}

.contact-box strong {
    display: block;
    margin-bottom: 3px;
}

.contact-box span {
    color: #6c757d;
}


/* Call to action */

.static-cta {
    margin-top: 40px;

    padding: 45px 30px;

    text-align: center;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #f3f6ff,
            #faf5ff
        );

    border: 1px solid rgba(0, 0, 0, 0.05);
}

.static-cta h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.static-cta p {
    color: #6c757d;
    margin-bottom: 22px;
}


/* Legal pages */

.legal-page .static-card {
    padding: 38px;
}

.legal-page .static-card h2 {
    margin-top: 8px;
}

.legal-updated {
    display: inline-block;

    background: #f8f9fa;

    padding: 8px 14px;

    border-radius: 50px;

    color: #6c757d;

    font-size: 13px;

    margin-bottom: 25px;
}


/* Mobile */

@media (max-width: 767px) {

    .static-page {
        padding: 35px 0 50px;
    }

    .static-page-hero {
        margin-bottom: 32px;
    }

    .static-page-hero h1 {
        font-size: 32px;
    }

    .static-page-hero p {
        font-size: 16px;
    }

    .static-card {
        padding: 24px;
        border-radius: 18px;
    }

    .static-card h2 {
        font-size: 22px;
    }

    .legal-page .static-card {
        padding: 25px;
    }

    .static-cta {
        padding: 35px 22px;
    }

}

/* =====================================================
   OFFICIAL LETTER GENERATOR
===================================================== */

.letter-generator {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, 650px);

    gap: 30px;

    align-items: start;
}


.letter-form-panel,
.letter-preview-panel {
    min-width: 0;
}


/* =====================================================
   SECTION TITLE
===================================================== */

.letter-section-title {
    font-size: 14px;

    font-weight: 700;

    margin-top: 5px;
    margin-bottom: 18px;

    padding-bottom: 9px;

    border-bottom:
        1px solid rgba(0, 0, 0, .10);
}


/* =====================================================
   TEXTAREA
===================================================== */

.official-letter-body-input {
    min-height: 280px;

    resize: vertical;
}


/* =====================================================
   PREVIEW PANEL
===================================================== */

.letter-preview-panel {
    position: sticky;

    top: 20px;
}


.business-letter-preview-wrapper {
    width: 100%;

    overflow: auto;

    padding: 5px;

    background:
        rgba(0, 0, 0, .025);

    border-radius: 10px;
}


/* =====================================================
   A4 PAPER
===================================================== */

.official-letter-paper {
    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);
}


/* =====================================================
   HEADER
===================================================== */

.official-letter-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 12px;

    border-bottom:
        2px solid #222;

}


/* =====================================================
   LOGO
===================================================== */

.official-letter-logo-box {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.official-letter-logo {

    max-width: 65px;

    max-height: 65px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.official-letter-logo-placeholder {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed #999;

    font-size: 8px;

    color: #999;

}


/* =====================================================
   ORGANIZATION DETAILS
===================================================== */

.official-letter-heading {
    flex: 1;
}


.official-letter-organization {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 5px;

}


.official-letter-address {

    font-size: 10px;

    line-height: 1.5;

}


.official-letter-contact {

    font-size: 9px;

    margin-top: 3px;

}


/* =====================================================
   DATE
===================================================== */

.official-letter-date {

    margin-top: 28px;

    margin-bottom: 25px;

    font-size: 11px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.official-letter-recipient {

    font-size: 11px;

    line-height: 1.5;

    margin-bottom: 25px;

}


/* =====================================================
   SUBJECT
===================================================== */

.official-letter-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 22px;

}


/* =====================================================
   SALUTATION
===================================================== */

.official-letter-salutation {

    font-size: 11px;

    margin-bottom: 18px;

}


/* =====================================================
   BODY
===================================================== */

.official-letter-body {

    font-size: 11px;

    line-height: 1.75;

    text-align: justify;

}


.official-letter-body p {

    margin: 0 0 14px;

}


.official-letter-body p:last-child {

    margin-bottom: 0;

}


/* =====================================================
   CLOSING
===================================================== */

.official-letter-closing {

    font-size: 11px;

    margin-top: 28px;

    line-height: 1.5;

}


.official-letter-signature-space {

    height: 35px;

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.letter-placeholder {

    color: #999;

    font-style: italic;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .letter-generator {

        grid-template-columns: 1fr;

    }


    .letter-preview-panel {

        position: static;

    }


    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .official-letter-paper {

        margin: 0;

    }

}

/* =====================================================
   APPLICATION LETTER GENERATOR
===================================================== */

.application-section-title {

    font-size: 14px;

    font-weight: 700;

    margin-top: 5px;

    margin-bottom: 18px;

    padding-bottom: 9px;

    border-bottom:
        1px solid rgba(0, 0, 0, .10);

}


.application-body-input {

    min-height: 280px;

    resize: vertical;

}


/* =====================================================
   PREVIEW
===================================================== */

.application-letter-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   APPLICANT HEADER
===================================================== */

.application-letter-header {

    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 20px;

    padding-bottom: 12px;

    border-bottom:
        1px solid #222;

}


.application-letter-applicant {

    flex: 1;

}


.application-letter-name {

    font-size: 19px;

    font-weight: 700;

    margin-bottom: 6px;

}


.application-letter-address {

    font-size: 10px;

    line-height: 1.5;

}


.application-letter-contact {

    font-size: 9px;

    margin-top: 4px;

}


/* =====================================================
   APPLICANT PHOTO
===================================================== */

.application-letter-image-box {

    width: 70px;

    height: 85px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.application-applicant-image {

    max-width: 70px;

    max-height: 85px;

    width: auto;

    height: auto;

    object-fit: cover;

}


/* =====================================================
   DATE
===================================================== */

.application-letter-date {

    margin-top: 28px;

    margin-bottom: 25px;

    font-size: 11px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.application-letter-recipient {

    font-size: 11px;

    line-height: 1.5;

    margin-bottom: 25px;

}


/* =====================================================
   SUBJECT
===================================================== */

.application-letter-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 22px;

}


/* =====================================================
   SALUTATION
===================================================== */

.application-letter-salutation {

    font-size: 11px;

    margin-bottom: 18px;

}


/* =====================================================
   BODY
===================================================== */

.application-letter-body {

    font-size: 11px;

    line-height: 1.75;

    text-align: justify;

}


.application-letter-body p {

    margin:
        0 0 14px;

}


.application-letter-body p:last-child {

    margin-bottom: 0;

}


/* =====================================================
   CLOSING
===================================================== */

.application-letter-closing {

    font-size: 11px;

    margin-top: 28px;

    line-height: 1.5;

}


.application-signature-space {

    height: 35px;

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.application-placeholder {

    color: #999;

    font-style: italic;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .letter-generator {

        grid-template-columns: 1fr;

    }


    .letter-preview-panel {

        position: static;

    }


    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .application-letter-paper {

        margin: 0;

    }

}

/* =====================================================
   RECOMMENDATION LETTER GENERATOR
===================================================== */

.recommendation-section-title {

    font-size: 14px;

    font-weight: 700;

    margin-top: 5px;

    margin-bottom: 18px;

    padding-bottom: 9px;

    border-bottom:
        1px solid rgba(0, 0, 0, .10);

}


.recommendation-body-input {

    min-height: 300px;

    resize: vertical;

}


/* =====================================================
   PREVIEW PAPER
===================================================== */

.recommendation-letter-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   HEADER
===================================================== */

.recommendation-letter-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 12px;

    border-bottom:
        2px solid #222;

}


.recommendation-letter-logo-box {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.recommendation-letter-logo {

    max-width: 65px;

    max-height: 65px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.recommendation-logo-placeholder {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed #999;

    color: #999;

    font-size: 8px;

}


/* =====================================================
   HEADER INFORMATION
===================================================== */

.recommendation-letter-heading {

    flex: 1;

}


.recommendation-organization-name {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 3px;

}


.recommendation-recommender-name {

    font-size: 11px;

    font-weight: 600;

}


.recommendation-recommender-position {

    font-size: 10px;

    margin-bottom: 3px;

}


.recommendation-organization-address {

    font-size: 10px;

    line-height: 1.5;

}


.recommendation-contact {

    font-size: 9px;

    margin-top: 3px;

}


/* =====================================================
   DATE
===================================================== */

.recommendation-date {

    margin-top: 28px;

    margin-bottom: 25px;

    font-size: 11px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.recommendation-recipient {

    font-size: 11px;

    line-height: 1.5;

    margin-bottom: 25px;

}


/* =====================================================
   SUBJECT
===================================================== */

.recommendation-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 22px;

}


/* =====================================================
   SALUTATION
===================================================== */

.recommendation-salutation {

    font-size: 11px;

    margin-bottom: 18px;

}


/* =====================================================
   BODY
===================================================== */

.recommendation-body {

    font-size: 11px;

    line-height: 1.75;

    text-align: justify;

}


.recommendation-body p {

    margin:
        0 0 14px;

}


.recommendation-body p:last-child {

    margin-bottom: 0;

}


/* =====================================================
   CLOSING
===================================================== */

.recommendation-closing {

    font-size: 11px;

    margin-top: 28px;

    line-height: 1.5;

}


.recommendation-signature-space {

    height: 35px;

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.recommendation-placeholder {

    color: #999;

    font-style: italic;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.recommendation-letter-generator .letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .recommendation-letter-generator {

        grid-template-columns: 1fr;

    }


    .recommendation-letter-generator
    .letter-preview-panel {

        position: static;

    }


    .recommendation-letter-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .recommendation-letter-paper {

        margin: 0;

    }

}

/* =====================================================
   REFERENCE LETTER GENERATOR
===================================================== */

.reference-section-title {

    font-size: 14px;

    font-weight: 700;

    margin-top: 5px;

    margin-bottom: 18px;

    padding-bottom: 9px;

    border-bottom:
        1px solid rgba(0, 0, 0, .10);

}


.reference-body-input {

    min-height: 300px;

    resize: vertical;

}


/* =====================================================
   PREVIEW PAPER
===================================================== */

.reference-letter-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   HEADER
===================================================== */

.reference-letter-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 12px;

    border-bottom:
        2px solid #222;

}


.reference-letter-logo-box {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.reference-letter-logo {

    max-width: 65px;

    max-height: 65px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.reference-logo-placeholder {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed #999;

    color: #999;

    font-size: 8px;

}


/* =====================================================
   HEADER INFORMATION
===================================================== */

.reference-letter-heading {

    flex: 1;

}


.reference-organization-name {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 3px;

}


.reference-referee-name {

    font-size: 11px;

    font-weight: 600;

}


.reference-referee-position {

    font-size: 10px;

    margin-bottom: 3px;

}


.reference-organization-address {

    font-size: 10px;

    line-height: 1.5;

}


.reference-contact {

    font-size: 9px;

    margin-top: 3px;

}


/* =====================================================
   DATE
===================================================== */

.reference-date {

    margin-top: 28px;

    margin-bottom: 25px;

    font-size: 11px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.reference-recipient {

    font-size: 11px;

    line-height: 1.5;

    margin-bottom: 25px;

}


/* =====================================================
   SUBJECT
===================================================== */

.reference-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 22px;

}


/* =====================================================
   SALUTATION
===================================================== */

.reference-salutation {

    font-size: 11px;

    margin-bottom: 18px;

}


/* =====================================================
   BODY
===================================================== */

.reference-body {

    font-size: 11px;

    line-height: 1.75;

    text-align: justify;

}


.reference-body p {

    margin:
        0 0 14px;

}


.reference-body p:last-child {

    margin-bottom: 0;

}


/* =====================================================
   CLOSING
===================================================== */

.reference-closing {

    font-size: 11px;

    margin-top: 28px;

    line-height: 1.5;

}


.reference-signature-space {

    height: 35px;

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.reference-placeholder {

    color: #999;

    font-style: italic;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.reference-letter-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .reference-letter-generator {

        grid-template-columns: 1fr;

    }


    .reference-letter-generator
    .letter-preview-panel {

        position: static;

    }


    .reference-letter-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .reference-letter-paper {

        margin: 0;

    }

}

/* =====================================================
   RESIGNATION LETTER GENERATOR
===================================================== */

.resignation-letter-generator {

    width: 100%;

}


/* =====================================================
   PREVIEW PAPER
===================================================== */

.resignation-letter-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   SENDER HEADER
===================================================== */

.resignation-sender-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 12px;

    border-bottom:
        2px solid #222;

}


.resignation-logo-box {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.resignation-letter-logo {

    max-width: 65px;

    max-height: 65px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.resignation-logo-placeholder {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed #999;

    color: #999;

    font-size: 8px;

}


/* =====================================================
   SENDER DETAILS
===================================================== */

.resignation-sender-details {

    flex: 1;

}


.resignation-company-name {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 3px;

}


.resignation-employee-name {

    font-size: 11px;

    font-weight: 600;

}


.resignation-employee-position {

    font-size: 10px;

}


.resignation-department {

    font-size: 10px;

}


.resignation-contact {

    font-size: 9px;

    margin-top: 3px;

}


/* =====================================================
   ADDRESS
===================================================== */

.resignation-sender-address {

    font-size: 10px;

    line-height: 1.5;

    margin-top: 10px;

}


/* =====================================================
   DATE
===================================================== */

.resignation-date {

    margin-top: 25px;

    margin-bottom: 24px;

    font-size: 11px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.resignation-recipient {

    font-size: 11px;

    line-height: 1.5;

    margin-bottom: 24px;

}


/* =====================================================
   SUBJECT
===================================================== */

.resignation-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.resignation-salutation {

    font-size: 11px;

    margin-bottom: 17px;

}


/* =====================================================
   BODY
===================================================== */

.resignation-body {

    font-size: 11px;

    line-height: 1.75;

    text-align: justify;

}


.resignation-body p {

    margin: 0 0 14px;

}


.resignation-body p:last-child {

    margin-bottom: 0;

}


/* =====================================================
   CLOSING
===================================================== */

.resignation-closing {

    font-size: 11px;

    margin-top: 28px;

    line-height: 1.5;

}


.resignation-signature-space {

    height: 35px;

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.resignation-placeholder {

    color: #888;

    font-style: italic;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.resignation-letter-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .resignation-letter-generator {

        grid-template-columns: 1fr;

    }


    .resignation-letter-generator
    .letter-preview-panel {

        position: static;

    }


    .resignation-letter-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .resignation-letter-paper {

        margin: 0;

    }

}

/* =====================================================
   COVER LETTER GENERATOR
===================================================== */

.cover-letter-generator {

    width: 100%;

}


/* =====================================================
   PREVIEW PAPER
===================================================== */

.cover-letter-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   HEADER
===================================================== */

.cover-sender-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 12px;

    border-bottom:
        2px solid #222;

}


.cover-logo-box {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.cover-letter-logo {

    max-width: 65px;

    max-height: 65px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.cover-logo-placeholder {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed #999;

    color: #999;

    font-size: 8px;

}


/* =====================================================
   SENDER DETAILS
===================================================== */

.cover-sender-details {

    flex: 1;

}


.cover-company-name {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 3px;

}


.cover-applicant-name {

    font-size: 11px;

    font-weight: 600;

}


.cover-applicant-position {

    font-size: 10px;

}


.cover-contact {

    font-size: 9px;

    margin-top: 3px;

}


/* =====================================================
   ADDRESS
===================================================== */

.cover-sender-address {

    font-size: 10px;

    line-height: 1.5;

    margin-top: 10px;

}


/* =====================================================
   DATE
===================================================== */

.cover-date {

    margin-top: 25px;

    margin-bottom: 24px;

    font-size: 11px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.cover-recipient {

    font-size: 11px;

    line-height: 1.5;

    margin-bottom: 22px;

}


/* =====================================================
   SUBJECT
===================================================== */

.cover-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 8px;

}


.cover-job-reference {

    font-size: 10px;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.cover-salutation {

    font-size: 11px;

    margin-bottom: 17px;

}


/* =====================================================
   BODY
===================================================== */

.cover-body {

    font-size: 11px;

    line-height: 1.7;

    text-align: justify;

}


.cover-body p {

    margin:
        0 0 13px;

}


/* =====================================================
   LISTS
===================================================== */

.cover-preview-list {

    margin:
        0 0 14px 20px;

    padding: 0;

}


.cover-preview-list li {

    margin-bottom: 4px;

}


/* =====================================================
   CLOSING
===================================================== */

.cover-closing {

    font-size: 11px;

    margin-top: 25px;

    line-height: 1.5;

}


.cover-signature-space {

    height: 35px;

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.cover-placeholder {

    color: #888;

    font-style: italic;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.cover-letter-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .cover-letter-generator {

        grid-template-columns: 1fr;

    }


    .cover-letter-generator
    .letter-preview-panel {

        position: static;

    }


    .cover-letter-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


@media (max-width: 767px) {

    .cover-letter-paper {

        margin: 0;

    }

}

/* =====================================================
   LEAVE REQUEST LETTER GENERATOR
===================================================== */

.leave-request-generator {

    width: 100%;

}


/* =====================================================
   PREVIEW PAPER
===================================================== */

.leave-request-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   HEADER
===================================================== */

.leave-sender-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 12px;

    border-bottom:
        2px solid #222;

}


.leave-logo-box {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.leave-letter-logo {

    max-width: 65px;

    max-height: 65px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.leave-logo-placeholder {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed #999;

    color: #999;

    font-size: 8px;

}


/* =====================================================
   ORGANIZATION DETAILS
===================================================== */

.leave-sender-details {

    flex: 1;

}


.leave-organization-name {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 3px;

}


.leave-employee-name {

    font-size: 11px;

    font-weight: 600;

}


.leave-employee-position {

    font-size: 10px;

}


.leave-department {

    font-size: 10px;

}


.leave-contact {

    font-size: 9px;

    margin-top: 3px;

}


/* =====================================================
   ADDRESS
===================================================== */

.leave-sender-address {

    font-size: 10px;

    line-height: 1.5;

    margin-top: 10px;

}


/* =====================================================
   DATE
===================================================== */

.leave-date {

    margin-top: 25px;

    margin-bottom: 24px;

    font-size: 11px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.leave-recipient {

    font-size: 11px;

    line-height: 1.5;

    margin-bottom: 22px;

}


/* =====================================================
   SUBJECT
===================================================== */

.leave-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.leave-salutation {

    font-size: 11px;

    margin-bottom: 17px;

}


/* =====================================================
   BODY
===================================================== */

.leave-body {

    font-size: 11px;

    line-height: 1.7;

    text-align: justify;

}


.leave-body p {

    margin:
        0 0 13px;

}


/* =====================================================
   CLOSING
===================================================== */

.leave-closing {

    font-size: 11px;

    margin-top: 25px;

    line-height: 1.5;

}


.leave-signature-space {

    height: 35px;

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.leave-placeholder {

    color: #888;

    font-style: italic;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.leave-request-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .leave-request-generator {

        grid-template-columns: 1fr;

    }


    .leave-request-generator
    .letter-preview-panel {

        position: static;

    }


    .leave-request-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


@media (max-width: 767px) {

    .leave-request-paper {

        margin: 0;

    }

}

/* =====================================================
   COMPLAINT LETTER GENERATOR
===================================================== */

.complaint-letter-generator {

    width: 100%;

}


/* =====================================================
   PREVIEW PAPER
===================================================== */

.complaint-letter-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   HEADER
===================================================== */

.complaint-sender-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 12px;

    border-bottom:
        2px solid #222;

}


.complaint-logo-box {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.complaint-letter-logo {

    max-width: 65px;

    max-height: 65px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.complaint-logo-placeholder {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed #999;

    color: #999;

    font-size: 8px;

}


/* =====================================================
   SENDER DETAILS
===================================================== */

.complaint-sender-details {

    flex: 1;

}


.complaint-organization-name {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 3px;

}


.complaint-sender-name {

    font-size: 11px;

    font-weight: 600;

}


.complaint-contact {

    font-size: 9px;

    margin-top: 3px;

}


/* =====================================================
   ADDRESS
===================================================== */

.complaint-sender-address {

    font-size: 10px;

    line-height: 1.5;

    margin-top: 10px;

}


/* =====================================================
   DATE
===================================================== */

.complaint-date {

    margin-top: 25px;

    margin-bottom: 24px;

    font-size: 11px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.complaint-recipient {

    font-size: 11px;

    line-height: 1.5;

    margin-bottom: 22px;

}


/* =====================================================
   SUBJECT
===================================================== */

.complaint-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.complaint-salutation {

    font-size: 11px;

    margin-bottom: 17px;

}


/* =====================================================
   BODY
===================================================== */

.complaint-body {

    font-size: 11px;

    line-height: 1.7;

    text-align: justify;

}


.complaint-body p {

    margin:
        0 0 13px;

}


/* =====================================================
   CLOSING
===================================================== */

.complaint-closing {

    font-size: 11px;

    margin-top: 25px;

    line-height: 1.5;

}


.complaint-signature-space {

    height: 35px;

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.complaint-placeholder {

    color: #888;

    font-style: italic;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.complaint-letter-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .complaint-letter-generator {

        grid-template-columns: 1fr;

    }


    .complaint-letter-generator
    .letter-preview-panel {

        position: static;

    }


    .complaint-letter-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


@media (max-width: 767px) {

    .complaint-letter-paper {

        margin: 0;

    }

}

/* =====================================================
   THANK YOU LETTER GENERATOR
===================================================== */

.thank-you-letter-generator {

    width: 100%;

}


/* =====================================================
   PREVIEW PAPER
===================================================== */

.thank-you-letter-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   HEADER
===================================================== */

.thank-you-sender-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 12px;

    border-bottom:
        2px solid #222;

}


.thank-you-logo-box {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.thank-you-letter-logo {

    max-width: 65px;

    max-height: 65px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.thank-you-logo-placeholder {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed #999;

    color: #999;

    font-size: 8px;

}


/* =====================================================
   SENDER
===================================================== */

.thank-you-sender-details {

    flex: 1;

}


.thank-you-organization-name {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 3px;

}


.thank-you-sender-name {

    font-size: 11px;

    font-weight: 600;

}


.thank-you-contact {

    font-size: 9px;

    margin-top: 3px;

}


.thank-you-sender-address {

    font-size: 10px;

    line-height: 1.5;

    margin-top: 10px;

}


/* =====================================================
   DATE
===================================================== */

.thank-you-date {

    margin-top: 25px;

    margin-bottom: 24px;

    font-size: 11px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.thank-you-recipient {

    font-size: 11px;

    line-height: 1.5;

    margin-bottom: 22px;

}


/* =====================================================
   SUBJECT
===================================================== */

.thank-you-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.thank-you-salutation {

    font-size: 11px;

    margin-bottom: 17px;

}


/* =====================================================
   BODY
===================================================== */

.thank-you-body {

    font-size: 11px;

    line-height: 1.7;

    text-align: justify;

}


.thank-you-body p {

    margin:
        0 0 13px;

}


/* =====================================================
   CLOSING
===================================================== */

.thank-you-closing {

    font-size: 11px;

    margin-top: 25px;

    line-height: 1.5;

}


.thank-you-signature-space {

    height: 35px;

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.thank-you-placeholder {

    color: #888;

    font-style: italic;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.thank-you-letter-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .thank-you-letter-generator {

        grid-template-columns: 1fr;

    }


    .thank-you-letter-generator
    .letter-preview-panel {

        position: static;

    }


    .thank-you-letter-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


@media (max-width: 767px) {

    .thank-you-letter-paper {

        margin: 0;

    }

}

/* =====================================================
   INVITATION LETTER GENERATOR
===================================================== */

.invitation-letter-generator {

    width: 100%;

}


/* =====================================================
   PREVIEW PAPER
===================================================== */

.invitation-letter-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   SENDER HEADER
===================================================== */

.invitation-sender-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 12px;

    border-bottom:
        2px solid #222;

}


.invitation-logo-box {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.invitation-letter-logo {

    max-width: 65px;

    max-height: 65px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.invitation-logo-placeholder {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed #999;

    color: #999;

    font-size: 8px;

}


/* =====================================================
   SENDER
===================================================== */

.invitation-sender-details {

    flex: 1;

}


.invitation-organization-name {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 3px;

}


.invitation-contact {

    font-size: 9px;

    margin-top: 3px;

}


.invitation-sender-address {

    font-size: 10px;

    line-height: 1.5;

    margin-top: 10px;

}


/* =====================================================
   DATE
===================================================== */

.invitation-date {

    margin-top: 25px;

    margin-bottom: 24px;

    font-size: 11px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.invitation-recipient {

    font-size: 11px;

    line-height: 1.5;

    margin-bottom: 22px;

}


/* =====================================================
   SUBJECT
===================================================== */

.invitation-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.invitation-salutation {

    font-size: 11px;

    margin-bottom: 17px;

}


/* =====================================================
   BODY
===================================================== */

.invitation-body {

    font-size: 11px;

    line-height: 1.7;

    text-align: justify;

}


.invitation-body p {

    margin:
        0 0 13px;

}


/* =====================================================
   EVENT DETAILS
===================================================== */

.invitation-event-box {

    margin:
        20px 0;

    padding: 14px 16px;

    border:
        1px solid #555;

    background:
        #fafafa;

}


.invitation-event-title {

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .5px;

    margin-bottom: 10px;

    padding-bottom: 6px;

    border-bottom:
        1px solid #ccc;

}


.invitation-event-row {

    display: flex;

    gap: 15px;

    margin-bottom: 7px;

}


.invitation-event-row:last-child {

    margin-bottom: 0;

}


.invitation-event-label {

    width: 80px;

    flex-shrink: 0;

    font-size: 9px;

    font-weight: 700;

}


/* =====================================================
   CLOSING
===================================================== */

.invitation-closing {

    font-size: 11px;

    margin-top: 25px;

    line-height: 1.5;

}


.invitation-signature-space {

    height: 35px;

}


/* =====================================================
   PLACEHOLDER
===================================================== */

.invitation-placeholder {

    color: #888;

    font-style: italic;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.invitation-letter-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .invitation-letter-generator {

        grid-template-columns: 1fr;

    }


    .invitation-letter-generator
    .letter-preview-panel {

        position: static;

    }


    .invitation-letter-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


@media (max-width: 767px) {

    .invitation-letter-paper {

        margin: 0;

    }

}

/* =====================================================
   SCHOOL ADMISSION LETTER GENERATOR
===================================================== */

.school-admission-generator {

    width: 100%;

}


/* =====================================================
   PREVIEW PAPER
===================================================== */

.school-admission-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   SCHOOL HEADER
===================================================== */

.school-admission-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 12px;

    border-bottom:
        2px solid #222;

}


.school-admission-logo-box {

    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.school-admission-logo {

    max-width: 70px;

    max-height: 70px;

    width: auto;

    height: auto;

    object-fit: contain;

}


.school-admission-logo-placeholder {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed #999;

    color: #999;

    font-size: 7px;

    text-align: center;

}


/* =====================================================
   SCHOOL INFORMATION
===================================================== */

.school-admission-school-info {

    flex: 1;

}


.school-admission-school-name {

    font-size: 21px;

    font-weight: 700;

    text-transform: uppercase;

    line-height: 1.2;

}


.school-admission-address {

    font-size: 9px;

    line-height: 1.4;

    margin-top: 4px;

}


.school-admission-contact {

    font-size: 8px;

    margin-top: 4px;

}


/* =====================================================
   DATE
===================================================== */

.school-admission-date {

    margin-top: 24px;

    margin-bottom: 22px;

    font-size: 10px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.school-admission-recipient {

    font-size: 10px;

    line-height: 1.5;

    margin-bottom: 20px;

}


/* =====================================================
   SUBJECT
===================================================== */

.school-admission-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.school-admission-salutation {

    font-size: 10px;

    margin-bottom: 15px;

}


/* =====================================================
   BODY
===================================================== */

.school-admission-body {

    font-size: 10.5px;

    line-height: 1.65;

    text-align: justify;

}


.school-admission-body p {

    margin:
        0 0 12px;

}


/* =====================================================
   ADMISSION DETAILS
===================================================== */

.school-admission-details-box {

    margin:
        18px 0;

    padding:
        12px 14px;

    border:
        1px solid #555;

    background:
        #fafafa;

}


.school-admission-details-title {

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .4px;

    margin-bottom: 8px;

    padding-bottom: 5px;

    border-bottom:
        1px solid #ccc;

}


.school-admission-detail-row {

    display: flex;

    gap: 12px;

    margin-bottom: 6px;

}


.school-admission-detail-row:last-child {

    margin-bottom: 0;

}


.school-admission-detail-row span {

    width: 115px;

    flex-shrink: 0;

    font-size: 8px;

    font-weight: 700;

}


.school-admission-detail-row strong {

    font-size: 9px;

}


/* =====================================================
   CONDITIONS
===================================================== */

.school-admission-conditions {

    margin:
        18px 0;

    padding:
        12px 14px;

    border:
        1px solid #777;

}


.school-admission-conditions-title {

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .3px;

    margin-bottom: 8px;

    padding-bottom: 5px;

    border-bottom:
        1px solid #ccc;

}


/* =====================================================
   CLOSING
===================================================== */

.school-admission-closing {

    margin-top: 25px;

    font-size: 10px;

    line-height: 1.5;

}


.school-admission-signature-space {

    height: 35px;

}


.school-admission-footer-contact {

    margin-top: 6px;

    font-size: 8px;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.school-admission-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .school-admission-generator {

        grid-template-columns: 1fr;

    }


    .school-admission-generator
    .letter-preview-panel {

        position: static;

    }


    .school-admission-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


@media (max-width: 767px) {

    .school-admission-paper {

        margin: 0;

    }


    .school-admission-detail-row {

        flex-direction: column;

        gap: 2px;

    }


    .school-admission-detail-row span {

        width: auto;

    }

}

/* =====================================================
   SCHOOL ACCEPTANCE LETTER GENERATOR
===================================================== */

.school-acceptance-generator {

    width: 100%;

}


/* =====================================================
   PAYMENT SECTION
===================================================== */

.payment-helper-text {

    margin-top: -10px;

    margin-bottom: 20px;

    font-size: 14px;

    color: #777;

}


.acceptance-payment-row {

    margin-bottom: 15px;

    padding: 16px;

    border: 1px solid #e4e4e4;

    border-radius: 10px;

    background: #fafafa;

}


.acceptance-payment-fields {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(180px, 250px)
        auto;

    gap: 15px;

    align-items: end;

}


.acceptance-payment-remove-box {

    padding-bottom: 1px;

}


.remove-payment-button {

    height: 45px;

    padding: 0 15px;

    border: 1px solid #dc3545;

    border-radius: 7px;

    background: transparent;

    color: #dc3545;

    font-size: 13px;

    cursor: pointer;

    transition: all .2s ease;

}


.remove-payment-button:hover {

    background: #dc3545;

    color: #fff;

}


.add-payment-button {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 5px;

    padding: 11px 18px;

    border: 1px dashed #777;

    border-radius: 8px;

    background: transparent;

    color: inherit;

    font-weight: 600;

    cursor: pointer;

    transition: all .2s ease;

}


.add-payment-button:hover {

    border-style: solid;

    transform: translateY(-1px);

}


.add-payment-icon {

    font-size: 20px;

    line-height: 1;

}


.acceptance-payment-total-box {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 18px;

    padding: 15px 18px;

    border-radius: 8px;

    background: rgba(0, 0, 0, .04);

}


.acceptance-payment-total-box span {

    font-weight: 600;

}


.acceptance-payment-total-box strong {

    font-size: 20px;

}


/* =====================================================
   A4 PREVIEW
===================================================== */

.school-acceptance-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   SENDER
===================================================== */

.school-acceptance-sender {

    font-size: 10px;

    line-height: 1.5;

    margin-bottom: 5px;

}


/* =====================================================
   DATE
===================================================== */

.school-acceptance-date {

    margin:
        24px 0;

    font-size: 10px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.school-acceptance-recipient {

    font-size: 10px;

    line-height: 1.5;

    margin-bottom: 20px;

}


/* =====================================================
   SUBJECT
===================================================== */

.school-acceptance-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.school-acceptance-salutation {

    font-size: 10px;

    margin-bottom: 15px;

}


/* =====================================================
   BODY
===================================================== */

.school-acceptance-body {

    font-size: 10.5px;

    line-height: 1.6;

    text-align: justify;

}


.school-acceptance-body p {

    margin:
        0 0 11px;

}


/* =====================================================
   ADMISSION DETAILS
===================================================== */

.school-acceptance-details {

    margin: 15px 0;

    padding: 10px 12px;

    border: 1px solid #555;

    background: #fafafa;

}


.school-acceptance-details-title {

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .4px;

    margin-bottom: 7px;

    padding-bottom: 4px;

    border-bottom: 1px solid #ccc;

}


.school-acceptance-detail-row {

    display: flex;

    gap: 12px;

    margin-bottom: 5px;

}


.school-acceptance-detail-row:last-child {

    margin-bottom: 0;

}


.school-acceptance-detail-row span {

    width: 120px;

    flex-shrink: 0;

    font-size: 8px;

    font-weight: 700;

}


.school-acceptance-detail-row strong {

    font-size: 9px;

}


/* =====================================================
   PAYMENT TABLE
===================================================== */

.school-acceptance-fees {

    margin: 15px 0;

}


.school-acceptance-fees-title {

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .3px;

    margin-bottom: 7px;

}


.school-acceptance-fees-table {

    width: 100%;

    border-collapse: collapse;

}


.school-acceptance-fees-table th,
.school-acceptance-fees-table td {

    border:
        1px solid #888;

    padding:
        5px 7px;

    font-size: 8.5px;

}


.school-acceptance-fees-table th {

    font-weight: 700;

    text-align: left;

}


.school-acceptance-fees-table
th:last-child,
.school-acceptance-fees-table
td:last-child {

    width: 30%;

    text-align: right;

}


.school-acceptance-fees-table
tfoot td {

    font-weight: 700;

    background: #f5f5f5;

}


/* =====================================================
   CLOSING
===================================================== */

.school-acceptance-closing {

    margin-top: 25px;

    font-size: 10px;

    line-height: 1.5;

}


.school-acceptance-signature-space {

    height: 30px;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.school-acceptance-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .school-acceptance-generator {

        grid-template-columns: 1fr;

    }


    .school-acceptance-generator
    .letter-preview-panel {

        position: static;

    }


    .school-acceptance-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


@media (max-width: 767px) {

    .acceptance-payment-fields {

        grid-template-columns: 1fr;

        gap: 10px;

    }


    .acceptance-payment-remove-box {

        padding-bottom: 0;

    }


    .remove-payment-button {

        width: 100%;

    }


    .acceptance-payment-total-box {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

    }


    .school-acceptance-paper {

        margin: 0;

    }


    .school-acceptance-detail-row {

        flex-direction: column;

        gap: 2px;

    }


    .school-acceptance-detail-row span {

        width: auto;

    }

}

/* =====================================================
   STUDENT RECOMMENDATION LETTER GENERATOR
===================================================== */

.student-recommendation-generator {

    width: 100%;

}


/* =====================================================
   HELPER TEXT
===================================================== */

.recommendation-helper-text {

    margin-top: -10px;

    margin-bottom: 18px;

    font-size: 14px;

    color: #777;

}


/* =====================================================
   STRENGTHS
===================================================== */

.recommendation-strengths-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

}


.recommendation-check {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    border: 1px solid #e5e5e5;

    border-radius: 8px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        transform .2s ease;

}


.recommendation-check:hover {

    border-color: #999;

    transform: translateY(-1px);

}


.recommendation-check input {

    width: 17px;

    height: 17px;

    cursor: pointer;

}


.recommendation-check span {

    font-size: 14px;

}


/* =====================================================
   A4 PAPER
===================================================== */

.student-recommendation-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   LOGO
===================================================== */

.student-recommendation-logo-wrap {

    margin-bottom: 15px;

}


.student-recommendation-logo {

    max-width: 90px;

    max-height: 70px;

    object-fit: contain;

}


/* =====================================================
   WRITER
===================================================== */

.student-recommendation-writer {

    font-size: 10px;

    line-height: 1.5;

}


/* =====================================================
   DATE
===================================================== */

.student-recommendation-date {

    margin:
        22px 0;

    font-size: 10px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.student-recommendation-recipient {

    font-size: 10px;

    line-height: 1.5;

    margin-bottom: 20px;

}


/* =====================================================
   SUBJECT
===================================================== */

.student-recommendation-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.student-recommendation-salutation {

    font-size: 10px;

    margin-bottom: 15px;

}


/* =====================================================
   BODY
===================================================== */

.student-recommendation-body {

    font-size: 10.5px;

    line-height: 1.6;

    text-align: justify;

}


.student-recommendation-body p {

    margin:
        0 0 11px;

}


/* =====================================================
   SPECIFIC EXAMPLE
===================================================== */

.recommendation-example {

    padding:
        10px 12px;

    border-left:
        3px solid #777;

    background: #f8f8f8;

    text-align: left;

}


/* =====================================================
   CLOSING
===================================================== */

.student-recommendation-closing {

    margin-top: 25px;

    font-size: 10px;

    line-height: 1.5;

}


.student-recommendation-signature-space {

    height: 30px;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.student-recommendation-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .student-recommendation-generator {

        grid-template-columns: 1fr;

    }


    .student-recommendation-generator
    .letter-preview-panel {

        position: static;

    }


    .student-recommendation-generator
    .business-letter-preview-wrapper {

        overflow-x: auto;

    }

}


@media (max-width: 767px) {

    .recommendation-strengths-grid {

        grid-template-columns: 1fr;

    }


    .student-recommendation-paper {

        margin: 0;

    }

}

/* =====================================================
   TEACHER APPLICATION LETTER GENERATOR
===================================================== */

.teacher-application-generator {

    width: 100%;

}


/* =====================================================
   HELPER TEXT
===================================================== */

.teacher-helper-text {

    margin-top: -10px;

    margin-bottom: 18px;

    font-size: 14px;

    color: #777;

}


/* =====================================================
   ADDITIONAL SKILLS
===================================================== */

#teacherAdditionalSkills {

    min-height: 90px;

}


/* =====================================================
   TEACHING SKILLS GRID
===================================================== */

.teacher-skills-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

}


/* =====================================================
   SKILL CHECKBOX
===================================================== */

.teacher-skill-check {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    border: 1px solid #e5e5e5;

    border-radius: 8px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

}


.teacher-skill-check:hover {

    border-color: #999;

    transform: translateY(-1px);

    box-shadow:
        0 3px 10px rgba(0, 0, 0, .05);

}


.teacher-skill-check input {

    width: 17px;

    height: 17px;

    margin: 0;

    cursor: pointer;

}


.teacher-skill-check span {

    font-size: 14px;

}


/* =====================================================
   A4 PREVIEW WRAPPER
===================================================== */

.teacher-application-generator
.business-letter-preview-wrapper {

    width: 100%;

    overflow-x: auto;

    padding: 15px;

    background: #f1f1f1;

}


/* =====================================================
   A4 PAPER
===================================================== */

.teacher-application-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   LOGO
===================================================== */

.teacher-application-logo-wrap {

    margin-bottom: 15px;

}


.teacher-application-logo {

    max-width: 90px;

    max-height: 70px;

    width: auto;

    height: auto;

    object-fit: contain;

}


/* =====================================================
   APPLICANT
===================================================== */

.teacher-application-writer {

    font-size: 10px;

    line-height: 1.5;

}


/* =====================================================
   DATE
===================================================== */

.teacher-application-date {

    margin:
        22px 0;

    font-size: 10px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.teacher-application-recipient {

    font-size: 10px;

    line-height: 1.5;

    margin-bottom: 20px;

}


/* =====================================================
   SUBJECT
===================================================== */

.teacher-application-subject {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.teacher-application-salutation {

    font-size: 10px;

    margin-bottom: 15px;

}


/* =====================================================
   BODY
===================================================== */

.teacher-application-body {

    font-size: 10.5px;

    line-height: 1.6;

    text-align: justify;

}


.teacher-application-body p {

    margin:
        0 0 11px;

}


/* =====================================================
   CLOSING
===================================================== */

.teacher-application-closing {

    margin-top: 25px;

    font-size: 10px;

    line-height: 1.5;

}


.teacher-application-signature-space {

    height: 30px;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.teacher-application-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   FORM SECTION TITLES
===================================================== */

.teacher-application-generator
.reference-section-title {

    margin-bottom: 18px;

}


/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width: 1100px) {

    .teacher-skills-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* =====================================================
   RESPONSIVE - MOBILE
===================================================== */

@media (max-width: 767px) {

    .teacher-skills-grid {

        grid-template-columns: 1fr;

    }


    .teacher-application-paper {

        margin: 0;

    }


    .teacher-application-generator
    .business-letter-preview-wrapper {

        padding: 10px;

    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .teacher-skill-check {

        padding: 10px 12px;

    }


    .teacher-skill-check span {

        font-size: 13px;

    }

}

/* =====================================================
   SCHOOL FEE PAYMENT REQUEST LETTER GENERATOR
===================================================== */

.school-fee-request-generator {

    width: 100%;

}


/* =====================================================
   PREVIEW WRAPPER
===================================================== */

.school-fee-request-generator
.business-letter-preview-wrapper {

    width: 100%;

    overflow-x: auto;

    padding: 15px;

    background: #f1f1f1;

}


/* =====================================================
   A4 PAPER
===================================================== */

.school-fee-request-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .12);

}


/* =====================================================
   LOGO
===================================================== */

.school-fee-logo-wrap {

    margin-bottom: 15px;

}


.school-fee-logo {

    max-width: 90px;

    max-height: 70px;

    width: auto;

    height: auto;

    object-fit: contain;

}


/* =====================================================
   SENDER
===================================================== */

.school-fee-sender {

    font-size: 10px;

    line-height: 1.5;

}


/* =====================================================
   DATE
===================================================== */

.school-fee-date {

    margin:
        22px 0;

    font-size: 10px;

}


/* =====================================================
   RECIPIENT
===================================================== */

.school-fee-recipient {

    font-size: 10px;

    line-height: 1.5;

    margin-bottom: 20px;

}


/* =====================================================
   TITLE
===================================================== */

.school-fee-title {

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 20px;

}


/* =====================================================
   SALUTATION
===================================================== */

.school-fee-salutation {

    font-size: 10px;

    margin-bottom: 15px;

}


/* =====================================================
   BODY
===================================================== */

.school-fee-body {

    font-size: 10.5px;

    line-height: 1.6;

    text-align: justify;

}


.school-fee-body p {

    margin:
        0 0 11px;

}


/* =====================================================
   CLOSING
===================================================== */

.school-fee-closing {

    margin-top: 25px;

    font-size: 10px;

    line-height: 1.5;

}


.school-fee-signature-space {

    height: 30px;

}


/* =====================================================
   PRINT BUTTON
===================================================== */

.school-fee-request-generator
.letter-print-button {

    width: 100%;

    margin-top: 20px;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .school-fee-request-generator
    .business-letter-preview-wrapper {

        padding: 10px;

    }


    .school-fee-request-paper {

        margin: 0;

    }

}

/* =====================================================
   PAYMENT REQUEST LETTER GENERATOR
===================================================== */

.prl-generator {
    width: 100%;
}


/* =====================================================
   SECTION TITLES
===================================================== */

.prl-section-title {

    margin-top: 30px;
    margin-bottom: 15px;

    padding-bottom: 8px;

    border-bottom: 1px solid #dee2e6;

    font-size: 15px;

    font-weight: 700;

}


.prl-section-title:first-of-type {
    margin-top: 10px;
}


/* =====================================================
   HELP TEXT
===================================================== */

.prl-help {

    margin-bottom: 15px;

    font-size: 13px;

    color: #6c757d;

    line-height: 1.6;

}


/* =====================================================
   PAYMENT HEADER
===================================================== */

.prl-payment-header {

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        180px
        100px !important;

    column-gap: 15px !important;

    width: 100% !important;

    padding: 11px 0 !important;

    font-size: 12px;

    font-weight: 700;

    color: #495057;

}


/* =====================================================
   PAYMENT ROW
===================================================== */

.prl-payment-row {

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        180px
        100px !important;

    column-gap: 15px !important;

    width: 100% !important;

    align-items: start !important;

    margin-bottom: 12px !important;

}


/* =====================================================
   PAYMENT COLUMNS
===================================================== */

.prl-payment-description-box,
.prl-payment-amount-box,
.prl-payment-action-box {

    display: block !important;

    width: 100% !important;

    min-width: 0 !important;

}


/* =====================================================
   DESCRIPTION
===================================================== */

.prl-payment-description {

    display: block !important;

    width: 100% !important;

    height: 46px !important;

    min-height: 46px !important;

    padding: 10px 13px !important;

    margin: 0 !important;

    box-sizing: border-box !important;

    border: 1px solid #ced4da !important;

    border-radius: 7px !important;

    background: #fff !important;

    color: #212529 !important;

    font-family: inherit !important;

    font-size: 14px !important;

    outline: none !important;

}


.prl-payment-description:focus {

    border-color: #86b7fe !important;

    box-shadow:
        0 0 0 3px
        rgba(13,110,253,.12) !important;

}


/* =====================================================
   AMOUNT
===================================================== */

.prl-amount-wrapper {

    position: relative !important;

    display: block !important;

    width: 100% !important;

    height: 46px !important;

}


.prl-amount-wrapper span {

    position: absolute !important;

    left: 13px !important;

    top: 50% !important;

    transform:
        translateY(-50%) !important;

    z-index: 5 !important;

    font-weight: 700;

    pointer-events: none;

}


.prl-payment-amount {

    display: block !important;

    width: 100% !important;

    height: 46px !important;

    min-height: 46px !important;

    padding:
        10px 10px 10px 30px !important;

    margin: 0 !important;

    box-sizing: border-box !important;

    border: 1px solid #ced4da !important;

    border-radius: 7px !important;

    background: #fff !important;

    outline: none !important;

}


.prl-payment-amount:focus {

    border-color: #86b7fe !important;

    box-shadow:
        0 0 0 3px
        rgba(13,110,253,.12) !important;

}


/* =====================================================
   REMOVE
===================================================== */

.prl-remove-payment {

    display: block !important;

    width: 100% !important;

    height: 46px !important;

    min-height: 46px !important;

    margin: 0 !important;

    padding: 0 10px !important;

    border: none !important;

    border-radius: 7px !important;

    background: #dc3545 !important;

    color: #fff !important;

    font-size: 12px !important;

    font-weight: 700 !important;

    cursor: pointer !important;

}


.prl-remove-payment:hover {

    background: #bb2d3b !important;

}


/* =====================================================
   MOBILE LABEL
===================================================== */

.prl-mobile-label {

    display: none;

}


/* =====================================================
   ADD PAYMENT
===================================================== */

.prl-add-payment {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 4px;

    padding: 11px 18px;

    border: 1px dashed #198754;

    border-radius: 7px;

    background: #f1fff7;

    color: #198754;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

}


.prl-add-payment:hover {

    background: #198754;

    color: #fff;

}


/* =====================================================
   TOTAL
===================================================== */

.prl-total-box {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 18px;

    margin-bottom: 20px;

    padding: 16px 18px;

    border: 1px solid #dee2e6;

    border-radius: 8px;

    background: #f8f9fa;

}


.prl-total-box span {

    font-size: 14px;

    font-weight: 700;

}


.prl-total-box strong {

    font-size: 21px;

}


/* =====================================================
   BALANCE
===================================================== */

.prl-balance {

    display: flex;

    align-items: center;

    width: 100%;

    height: 46px;

    padding: 10px 14px;

    box-sizing: border-box;

    border: 1px solid #ced4da;

    border-radius: 7px;

    background: #f8f9fa;

    font-weight: 700;

}


/* =====================================================
   PREVIEW
===================================================== */

.prl-preview-container {

    width: 100%;

    overflow-x: auto;

    padding: 10px;

    background: #f1f3f5;

}


.prl-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    box-sizing: border-box;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px
        rgba(0,0,0,.12);

}


/* =====================================================
   SCHOOL HEADER
===================================================== */

.prl-school-header {

    text-align: center;

}


.prl-school-header img {

    max-width: 90px;

    max-height: 70px;

    object-fit: contain;

    margin-bottom: 7px;

}


.prl-school-name {

    font-size: 21px;

    font-weight: 800;

    text-transform: uppercase;

    line-height: 1.2;

}


.prl-school-motto {

    margin-top: 4px;

    font-size: 9px;

    font-style: italic;

}


.prl-school-address {

    margin-top: 7px;

    font-size: 9.5px;

}


.prl-school-contact {

    font-size: 9px;

}


.prl-divider {

    margin-top: 10px;

    border-bottom: 2px solid #222;

}


/* =====================================================
   LETTER
===================================================== */

.prl-date {

    margin-top: 20px;

}


.prl-reference {

    margin-top: 7px;

}


.prl-recipient {

    margin-top: 18px;

}


.prl-subject {

    margin:
        22px 0 17px;

    text-align: center;

    font-weight: 700;

}


.prl-letter-body {

    text-align: justify;

}


.prl-letter-body p {

    margin-bottom: 11px;

}


/* =====================================================
   STUDENT PREVIEW
===================================================== */

.prl-student-box {

    margin: 15px 0;

    border: 1px solid #ccc;

}


.prl-preview-box-title {

    padding: 8px 10px;

    border-bottom: 1px solid #ccc;

    font-size: 9.5px;

    font-weight: 700;

    text-transform: uppercase;

}


.prl-student-box > div:not(.prl-preview-box-title) {

    display: flex;

    justify-content: space-between;

    padding: 7px 10px;

    border-bottom: 1px solid #eee;

}


/* =====================================================
   PAYMENT PREVIEW
===================================================== */

.prl-preview-payment-box {

    margin: 15px 0;

    border: 1px solid #ccc;

}


.prl-preview-box-title {

    padding: 8px 10px;

    border-bottom: 1px solid #ccc;

    font-weight: 700;

    font-size: 9.5px;

    text-transform: uppercase;

}


.prl-preview-payment-box table {

    width: 100%;

    border-collapse: collapse;

}


.prl-preview-payment-box th,
.prl-preview-payment-box td {

    padding: 7px 10px;

    border-bottom: 1px solid #eee;

    text-align: left;

}


.prl-preview-payment-box th:last-child,
.prl-preview-payment-box td:last-child {

    text-align: right;

}


.prl-preview-payment-box tfoot th,
.prl-preview-payment-box tfoot td {

    font-weight: 700;

}


/* =====================================================
   CLOSING
===================================================== */

.prl-closing {

    margin-top: 28px;

}


.prl-signature-space {

    height: 35px;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .prl-payment-header {

        display: none !important;

    }


    .prl-payment-row {

        display: block !important;

        width: 100% !important;

        padding: 15px !important;

        margin-bottom: 15px !important;

        box-sizing: border-box !important;

        border: 1px solid #dee2e6 !important;

        border-radius: 8px !important;

        background: #f8f9fa !important;

    }


    .prl-payment-description-box,
    .prl-payment-amount-box,
    .prl-payment-action-box {

        display: block !important;

        width: 100% !important;

        margin-bottom: 12px !important;

    }


    .prl-payment-action-box {

        margin-bottom: 0 !important;

    }


    .prl-mobile-label {

        display: block !important;

        margin-bottom: 5px !important;

        font-size: 12px !important;

        font-weight: 700 !important;

    }


    .prl-payment-description,
    .prl-payment-amount,
    .prl-remove-payment {

        width: 100% !important;

    }


    .prl-paper {

        margin: 0;

    }

}

/* =====================================================
   FORM + PREVIEW SIDE BY SIDE
===================================================== */

.prl-generator {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 30px;
    align-items: start;
}


/* Keep each main panel at full width */

.prl-generator > .calculator-panel {
    width: 100%;
    min-width: 0;
}


/* Preview panel */

.prl-generator > .calculator-panel:last-child {
    position: sticky;
    top: 20px;
}


/* Preview area */

.prl-preview-container {
    width: 100%;
    overflow-x: auto;
    padding: 10px;
    background: #f1f3f5;
}


/*
   The A4 paper remains A4 size.
   It can be scrolled horizontally if necessary.
*/

.prl-paper {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    box-sizing: border-box;
    background: #fff;
}


/* =====================================================
   TABLET / SMALL LAPTOP
===================================================== */

@media (max-width: 1100px) {

    .prl-generator {
        grid-template-columns: 1fr;
    }

    .prl-generator > .calculator-panel:last-child {
        position: static;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .prl-generator {
        display: block;
    }

    .prl-generator > .calculator-panel {
        width: 100%;
        margin-bottom: 25px;
    }

}

/* =====================================================
   DONATION REQUEST LETTER GENERATOR
===================================================== */

.drg-generator {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 30px;
    align-items: start;
}


/* =====================================================
   STICKY PREVIEW
===================================================== */

.drg-generator > .calculator-panel:last-child {

    position: sticky;

    top: 20px;

}


/* =====================================================
   SECTION TITLE
===================================================== */

.drg-section-title {

    margin-top: 30px;

    margin-bottom: 15px;

    padding-bottom: 8px;

    border-bottom: 1px solid #dee2e6;

    font-size: 15px;

    font-weight: 700;

}


/* =====================================================
   PREVIEW CONTAINER
===================================================== */

.drg-preview-container {

    width: 100%;

    overflow-x: auto;

    padding: 10px;

    background: #f1f3f5;

}


/* =====================================================
   A4 PAPER
===================================================== */

.drg-paper {

    width: 210mm;

    min-height: 297mm;

    margin: 0 auto;

    padding: 18mm;

    box-sizing: border-box;

    background: #fff;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    box-shadow:
        0 8px 30px
        rgba(0,0,0,.12);

}


/* =====================================================
   HEADER
===================================================== */

.drg-school-header {

    text-align: center;

}


.drg-school-header img {

    max-width: 90px;

    max-height: 70px;

    object-fit: contain;

    margin-bottom: 7px;

}


.drg-school-name {

    font-size: 21px;

    font-weight: 800;

    text-transform: uppercase;

    line-height: 1.2;

}


.drg-school-motto {

    margin-top: 4px;

    font-size: 9px;

    font-style: italic;

}


.drg-school-address {

    margin-top: 7px;

    font-size: 9.5px;

}


.drg-school-contact {

    font-size: 9px;

}


.drg-divider {

    margin-top: 10px;

    border-bottom: 2px solid #222;

}


/* =====================================================
   LETTER CONTENT
===================================================== */

.drg-date {

    margin-top: 20px;

}


.drg-reference {

    margin-top: 7px;

}


.drg-recipient {

    margin-top: 18px;

}


.drg-subject {

    margin:
        22px 0 17px;

    text-align: center;

    font-weight: 700;

}


.drg-letter-body {

    text-align: justify;

}


.drg-letter-body p {

    margin-bottom: 11px;

}


/* =====================================================
   SUPPORT BOX
===================================================== */

.drg-support-box {

    margin: 15px 0;

    padding: 10px 12px;

    border: 1px solid #ccc;

    background: #fafafa;

}


/* =====================================================
   ITEMS BOX
===================================================== */

.drg-items-box {

    margin: 15px 0;

    padding: 10px 12px;

    border: 1px solid #ccc;

    background: #fafafa;

}


.drg-items-box strong,
.drg-support-box strong {

    display: block;

    margin-bottom: 5px;

    font-size: 9.5px;

    text-transform: uppercase;

}


/* =====================================================
   INSTRUCTIONS
===================================================== */

.drg-instructions {

    margin: 15px 0;

    padding: 10px 12px;

    border: 1px solid #ccc;

    background: #fafafa;

}


/* =====================================================
   CLOSING
===================================================== */

.drg-closing {

    margin-top: 28px;

}


.drg-signature-space {

    height: 35px;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .drg-generator {

        grid-template-columns: 1fr;

    }


    .drg-generator > .calculator-panel:last-child {

        position: static;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .drg-generator {

        display: block;

    }


    .drg-generator > .calculator-panel {

        width: 100%;

        margin-bottom: 25px;

    }


    .drg-preview-container {

        padding: 5px;

    }

}