:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: black;
    /*--muted: #64748b;*/
    --muted: black;
    --line: #e5e7eb;
    --brand: #2563eb;
    --brand-2: #1d4ed8;
    --cta: #0f766e;
    --cta-2: #0b5f59;
    --warn: #fff7ed;
    --shadow: 0 10px 30px rgba(15, 23, 42, .06);
    --radius: 16px;
    --mono: Calibri;
    --sans: Calibri;
}

.btn {
    color: black;
}

.text-muted {
    color: black !important;
}

/* Screenshot-close variant for quote/order detail pages */
.kc-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kc-breadcrumbbar {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(229,231,235,.9);
    border-radius: 14px;
}

    .kc-breadcrumbbar .rightmeta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--muted);
        font-family: var(--mono);
        font-size: 12px;
    }

.kc-hero {
    padding: 22px;
}

.kc-hero-head {
    text-align: center;
    padding: 12px 8px 16px;
}

    .kc-hero-head .kicker {
        font-size: 16px;
        color: var(--muted);
    }

    .kc-hero-head h1 {
        margin: 10px 0 8px;
        font-size: 28px;
    }

    .kc-hero-head .subtitle {
        margin: 0;
        font-size: 14px;
    }

.kc-summary-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(229,231,235,.9);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.7);
}

.kc-summary-tile {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    padding: 14px 16px;
    align-items: start;
}

    .kc-summary-tile:nth-child(odd) {
        border-right: 1px solid rgba(229,231,235,.9);
    }

    .kc-summary-tile:nth-child(n+3) {
        border-top: 1px solid rgba(229,231,235,.9);
    }

.kc-icon {
    color: var(--brand);
    opacity: .9;
}

.kc-summary-tile .label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.kc-summary-tile .value {
    font-size: 14px;
    /*font-weight: 600;*/
    color: #111827;
}

.kc-summary-tile .hint {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--muted);
}

.kc-positions {
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(229,231,235,.9);
    border-radius: 16px;
    overflow: hidden;
}

.kc-pos-item {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    border-top: 1px solid rgba(229,231,235,.9);
}

    .kc-pos-item:first-child {
        border-top: none;
    }

.kc-pos-title {
    /*font-weight: 800;*/
}

.kc-pos-meta {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    text-align: right;
}

.kc-pos-bullets {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.kc-pos-price {
    grid-column: 2;
    justify-self: end;
    margin-top: 8px;
    font-family: var(--mono);
    /*font-weight: 700;*/
    color: #111827;
}

.kc-totalbar {
    padding: 16px 18px;
    background: rgba(255,255,255,.7);
    border: 1px solid gray;
    border-radius: 16px;
}

.kc-totalbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-right: 10px;
}

.kc-totalbar-title {
    font-size: 18px;
    font-weight: 400;
    font-family: Calibri;
    font-size: 22px
}

.kc-totalbar-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.kc-totalbar-col {
    padding-left: 14px;
    border-left: 1px solid rgba(229,231,235,.9);
}

    .kc-totalbar-col:first-child {
        border-left: none;
        padding-left: 0;
    }

    .kc-totalbar-col .label {
        color: var(--muted);
        font-size: 13px;
    }

    .kc-totalbar-col .value {
        /*font-weight: 900;*/
        font-size: 22px;
    }

.kc-totalbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(229,231,235,.9);
}

* {
    box-sizing: border-box;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: var(--sans);
    background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 20%, var(--bg) 100%);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

a {
    color: inherit;
}

/* Shell */
.container {
    max-width: 1100px;
}

.kc-page {
    padding: 24px;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(246,247,251,.75);
    border-bottom: 1px solid rgba(229,231,235,.9);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.logo {
    display: block;
    height: 44px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .brand-title strong {
        font-size: 14px;
        letter-spacing: .2px;
    }

    .brand-title span {
        font-size: 12px;
        color: var(--muted);
    }

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 16px;
    flex: 1;
}

    .nav .sep {
        opacity: .5;
    }

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Login partial (topbar) */
.kc-login {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kc-userchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(229,231,235,.9);
    background: rgba(255,255,255,.65);
    border-radius: 999px;
    color: var(--text);
    /*font-weight: 700;
    font-size: 13px;*/
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kc-userchip-meta {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
}

.kc-topbar-btn {
    padding: 8px 12px;
    /*border-radius: 999px;
    font-weight: 700;*/
}

/* Buttons (mockup style, but keep Bootstrap compatibility) */
.btn {
    border-radius: 12px;
}

    .btn.btn-ghost {
        background: transparent;
        box-shadow: none;
        border: 1px solid transparent;
    }

    .btn.btn-primary {
        background: linear-gradient(180deg, var(--cta) 0%, var(--cta-2) 100%);
        border-color: transparent;
        box-shadow: 0 10px 22px rgba(15,118,110,.22);
        color: white;
    }

    .btn.btn-secondary {
        color: white;
    }

/* Mockup components for Razor pages */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero {
    padding: 26px 26px 18px 26px;
    margin-top: 14px;
}

.kicker {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: .2px;
}

h1 {
    margin: 8px 0 10px 0;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -.3px;
}

.subtitle {
    color: var(--muted);
    font-size: 16px;
    margin: 0 0 18px 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
}

.summary-item {
    padding: 10px 12px;
    border-right: 1px solid var(--line);
}

    .summary-item:last-child {
        border-right: none;
    }

    .summary-item .label {
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 6px;
    }

    .summary-item .value {
        /*font-weight: 800;*/
        font-size: 18px;
    }

        .summary-item .value small {
            /*font-weight: 700;*/
            color: var(--muted);
            font-size: 12px;
        }

    .summary-item .hint {
        color: var(--muted);
        font-size: 13px;
        margin-top: 6px;
    }

.section {
    margin-top: 18px;
    padding: 0;
}

.section-title {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .section-title h2 {
        margin: 0;
        font-size: 18px;
    }

    .section-title .meta {
        color: var(--muted);
        font-size: 13px;
    }

.positions {
    padding: 0;
}

.row.kc-row {
    display: grid;
    grid-template-columns: 2.1fr 1.2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 16px 22px;
    align-items: center;
    border-top: 1px solid var(--line);
    margin-left: 0;
    margin-right: 0;
}

    .row.kc-row:first-child {
        border-top: none;
    }

    .row.kc-row.header {
        background: #fafafa;
        border-top: none;
        border-bottom: 1px solid var(--line);
        padding-top: 12px;
        padding-bottom: 12px;
        position: sticky;
        top: 68px;
        z-index: 5;
    }

        .row.kc-row.header .cell {
            color: var(--muted);
            font-size: 12px;
            /*font-weight: 700;*/
            text-transform: uppercase;
            letter-spacing: .06em;
        }

.cell {
    /*min-width: 0;*/
}

.title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .title strong {
        font-size: 15px;
    }

    .title span {
        color: var(--muted);
        font-size: 13px;
    }

.muted {
    color: var(--muted);
}

.num {
    /*font-variant-numeric: tabular-nums;
    font-family: var(--mono);
    font-size: 13px;
    color: #111827;
    white-space: nowrap;*/
}

.money {
    /*font-variant-numeric: tabular-nums;
    font-family: var(--mono);
    font-size: 13px;
    white-space: nowrap;
    text-align: right;
    */
}

.right {
    text-align: right;
}

.desc {
    grid-column: 1 / -1;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

    .desc + .hr {
        grid-column: 1 / -1;
        height: 1px;
        background: var(--line);
        margin-top: 14px;
    }

.total {
    margin-top: 18px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
    border: 1px solid #fde68a;
}

.total-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.total h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.total p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.total-box {
    border: 1px solid rgba(229,231,235,.9);
    border-radius: 14px;
    background: rgba(255,255,255,.7);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .total-box .label {
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 6px;
    }

    .total-box .value {
        /*font-weight: 900;*/
        font-size: 26px;
        letter-spacing: -.4px;
        font-variant-numeric: tabular-nums;
    }

.cta-bar {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 14px;
}

.fineprint {
    margin-top: 14px;
    padding: 14px 18px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.contact {
    margin-top: 14px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c7d2fe 0%, #93c5fd 100%);
    border: 1px solid var(--line);
    flex: 0 0 auto;
}

.contact strong {
    display: block;
}

.contact a {
    color: var(--brand-2);
    text-decoration: none;
}

    .contact a:hover {
        text-decoration: underline;
    }

/* Footer */
.kc-footer {
    padding: 22px 0;
    color: var(--muted);
}

/* Existing project helpers */
table .w-8 {
    width: 8%;
}

table .w-10 {
    width: 10%;
}

table .w-30 {
    width: 30%;
}

.customer-notice,
.customer-notice * {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
}

    .customer-notice p {
        margin: 0;
    }

    .customer-notice .ck-content {
        font-family: inherit !important;
        font-size: inherit !important;
    }

tr.border {
    border: 1px solid gray !important;
}

/* Responsive */
@media (max-width: 980px) {
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .row.kc-row {
        grid-template-columns: 1.8fr 1.2fr 1fr 1fr;
    }

        .row.kc-row .cell:nth-child(n+5) {
            display: none;
        }

        .row.kc-row.header .cell:nth-child(n+5) {
            display: none;
        }

    .money {
        text-align: left;
    }

    .right {
        text-align: left;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 26px;
    }

    .topbar-inner {
        padding: 12px 16px;
    }

    .kc-page {
        padding: 16px;
    }

    .brand {
        min-width: auto;
    }

    .nav {
        display: none;
    }

    .row.kc-row {
        grid-template-columns: 1fr 1fr;
    }

        .row.kc-row.header {
            display: none;
        }

        .row.kc-row .cell {
            padding: 2px 0;
        }

            .row.kc-row .cell:nth-child(3),
            .row.kc-row .cell:nth-child(4) {
                text-align: right;
            }

            .row.kc-row .cell:nth-child(n+5) {
                display: none;
            }

    .desc {
        grid-column: 1 / -1;
    }

    .total-grid {
        grid-template-columns: 1fr;
    }

    .cta-bar {
        justify-content: stretch;
        flex-direction: column;
    }

        .cta-bar .btn {
            width: 100%;
            justify-content: center;
        }
}

.force-default-font,
.force-default-font * {
    font-family: Calibri !important;
}

    .force-default-font p {
        margin-bottom: .5rem !important;
    }

.kc-table-highlight {
    background: #EEEEEE
}
