:root {

    /* =========================================
       MFGWALE BRAND COLORS
       ========================================= */

    --mfg-black: #000000;
    --mfg-teal: #00887E;
    --mfg-teal-dark: #006B63;

    /* =========================================
       BACKGROUNDS
       ========================================= */

    --mfg-white: #FFFFFF;
    --mfg-bg: #F7F7F7;
    --mfg-card-bg: #FFFFFF;

    /* =========================================
       BORDERS
       ========================================= */

    --mfg-border: #E5E5E5;

    /* =========================================
       TEXT
       ========================================= */

    --mfg-text: #000000;
    --mfg-text-secondary: #333333;
    --mfg-text-muted: #555555;
    --mfg-text-light: #666666;

    /* =========================================
       BRAND LIGHT BACKGROUND
       ========================================= */

    --mfg-teal-light: #E8F8F6;

    /* =========================================
       TYPOGRAPHY
       ========================================= */

    --mfg-font: Arial, Helvetica, sans-serif;

    /* =========================================
       COMMON UI
       ========================================= */

    --mfg-radius: 14px;
    --mfg-radius-small: 8px;

}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--mfg-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--mfg-text);
    background: var(--mfg-bg);
}

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

a {
    color: var(--mfg-teal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================================
   GLOBAL TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--mfg-text);
    font-family: var(--mfg-font);
}

h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

h3 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

h4 {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

p {
    margin-top: 0;
    margin-bottom: 16px;
}


/* =========================================================
   COMMON CONTAINER
   ========================================================= */

.mfg-container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   COMMON CARD
   ========================================================= */

.mfg-card {
    background: var(--mfg-card-bg);
    border: 1px solid var(--mfg-border);
    border-radius: var(--mfg-radius);
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.breadcrumb {
    font-size: 14px;
    line-height: 1.5;
}

.breadcrumb a {
    color: #0066CC;
}

.breadcrumb span {
    color: var(--mfg-text-light);
}


/* =========================================================
   PRODUCT / CATEGORY DESCRIPTIONS
   ========================================================= */

.description,
.category-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--mfg-text-secondary);
}


/* =========================================================
   SMALL TEXT
   ========================================================= */

.small-text,
small {
    font-size: 13px;
    line-height: 1.5;
}


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

@media (max-width: 767px) {

    body {
        font-size: 14px;
        line-height: 1.5;
    }

    h1 {
        font-size: 26px;
        line-height: 1.2;
    }

    h2 {
        font-size: 21px;
        line-height: 1.25;
    }

    h3 {
        font-size: 18px;
        line-height: 1.3;
    }

    h4 {
        font-size: 16px;
        line-height: 1.3;
    }

    p {
        margin-bottom: 12px;
    }

    .breadcrumb {
        font-size: 12px;
        line-height: 1.4;
    }

    .description,
    .category-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .small-text,
    small {
        font-size: 12px;
    }

    .mfg-container {
        padding-left: 14px;
        padding-right: 14px;
    }
}


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

@media (max-width: 420px) {

    h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    h2 {
        font-size: 20px;
        line-height: 1.25;
    }

    h3 {
        font-size: 17px;
        line-height: 1.3;
    }

    body {
        font-size: 14px;
    }

    .mfg-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* =========================================================
   MFGWALE MOBILE H1 OVERRIDE
   ========================================================= */

@media (max-width: 767px) {

    h1 {
        font-size: 24px !important;
        line-height: 1.18 !important;
        font-weight: 700 !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

}

@media (max-width: 420px) {

    h1 {
        font-size: 23px !important;
        line-height: 1.18 !important;
    }

}


/* =========================================================
   COMPANY PROFILE
   ========================================================= */

.company-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.company-page-header {
    margin-bottom: 25px;
}

.company-page-header h1 {
    margin: 0 0 7px;
    color: var(--mfg-text);
    font-family: var(--mfg-font);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.company-page-header p {
    margin: 0;
    color: var(--mfg-text-muted);
    font-family: var(--mfg-font);
    font-size: 15px;
}


/* =========================================================
   COMPANY SUCCESS MESSAGE
   ========================================================= */

.company-success {
    margin-bottom: 20px;
    padding: 12px 15px;
    background: var(--mfg-teal-light);
    border: 1px solid #b7e5df;
    border-radius: var(--mfg-radius-small);
    color: var(--mfg-teal-dark);
    font-size: 13px;
}


/* =========================================================
   COMPANY APPROVAL STATUS
   ========================================================= */

.company-status {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--mfg-card-bg);
    border: 1px solid var(--mfg-border);
    border-radius: var(--mfg-radius-small);
    color: var(--mfg-text);
    font-size: 14px;
}

.status-approved {
    color: var(--mfg-teal);
    font-weight: 700;
}

.status-pending {
    color: #d97706;
    font-weight: 700;
}

.status-rejected {
    color: #dc2626;
    font-weight: 700;
}

.rejection-reason {
    margin-top: 8px;
    color: var(--mfg-text-muted);
    font-size: 13px;
}


/* =========================================================
   COMPANY FORM
   ========================================================= */

.company-form {
    background: var(--mfg-card-bg);
    border: 1px solid var(--mfg-border);
    border-radius: var(--mfg-radius);
    padding: 28px;
}

.company-section-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mfg-border);
    color: var(--mfg-text);
    font-family: var(--mfg-font);
    font-size: 19px;
    line-height: 1.3;
}


/* =========================================================
   COMPANY GRID
   ========================================================= */

.company-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.company-full {
    grid-column: 1 / -1;
}

.company-field {
    min-width: 0;
}


/* =========================================================
   COMPANY FORM LABELS
   ========================================================= */

.company-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--mfg-text);
    font-family: var(--mfg-font);
    font-size: 13px;
    font-weight: 700;
}

.required {
    color: #dc2626;
}


/* =========================================================
   COMPANY FORM CONTROLS
   ========================================================= */

.company-field input,
.company-field select,
.company-field textarea {
    width: 100%;
    border: 1px solid var(--mfg-border);
    border-radius: var(--mfg-radius-small);
    background: var(--mfg-card-bg);
    color: var(--mfg-text);
    font-family: var(--mfg-font);
    font-size: 14px;
    outline: none;
}

.company-field input,
.company-field select {
    height: 44px;
    padding: 0 12px;
}

.company-field textarea {
    min-height: 120px;
    padding: 11px 12px;
    resize: vertical;
    line-height: 1.5;
}

.company-field input:focus,
.company-field select:focus,
.company-field textarea:focus {
    border-color: var(--mfg-teal);
    box-shadow: 0 0 0 3px rgba(0, 136, 126, .10);
}

.company-field input[type="file"] {
    height: auto;
    padding: 10px 12px;
}


/* =========================================================
   COMPANY HELP TEXT
   ========================================================= */

.company-help {
    margin-top: 6px;
    color: var(--mfg-text-muted);
    font-size: 12px;
}


/* =========================================================
   COMPANY LOGO
   ========================================================= */

.company-logo-preview {
    display: inline-block;
    margin-top: 12px;
    padding: 12px;
    background: var(--mfg-bg);
    border: 1px solid var(--mfg-border);
    border-radius: var(--mfg-radius-small);
}

.company-logo-preview img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 120px;
    object-fit: contain;
}


/* =========================================================
   COMPANY VALIDATION ERROR
   ========================================================= */

.company-error {
    margin-top: 5px;
    color: #dc2626;
    font-size: 12px;
}


/* =========================================================
   COMPANY ACTIONS
   ========================================================= */

.company-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--mfg-border);
}

.company-save-button {
    border: 0;
    border-radius: var(--mfg-radius-small);
    background: var(--mfg-teal);
    color: var(--mfg-white);
    padding: 12px 24px;
    font-family: var(--mfg-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.company-save-button:hover {
    background: var(--mfg-teal-dark);
}


/* =========================================================
   COMPANY PROFILE RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .company-grid {
        grid-template-columns: 1fr;
    }

    .company-full {
        grid-column: auto;
    }

}


@media (max-width: 600px) {

    .company-page-header h1 {
        font-size: 26px;
    }

    .company-form {
        padding: 20px;
    }

    .company-actions {
        justify-content: stretch;
    }

    .company-save-button {
        width: 100%;
    }
    
    /* =========================================================
   MFGWALE PUBLIC SITE LAYOUT
   ========================================================= */

.mfg-public-main {

    width: 100%;

    min-height: calc(100vh - 72px);

    background: var(--mfg-bg);

}


/* =========================================================
   PUBLIC PAGE CONTAINER
   ========================================================= */

.mfg-public-page {

    width: 100%;

    max-width: 1180px;

    margin-left: auto;

    margin-right: auto;

    padding-left: 20px;

    padding-right: 20px;

}


/* =========================================================
   PUBLIC BREADCRUMB
   ========================================================= */

.mfg-public-breadcrumb {

    padding-top: 22px;

    padding-bottom: 18px;

    font-size: 14px;

    line-height: 1.5;
}


.mfg-public-breadcrumb a {

    color: #0066CC;

    text-decoration: none;
}


.mfg-public-breadcrumb a:hover {

    text-decoration: underline;
}


.mfg-public-breadcrumb .separator {

    margin: 0 9px;

    color: #888888;
}


.mfg-public-breadcrumb .current {

    color: #333333;

    font-weight: 600;
}


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

@media (max-width: 767px) {

    .mfg-public-main {

        min-height: calc(100vh - 64px);

    }


    .mfg-public-page {

        padding-left: 14px;

        padding-right: 14px;
    }


    .mfg-public-breadcrumb {

        padding-top: 15px;

        padding-bottom: 13px;

        font-size: 12px;
    }

}

}