/* Odoo-demo · tyylit nojaavat sivuston omiin muuttujiin (--surface, --line, --primary, --text-subtle)
 * Typografinen skaala: 1rem perus, suhde 1.25 → .8 / 1 / 1.25 / 1.5625 rem; välit .5 / .8 / 1 / 1.25 / 1.5625 rem */
:root { --nko-acc: #E05A1C; --nko-ok: #6FBF73; }

body { padding-bottom: 3rem; }
.nko-demo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; box-shadow: 0 -.5rem 1.5rem rgba(0,0,0,.4); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; padding: .5rem 1.25rem; background: #E05A1C; color: #0C0C0B; font: 600 .8rem/1.25rem "Sofia Sans", Arial, sans-serif; }
.nko-demo b { letter-spacing: .1em; }
.nko-demo span { flex: 1 1 20rem; }
.nko-demo label { display: inline-flex; gap: .5rem; align-items: center; cursor: pointer; }
.nko-demo a { color: inherit; text-decoration: underline; text-underline-offset: .25rem; }

#nk-odoo { margin-top: .8rem; padding: 1rem 1.25rem; border: 1px solid var(--line, #2a2926); border-left: 3px solid var(--nko-acc); border-radius: var(--r3, 6px); background: var(--surface, #151514); }
.nko-h { display: flex; gap: .5rem; align-items: center; margin-bottom: .8rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--text-subtle, #A39E95); }
.nko-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--nko-ok); box-shadow: 0 0 0 .25rem rgba(111,191,115,.18); flex: none; }
.nko-k { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--nko-acc); }
.nko-t { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; line-height: 1.5625rem; }
.nko-t code, .nko-so code { font: 600 .8rem/1 ui-monospace, Consolas, monospace; padding: .2rem .4rem; border: 1px solid var(--line, #2a2926); border-radius: 4px; color: var(--text-subtle, #A39E95); white-space: nowrap; }
.nko-p { margin: .5rem 0; font-size: 1.5625rem; line-height: 1.953rem; font-weight: 800; }
.nko-p small { font-size: .8rem; font-weight: 600; color: var(--text-subtle, #A39E95); }
.nko-s { margin: .5rem 0 0; font-size: .8rem; line-height: 1.25rem; color: var(--text-subtle, #A39E95); }
.nko-l { list-style: none; margin: .5rem 0; padding: 0; font-size: .8rem; }
.nko-l li { display: flex; justify-content: space-between; padding: .25rem 0; border-top: 1px solid var(--line, #2a2926); }
.nko-badge { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 1rem; background: rgba(224,90,28,.15); color: var(--nko-acc); font-size: .64rem; }
#nk-odoo .nko-snap { margin-top: .8rem; padding: .5rem 1rem; border: 1px solid var(--nko-acc); border-radius: 4px; background: none; color: inherit; font-family: inherit; font-size: .8rem; line-height: 1.25rem; font-weight: 700; cursor: pointer; }
#nk-odoo .nko-snap:hover { background: rgba(224,90,28,.12); }

#nk-odoo-out { margin-top: 1.5625rem; margin-bottom: 3rem; padding: 1.25rem; border: 1px solid var(--line, #2a2926); border-top: 3px solid var(--nko-acc); border-radius: var(--r3, 6px); background: var(--surface, #151514); }
#nk-odoo-out .nko-out-h { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
#nk-odoo-out .nko-out-h .nko-dot { margin-top: .4rem; }
#nk-odoo-out .nko-out-h h3 { margin: 0; font-size: 1.25rem; line-height: 1.5625rem; }
#nk-odoo-out .nko-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; counter-reset: f; }
#nk-odoo-out .nko-flow li { position: relative; padding: .5rem .8rem .5rem 2rem; border: 1px solid var(--line, #2a2926); border-radius: 4px; font-size: .8rem; font-weight: 700; line-height: 1.25rem; counter-increment: f; }
#nk-odoo-out .nko-flow li::before { content: counter(f); position: absolute; left: .6rem; top: .5rem; color: var(--text-subtle, #A39E95); }
#nk-odoo-out .nko-flow li.ok { border-color: rgba(111,191,115,.5); }
#nk-odoo-out .nko-flow li.ok::before { content: "✓"; color: var(--nko-ok); }
#nk-odoo-out .nko-flow small { display: block; font-weight: 500; color: var(--text-subtle, #A39E95); }
#nk-odoo-out .nko-so { border: 1px solid var(--line, #2a2926); border-radius: 4px; background: #f7f7f9; color: #1f2328; overflow-x: auto; }
#nk-odoo-out .nko-so-h { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline; padding: .8rem 1rem; border-bottom: 1px solid #dee2e6; background: #fff; font-size: .8rem; }
#nk-odoo-out .nko-so-h b { font-size: 1.25rem; color: #714B67; }
#nk-odoo-out .nko-so-h span:nth-child(2) { padding: .1rem .5rem; border-radius: 1rem; background: #e9ecef; font-weight: 700; }
#nk-odoo-out .nko-so table { width: 100%; border-collapse: collapse; font-size: .8rem; line-height: 1.25rem; }
#nk-odoo-out .nko-so th { text-align: left; padding: .5rem 1rem; border-bottom: 1px solid #dee2e6; color: #6c757d; font-weight: 700; }
#nk-odoo-out .nko-so td { vertical-align: top; padding: .5rem 1rem; border-bottom: 1px solid #eef0f2; }
#nk-odoo-out .nko-so td:nth-child(n+2), #nk-odoo-out .nko-so th:nth-child(n+2) { text-align: right; white-space: nowrap; }
#nk-odoo-out .nko-so pre { margin: .5rem 0 0; font-family: inherit; font-size: .8rem; line-height: 1.25rem; white-space: pre-wrap; color: #495057; max-height: 12rem; overflow: auto; }
#nk-odoo-out .nko-so .nko-note td { font-style: italic; color: #495057; text-align: left !important; }
.nko-new { padding: .1rem .4rem; border-radius: 4px; background: #d1ecf1; color: #0c5460; font-size: .64rem; font-weight: 700; text-transform: uppercase; }
#nk-odoo-out .nko-sum { margin: 0; padding: .8rem 1rem; text-align: right; font-weight: 800; background: #fff; border-top: 1px solid #dee2e6; }
#nk-odoo-out .nko-json { margin-top: 1rem; font-size: .8rem; }
#nk-odoo-out .nko-json summary { cursor: pointer; font-weight: 700; }
#nk-odoo-out .nko-json pre { max-height: 20rem; overflow: auto; padding: 1rem; background: #0C0C0B; border: 1px solid var(--line, #2a2926); border-radius: 4px; font: .8rem/1.25rem ui-monospace, Consolas, monospace; }
#nk-odoo-out .nko-foot { margin: 1rem 0 0; font-size: .8rem; color: var(--text-subtle, #A39E95); }
@media (max-width: 1000px) { .nko-flow { grid-template-columns: 1fr 1fr; } body { padding-bottom: 0; } .nko-demo { position: static; } }
#nk-odoo-out .nko-so th, #nk-odoo-out .nko-so td { font-size: .8rem; line-height: 1.25rem; background: none; color: #1f2328; }
#nk-odoo-out .nko-so th { color: #6c757d; }
#nk-odoo-out .nko-so td:first-child { width: 60%; }
#nk-odoo-out .nko-so pre { background: none; border: 0; padding: 0; max-height: none; color: #495057; }
#nk-odoo-out .nko-flow li { margin: 0; list-style: none; }
#nk-odoo-out .nko-sum { text-align: right; color: #1f2328; font-size: 1rem; }
#nk-odoo-out p.nko-sum, #nk-odoo-out p { max-width: none !important; } #nk-odoo-out p.nko-sum { width: 100%; box-sizing: border-box; }
