/* Nilus app shell, rebuilt in HTML (2026-11-25) so product screens render crisp at any size.
   Content and colors match the real app captures in /images/modules/v2; demo data only.
   The page draws one 1280 x 800 app window and scales it to the frame width. */
html, body { margin: 0; height: 100%; overflow: hidden; background: transparent; }
* { box-sizing: border-box; }
.app { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; display: flex; overflow: hidden;
  font-family: Inter, system-ui, sans-serif; font-size: 12px; color: #1f1f1f; background: #eeece8; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; }
.sb { flex: none; width: 213px; background: #181818; color: #d9d8d4; display: flex; flex-direction: column; padding: 12px 10px; }
.sb .logo { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 8px; height: 22px; }
.sb .logo img { height: 19px; }
.sb .ws { display: flex; align-items: center; gap: 9px; margin: 14px 2px 12px; padding: 7px 8px; border-radius: 8px; background: #232325; color: #fff; font-weight: 600; font-size: 11.5px; }
.sb .ws i { width: 22px; height: 22px; border-radius: 6px; background: #3a2550; display: grid; place-items: center; }
.sb .ws .ch { margin-left: auto; opacity: .6; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav li { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 9px; border-radius: 7px; font-size: 13px; color: #e6e5e1; }
.nav li svg { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: .85; }
.nav li.sub { padding-left: 34px; height: 30px; color: #8d8c88; font-size: 12.5px; }
.nav li.on { background: #2a1938; color: #fff; }
.nav li .n { margin-left: auto; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px; background: #3a2550; color: #c9b6f2; font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.nav li .cv { margin-left: auto; opacity: .55; }
.nav li.aiq svg { stroke: #9b7bf0; }
.sb hr { border: 0; border-top: 1px solid #2c2c2e; margin: 10px -10px; }
.sb .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 6px 6px 0; }
.sb .me i { width: 26px; height: 26px; border-radius: 50%; background: #3a2550; color: #e8defc; font: normal 600 10px Inter, sans-serif; display: grid; place-items: center; }
.sb .me b { display: block; font-size: 11.5px; color: #fff; font-weight: 600; } .sb .me span { display: block; font-size: 10.5px; color: #8d8c88; }
.main { flex: 1; min-width: 0; padding: 0 22px; display: flex; flex-direction: column; }
.tabs { display: flex; gap: 28px; height: 40px; align-items: center; border-bottom: 1px solid #e1e1dd; margin: 0 -22px; padding: 0 32px; font-size: 11.5px; color: #77766f; }
.tabs .on { color: #1f1f1f; font-weight: 500; }
.tabs .on.u { box-shadow: inset 0 -2px #6d28d9; height: 40px; display: flex; align-items: center; }
.tabs .n { display: inline-grid; place-items: center; min-width: 18px; height: 16px; margin-left: 6px; padding: 0 5px; border-radius: 8px; background: #fbf0c9; color: #8a6a12; font-size: 10px; font-weight: 600; }
.ph { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 0 14px; border-bottom: 1px solid #e1e1dd; margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.ph h1 { margin: 0; font-size: 13.5px; font-weight: 600; } .ph p { margin: 3px 0 0; font-size: 10px; color: #77766f; }
.btns { display: flex; gap: 8px; }
.btn { height: 26px; padding: 0 11px; border-radius: 6px; border: 1px solid #dcdbd6; background: #fbfbf8; font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.btn.dk { background: #141414; color: #fff; border-color: #141414; }
.kpis { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); background: #f9faf5; border: 1px solid #e6e5e0; border-radius: 10px; padding: 16px 0 14px; position: relative; }
.kpis > div { padding: 0 14px; border-left: 1px solid #e1e1dd; } .kpis > div:first-child { border-left: 0; }
.kpis .l { font-size: 9.5px; letter-spacing: .06em; color: #5f5e58; text-transform: uppercase; }
.kpis .v { margin-top: 8px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; } .kpis .v small { font-size: 10.5px; font-weight: 400; color: #77766f; margin-left: 4px; }
.kpis .s { margin-top: 8px; font-size: 9.5px; color: #77766f; }
.kpis .tg { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 6px; background: #eeece8; display: grid; place-items: center; color: #555; }
.red { color: #b42318; } .grn { color: #2f6b4f; }
.bar { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.inp { width: 228px; height: 30px; border: 1px solid #dcdbd6; border-radius: 7px; background: #fbfbf8; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #8d8c88; font-size: 11px; }
.dd { height: 30px; padding: 0 10px; border: 1px solid #dcdbd6; border-radius: 7px; background: #fbfbf8; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; }
.af { font-size: 11px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; margin-left: 10px; }
.bar .dsp { margin-left: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 16px; background: #f9faf5; border: 1px solid #e6e5e0; border-radius: 10px; overflow: hidden; font-size: 11px; }
th { text-align: left; font-weight: 400; color: #5f5e58; height: 30px; padding: 0 11px; border-bottom: 1px solid #ebeae5; }
td { height: 32px; padding: 0 11px; border-top: 1px solid #efeee9; white-space: nowrap; }
tr:nth-child(1) td { border-top: 0; }
td.r, th.r { text-align: right; } td.u small { font-size: 8.5px; color: #8d8c88; margin-left: 4px; }
.vl { border-left: 1px solid #ebeae5; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 500; }
.late { background: #fdebea; color: #b42318; } .pend { background: #fbf0c9; color: #8a6a12; } .ontr { background: #f1eafc; color: #6d28d9; }
.ok { background: #e6efe9; color: #2f6b4f; } .neu { background: #efeee9; color: #55544f; }
.ai { border: 1px dashed #c4b5fd; background: #f6f1fe; color: #5b21b6; }
.ib { width: 34px; height: 24px; border-radius: 6px; border: 1px solid #dcdbd6; background: #fbfbf8; display: inline-grid; place-items: center; }
.ib.g { background: #dde5e0; border-color: #d1dbd5; }
code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10px; }
/* glass pop-up (live cards) */
.pop { position: absolute; box-sizing: border-box; padding: 20px 24px 18px; border-radius: 18px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.95); box-shadow: 0 30px 70px -24px rgba(40,20,80,.45); color: #1f1f1f; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.pop.in { opacity: 1; transform: none; }
.pop .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.pop .hd b { font: 500 17px 'Inter Tight', Inter, sans-serif; letter-spacing: -.02em; } .pop .hd b::before { content: '✦'; color: #6d28d9; font-size: 13px; margin-right: 8px; vertical-align: 2px; }
.pop .sub { margin: 4px 0 0; font-size: 11.5px; color: #6b6a67; }
.pop .st { opacity: 0; transform: translateY(5px); transition: opacity .45s ease, transform .45s ease; } .pop.in .st { opacity: 1; transform: none; }
.tl { list-style: none; margin: 12px 0 0; padding: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 7px 0 7px 26px; font-size: 12.5px; }
.tl li small { display: block; margin-top: 2px; font-size: 10.5px; color: #6b6a67; }
.tl li::before { content: ''; position: absolute; left: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #6d28d9; box-shadow: 0 0 0 3px rgba(109,40,217,.14); }
.tl li.todo::before { background: #fff; border: 2px solid #b9a6f0; box-shadow: none; }
.tl li + li::after { content: ''; position: absolute; left: 8px; bottom: calc(50% + 8px); height: calc(100% - 12px); border-left: 2px dashed #b9a6f0; }
@media (prefers-reduced-motion: reduce) { .pop, .pop .st { transition: none; } }
/* Click demo (2026-11-25): a cursor glides to the action, clicks, the state updates and a short confirmation shows.
   Declared per page with <div class="demo" data-t data-tt data-a data-at data-ah data-ac data-msg>; see app.js. */
.demo { display: none; }
.cur { position: absolute; z-index: 60; width: 20px; height: 22px; pointer-events: none; opacity: 0; transform: translate(-3px, -2px);
  transition: left .95s cubic-bezier(.3,.7,.2,1), top .95s cubic-bezier(.3,.7,.2,1), opacity .3s ease; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.cur.tap::after { content: ''; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(109,40,217,.55); animation: curtap .5s ease-out forwards; }
@keyframes curtap { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.pressed { transform: scale(.94); filter: brightness(.9); transition: transform .12s ease, filter .12s ease; }
.toast { position: absolute; left: 560px; top: 54px; z-index: 55; display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 9px; background: #141414; color: #fff;
  font-size: 11.5px; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
.toast i { width: 14px; height: 14px; border-radius: 50%; background: #2f6b4f; display: grid; place-items: center; font-style: normal; font-size: 9px; }
.toast.in { opacity: 1; transform: none; }
.flash { animation: flashrow 1.2s ease; } @keyframes flashrow { 0% { background: rgba(109,40,217,.14); } 100% { background: transparent; } }
