﻿html {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
}

body {
    background: #EEEEEE;
}

#app {
    display: flex;
    height: 100vh;
    width: 100vw;
    flex-direction: column;
    justify-content: space-between;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn div {
    font-size:x-small;
    width: 80px;
}

.btn.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn.btn-primary.nav-addin {
    padding: 0;
}

.content {
    padding-top: 1.1rem;
}

header {
    background: #eeeeee;
    background-size: cover;
    width: 100vw;    
    flex-direction: column;
}

    header img {
        width: 25%;
        max-width: 150px;
    }

footer {
    margin-top: 2em;
    flex-direction: column;
    font-weight: bolder;
    font-size: small;
    position: relative;
    left: 0;
    bottom: 0;
    width: 100vw; /* Full width */
    min-height: 5rem; /* Footer height */
    background-color: #bbcbf0; /* rgb(158, 171, 202) hsl(222, 29%, 71%) */
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHd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41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

section.samples {
    margin-top: 20px;
}

    section.samples .ms-Button, section.setup .ms-Button {
        display: block;
        margin-bottom: 5px;
        margin-left: 20px;
        min-width: 80px;
    }

.navbar {
    background-color: #bbcbf0; /* rgb(158, 171, 202) hsl(222, 29%, 71%) */
}

/* ---- Home: the desktop splash screen, stacked for a task pane ------------ */
.nx-splash { font-size: .9rem; line-height: 1.35; }
.nx-splash a { color: #0000ee; }
.nx-splash-logos { display: flex; flex-direction: row; align-items: center; justify-content: left; gap: .6rem; margin: .25rem 0 .9rem; }
.nx-splash-logos .nx-splash-logo { flex: 1 1 0; min-width: 0; max-width: 25%; }
.nx-splash-logo { max-width: 100%; height: auto; }
.nx-tile { display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .6rem .5rem; border-radius: 6px; margin-bottom: .6rem; }
.nx-tile-icon { width: 56px; height: 56px; flex: 0 0 56px; }
.nx-tile-iconlink { flex: 0 0 56px; line-height: 0; }
.nx-tile-body { min-width: 0; }
.nx-tile-body p { margin: 0 0 .35rem; }
.nx-tile-body ul { margin: 0 0 .35rem; padding-left: 1.1rem; }
.nx-tile-body li { margin-bottom: .2rem; }
.nx-tile-body li:last-child { margin-bottom: 0; }
.nx-splash-gallery { text-align: center; margin-top: .9rem; }
.nx-splash-gallery p { margin: .4rem 0 0; }
.nx-splash-logolink { flex: 1 1 0; min-width: 0; max-width: 25%; line-height: 0; }
.nx-splash-logolink .nx-splash-logo { max-width: 100%; }
.nx-tile-cta { font-weight: 600; }

/* ---- Import hub: search, category chips, importer cards ------------------ */
.nx-hub { font-size: .9rem; }
.nx-hub-head { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.nx-hub-search { flex: 1 1 auto; min-width: 0; }
.nx-hub-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.nx-chip { border: 1px solid #cfd6df; background: #fff; color: #333; border-radius: 999px;
           padding: .15rem .65rem; font-size: .8rem; line-height: 1.4; cursor: pointer; }
.nx-chip:hover { border-color: #215E9E; color: #215E9E; }
.nx-chip.active { background: #215E9E; border-color: #215E9E; color: #fff; }
.nx-chip-n { opacity: .75; margin-left: .2rem; }
.nx-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.nx-card { display: flex; gap: .5rem; align-items: flex-start; text-align: left; width: 100%;
           background: #fff; border: 1px solid #dfe4ea; border-radius: 8px; padding: .55rem .6rem;
           cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.nx-card:hover, .nx-card:focus-visible { border-color: #215E9E; box-shadow: 0 1px 6px rgba(33, 94, 158, .18); outline: none; }
.nx-card-icon { width: 24px; height: 24px; flex: 0 0 24px; margin-top: .1rem; }
/* BADGES SIT AT THE BOTTOM OF THEIR CARD (Marc, 2026-10-03). Cards in a grid row
   are equally tall, so the body is stretched to the card's height and the
   description takes the slack: PRO / API KEY NEEDED / USER LOGIN REQUIRED then
   line up along the bottom of the row whatever the description's length,
   instead of floating right under it. Both hubs (Import and Export) share this. */
.nx-card-body { display: flex; flex-direction: column; min-width: 0; gap: .15rem; align-self: stretch; }
.nx-card-title { font-weight: 600; color: #1c2430; line-height: 1.25; }
.nx-card-desc { color: #6a7482; font-size: .8rem; line-height: 1.3; flex: 1 0 auto; }
.nx-badge { display: inline-block; margin-top: .25rem; padding: .1rem .45rem; border-radius: 4px;
            font-family: ui-monospace, Consolas, monospace; font-size: .68rem; letter-spacing: .06em; }
.nx-badge-pro { background: #FFF1D6; color: #8a5a00; }
.nx-badge-key { background: #E8EEFB; color: #2f4f8a; }
.nx-badge-login { background: #E6F4EA; color: #1e6b3a; }

/* ---- "All importers" back link above every importer view ------------------ */
.nx-back { display: inline-flex; align-items: center; gap: .25rem; margin: 0 0 .6rem; padding: .15rem .45rem .15rem .3rem;
           border: 1px solid transparent; border-radius: 4px; background: transparent; color: #215E9E; font-size: .82rem; cursor: pointer; }
.nx-back:hover { background: #EAF1F8; border-color: #cfdcea; }
.nx-back:focus-visible { outline: 2px solid #215E9E; outline-offset: 1px; }

/* ---- Workbook Columns: the five group switches ---------------------------- */
.nx-cols { display: flex; flex-direction: column; gap: .35rem; }

/* About (Help -> About menu): the desktop AboutDialog's picture (fixed size, left) with
   the title, version and text beside it. The text column takes the remaining width and
   its font size follows that width (container query units), so a narrow pane shrinks
   the text rather than the picture. */
.nx-about { display: flex; gap: .8rem; align-items: flex-start; color: #1c2430; container-type: inline-size; container-name: about; }
.nx-about-fig { flex: 0 0 260px; margin: 0; }
.nx-about-pic { display: block; height: auto; border-radius: 6px; }
.nx-about-fig figcaption { font-size: .7rem; color: #8496A6; text-align: right; margin-top: .15rem; }
/* 260px picture + .8rem gap; the text column is what is left. 0.06 x that width gives
   ~0.95rem at 530px and the floor at ~430px. */
.nx-about-text { flex: 1 1 0; min-width: 0; font-size: clamp(0.62rem, calc((100cqw - 273px) * 0.06), 0.95rem); line-height: 1.45; overflow-wrap: anywhere; }
.nx-about-title { font-size: 1.3em; font-weight: 600; line-height: 1.2; }
.nx-about-ver { font-size: .85em; color: #6b7a89; margin: .15em 0 .8em; }
.nx-about-text p { margin: 0 0 .6em; }

/* Help (Pages/Help.razor): the hosted help topics framed inside the pane. */
.nx-help { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 320px; container-type: inline-size; container-name: help; }
.nx-help-bar { display: flex; align-items: center; gap: .5rem; font-size: .85rem; margin-bottom: .4rem; min-width: 0; }
.nx-help-toggle { white-space: nowrap; }
.nx-help-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #1c2430; }
.nx-help-open { white-space: nowrap; }
.nx-help-body { display: flex; flex: 1 1 auto; min-height: 0; position: relative; gap: .4rem; }
.nx-help-toc { display: none; flex: 0 0 210px; width: 210px; overflow: auto; font-size: .82rem;
  border: 1px solid #E1E8EF; border-radius: 8px; background: #fff; padding: .3rem 0; }
.nx-help-toc.open { display: block; }
.nx-help-frame { flex: 1 1 auto; min-width: 0; width: 100%; border: 1px solid #E1E8EF; border-radius: 8px; background: #fff; }
.nx-toc, .nx-toc ul { list-style: none; margin: 0; padding: 0; }
.nx-toc-row { display: flex; align-items: flex-start; gap: .15rem; padding-right: .3rem; border-radius: 4px; }
.nx-toc-row:hover { background: #F3F7FB; }
.nx-toc-row.active { background: #E8F0FA; }
.nx-toc-row.active .nx-toc-link { color: #215E9E; font-weight: 600; }
.nx-toc-chev { flex: 0 0 1.1rem; width: 1.1rem; padding: .15rem 0; border: 0; background: none; color: #6b7a89; font-size: .8rem; line-height: 1.3; cursor: pointer; text-align: center; }
.nx-toc-link { flex: 1 1 auto; min-width: 0; text-align: left; border: 0; background: none; padding: .2rem .2rem; color: #1c2430; line-height: 1.3; cursor: pointer; }
.nx-toc-link:hover { color: #215E9E; }
/* Narrow pane (the view's own width, not the window's): the open tree overlays the
   topic and closes once a topic is picked. */
@container help (max-width: 560px) {
  .nx-help-toc.open { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: min(260px, 85%); box-shadow: 4px 0 12px rgba(0, 0, 0, .12); }
}

/* AI Assistant (Pages/Assistant.razor): the nodexl.com chat widget as a pane view. */
.nx-chat { display: flex; flex-direction: column; font-size: .9rem; }
.nx-chat-log { display: flex; flex-direction: column-reverse; gap: .7rem; overflow-y: auto; overflow-x: hidden;
  overflow-wrap: anywhere; overscroll-behavior: contain; min-height: 12rem; max-height: min(28rem, 55vh);
  padding: .7rem; border: 1px solid #E1E8EF; border-radius: 8px; background: #fff; line-height: 1.5; }
.nx-chat-me { text-align: right; }
.nx-chat-me > span { display: inline-block; max-width: 85%; padding: .4rem .7rem; border-radius: 12px; background: #E8F0FA; text-align: left; }
.nx-chat-bot { color: #1c2430; }
.nx-chat-bot ul, .nx-chat-bot ol { margin: .3rem 0; padding-left: 1.25rem; }
.nx-chat-bot li { margin: .15rem 0; }
.nx-chat-p { margin: 0 0 .5rem; }
.nx-chat-p:last-child { margin-bottom: 0; }
.nx-chat-think { color: #6b7a89; font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  .nx-chat-think { animation: nxchatpulse 1.4s ease-in-out infinite; }
  @keyframes nxchatpulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
}
.nx-chat-cites { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid #E6ECF2; font-size: .8rem; color: #6b7a89; }
.nx-chat-cites a { display: block; margin: .15rem 0; color: #215E9E; text-decoration: none; }
.nx-chat-cites a:hover { text-decoration: underline; }
.nx-chat-esc { margin-top: .6rem; padding: .7rem; background: #F2FBF4; border: 1px solid #BFE6C9; border-radius: 8px; font-size: .85rem; }
.nx-chat-mail { display: inline-block; margin-top: .5rem; padding: .4rem .8rem; border-radius: 8px; background: #215E9E; color: #fff; font-weight: 600; text-decoration: none; }
.nx-chat-mail:hover { background: #18497f; color: #fff; }
.nx-chat-alt { margin-top: .5rem; font-size: .8rem; color: #4a5a6a; }
.nx-chat-alt a { color: #215E9E; text-decoration: underline; }
.nx-chat-form { display: flex; gap: .5rem; margin-top: .6rem; }
.nx-chat-form input { flex: 1 1 auto; min-width: 0; }
.nx-chat-hint { margin-top: .4rem; font-size: .75rem; color: #6b7a89; }
.nx-cols .nx-muted { opacity: .55; }
