/* NWERP — μικρό σύνολο στυλ πάνω στο Unfold */
:root { --nw-border: var(--color-base-200); --nw-bg: #fff; --nw-muted: var(--color-base-500); --nw-text: var(--color-base-700);
        --nw-strong: var(--color-base-900); --nw-soft: var(--color-base-50); --nw-red: #c62828; --nw-green: #2e7d32; --nw-amber: #b26a00; }
html.dark { --nw-border: var(--color-base-800); --nw-bg: var(--color-base-900); --nw-muted: var(--color-base-400); --nw-text: var(--color-base-300);
            --nw-strong: var(--color-base-100); --nw-soft: rgba(255,255,255,.03); --nw-red: #ef7b7b; --nw-green: #7bc67e; --nw-amber: #f0b25a; }

.nw-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.nw-num, td.nw-num { text-align: right; }
.nw-neg { color: var(--nw-red); }
.nw-muted { color: var(--nw-muted); }
.nw-small { font-size: 12px; font-weight: 400; }
.nw-link { color: var(--color-primary-600); text-decoration: none; }
html.dark .nw-link { color: var(--color-primary-400); }
.nw-link:hover { text-decoration: underline; }

.nw-section { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.nw-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.nw-head h2 { font-size: 18px; font-weight: 600; color: var(--nw-strong); margin: 0; }
.nw-years { display: flex; gap: 6px; flex-wrap: wrap; }
.nw-chip { padding: 3px 10px; border: 1px solid var(--nw-border); border-radius: 999px; font-size: 13px; color: var(--nw-text); text-decoration: none; }
.nw-chip-on { background: var(--color-primary-600); border-color: var(--color-primary-600); color: #fff; }

.nw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.nw-kpi { display: block; background: var(--nw-bg); border: 1px solid var(--nw-border); border-radius: 6px; padding: 14px 16px; text-decoration: none; }
.nw-kpi-link:hover { border-color: var(--color-primary-400); }
.nw-kpi-label { font-size: 12px; color: var(--nw-muted); margin-bottom: 4px; }
.nw-kpi-value { font-size: 22px; font-weight: 600; color: var(--nw-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw-kpi-value-sm { font-size: 18px; }
.nw-kpi-sub { font-size: 12px; color: var(--nw-muted); margin-top: 4px; }
.nw-kpis-sm .nw-kpi { padding: 10px 12px; }
.nw-kpis-sm .nw-kpi-value { font-size: 17px; }

.nw-totals { margin-bottom: 16px; }
.nw-totals-title { font-size: 13px; font-weight: 600; color: var(--nw-strong); margin-bottom: 8px; }

.nw-card { background: var(--nw-bg); border: 1px solid var(--nw-border); border-radius: 6px; padding: 16px; min-width: 0; }
.nw-card h3 { font-size: 14px; font-weight: 600; color: var(--nw-strong); margin: 0 0 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.nw-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.nw-scroll { overflow-x: auto; }

.nw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nw-table th { text-align: left; font-weight: 600; color: var(--nw-strong); padding: 7px 10px; border-bottom: 1px solid var(--nw-border); background: var(--nw-soft); white-space: nowrap; }
.nw-table td { padding: 7px 10px; border-bottom: 1px solid var(--nw-border); color: var(--nw-text); vertical-align: top; }
.nw-table tr:last-child td { border-bottom: 0; }
.nw-overhead td { background: var(--nw-soft); }
.nw-subrow td { background: var(--nw-soft); font-size: 12px; }

.nw-tag { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 1px 6px; border-radius: 4px; margin-right: 4px; white-space: nowrap; }
.nw-tag-red { background: color-mix(in srgb, var(--nw-red) 14%, transparent); color: var(--nw-red); }
.nw-tag-amber { background: color-mix(in srgb, var(--nw-amber) 16%, transparent); color: var(--nw-amber); }
.nw-tag-green { background: color-mix(in srgb, var(--nw-green) 16%, transparent); color: var(--nw-green); }

.nw-bar { position: relative; min-width: 110px; height: 18px; background: var(--nw-soft); border: 1px solid var(--nw-border); border-radius: 4px; overflow: hidden; display: inline-block; vertical-align: middle; }
.nw-bar-fill { position: absolute; inset: 0 auto 0 0; }
.nw-bar-green { background: color-mix(in srgb, var(--nw-green) 35%, transparent); }
.nw-bar-amber { background: color-mix(in srgb, var(--nw-amber) 40%, transparent); }
.nw-bar-red { background: color-mix(in srgb, var(--nw-red) 40%, transparent); }
.nw-bar-sales { background: color-mix(in srgb, var(--color-primary-500) 30%, transparent); }
.nw-bar span { position: relative; font-size: 11px; padding: 0 6px; line-height: 16px; color: var(--nw-strong); }

.nw-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nw-btn { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 6px; background: var(--color-primary-600); color: #fff !important; font-size: 13px; font-weight: 500; text-decoration: none; border: 0; cursor: pointer; }
.nw-btn:hover { background: var(--color-primary-700); }
.nw-btn-light { background: transparent; color: var(--nw-text) !important; border: 1px solid var(--nw-border); }
.nw-btn-light:hover { background: var(--nw-soft); }
.nw-upload { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.nw-upload input[type=file] { font-size: 13px; color: var(--nw-text); }
.nw-error { color: var(--nw-red); font-weight: 500; margin-bottom: 4px; }
.nw-list { margin: 4px 0 0 18px; list-style: disc; }
.nw-kv th { text-align: left; padding: 2px 12px 2px 0; color: var(--nw-muted); font-weight: 500; }
.nw-kv td { padding: 2px 0; }
.nw-card p { font-size: 13px; }

/* Μεταφόρτωση αρχείων */
.nw-upload { flex-direction: column; align-items: stretch; }
.nw-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--nw-border); border-radius: 8px; cursor: pointer; text-align: center; background: var(--nw-soft); transition: border-color .15s, background .15s; }
.nw-drop:hover, .nw-drop-over { border-color: var(--color-primary-500); background: color-mix(in srgb, var(--color-primary-500) 6%, transparent); }
.nw-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.nw-drop-icon { font-size: 30px; color: var(--color-primary-600); }
.nw-drop-text { font-size: 14px; color: var(--nw-strong); }
.nw-drop-text strong { color: var(--color-primary-600); }
.nw-drop-sub { font-size: 12px; }
.nw-filelist { margin: 0; padding: 0 0 0 18px; font-size: 12px; color: var(--nw-text); list-style: disc; max-height: 220px; overflow-y: auto; }
.nw-filelist:empty { display: none; }
.nw-upload-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nw-btn:disabled { opacity: .45; cursor: not-allowed; }
.nw-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--nw-border); border-top-color: var(--color-primary-600); border-radius: 50%; animation: nw-spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes nw-spin { to { transform: rotate(360deg); } }
.nw-kpi-budget .nw-bar, .nw-budget .nw-bar { display: block; width: 100%; margin-bottom: 3px; }
.nw-budget { min-width: 190px; }
