/* =========================================================
   BIZNIVO MASTER PROFESSIONAL THEME
   Brand: Green + Blue + Orange
   ========================================================= */

:root {
    --biz-green: #159447;
    --biz-green-dark: #0d7135;
    --biz-green-light: #eaf8ef;

    --biz-blue: #1769aa;
    --biz-blue-dark: #0d4775;
    --biz-blue-light: #eaf3fb;

    --biz-orange: #f28c28;
    --biz-orange-dark: #d96f0b;
    --biz-orange-light: #fff3e6;

    --biz-dark: #183b56;
    --biz-text: #263746;
    --biz-muted: #687784;

    --biz-white: #ffffff;
    --biz-border: #d7e2e8;

    --biz-shadow:
        0 10px 30px rgba(20, 55, 75, 0.10);

    --biz-radius: 14px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--biz-text);

    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,0.95),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #e8f8ed 0%,
            #dff4e6 45%,
            #eef9f1 100%
        );

    line-height: 1.55;

    position: relative;

    overflow-x: hidden;
}


/* =========================================================
   PROFESSIONAL BLUE OUTER FRAME
   ========================================================= */

body::before {
    content: "";

    position: fixed;

    inset: 8px;

    border: 2px solid
        rgba(23, 105, 170, 0.72);

    border-radius: 16px;

    pointer-events: none;

    z-index: 9998;
}


/* =========================================================
   PROFESSIONAL ORANGE INNER FRAME
   ========================================================= */

body::after {
    content: "";

    position: fixed;

    inset: 15px;

    border: 2px solid
        rgba(242, 140, 40, 0.65);

    border-radius: 13px;

    pointer-events: none;

    z-index: 9997;

    animation:
        biznivoOrangePulse 2s ease-in-out infinite;
}

@keyframes biznivoOrangePulse {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}


/* =========================================================
   MAIN CONTENT SAFETY
   ========================================================= */

body > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   BIZNIVO HEADER
   ========================================================= */

.biznivo-header {

    width: calc(100% - 36px);

    margin: 18px auto 20px;

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 12px 20px;

    background:
        rgba(255,255,255,0.94);

    border:

        1px solid
        rgba(23,105,170,0.18);

    border-left:

        5px solid
        var(--biz-blue);

    border-radius:

        var(--biz-radius);

    box-shadow:

        var(--biz-shadow);

    backdrop-filter:
        blur(10px);
}


/* =========================================================
   BRAND / LOGO
   ========================================================= */

.biznivo-brand {

    display: flex;

    align-items: center;

    gap: 13px;

    min-width: 0;
}


/* IMPORTANT:
   This keeps the logo professional and NEVER a giant banner.
*/

.biznivo-brand img,
.biznivo-logo {

    width: 68px;

    height: 68px;

    min-width: 68px;

    object-fit: contain;

    display: block;

    border-radius: 10px;

    background: white;

    padding: 4px;

    border:

        2px solid
        rgba(23,105,170,0.20);

    box-shadow:

        0 5px 15px
        rgba(23,105,170,0.12);
}


/* Brand name */

.biznivo-brand h1,
.biznivo-brand h2 {

    margin: 0;

    color:
        var(--biz-blue-dark);

    font-weight: 800;

    letter-spacing: -0.3px;
}


/* Small tagline */

.biznivo-brand span,
.biznivo-brand p {

    margin: 1px 0 0;

    color:
        var(--biz-muted);

    font-size: 13px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.biznivo-nav {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}

.biznivo-nav a {

    text-decoration: none;

    color:
        var(--biz-dark);

    font-weight: 600;

    padding:
        8px 12px;

    border-radius: 8px;

    transition:
        all 0.2s ease;
}

.biznivo-nav a:hover {

    background:
        var(--biz-blue-light);

    color:
        var(--biz-blue);

    transform:
        translateY(-1px);
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.biznivo-container {

    width: min(
        1400px,
        calc(100% - 44px)
    );

    margin:
        0 auto 35px;

    padding:
        10px;
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.biznivo-page-title {

    margin:
        10px 0 22px;

    color:
        var(--biz-blue-dark);

    font-size:
        clamp(24px, 3vw, 34px);

    font-weight:
        800;

    letter-spacing:
        -0.5px;
}

.biznivo-page-title::after {

    content: "";

    display: block;

    width: 70px;

    height: 4px;

    margin-top: 8px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            var(--biz-green),
            var(--biz-orange),
            var(--biz-blue)
        );
}


/* =========================================================
   CARDS
   ========================================================= */

.biznivo-card {

    background:
        rgba(255,255,255,0.96);

    border:
        1px solid
        var(--biz-border);

    border-radius:
        var(--biz-radius);

    padding:
        20px;

    box-shadow:
        var(--biz-shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.biznivo-card:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 15px 35px
        rgba(20,55,75,0.13);
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.biznivo-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap:
        18px;
}


/* =========================================================
   SUMMARY CARDS
   ========================================================= */

.biznivo-summary {

    display:
        grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(190px, 1fr)
        );

    gap:
        16px;

    margin-bottom:
        24px;
}

.biznivo-summary-card {

    background:
        rgba(255,255,255,0.97);

    border-radius:
        13px;

    padding:
        18px;

    border-left:
        5px solid
        var(--biz-blue);

    box-shadow:
        var(--biz-shadow);
}

.biznivo-summary-card.green {

    border-left-color:
        var(--biz-green);
}

.biznivo-summary-card.orange {

    border-left-color:
        var(--biz-orange);
}

.biznivo-summary-card.blue {

    border-left-color:
        var(--biz-blue);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.biznivo-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    border:
        none;

    border-radius:
        9px;

    padding:
        10px 16px;

    font-weight:
        700;

    text-decoration:
        none;

    cursor:
        pointer;

    transition:
        all 0.2s ease;
}

.biznivo-btn:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 14px
        rgba(0,0,0,0.12);
}

.biznivo-btn-primary {

    background:
        var(--biz-blue);

    color:
        white;
}

.biznivo-btn-success {

    background:
        var(--biz-green);

    color:
        white;
}

.biznivo-btn-warning {

    background:
        var(--biz-orange);

    color:
        white;
}

.biznivo-btn-danger {

    background:
        #d9363e;

    color:
        white;
}

.biznivo-btn-light {

    background:
        var(--biz-blue-light);

    color:
        var(--biz-blue-dark);

    border:
        1px solid
        #c7dced;
}


/* =========================================================
   FORMS
   ========================================================= */

.biznivo-form {

    display:
        grid;

    gap:
        16px;
}

.biznivo-form label {

    display:
        block;

    margin-bottom:
        6px;

    color:
        var(--biz-dark);

    font-weight:
        700;
}

.biznivo-form input,
.biznivo-form select,
.biznivo-form textarea {

    width:
        100%;

    padding:
        11px 13px;

    border:
        1px solid
        #cbd8df;

    border-radius:
        9px;

    background:
        white;

    color:
        var(--biz-text);

    font-size:
        14px;

    outline:
        none;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease;
}

.biznivo-form input:focus,
.biznivo-form select:focus,
.biznivo-form textarea:focus {

    border-color:
        var(--biz-blue);

    box-shadow:
        0 0 0 3px
        rgba(23,105,170,0.10);
}


/* =========================================================
   TABLES
   ========================================================= */

.biznivo-table-wrap {

    width:
        100%;

    overflow-x:
        auto;

    border-radius:
        12px;

    background:
        white;

    box-shadow:
        var(--biz-shadow);
}

.biznivo-table {

    width:
        100%;

    border-collapse:
        collapse;

    min-width:
        650px;
}

.biznivo-table th {

    background:
        var(--biz-blue);

    color:
        white;

    padding:
        12px;

    text-align:
        left;

    font-size:
        13px;
}

.biznivo-table td {

    padding:
        11px 12px;

    border-bottom:
        1px solid
        #e5ecef;
}

.biznivo-table tr:hover td {

    background:
        #f4faf7;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.biznivo-status {

    display:
        inline-block;

    padding:
        5px 10px;

    border-radius:
        20px;

    font-size:
        12px;

    font-weight:
        700;
}

.biznivo-status-success {

    background:
        #e4f7eb;

    color:
        #13743a;
}

.biznivo-status-warning {

    background:
        #fff0dc;

    color:
        #a65a00;
}

.biznivo-status-danger {

    background:
        #ffe5e7;

    color:
        #a71924;
}

.biznivo-status-info {

    background:
        #e4f0fa;

    color:
        #145a8f;
}


/* =========================================================
   ALERTS
   ========================================================= */

.biznivo-alert {

    padding:
        13px 15px;

    border-radius:
        9px;

    margin-bottom:
        15px;

    font-weight:
        600;
}

.biznivo-alert-success {

    background:
        #e8f8ed;

    color:
        #176b35;

    border:
        1px solid
        #a9dfb9;
}

.biznivo-alert-warning {

    background:
        #fff2df;

    color:
        #915000;

    border:
        1px solid
        #f2c98e;
}

.biznivo-alert-danger {

    background:
        #ffe8e8;

    color:
        #a40000;

    border:
        1px solid
        #ffb0b0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.biznivo-footer {

    width:
        calc(100% - 44px);

    margin:
        35px auto 25px;

    padding:
        24px;

    background:
        rgba(255,255,255,0.92);

    border-top:
        3px solid
        var(--biz-blue);

    border-radius:
        14px;

    box-shadow:
        var(--biz-shadow);

    text-align:
        center;
}


/* Footer logo:
   visible but never huge
*/

.biznivo-footer img {

    width:
        55px;

    height:
        55px;

    object-fit:
        contain;

    border-radius:
        8px;

    margin-bottom:
        8px;
}

.biznivo-footer p {

    margin:
        5px 0;

    color:
        var(--biz-muted);

    font-size:
        13px;
}


/* =========================================================
   SOCIAL LINKS
   ========================================================= */

.biznivo-social {

    display:
        flex;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        8px;

    margin-top:
        12px;
}

.biznivo-social a {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        38px;

    height:
        38px;

    border-radius:
        50%;

    background:
        var(--biz-blue-light);

    color:
        var(--biz-blue);

    text-decoration:
        none;

    font-weight:
        700;

    transition:
        all 0.2s ease;
}

.biznivo-social a:hover {

    background:
        var(--biz-blue);

    color:
        white;

    transform:
        translateY(-2px);
}


/* =========================================================
   LOGO SAFETY
   ========================================================= */

/*
   Prevent accidental oversized logos.
   Pages should use .biznivo-logo or .biznivo-brand img.
*/

img[src*="logo.jpg"] {

    max-width:
        100%;

    object-fit:
        contain;
}


/* If a page accidentally places the logo directly
   as a large standalone image, keep it controlled.
*/

body > img[src*="logo.jpg"] {

    width:
        68px !important;

    height:
        68px !important;

    object-fit:
        contain !important;

    display:
        block !important;

    margin:
        15px 0 15px 25px !important;

    border-radius:
        10px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .biznivo-header {

        width:
            calc(100% - 28px);

        flex-direction:
            column;

        align-items:
            flex-start;

        padding:
            14px;
    }

    .biznivo-nav {

        width:
            100%;
    }

    .biznivo-nav a {

        font-size:
            13px;
    }

    .biznivo-container {

        width:
            calc(100% - 28px);
    }

    .biznivo-brand img,
    .biznivo-logo {

        width:
            60px;

        height:
            60px;

        min-width:
            60px;
    }
}


@media (max-width: 500px) {

    body::before {
        inset: 5px;
    }

    body::after {
        inset: 10px;
    }

    .biznivo-header {

        margin-top:
            12px;
    }

    .biznivo-brand img,
    .biznivo-logo {

        width:
            56px;

        height:
            56px;

        min-width:
            56px;
    }

    .biznivo-page-title {

        font-size:
            25px;
    }

    .biznivo-card {

        padding:
            15px;
    }

    .biznivo-footer {

        width:
            calc(100% - 28px);

        padding:
            18px 12px;
    }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    body {

        background:
            white !important;
    }

    body::before,
    body::after {

        display:
            none !important;
    }

    .biznivo-header,
    .biznivo-footer {

        box-shadow:
            none !important;
    }
}