/* NE Accounting v2 - application shell */
html, body { margin: 0; height: 100%; font-family: "Segoe UI", system-ui, sans-serif; font-size: 14px; background: #f5f6f8; color: #242424; }
.ne-shell { display: flex; min-height: 100vh; }
.ne-nav { width: 240px; flex-shrink: 0; background: #1b2a41; color: #cfd8e3; padding-bottom: 24px; overflow-y: auto; max-height: 100vh; position: sticky; top: 0; }
.ne-brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 600; color: #fff; border-bottom: 1px solid #2c3e5a; }
.ne-logo { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #2f8cff, #13b5a6); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.ne-navgroup { padding: 14px 16px 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #7f93ad; }
.ne-navlink { display: block; padding: 6px 16px 6px 22px; color: #cfd8e3; text-decoration: none; }
.ne-navlink:hover { background: #24375a; color: #fff; }
.ne-navlink.active { background: #0f6cbd; color: #fff; border-left: 3px solid #7cc4ff; padding-left: 19px; }
.ne-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ne-top { height: 52px; background: #fff; border-bottom: 1px solid #e3e6eb; display: flex; align-items: center; gap: 10px; padding: 0 18px; position: sticky; top: 0; z-index: 5; }
.ne-spacer { flex: 1; }
.ne-pill { border: 1px solid #d1d5db; border-radius: 16px; padding: 4px 12px; background: #fafbfc; }
.ne-content { padding: 18px 22px; }
.ne-page-title { font-size: 20px; font-weight: 600; margin: 0 0 2px; }
.ne-page-sub { color: #616161; margin-bottom: 14px; }
.ne-card { background: #fff; border: 1px solid #e3e6eb; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.ne-card h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.ne-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 12px; }
.ne-grid-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.ne-grid-form .span2 { grid-column: span 2; } .ne-grid-form .span4 { grid-column: span 4; }
.ne-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.ne-kpi { background: #fff; border: 1px solid #e3e6eb; border-radius: 8px; padding: 12px 14px; }
.ne-kpi .l { color: #616161; font-size: 12px; } .ne-kpi .v { font-size: 22px; font-weight: 600; margin-top: 4px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ne-lines { width: 100%; border-collapse: collapse; }
.ne-lines th { background: #f3f5f8; text-align: left; font-weight: 600; padding: 6px 8px; border-bottom: 1px solid #e3e6eb; }
.ne-lines td { padding: 4px 6px; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.ne-lines tr.tot td { font-weight: 700; border-top: 2px solid #d1d5db; background: #fafbfc; }
.ne-status { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: #eef0f3; color: #555; }
.ne-status.ok { background: #e0f2e9; color: #0e7a3c; } .ne-status.info { background: #e5f1fb; color: #0f6cbd; }
.ne-status.warn { background: #fff4ce; color: #8a5a00; } .ne-status.bad { background: #fde7e9; color: #b10e1c; }
.ne-steps { display: flex; gap: 6px; align-items: center; margin: 4px 0 12px; flex-wrap: wrap; }
.ne-step { padding: 3px 10px; border-radius: 12px; border: 1px solid #c8ccd2; color: #888; font-size: 12px; }
.ne-step.done { background: #0e7a3c; border-color: #0e7a3c; color: #fff; } .ne-step.cur { border-color: #0f6cbd; color: #0f6cbd; font-weight: 600; }
.ne-muted { color: #888; }
.ne-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ne-login { min-height: 100vh; display: flex; background: linear-gradient(120deg, #1b2a41 0%, #0f6cbd 100%); }
.ne-login-left { flex: 1; color: #fff; padding: 80px; }
.ne-login-right { width: 460px; background: #fff; display: flex; align-items: center; justify-content: center; }
.ne-login-box { width: 340px; }
.ne-login-box label { display: block; font-size: 12px; color: #616161; margin: 12px 0 4px; }
.ne-login-box input, .ne-login-box select { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 5px; font-size: 14px; }
.ne-login-box button { width: 100%; margin-top: 18px; padding: 10px; border: 0; border-radius: 5px; background: #0f6cbd; color: #fff; font-size: 14px; cursor: pointer; }
.ne-error { background: #fdecee; border: 1px solid #f1a7ae; color: #8a0f1a; padding: 8px 10px; border-radius: 5px; margin-top: 12px; }
@media print { .ne-nav, .ne-top, .no-print { display: none !important; } .ne-content { padding: 0; } body { background: #fff; } }

/* clickable text inside grids (in-page open) */
.ne-link { color: var(--accent-fill-rest); cursor: pointer; text-decoration: underline; }


/* label/value pairs */
.ne-kv { display: grid; grid-template-columns: repeat(4, auto 1fr); gap: 6px 14px; align-items: baseline; }
.ne-kv span { color: var(--neutral-foreground-hint); font-size: 12px; }
.ne-kv b { text-align: right; padding-right: 18px; }


/* report catalog */
.ne-report-item { padding: 6px 10px; border-radius: 4px; cursor: pointer; }
.ne-report-item:hover { background: var(--neutral-fill-stealth-hover); }
.ne-report-item.active { background: var(--accent-fill-rest); color: #fff; }
.ne-file-button { display: inline-block; padding: 6px 14px; border-radius: 4px; background: var(--accent-fill-rest); color: #fff; cursor: pointer; }
@media print { .ne-report-item, .ne-toolbar, .ne-actions, nav, header, .ne-nav { display: none !important; } }


/* dashboard tiles */
.ne-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.ne-tile { background: var(--neutral-layer-1); border: 1px solid var(--neutral-stroke-rest); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ne-tile span { color: var(--neutral-foreground-hint); font-size: 12px; }
.ne-tile b { font-size: 24px; }
.ne-tile small { color: var(--neutral-foreground-hint); }
.ne-tile a { font-size: 12px; margin-top: 4px; }
@media (max-width: 900px) { .ne-tiles { grid-template-columns: repeat(2, 1fr); } }

