/* ==========================================================================
   NO-Portal UI — COMPONENT LIBRARY (the only stylesheet that draws the portal)

   Every component is defined ONCE here and reads its look only from
   tokens.css (+ the Design Kit changes). Each rule names the kit class and
   the standard markup class that means the same thing, e.g.
       .np-btn, .btn { … }      .np-card, .card { … }
   so the same component looks the same on every page, and changing it here
   (or its tokens in the Design Kit) changes it everywhere.

   Use: <x-np.button variant="primary">Save</x-np.button>  (Blade components,
   resources/views/components/np/*) or the classes. Catalogue with copy-ready
   code: Super admin → General Settings → Design Kit.

   Rule: need something new? Check the Design Kit first. If it isn't there,
   add it HERE + as a Blade component + as an example in the Design Kit —
   never style one page by itself. Icons: icons.css.
   ========================================================================== */

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--np-surface-2); color: var(--np-text);
  font-family: var(--np-font); font-size: var(--np-font-size); line-height: 1.5; font-feature-settings: "cv11", "ss01";
}
:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) { font-family: var(--np-display); color: var(--np-strong); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .5rem; }
:is(h1, .h1) { font-size: 26px; } :is(h2, .h2) { font-size: var(--np-page-title-size); } :is(h3, .h3) { font-size: 18px; }
:is(h4, .h4) { font-size: 16px; } :is(h5, .h5) { font-size: var(--np-card-title-size); } :is(h6, .h6) { font-size: var(--np-font-size); }
p { margin: 0 0 .75rem; }
a { color: var(--np-link); text-decoration: none; }
a:hover { color: var(--np-strong); text-decoration: underline; }
:is(small, .small) { font-size: var(--np-font-size-sm); }
:is(strong, b) { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--np-border); margin: var(--np-gap) 0; opacity: 1; }
:is(code, kbd, pre, samp) { font-family: var(--np-font); }
code { font-size: var(--np-font-size-sm); color: var(--np-strong); background: var(--np-surface-3); padding: 1px 6px; border-radius: var(--np-radius-sm); }
.lead { font-size: 16px; color: var(--np-muted); }
.img-fluid { max-width: 100%; height: auto; }
::selection { background: var(--np-info-bg); color: var(--np-strong); }
:focus-visible { outline: 2px solid var(--np-focus); outline-offset: 2px; }

/* Utilities → kit values */
.fw-medium { font-weight: 500 !important; }
.text-none { text-transform: none !important; letter-spacing: normal !important; }
.min-w-0 { min-width: 0; }
.text-primary, .text-dark { color: var(--np-strong) !important; }
.text-secondary, .text-muted { color: var(--np-muted) !important; }
:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6).text-secondary { color: var(--np-strong) !important; }
.text-success { color: var(--np-ok) !important; }
.text-danger { color: var(--np-danger) !important; }
.text-warning { color: var(--np-warn) !important; }
.text-info { color: var(--np-info) !important; }
.bg-white { background-color: var(--np-surface) !important; }
.bg-primary, .bg-success { background-color: var(--np-ok) !important; }
.bg-danger { background-color: var(--np-danger) !important; }
.border, .border-top, .border-end, .border-bottom { border-color: var(--np-border) !important; }
.rounded { border-radius: var(--np-radius) !important; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,.08) !important; }
.shadow, .shadow-lg { box-shadow: var(--np-shadow) !important; }

/* ---------- Layout helpers ---------- */
.np-page { padding: var(--np-page-pad-y) var(--np-page-pad-x) 40px; }
.np-form-card { max-width: 720px; }
.np-page > .container-fluid { padding: 0; }
.np-stack { display: flex; flex-direction: column; gap: var(--np-gap); }
.np-stack--sm { gap: var(--np-gap-sm); }
.np-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--np-gap-sm); }
.np-row--between { justify-content: space-between; }
.np-row--end { justify-content: flex-end; }
.np-grid { display: grid; gap: var(--np-gap); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.np-grid--2 { --cols: 2; } .np-grid--3 { --cols: 3; } .np-grid--4 { --cols: 4; }
@media (max-width: 1100px) { .np-grid--4 { --cols: 2; } .np-grid--3 { --cols: 2; } }
@media (max-width: 640px) { .np-grid { --cols: 1 !important; } }
.np-muted { color: var(--np-muted); }
.np-strong { color: var(--np-strong); font-weight: 600; }
.np-sr { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[class^="np-"], [class*=" np-"] { box-sizing: border-box; }
.np-ic { font-size: 16px; }
.np-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, currentColor); flex-shrink: 0; }

/* ---------- Button ---------- */
.np-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--np-btn-h); padding: 4px var(--np-btn-pad-x); margin: 0;
  border-radius: var(--np-btn-radius); border: 1px solid var(--np-border);
  background: var(--np-surface); color: var(--np-text);
  font-family: var(--np-font); font-size: var(--np-btn-font-size); font-weight: var(--np-btn-weight); line-height: 22px;
  text-decoration: none; white-space: nowrap; vertical-align: middle; cursor: pointer; user-select: none; transition: background .1s, border-color .1s;
}
:is(.np-btn, .btn):hover { background: var(--np-surface-2); border-color: var(--np-faint); color: var(--np-strong); text-decoration: none; }
:is(.np-btn, .btn):focus-visible { outline: 2px solid var(--np-focus); outline-offset: 2px; }
:is(.np-btn, .btn) > .np-i { margin: 0 !important; }
.np-btn--primary, .btn-primary, .btn-success { background: var(--np-primary); border-color: var(--np-primary); color: var(--np-on-dark); }
:is(.np-btn--primary, .btn-primary, .btn-success):is(:hover, :focus, :active) { background: var(--np-primary-hover); border-color: var(--np-primary-hover); color: var(--np-on-dark); }
.np-btn--danger, .btn-danger { background: var(--np-danger); border-color: var(--np-danger); color: var(--np-on-dark); }
:is(.np-btn--danger, .btn-danger):is(:hover, :focus, :active) { background: var(--np-danger-hover); border-color: var(--np-danger-hover); color: var(--np-on-dark); }
.btn-warning { background: var(--np-warn-bg); border-color: var(--np-warn-border); color: var(--np-warn-fg); }
.btn-warning:hover { background: var(--np-warn-bg); border-color: var(--np-warn); color: var(--np-warn-fg); }
.np-btn--ghost { background: transparent; border-color: transparent; }
.np-btn--ghost:hover { background: var(--np-surface-3); border-color: transparent; }
.np-btn--link, .btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--np-link); }
:is(.np-btn--link, .btn-link):hover { background: none; color: var(--np-strong); text-decoration: underline; }
.np-btn--sm, .btn-sm { min-height: var(--np-btn-h-sm); padding: 2px 12px; font-size: var(--np-font-size-sm); line-height: 20px; }
.np-btn--lg, .btn-lg { min-height: var(--np-btn-h-lg); padding: 8px 20px; font-size: 15px; }
/* Field-height button: sits next to inputs/selects in a form or filter row (same height as the field) */
.np-btn--md, .btn-md { min-height: var(--np-input-h); padding: 6px 16px; }
:is(.np-btn--icon, .btn-icon):is(.np-btn--md, .btn-md) { width: var(--np-input-h); min-width: var(--np-input-h); padding: 0; }
.np-btn--block, .btn-block { display: flex; width: 100%; }
/* Icon-only round button (row actions: view / edit / delete) */
.np-btn--icon, .btn-icon { width: var(--np-btn-h); min-width: var(--np-btn-h); padding: 0; }
:is(.np-btn--icon, .btn-icon):is(.np-btn--sm, .btn-sm) { width: var(--np-btn-h-sm); min-width: var(--np-btn-h-sm); }
/* Soft (tinted) variants — status actions in tables */
/* Row actions in tables: icon buttons side by side, never wrapping */
.np-actions, .action-buttons { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
:is(.np-actions, .action-buttons) > * { margin: 0 !important; }
.btn-soft { border-color: transparent; }
.btn-soft:not(.btn-primary, .btn-success, .btn-danger, .btn-warning) { background: var(--np-surface-3); color: var(--np-text); }
.btn-soft:is(.btn-primary, .btn-success) { background: var(--np-ok-bg); color: var(--np-ok-fg); }
.btn-soft.btn-danger { background: var(--np-danger-bg); color: var(--np-danger); }
.btn-soft.btn-warning { background: var(--np-warn-bg); color: var(--np-warn-fg); }
.btn-soft:hover { filter: brightness(.96); border-color: transparent; }
:is(.np-btn, .btn):is(:disabled, .disabled, [aria-disabled="true"]) { opacity: .55; pointer-events: none; }
.np-btn.is-loading { pointer-events: none; opacity: .8; }
.np-btn.is-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: np-spin .7s linear infinite; }
.btn-group { display: inline-flex; gap: 4px; }
.btn-close, .close {
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--np-muted); cursor: pointer;
  display: inline-grid; place-items: center; font-size: 0; flex-shrink: 0;
}
:is(.btn-close, .close)::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat; }
:is(.btn-close, .close):hover { background: var(--np-surface-3); color: var(--np-strong); }
.close > span { display: none; }

/* ---------- Card ---------- */
.np-card, .card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--np-surface); border: 1px solid var(--np-card-border); border-radius: var(--np-card-radius); }
.card { margin-bottom: var(--np-card-gap); }
.row > [class*="col"] > .card:only-child { height: calc(100% - var(--np-card-gap)); }
.np-card--accent { border-top: 3px solid var(--accent, var(--dashboard)); }
.np-card__head, .card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--np-card-pad); border-bottom: 1px solid var(--np-card-border); background: transparent; }
.np-card__title, .card-title, .card-header :is(h1, h2, h3, h4, h5, h6) { margin: 0; font-family: var(--np-display); font-size: var(--np-card-title-size); font-weight: 600; color: var(--np-strong); }
.np-card__sub { margin: 2px 0 0; font-size: var(--np-font-size-sm); color: var(--np-muted); }
.np-card__body, .card-body { flex: 1 1 auto; padding: var(--np-card-pad); min-width: 0; }
.np-card__foot, .card-footer { padding: 12px var(--np-card-pad); border-top: 1px solid var(--np-card-border); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; background: transparent; }
.card-footer > div:only-child:not(.row) { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.card-footer > .row { flex: 1 1 100%; }

/* ---------- Page header & breadcrumb ---------- */
.np-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--np-gap); }
.np-page-head__title, .np-page-title { margin: 0; font-family: var(--np-display); font-size: var(--np-page-title-size); font-weight: 700; color: var(--np-strong); line-height: 1.25; }
.np-page-head__sub { margin: 4px 0 0; font-size: var(--np-font-size); color: var(--np-muted); }
.np-page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.np-breadcrumb, .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 6px; padding: 0; font-size: var(--np-font-size-sm); color: var(--np-muted); background: none; }
:is(.np-breadcrumb, .breadcrumb) a { color: var(--np-muted); }
:is(.np-breadcrumb, .breadcrumb) a:hover { color: var(--np-strong); }
:is(.np-breadcrumb li, .breadcrumb-item) + :is(li, .breadcrumb-item)::before { content: "/"; margin-right: 6px; color: var(--np-faint); }
.np-section-title { margin: 0 0 10px; font-size: var(--np-font-size-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--np-muted); }
.np-divider { border: 0; border-top: 1px solid var(--np-border); margin: var(--np-gap) 0; }

/* ---------- Stat (number tile) ---------- */
.np-stat { display: flex; gap: 12px; align-items: flex-start; background: var(--np-surface); border: 1px solid var(--np-card-border); border-radius: var(--np-card-radius); padding: var(--np-card-pad); min-width: 0; }
.np-stat__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 20px;
  background: color-mix(in srgb, var(--tone, var(--np-info)) 14%, var(--np-surface)); color: var(--tone, var(--np-info)); }
.np-stat__label { font-size: var(--np-font-size-sm); color: var(--np-muted); margin: 0 0 2px; }
.np-stat__value { font-family: var(--np-display); font-size: 26px; font-weight: 700; color: var(--np-strong); line-height: 1.15; margin: 0; font-variant-numeric: tabular-nums; }
.np-stat__meta { font-size: var(--np-font-size-xs); color: var(--np-muted); margin: 4px 0 0; }
.np-stat__delta--up { color: var(--np-ok); font-weight: 600; }
.np-stat__delta--down { color: var(--np-danger); font-weight: 600; }

/* ---------- Pill / status (badge) ---------- */
.np-pill, .badge { display: inline-flex; align-items: center; gap: 6px; height: var(--np-pill-h); padding: 0 10px; border-radius: var(--np-pill-radius); border: 0;
  font-family: var(--np-font); font-size: var(--np-pill-font-size); font-weight: 500; line-height: 1; white-space: nowrap; vertical-align: middle;
  background: var(--np-neutral-bg); color: var(--np-neutral-fg); }
.badge:empty { display: none; }
.np-pill--ok, .badge.bg-success, .badge-success { background: var(--np-ok-bg) !important; color: var(--np-ok-fg); }
.np-pill--warn, .badge.bg-warning, .badge-warning { background: var(--np-warn-bg) !important; color: var(--np-warn-fg); }
.np-pill--danger, .badge.bg-danger, .badge-danger { background: var(--np-danger-bg) !important; color: var(--np-danger-fg); }
.np-pill--info, .badge.bg-info, .badge.bg-primary { background: var(--np-info-bg) !important; color: var(--np-info-fg); }
.np-pill--purple { background: var(--np-purple-bg); color: var(--np-purple-fg); }
.np-pill--neutral, .badge.bg-secondary, .badge.bg-dark, .badge.bg-light { background: var(--np-neutral-bg) !important; color: var(--np-neutral-fg); }
.np-pill--outline, [class*="badge-outline-"] { background: transparent !important; border: 1px solid currentColor; }
.badge-outline-success { color: var(--np-ok); } .badge-outline-danger { color: var(--np-danger); }
.badge-outline-warning { color: var(--np-warn); }
.np-pill--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.np-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; background: var(--np-danger-bg); color: var(--np-danger); }

/* ---------- Alert ---------- */
.np-alert, .alert { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: var(--np-gap); border-radius: var(--np-radius); border: 1px solid var(--np-info-border);
  background: var(--np-info-bg); color: var(--np-info-fg); font-size: var(--np-font-size); line-height: 1.5; }
.alert { display: block; }
.np-alert__title { display: block; font-weight: 600; margin-bottom: 2px; }
.np-alert__body { flex: 1; min-width: 0; }
.np-alert__meta { margin-left: auto; padding-left: 8px; white-space: nowrap; font-size: var(--np-font-size-xs); opacity: .8; }
.np-alert > .np-i { flex-shrink: 0; margin-top: 3px; }
.np-alert__close { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 0 2px; font-size: 18px; line-height: 1; }
.np-alert--ok, .alert-success { background: var(--np-ok-bg); border-color: var(--np-ok-border); color: var(--np-ok-fg); }
.np-alert--warn, .alert-warning { background: var(--np-warn-bg); border-color: var(--np-warn-border); color: var(--np-warn-fg); }
.np-alert--danger, .alert-danger { background: var(--np-danger-bg); border-color: var(--np-danger-border); color: var(--np-danger-fg); }
.np-alert--neutral { background: var(--np-surface-2); border-color: var(--np-border); color: var(--np-text); }
.alert-dismissible { padding-right: 44px; }
.alert-dismissible :is(.btn-close, .close) { position: absolute; top: 8px; right: 8px; color: inherit; }

.np-page-head__main { min-width: 0; }

/* ---------- Form fields ---------- */
.np-field, .form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group { margin-bottom: var(--np-gap); }
.np-label, .form-label, .col-form-label { font-size: var(--np-font-size-sm); font-weight: 600; color: var(--np-text); margin: 0 0 6px; display: inline-block; }
.col-form-label { padding-top: 9px; }
.form-control-plaintext { margin: 0; padding: 8px 0; min-height: var(--np-input-h); color: var(--np-strong); font-size: var(--np-input-font-size); }
.np-field .np-label, .np-field .form-label { margin: 0; }
.np-label .np-req { color: var(--np-danger); margin-left: 2px; }
.np-hint { font-size: var(--np-font-size-xs); color: var(--np-muted); margin: 4px 0 0; }
.np-error, label.error, div.validateError, div.error, span.error, .invalid-feedback, .errormsg, .date-error, .end-date-error { display: block; font-size: var(--np-font-size-xs); color: var(--np-danger); font-weight: 500; margin: 4px 0 0; }
.invalid-feedback { display: none; }
:is(.np-error, div.error, span.error, .errormsg):empty { display: none; }
/* Inline save message next to a button (JS adds .ok / .err) */
.np-msg { font-size: var(--np-font-size-sm); font-weight: 600; color: var(--np-muted); }
.np-msg.ok { color: var(--np-ok); } .np-msg.err { color: var(--np-danger); }
/* Date stepper label — the date between previous/next buttons */
.np-date-step { min-width: 120px; text-align: center; font-size: 18px; font-weight: 600; color: var(--np-strong); font-variant-numeric: tabular-nums; }
/* Date box: the chosen day in a field-sized frame, between previous/next buttons */
.np-date-box { display: inline-flex; align-items: center; gap: 10px; min-width: 200px; height: var(--np-input-h); padding: 0 14px; border: 1px solid var(--np-border); border-radius: var(--np-input-radius); background: var(--np-surface); color: var(--np-strong); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-date-box > .np-i { color: var(--np-muted); }
.is-invalid ~ .invalid-feedback { display: block; }
.np-input, .np-select, .np-textarea, .form-control, .form-select {
  display: block; width: 100%; min-height: var(--np-input-h); padding: 8px 12px; margin: 0; border: 1px solid var(--np-border); border-radius: var(--np-input-radius);
  background-color: var(--np-surface); color: var(--np-strong); font-family: var(--np-font); font-size: var(--np-input-font-size); line-height: 1.4; box-shadow: none;
  appearance: none; -webkit-appearance: none; transition: border-color .1s, box-shadow .1s;
}
:is(.np-textarea, textarea.form-control) { min-height: 84px; resize: vertical; }
:is(.np-select, .form-select, select.form-control):not([multiple]):not([size]) { padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F7376' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
select[multiple]:is(.form-control, .form-select, .np-select) { padding: 6px; }
:is(.np-input, .np-textarea, .form-control)::placeholder { color: var(--np-faint); opacity: 1; }
:is(.np-input, .np-select, .np-textarea, .form-control, .form-select):focus { outline: none; border-color: var(--np-focus); box-shadow: 0 0 0 3px var(--np-focus-ring); }
:is(.np-input, .np-select, .np-textarea, .form-control, .form-select):is(:disabled, [readonly]) { background-color: var(--np-surface-2); color: var(--np-muted); }
:is(.form-control, .form-select, .np-input, .np-select, .np-textarea):is(.is-invalid, .error, .validateError), .np-field.is-invalid :is(.np-input, .np-select, .np-textarea) { border-color: var(--np-danger); }
:is(.form-control-sm, .form-select-sm) { min-height: var(--np-btn-h); padding-top: 4px; padding-bottom: 4px; font-size: var(--np-font-size-sm); }
/* File picker — the button inside is a kit button */
input[type=file]:not(.np-dropzone input, .np-photo__btn input) { display: block; width: 100%; max-width: 100%; min-height: var(--np-input-h); padding: 3px 4px; border: 1px solid var(--np-border); border-radius: var(--np-input-radius); background: var(--np-surface); color: var(--np-muted); font-family: var(--np-font); font-size: var(--np-font-size-sm); cursor: pointer; }
input[type=file]:not(.np-dropzone input, .np-photo__btn input):focus-visible { outline: none; border-color: var(--np-focus); box-shadow: 0 0 0 3px var(--np-focus-ring); }
input[type=file]::file-selector-button { height: 30px; margin-right: 10px; padding: 0 var(--np-btn-pad-x); border: 1px solid var(--np-border); border-radius: var(--np-btn-radius); background: var(--np-surface); color: var(--np-strong); font-family: var(--np-font); font-size: var(--np-font-size-sm); font-weight: var(--np-btn-weight); cursor: pointer; transition: background-color .12s; }
input[type=file]:hover::file-selector-button { background: var(--np-surface-2); }
input[type=color].form-control { width: 48px; padding: 4px; }
.np-input-group, .input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
:is(.np-input-group, .input-group) > :is(.np-input, .form-control, .form-select, .select2-container) { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
:is(.np-input-group, .input-group) > :not(:first-child):not(.dropdown-menu):not(.invalid-feedback):not(label.error) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
:is(.np-input-group, .input-group) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.np-input-addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--np-border); border-radius: var(--np-input-radius); background: var(--np-surface-2); color: var(--np-muted); font-size: var(--np-font-size-sm); white-space: nowrap; }
/* Stepper: − / + buttons around a value (hours in 15-minute steps, quantities) */
.np-stepper { display: flex; align-items: stretch; width: 100%; height: var(--np-input-h); border: 1px solid var(--np-border); border-radius: var(--np-input-radius); background: var(--np-surface); position: relative; }
.np-stepper:focus-within { border-color: var(--np-focus); box-shadow: 0 0 0 3px var(--np-focus-ring); }
.np-stepper.is-invalid { border-color: var(--np-danger); }
.np-stepper > :is(input, .np-stepper__value) { flex: 1 1 auto; width: 1%; min-width: 0; height: 100%; min-height: 0; margin: 0; padding: 0 4px; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; text-align: center; font-weight: 600; color: var(--np-strong); font-variant-numeric: tabular-nums; cursor: pointer; }
.np-stepper > :is(input, .np-stepper__value):focus { outline: none; }
.np-stepper > input::-webkit-inner-spin-button, .np-stepper > input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.np-stepper__value { display: flex; align-items: stretch; padding: 0 !important; cursor: default; }
.np-stepper__value > input { width: 100%; min-width: 0; height: 100%; min-height: 0; margin: 0; padding: 0 4px; border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important; text-align: center; font-weight: 600; color: var(--np-strong); font-variant-numeric: tabular-nums; cursor: pointer; }
.np-stepper__value > input:focus { outline: none; }
.np-stepper__btn { flex: none; width: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0; background: var(--np-surface-2); color: var(--np-text); cursor: pointer; }
.np-stepper__btn:hover { background: var(--np-surface-3); color: var(--np-strong); }
.np-stepper__btn:first-child { border-right: 1px solid var(--np-border-soft); border-radius: var(--np-input-radius) 0 0 var(--np-input-radius); }
.np-stepper__btn:last-child { border-left: 1px solid var(--np-border-soft); border-radius: 0 var(--np-input-radius) var(--np-input-radius) 0; }
.np-stepper__btn .np-i { font-size: 16px; }
.input-group-sm > :is(.form-control, .btn) { min-height: var(--np-btn-h); font-size: var(--np-font-size-sm); }
.np-search { position: relative; }
.np-search .np-i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--np-muted); pointer-events: none; }
.np-search .np-input { padding-left: 34px; border-radius: var(--np-radius-pill); min-height: var(--np-btn-h); }

.np-check, .form-check { display: inline-flex; align-items: center; gap: 8px; min-height: 22px; font-size: var(--np-font-size); color: var(--np-text); cursor: pointer; margin: 0 0 4px; padding: 0; }
.form-check { display: flex; }
/* Checkbox & radio — drawn by the kit (every checkbox/radio in the portal) */
.np-check input, .form-check-input, input:is([type=checkbox], [type=radio]) { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; flex-shrink: 0; float: none; vertical-align: -3px; cursor: pointer;
  border: 1.5px solid var(--np-faint); border-radius: 4px; background: var(--np-surface) no-repeat center / 12px; transition: background-color .12s, border-color .12s, box-shadow .12s; }
:is(.np-check input, .form-check-input, input):is([type=radio]) { border-radius: 50%; }
:is(.np-check input, .form-check-input, input:is([type=checkbox], [type=radio])):hover { border-color: var(--np-muted); }
:is(.np-check input, .form-check-input, input:is([type=checkbox], [type=radio])):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--np-focus-ring); border-color: var(--np-focus); }
:is(.np-check input, .form-check-input, input[type=checkbox]):is(:checked, :indeterminate):not([type=radio]) { background-color: var(--np-strong); border-color: var(--np-strong); }
:is(.np-check input, .form-check-input, input[type=checkbox]):checked:not([type=radio]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
:is(.np-check input, .form-check-input, input[type=checkbox]):indeterminate:not([type=radio]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E"); }
:is(.np-check input, .form-check-input, input)[type=radio]:checked { border-color: var(--np-strong); background-color: var(--np-surface); box-shadow: inset 0 0 0 3px var(--np-surface), inset 0 0 0 8px var(--np-strong); }
:is(.np-check input, .form-check-input, input:is([type=checkbox], [type=radio])):disabled { opacity: .5; cursor: not-allowed; }
label:has(> input:is([type=checkbox], [type=radio])) { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check-label { font-size: var(--np-font-size); color: var(--np-text); font-weight: 400; cursor: pointer; margin: 0; }
.np-switch, .form-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--np-font-size); color: var(--np-text); margin: 0; padding: 0; }
:is(.np-switch, .form-switch) input:is([type=checkbox], .form-check-input) { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--np-faint); background-image: none !important; box-shadow: none; border: 0; position: relative; margin: 0; cursor: pointer; transition: background .15s; flex-shrink: 0; }
:is(.np-switch, .form-switch) input:is([type=checkbox], .form-check-input)::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--np-surface); transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
:is(.np-switch, .form-switch) input:is([type=checkbox], .form-check-input):checked { background-color: var(--np-ok); box-shadow: none; }
:is(.np-switch, .form-switch) input:is([type=checkbox], .form-check-input):checked::after { left: 18px; }
.np-color { display: inline-flex; align-items: center; gap: 8px; }
.np-color input[type=color] { width: 38px; height: 38px; padding: 2px; border: 1px solid var(--np-border); border-radius: var(--np-input-radius); background: var(--np-surface); cursor: pointer; }
.np-color .np-input { width: 110px; font-variant-numeric: tabular-nums; text-transform: uppercase; }

/* Fields without a class (plugin-made or old markup): same kit look */
.np-page :is(textarea, select, input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=hidden]):not([type=range]):not([type=submit]):not([type=button])):not([class*="form-"]):not([class*="np-"]):not([class*="select2"]):not(.dataTables_wrapper *):not(.bootstrap-timepicker-widget *) {
  max-width: 100%; min-height: var(--np-input-h); padding: 8px 12px; border: 1px solid var(--np-border); border-radius: var(--np-input-radius);
  background-color: var(--np-surface); color: var(--np-strong); font-family: var(--np-font); font-size: var(--np-input-font-size);
}
.np-page :is(textarea, select, input):not([class*="form-"]):not([class*="np-"]):focus { outline: none; border-color: var(--np-focus); box-shadow: 0 0 0 3px var(--np-focus-ring); }

/* ---------- Filter bar: fields + Search/Refresh above a list ---------- */
.np-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.np-filters__field { flex: 1 1 170px; min-width: 150px; max-width: 260px; }
.np-filters__field > :is(.form-control, .form-select) { width: 100%; }
.np-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 640px) { .np-filters__field { flex-basis: 100%; max-width: none; } .np-filters__actions { width: 100%; } .np-filters__actions > .btn:not(.btn-icon) { flex: 1; } }
select + .select2-container { width: 100% !important; max-width: 100%; }

/* ---------- Toolbar (filters row) ---------- */
.np-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 12px var(--np-card-pad); background: var(--np-surface); border: 1px solid var(--np-card-border); border-radius: var(--np-card-radius); }
.np-toolbar .np-field { min-width: 160px; }
.np-toolbar__actions { margin-left: auto; display: flex; gap: 8px; }

.np-toolbar__actions { flex-wrap: wrap; min-width: 0; }
@media (max-width: 640px) { .np-toolbar__actions { margin-left: 0; width: 100%; } .np-toolbar .np-search { flex: 1; } }

/* ---------- Table (incl. DataTables) ---------- */
.np-table-wrap { background: var(--np-surface); border: 1px solid var(--np-card-border); border-radius: var(--np-card-radius); overflow-x: auto; }
:is(.table-responsive, [class*="table-responsive-"], .datatable-main, .dataTables_wrapper) { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; position: relative; }
.np-table, .table, table.dataTable { width: 100%; margin: 0; border-collapse: collapse; font-size: var(--np-font-size); color: var(--np-text); background: transparent; }
:is(.np-table, .table, table.dataTable) > thead > tr > :is(th, td) {
  text-align: left; white-space: nowrap; vertical-align: middle; font-family: var(--np-font); font-size: var(--np-table-head-size); font-weight: 600; letter-spacing: .02em; color: var(--np-text);
  padding: 10px var(--np-table-cell-px); background: color-mix(in srgb, var(--accent, var(--dashboard)) var(--np-table-head-mix), var(--np-surface));
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--accent, var(--dashboard)) 55%, var(--np-surface)); }
:is(.np-table, .table, table.dataTable) > tbody > tr > :is(td, th) { padding: var(--np-table-cell-py) var(--np-table-cell-px); border: 0; border-bottom: 1px solid var(--np-border-soft); vertical-align: middle; background: transparent; }
:is(.np-table, .table, table.dataTable) > tfoot > tr > :is(td, th) { padding: 10px var(--np-table-cell-px); border-top: 1px solid var(--np-border); font-weight: 600; }
:is(.np-table, .table, table.dataTable) > tbody > tr:hover > td { background: var(--np-surface-2); }
.np-table tbody tr:last-child td { border-bottom: 0; }
:is(.np-table, .table) :is(.num, .text-end) { font-variant-numeric: tabular-nums; }
.np-table .actions { text-align: right; white-space: nowrap; }
.np-cell-person { text-align: left; line-height: 1.4; }
.np-cell-person__name { font-weight: 600; color: var(--np-strong); }
/* Form table: rows of inputs (timesheet tasks, salary and document rows) */
.np-form-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.np-form-table > thead > tr > th { padding: 0 6px 2px; font-size: var(--np-font-size-sm); font-weight: 600; color: var(--np-text); text-align: left; white-space: nowrap; }
.np-form-table > :is(tbody, tfoot) > tr > td { padding: 0 6px; vertical-align: top; }
.np-form-table > tfoot > tr > td { padding-top: 12px; }
.np-form-table--fixed { table-layout: fixed; }
/* Form rows inside a card table (np-table np-table--form): fields keep their column width, long text wraps.
   Each td carries data-label; on tablets and phones every row becomes a small card with labelled fields. */
.np-table--form { table-layout: fixed; }
table.np-table--form > tbody > tr > td { vertical-align: top; padding-top: 14px; padding-bottom: 14px; }
table.np-table--form > tbody > tr:hover > td { background: transparent; }
table.np-table--form > thead > tr > :is(th, td):first-child, table.np-table--form > tbody > tr > td:first-child { padding-left: var(--np-card-pad); }
table.np-table--form > thead > tr > :is(th, td):last-child, table.np-table--form > tbody > tr > td:last-child { padding-right: var(--np-card-pad); }
.np-table--form .select2-container { width: 100% !important; max-width: 100%; }
.np-table--form textarea { min-height: 64px; }
@media (max-width: 991px) {
  .np-table--form, .np-table--form > tbody { display: block; width: 100%; }
  .np-table--form > :is(colgroup, thead) { display: none; }
  table.np-table--form > tbody > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px var(--np-card-pad); border-bottom: 1px solid var(--np-border-soft); }
  table.np-table--form > tbody > tr > td { display: block; padding: 0 !important; border: 0; min-width: 0; }
  table.np-table--form > tbody > tr > td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; font-size: var(--np-font-size-sm); font-weight: 600; color: var(--np-text); }
  table.np-table--form > tbody > tr > td.np-span-all { grid-column: 1 / -1; }
  table.np-table--form > tbody > tr > td.np-cell-end { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
}
@media (max-width: 575px) { table.np-table--form > tbody > tr { grid-template-columns: minmax(0, 1fr); } }
/* Add row: dashed full-width button under a form table */
.np-add-row { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border: 1px dashed var(--np-faint); border-radius: var(--np-radius); background: var(--np-surface); color: var(--np-ok-fg); font-family: var(--np-font); font-size: var(--np-font-size); font-weight: 500; cursor: pointer; }
.np-add-row:hover { background: var(--np-surface-2); border-color: var(--np-muted); }
.np-add-row:focus-visible { outline: 2px solid var(--np-focus); outline-offset: 2px; }
.np-col-wide { width: 210px; }
/* Wide tables: first and last column stay in view while the middle scrolls */
.np-table--sticky-ends :is(th, td) { white-space: nowrap; }
.np-table--sticky-ends > * > tr > :is(th, td):is(:first-child, :last-child) { position: sticky; z-index: 1; }
.np-table--sticky-ends > * > tr > :is(th, td):first-child { left: 0; box-shadow: inset -1px 0 0 var(--np-border-soft); }
.np-table--sticky-ends > * > tr > :is(th, td):last-child { right: 0; box-shadow: inset 1px 0 0 var(--np-border-soft); }
.np-table--sticky-ends > tbody > tr > td:is(:first-child, :last-child) { background: var(--np-surface); }
.np-table--sticky-ends > tbody > tr:hover > td:is(:first-child, :last-child) { background: var(--np-surface-2); }
.np-table__empty, table.dataTable td.dataTables_empty { text-align: center; color: var(--np-muted); padding: 28px 16px !important; }
.table-sm > :not(caption) > * > * { padding: 6px 10px; }
.table-bordered > :not(caption) > * > * { border-bottom: 1px solid var(--np-border); }
table.dataTable.no-footer { border-bottom: 1px solid var(--np-border); }
table.dataTable tbody tr, table.dataTable:is(.stripe, .display) tbody tr.odd, table.dataTable:is(.display, .order-column) tbody tr > :is(.sorting_1, .sorting_2, .sorting_3) { background-color: transparent; }
table.dataTable:is(.display, .row-border, .cell-border) tbody :is(td, th) { border-top: 0; border-left: 0; border-right: 0; }
table.dataTable thead :is(.sorting, .sorting_asc, .sorting_desc) { cursor: pointer; padding-right: 26px; background-repeat: no-repeat; background-position: right 8px center; background-size: 12px; }
table.dataTable thead .sorting { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F7376' stroke-width='2'%3E%3Cpath d='m7 15 5 5 5-5M7 9l5-5 5 5'/%3E%3C/svg%3E"); }
table.dataTable thead .sorting_asc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2023' stroke-width='2.4'%3E%3Cpath d='m7 14 5-5 5 5'/%3E%3C/svg%3E"); }
table.dataTable thead .sorting_desc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2023' stroke-width='2.4'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); }
.dataTables_wrapper :is(.dataTables_length, .dataTables_filter, .dataTables_info) { font-size: var(--np-font-size-sm); color: var(--np-muted); margin-bottom: 12px; }
.dataTables_wrapper :is(.dataTables_length, .dataTables_filter) label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--np-font-size-sm); font-weight: 400; color: var(--np-muted); margin: 0; }
.dataTables_wrapper .dataTables_length select { width: auto; min-height: var(--np-btn-h); padding: 4px 30px 4px 10px; border: 1px solid var(--np-border); border-radius: var(--np-radius-sm); font-size: var(--np-font-size-sm); color: var(--np-strong); background: var(--np-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F7376' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; appearance: none; -webkit-appearance: none; }
.dataTables_wrapper .dataTables_filter input { width: 220px; min-height: var(--np-btn-h); margin: 0; padding: 5px 12px 5px 32px; border: 1px solid var(--np-border); border-radius: var(--np-radius-pill); font-family: var(--np-font); font-size: var(--np-font-size-sm); color: var(--np-strong);
  background: var(--np-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F7376' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 10px center / 15px; }
.dataTables_wrapper .dataTables_filter input:focus { outline: none; border-color: var(--np-focus); box-shadow: 0 0 0 3px var(--np-focus-ring); }
.dataTables_wrapper .dataTables_info { padding-top: 14px; }
/* A table that runs edge to edge in a card: keep its DataTables controls off the card edge */
.card .dataTables_wrapper:not(.card-body:not(.p-0) .dataTables_wrapper) > :is(.dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate) { padding-left: var(--np-card-pad); padding-right: var(--np-card-pad); }
.card .dataTables_wrapper:not(.card-body:not(.p-0) .dataTables_wrapper) > :is(.dataTables_length, .dataTables_filter) { padding-top: 12px; }
.card .dataTables_wrapper:not(.card-body:not(.p-0) .dataTables_wrapper) > :is(.dataTables_info, .dataTables_paginate) { padding-bottom: 14px; }
/* "Processing..." while a table loads: a small centred pill with a spinner, rows behind it faded */
.dataTables_wrapper .dataTables_processing { position: absolute; top: 50%; left: 50%; z-index: 5; width: auto; height: auto; margin: 0; transform: translate(-50%, -50%); display: none; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 16px; background: var(--np-surface); border: 1px solid var(--np-border); border-radius: var(--np-radius-pill); box-shadow: var(--np-shadow); color: var(--np-text); font-size: var(--np-font-size-sm); font-weight: 500; line-height: 1.4; text-align: left; }
.dataTables_wrapper .dataTables_processing[style*="block"] { display: inline-flex !important; }
.dataTables_wrapper .dataTables_processing::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--np-border); border-top-color: var(--np-strong); animation: np-spin .7s linear infinite; }
.dataTables_wrapper .dataTables_processing[style*="block"] ~ * tbody { opacity: .4; transition: opacity .15s; }
@media (prefers-reduced-motion: reduce) { .dataTables_wrapper .dataTables_processing::before { animation: none; } }
.dt-buttons .dt-button { border-radius: var(--np-radius-pill); border: 1px solid var(--np-border); background: var(--np-surface); color: var(--np-text); font-size: var(--np-font-size-sm); padding: 4px 12px; }
@media (max-width: 900px) { .dataTables_wrapper .dataTables_filter input { width: 100%; } }

table.dataTable tbody tr > [class*="sorting_"] { background-color: transparent !important; }

/* ---------- Pagination (Laravel + DataTables) ---------- */
.np-pagination, .pagination, .dataTables_wrapper .dataTables_paginate { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.dataTables_wrapper .dataTables_paginate { padding-top: 10px; justify-content: flex-end; }
.dataTables_wrapper .dataTables_paginate > span { display: inline-flex; gap: 4px; }
.dataTables_wrapper .dataTables_paginate .ellipsis { color: var(--np-muted); padding: 0 4px; }
:is(.np-pagination a, .np-pagination span, .page-link, .dataTables_wrapper .dataTables_paginate .paginate_button) {
  min-width: 30px; height: 30px; padding: 0 10px; margin: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: var(--np-radius-sm); border: 1px solid transparent; background: transparent; color: var(--np-text) !important; font-size: var(--np-font-size-sm); text-decoration: none; }
:is(.np-pagination a, .page-link, .dataTables_wrapper .dataTables_paginate .paginate_button):hover { background: var(--np-surface-3); color: var(--np-strong) !important; border-color: transparent; text-decoration: none; }
:is(.np-pagination .is-active, .page-item.active .page-link, .dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover) { background: var(--np-strong); color: var(--np-on-dark) !important; border-color: var(--np-strong); }
:is(.np-pagination .is-disabled, .page-item.disabled .page-link, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover) { opacity: .45; pointer-events: none; background: transparent; color: var(--np-muted) !important; }
:is(.np-pagination .np-pagination__nav, .dataTables_wrapper .dataTables_paginate .paginate_button:is(.previous, .next)) { border-color: var(--np-border); border-radius: var(--np-radius-pill); padding: 0 14px; }

/* Phones: the pager stays on one line (Previous / Next become chevrons) */
@media (max-width: 640px) {
  .dataTables_wrapper :is(.dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate) { float: none; text-align: left; }
  .dataTables_wrapper .dataTables_paginate { justify-content: flex-start; gap: 2px; }
  .dataTables_wrapper .dataTables_paginate > span { gap: 2px; }
  .dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 28px; padding: 0 6px; }
  .dataTables_wrapper .dataTables_paginate .paginate_button:is(.previous, .next) { font-size: 0; width: 32px; padding: 0; position: relative; }
  .dataTables_wrapper .dataTables_paginate .paginate_button:is(.previous, .next)::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center / contain no-repeat; }
  .dataTables_wrapper .dataTables_paginate .paginate_button.next::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E"); }
}

/* ---------- Tabs, pills & segmented control ---------- */
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: 8px 14px; color: var(--np-text); text-decoration: none; background: none; border: 0; font-family: var(--np-font); font-size: var(--np-font-size); cursor: pointer; }
.nav-link:hover { color: var(--np-strong); text-decoration: none; }
.nav-link.disabled { pointer-events: none; opacity: .5; }
.np-tabs, .nav-tabs { display: flex; flex-wrap: nowrap; gap: 22px; border-bottom: 1px solid var(--np-border); margin-bottom: var(--np-gap); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
:is(.np-tabs, .nav-tabs)::-webkit-scrollbar { display: none; }
:is(.np-tabs, .nav-tabs) > * { flex-shrink: 0; }
.np-tabs__link, .nav-tabs .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 2px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
  font-size: var(--np-font-size); color: var(--np-text); text-decoration: none; white-space: nowrap; cursor: pointer; }
:is(.np-tabs__link, .nav-tabs .nav-link):hover { border-bottom-color: var(--np-border); text-decoration: none; }
:is(.np-tabs__link.is-active, .nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link) { border-bottom-color: var(--accent, var(--dashboard)); color: var(--np-strong); font-weight: 600; background: none; }
/* Small filters inside a card header (year / month pickers) */
.np-card-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.np-card-tools > :is(select, .select2-container) { width: 150px !important; }
/* Tabs that sit in a card header, with figures on the right */
.np-card-head--tabs { padding-top: 0; padding-bottom: 0; }
.np-card-head--tabs :is(.np-tabs, .nav-tabs) { margin: 0; border-bottom: 0; }
.np-inline-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 10px 0; font-size: var(--np-font-size-sm); color: var(--np-muted); }
.np-inline-stats strong { color: var(--np-strong); font-weight: 600; }
.nav-pills { gap: 6px; }
.nav-pills .nav-link { border: 1px solid var(--np-border); border-radius: var(--np-radius-pill); padding: 5px 14px; font-size: var(--np-font-size-sm); background: var(--np-surface); }
.nav-pills .nav-link.active { background: var(--np-strong); color: var(--np-on-dark); border-color: var(--np-strong); }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }
.np-segment { display: inline-flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0; list-style: none; padding: 3px; gap: 2px; background: var(--np-surface-3); border-radius: var(--np-radius-pill); }
.np-segment::-webkit-scrollbar { display: none; }
.np-segment > * { flex-shrink: 0; }
.np-segment__item { border: 0; background: transparent; padding: 4px 14px; border-radius: var(--np-radius-pill); font-family: var(--np-font); font-size: var(--np-font-size-sm); color: var(--np-text); cursor: pointer; text-decoration: none; }
.np-segment__item:hover { text-decoration: none; color: var(--np-strong); }
.np-segment__item:is(.is-active, .active) { background: var(--np-surface); color: var(--np-strong); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
/* Segment as a form field: full width, field height, options share the space */
.np-segment--field { display: flex; width: 100%; height: var(--np-input-h); box-sizing: border-box; }
.np-segment--field > .np-segment__item { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 10px; white-space: nowrap; }
.np-segment__item:focus-visible { outline: 2px solid var(--np-focus); outline-offset: 1px; }

.np-count--neutral { background: var(--np-surface-3); color: var(--np-text); }
.np-segment__item.is-active .np-count--neutral { background: var(--np-info-bg); color: var(--np-info-fg); }
.np-grid > .np-empty { grid-column: 1 / -1; }
.np-segment__item { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Empty state ---------- */
.np-empty { text-align: center; padding: 36px 20px; color: var(--np-muted); }
.np-empty__icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--np-surface-3); color: var(--np-muted); font-size: 22px; }
.np-empty__title { margin: 0 0 4px; font-family: var(--np-display); font-size: 16px; font-weight: 700; color: var(--np-strong); }
.np-empty__text { margin: 0 0 14px; font-size: var(--np-font-size); }
/* Strip: a bar split into coloured segments sized by share (e.g. hours per project). Segment sets --seg, --seg-text, --share. */
.np-strip { display: flex; width: 100%; min-height: 84px; border-radius: var(--np-radius); overflow: hidden; border: 1px solid var(--np-border-soft); background: var(--np-surface-2); }
.np-strip.is-scroll { overflow-x: auto; }
.np-strip__seg { flex: var(--share, 1) 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 10px; background: var(--seg, var(--np-info)); color: var(--seg-text, var(--np-on-dark)); font-size: var(--np-font-size-xs); text-align: center; }
.np-strip__seg + .np-strip__seg { border-left: 1px solid rgba(255,255,255,.35); }
.np-strip.is-scroll .np-strip__seg { flex: 0 0 calc(var(--share, 25) * 1%); min-width: 100px; }
.np-strip__seg.is-clickable { cursor: pointer; }
.np-strip__seg p { margin: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.np-strip__title { font-weight: 700; }
.np-strip__type { opacity: .8; }
.np-strip__meta { font-weight: 600; }
.np-strip__empty { flex: 1; display: grid; place-items: center; padding: 8px; color: var(--np-muted); font-size: var(--np-font-size-sm); }
.np-strip__empty--info { background: var(--np-info-bg); color: var(--np-info-fg); font-weight: 600; }
.np-strip-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: var(--np-font-size-xs); font-weight: 600; color: var(--np-text); }
/* Metric card: label, big value, a few label/value rows and a trend line; --tone colours the left edge */
.np-metric { display: flex; flex-direction: column; height: 100%; padding: 14px 16px; background: var(--np-surface); border: 1px solid var(--np-card-border); border-left: 3px solid var(--tone, var(--np-border)); border-radius: var(--np-card-radius); }
.np-metric__label { margin: 0; font-size: var(--np-font-size-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--np-muted); }
.np-metric__value { margin: 4px 0 8px; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--np-strong); font-variant-numeric: tabular-nums; }
.np-metric__rows { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0 0 10px; font-size: var(--np-font-size-sm); }
.np-metric__rows dt { font-weight: 400; color: var(--np-muted); } .np-metric__rows dd { margin: 0; font-weight: 600; color: var(--np-strong); text-align: right; }
.np-metric__note { margin: 0 0 10px; font-size: var(--np-font-size-sm); color: var(--np-muted); }
.np-metric__foot { margin: auto 0 0; padding-top: 8px; border-top: 1px solid var(--np-border-soft); font-size: var(--np-font-size-xs); font-weight: 600; }
/* Vertical steps (multi-part forms): numbered sections on the left */
.np-vsteps { display: flex; flex-direction: column; gap: 2px; counter-reset: npstep; }
.np-vsteps .nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: var(--np-radius); background: none; color: var(--np-text); font-size: var(--np-font-size); font-weight: 500; text-decoration: none; }
.np-vsteps .nav-link::before { counter-increment: npstep; content: counter(npstep); flex: 0 0 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--np-surface-3); color: var(--np-text); font-size: var(--np-font-size-xs); font-weight: 600; }
.np-vsteps .nav-link:hover { background: var(--np-surface-2); color: var(--np-strong); }
.np-vsteps .nav-link.active { background: var(--np-strong); color: var(--np-on-dark); }
.np-vsteps .nav-link.active::before { background: rgba(255,255,255,.18); color: var(--np-on-dark); }
.np-vsteps .nav-link.active .np-pill { background: rgba(255,255,255,.18) !important; color: var(--np-on-dark); }
.np-vsteps__label { flex: 1; min-width: 0; line-height: 1.25; }
/* Section heading inside a form card or tab */
.np-pane-title { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--np-border-soft); font-size: 16px; font-weight: 700; color: var(--np-strong); }
/* Save bar: sticks to the bottom of a long form */
.np-save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 14px var(--np-card-pad); background: var(--np-surface); border-top: 1px solid var(--np-border-soft); }
.np-save-bar__group { display: flex; gap: 8px; }
@media (max-width: 575px) { .np-save-bar { flex-direction: column-reverse; align-items: stretch; } .np-save-bar__group > .btn { flex: 1; } }
/* Profile photo: round picture with a camera button (the file picker sits invisibly on the button) */
.np-photo { display: flex; align-items: center; gap: 16px; }
.np-photo__media { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.np-photo__media img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1px solid var(--np-border-soft); background: var(--np-surface-3); }
.np-photo__btn { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; margin: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--np-strong); color: var(--np-on-dark); border: 2px solid var(--np-surface); cursor: pointer; }
.np-photo__btn input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.np-photo__info { min-width: 0; }
.np-photo--sm .np-photo__media { width: 64px; height: 64px; }
.np-photo--sm .np-photo__btn { width: 28px; height: 28px; }
.np-photo__name { margin: 0; font-weight: 600; color: var(--np-strong); }
.np-photo__meta { margin: 0 0 8px; font-size: var(--np-font-size-sm); color: var(--np-muted); }
/* Logo upload: current logo preview + remove button, above the file picker */
.np-logo-field { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.np-logo-preview { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 56px; padding: 8px 12px; border: 1px solid var(--np-border-soft); border-radius: var(--np-radius); background: var(--np-surface-2); }
.np-logo-preview img { max-height: 40px; max-width: 160px; width: auto; height: auto; }
/* A document (PDF) shown inside a page */
.np-doc-frame { display: block; width: 100%; height: 80vh; border: 0; border-radius: var(--np-card-radius); }
/* An icon that acts as a button inside a form row */
.np-icon-action { font-size: 20px; color: var(--np-link); cursor: pointer; }
.np-icon-action:hover { color: var(--np-strong); }

/* ---------- Avatar ---------- */
.np-avatar { --size: 36px; width: var(--size); height: var(--size); border-radius: 50%; flex-shrink: 0; overflow: hidden; display: inline-grid; place-items: center;
  background: var(--tone, var(--invoicing)); color: var(--np-on-dark); font-size: calc(var(--size) * .38); font-weight: 600; font-family: var(--np-font); }
.np-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-avatar--sm { --size: 28px; } .np-avatar--lg { --size: 48px; } .np-avatar--xl { --size: 72px; }
.np-avatar--more { background: var(--np-surface-3); color: var(--np-text); font-size: 11px; }
.np-avatar:has(> img) { background: var(--np-surface-3); }
.np-avatar-group { display: inline-flex; }
.np-avatar-group .np-avatar { border: 2px solid var(--np-surface); }
.np-avatar-group .np-avatar + .np-avatar { margin-left: -8px; }

img.np-avatar { object-fit: cover; display: block; }

/* ---------- List items (people, notifications) ---------- */
.np-list, .list-group { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.np-list__item, .list-group-item { display: flex; align-items: center; gap: 12px; padding: 10px var(--np-card-pad); border-bottom: 1px solid var(--np-border-soft); color: var(--np-text); background: transparent; }
.list-group-item { justify-content: space-between; }
:is(.np-list__item, .list-group-item):last-child { border-bottom: 0; }
.np-list__main { flex: 1; min-width: 0; }
.np-list__title { margin: 0; font-weight: 600; color: var(--np-strong); font-size: var(--np-font-size); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-list__meta { margin: 0; font-size: var(--np-font-size-xs); color: var(--np-muted); }
.np-list__item.is-unread { background: color-mix(in srgb, var(--np-info-bg) 60%, var(--np-surface)); }

/* ---------- Pop-up: native <dialog> (np-modal) and Bootstrap .modal ---------- */
dialog.np-modal { border: 0; padding: 0; border-radius: var(--np-modal-radius); box-shadow: var(--np-shadow-lg); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: var(--np-surface); color: var(--np-text); font-family: var(--np-font); font-size: var(--np-font-size); }
dialog.np-modal--lg { width: min(820px, calc(100vw - 32px)); }
dialog.np-modal::backdrop { background: var(--np-overlay); }
.modal { position: fixed; inset: 0; z-index: 1055; display: none; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; }
.modal-dialog { position: relative; width: auto; max-width: 500px; margin: 28px auto; pointer-events: none; }
.modal.fade .modal-dialog { transition: transform .2s ease-out; transform: translateY(-24px); }
.modal.show .modal-dialog { transform: none; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 56px); }
.modal-dialog-scrollable { height: calc(100% - 56px); }
.modal-dialog-scrollable .modal-content { max-height: 100%; overflow: hidden; }
.modal-dialog-scrollable .modal-body { overflow-y: auto; }
.modal-sm { max-width: 320px; } .modal-lg { max-width: 820px; } .modal-xl { max-width: 1140px; }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; background: var(--np-surface); border: 0; border-radius: var(--np-modal-radius); box-shadow: var(--np-shadow-lg); outline: 0; color: var(--np-text); }
.modal-backdrop { position: fixed; top: 0; left: 0; z-index: 1050; width: 100vw; height: 100vh; background: var(--np-overlay); }
.modal-backdrop.fade { opacity: 0; } .modal-backdrop.show { opacity: 1; }
.np-modal__head, .modal-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--np-modal-pad); border-bottom: 1px solid var(--np-border); }
.np-modal__title, .modal-title { margin: 0; font-family: var(--np-display); font-size: 18px; font-weight: 700; color: var(--np-strong); line-height: 1.3; }
.np-modal__body, .modal-body { position: relative; flex: 1 1 auto; padding: var(--np-modal-pad); overflow-y: auto; }
.np-modal__foot, .modal-footer { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px var(--np-modal-pad); border-top: 1px solid var(--np-border); }
@media (max-width: 575px) { .modal-dialog { margin: 12px; } }

/* ---------- Dropdown: <details> (np-dropdown) and Bootstrap .dropdown-menu ---------- */
.np-dropdown { position: relative; display: inline-block; }
.np-dropdown > summary { list-style: none; cursor: pointer; }
.np-dropdown > summary::-webkit-details-marker { display: none; }
.dropdown, .dropup, .dropend, .dropstart { position: relative; }
.dropdown-toggle { white-space: nowrap; }
.dropdown-toggle::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 2px; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat; }
.np-dropdown__menu, .dropdown-menu { position: absolute; z-index: 1000; min-width: 180px; padding: 4px 0; margin: 0; list-style: none; text-align: left;
  background: var(--np-surface); border: 1px solid var(--np-border); border-radius: var(--np-radius); box-shadow: var(--np-shadow); font-size: var(--np-font-size); color: var(--np-text); }
.np-dropdown__menu { right: 0; top: calc(100% + 6px); }
.np-dropdown--left .np-dropdown__menu { right: auto; left: 0; }
.dropdown-menu { display: none; }
.dropdown-menu.show { display: block; }
.dropdown-menu[data-bs-popper] { top: 100%; left: 0; margin-top: 4px; }
.dropdown-menu-end[data-bs-popper] { right: 0; left: auto; }
.np-dropdown__item, .dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 14px; border: 0; background: none; text-align: left; clear: both; white-space: nowrap;
  font-family: var(--np-font); font-size: var(--np-font-size); font-weight: 400; color: var(--np-text); text-decoration: none; cursor: pointer; }
:is(.np-dropdown__item, .dropdown-item):is(:hover, :focus-visible) { background: var(--np-surface-2); color: var(--np-strong); text-decoration: none; }
.dropdown-item.active { background: var(--np-surface-3); color: var(--np-strong); }
.np-dropdown__item--danger { color: var(--np-danger); }
.np-dropdown__sep, .dropdown-divider { height: 0; border-top: 1px solid var(--np-border-soft); margin: 4px 0; }
.dropdown-header { display: block; padding: 6px 14px; font-size: var(--np-font-size-xs); font-weight: 600; color: var(--np-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Progress, steps, timeline ---------- */
.np-progress, .progress { display: flex; height: 8px; border-radius: 999px; background: var(--np-surface-3); overflow: hidden; }
.np-progress__bar, .progress-bar { height: 100%; width: var(--value, 0%); background: var(--tone, var(--np-ok)); border-radius: inherit; transition: width .3s; display: flex; align-items: center; justify-content: center; color: var(--np-on-dark); font-size: 10px; white-space: nowrap; }
.np-progress-label { display: flex; justify-content: space-between; font-size: var(--np-font-size-xs); color: var(--np-muted); margin-bottom: 6px; }
.np-steps { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: np-step; }
.np-steps__item { flex: 1; display: flex; align-items: center; gap: 8px; font-size: var(--np-font-size-sm); color: var(--np-muted); counter-increment: np-step; min-width: 0; }
.np-steps__item::before { content: counter(np-step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--np-border); background: var(--np-surface); font-weight: 600; font-size: 12px; }
.np-steps__item:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--np-border); margin: 0 8px; }
.np-steps__item.is-done::before { content: "✓"; background: var(--np-ok); border-color: var(--np-ok); color: var(--np-on-dark); }
.np-steps__item.is-current { color: var(--np-strong); font-weight: 600; }
.np-steps__item.is-current::before { border-color: var(--np-strong); background: var(--np-strong); color: var(--np-on-dark); }
.np-timeline { list-style: none; margin: 0; padding: 0; }
.np-timeline__item { position: relative; padding: 0 0 16px 22px; }
.np-timeline__item::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--tone, var(--np-info)); }
.np-timeline__item:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 2px; width: 1px; background: var(--np-border); }
.np-timeline__title { margin: 0; font-weight: 600; color: var(--np-strong); }
.np-timeline__meta { margin: 2px 0 0; font-size: var(--np-font-size-xs); color: var(--np-muted); }
/* Text written in the rich-text editor, shown on a page */
.np-rich { color: var(--np-text); line-height: 1.6; }
.np-rich > :last-child { margin-bottom: 0; }
.np-rich :is(ul, ol) { margin: 0 0 .5em; padding-left: 20px; }
.np-rich p { margin: 0 0 .5em; }

/* ---------- Key / value list ---------- */
.np-kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 20px; margin: 0; font-size: var(--np-font-size); }
.np-kv dt { color: var(--np-muted); font-weight: 400; }
.np-kv dd { margin: 0; color: var(--np-strong); min-width: 0; overflow-wrap: anywhere; }
.np-kv dt.np-kv__group { grid-column: 1 / -1; margin-top: 8px; font-weight: 600; color: var(--np-strong); }

/* ---------- Accordion (no script: <details>) ---------- */
.np-accordion { border: 1px solid var(--np-card-border); border-radius: var(--np-card-radius); background: var(--np-surface); overflow: hidden; }
.np-accordion details + details { border-top: 1px solid var(--np-border-soft); }
.np-accordion summary { cursor: pointer; padding: 12px var(--np-card-pad); font-weight: 600; color: var(--np-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.np-accordion summary::-webkit-details-marker { display: none; }
.np-accordion summary::after { content: "+"; color: var(--np-muted); font-weight: 400; font-size: 18px; }
.np-accordion details[open] summary::after { content: "–"; }
.np-accordion__body { padding: 0 var(--np-card-pad) 14px; color: var(--np-text); }

/* ---------- Tooltip ---------- */
[data-np-tip] { position: relative; }
[data-np-tip]:hover::after, [data-np-tip]:focus-visible::after {
  content: attr(data-np-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 70;
  background: var(--np-strong); color: var(--np-on-dark); font-size: var(--np-font-size-xs); font-weight: 500; line-height: 1.4;
  padding: 5px 9px; border-radius: var(--np-radius-sm); white-space: nowrap; pointer-events: none; }
.tooltip { position: absolute; z-index: 1080; display: block; font-family: var(--np-font); font-size: var(--np-font-size-xs); word-wrap: break-word; opacity: 0; }
.tooltip.show { opacity: 1; }
.tooltip-inner { max-width: 240px; padding: 5px 9px; color: var(--np-on-dark); background: var(--np-strong); border-radius: var(--np-radius-sm); text-align: center; }
.tooltip .tooltip-arrow { display: none; }

/* ---------- Loading: skeleton & spinner ---------- */
.np-skeleton { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--np-surface-3) 25%, var(--np-surface-2) 50%, var(--np-surface-3) 75%); background-size: 200% 100%; animation: np-shimmer 1.2s infinite; }
.np-skeleton + .np-skeleton { margin-top: 8px; }
.np-skeleton--title { height: 18px; width: 40%; }
.np-skeleton--circle { width: 36px; height: 36px; border-radius: 50%; }
.np-spinner, .spinner-border { display: inline-block; width: 20px; height: 20px; vertical-align: middle; border-radius: 50%; border: 2px solid var(--np-border); border-top-color: var(--np-strong); animation: np-spin .7s linear infinite; }
/* Full-screen loading layer while a report loads */
.np-loading-screen { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: color-mix(in srgb, var(--np-surface) 70%, transparent); }
.np-loading-screen .np-spinner { width: 32px; height: 32px; border-width: 3px; }
.spinner-border-sm { width: 14px; height: 14px; }
@keyframes np-spin { to { transform: rotate(360deg); } }
@keyframes np-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .np-skeleton, .np-spinner, .spinner-border, .np-btn.is-loading::before { animation: none; } }

/* ---------- Toast (NP.toast and toastr) ---------- */
.np-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100000; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.np-toast, #toast-container > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--np-radius); background: var(--np-surface); color: var(--np-text);
  box-shadow: inset 4px 0 0 var(--tone, var(--np-info)), var(--np-shadow-lg); font-family: var(--np-font); font-size: var(--np-font-size); animation: np-toast-in .2s ease-out; opacity: 1; }
#toast-container > div { display: block; width: 340px; padding: 12px 16px 12px 18px; }
#toast-container > div:hover { box-shadow: inset 4px 0 0 var(--tone, var(--np-info)), var(--np-shadow-lg); opacity: 1; }
.np-toast--ok, #toast-container > .toast-success { --tone: var(--np-ok); }
.np-toast--warn, #toast-container > .toast-warning { --tone: var(--np-warn); }
.np-toast--danger, #toast-container > .toast-error { --tone: var(--np-danger); }
#toast-container .toast-title { font-weight: 600; color: var(--np-strong); }
#toast-container .toast-message { color: var(--np-text); }
#toast-container .toast-close-button { color: var(--np-muted); text-shadow: none; opacity: .8; }
#toast-container .toast-progress { background: var(--tone, var(--np-info)); opacity: .5; }
@keyframes np-toast-in { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Upload area ---------- */
.np-dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; text-align: center; cursor: pointer; position: relative;
  border: 1.5px dashed var(--np-border); border-radius: var(--np-card-radius); background: var(--np-surface-2); color: var(--np-muted); font-size: var(--np-font-size-sm); }
.np-dropzone:hover, .np-dropzone.is-over { border-color: var(--np-focus); background: var(--np-info-bg); color: var(--np-info-fg); }
.np-dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.np-dropzone__title { font-weight: 600; color: var(--np-strong); }
.np-dropzone .np-i { font-size: 24px; }

/* ---------- Chip / tag ---------- */
.np-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--np-radius-pill); border: 1px solid var(--np-border);
  background: var(--np-surface); font-size: var(--np-font-size-sm); color: var(--np-text); }
.np-chip__x { border: 0; background: none; padding: 0; color: var(--np-muted); cursor: pointer; font-size: 15px; line-height: 1; }
.np-chip__x:hover { color: var(--np-danger); }
.np-chip.is-selected { background: var(--np-strong); border-color: var(--np-strong); color: var(--np-on-dark); }

/* ---------- Rating (KPI-style 0–10 or stars) ---------- */
.np-rating { display: inline-flex; gap: 3px; }
.np-rating__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--np-surface-3); }
.np-rating__dot.is-on { background: var(--tone, var(--np-ok)); }
.np-rating--stars .np-rating__dot { width: 16px; height: 16px; border-radius: 0; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.np-rating--stars .np-rating__dot.is-on { background: var(--projects); }

/* ---------- Colour swatch ---------- */
.np-swatch { display: inline-flex; flex-direction: column; gap: 6px; font-size: var(--np-font-size-xs); color: var(--np-muted); min-width: 0; }
.np-swatch__chip { height: 44px; border-radius: var(--np-radius-sm); border: 1px solid rgba(0,0,0,.08); background: var(--swatch); }
.np-swatch b { color: var(--np-strong); font-weight: 600; font-size: var(--np-font-size-sm); }
.np-swatch code { font-size: 11px; color: var(--np-muted); background: none; padding: 0; word-break: break-all; }

.np-color-chip { display: inline-block; width: 40px; height: 20px; vertical-align: middle; border-radius: var(--np-radius-sm); border: 1px solid rgba(0,0,0,.08); background: var(--chip, var(--np-surface-3)); }

/* ---------- Code block (Design Kit) ---------- */
.np-code { position: relative; margin: 0; padding: 12px 14px; border-radius: var(--np-radius); background: var(--np-strong); color: var(--np-surface-3);
  font-family: var(--np-font); font-size: 12.5px; line-height: 1.55; overflow-x: auto; white-space: pre; }
.np-code__copy { position: absolute; top: 8px; right: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--np-on-dark);
  border-radius: 999px; font-size: 11.5px; padding: 2px 10px; cursor: pointer; font-family: var(--np-font); }
.np-code__copy:hover { background: rgba(255,255,255,.18); }

/* ---------- Behaviour helpers (show / hide / animate) ---------- */
.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }
.collapse:not(.show) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height .25s ease; }

.np-enter { animation: np-enter .3s ease; }
@keyframes np-enter { from { opacity: .3; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .np-enter { animation: none; } }

/* ---------- Plugins (Select2, date & time pickers, calendar, SweetAlert) ---------- */
/* Rich-text editor (CKEditor 4) */
.cke_chrome { border: 1px solid var(--np-border) !important; border-radius: var(--np-input-radius); overflow: hidden; box-shadow: none !important; }
.cke_top { padding: 6px 6px 2px !important; border-bottom: 1px solid var(--np-border-soft) !important; background: var(--np-surface-2) !important; box-shadow: none !important; }
.cke_bottom { padding: 4px 8px !important; border-top: 1px solid var(--np-border-soft) !important; background: var(--np-surface-2) !important; }
.cke_toolgroup { border: 0 !important; background: transparent !important; margin: 0 6px 4px 0 !important; }
a.cke_button, .cke_combo_button { border-radius: var(--np-radius-sm) !important; }
a.cke_button:hover, a.cke_button_on, .cke_combo_button:hover { background: var(--np-surface-3) !important; border-color: transparent !important; box-shadow: none !important; }
.cke_combo_text { font-size: var(--np-font-size-xs) !important; color: var(--np-text) !important; }
.cke_button_label { color: var(--np-text) !important; }
.cke_toolbar_separator { background: var(--np-border) !important; }
.cke_reset_all, .cke_reset_all *:not(.cke_button_icon) { font-family: var(--np-font) !important; }
.cke_focus { border-color: var(--np-focus) !important; box-shadow: 0 0 0 3px var(--np-focus-ring) !important; }
.select2-container { font-family: var(--np-font); font-size: var(--np-input-font-size); }
.select2-container--default :is(.select2-selection--single, .select2-selection--multiple) { min-height: var(--np-input-h); height: auto; border: 1px solid var(--np-border); border-radius: var(--np-input-radius); background: var(--np-surface); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: calc(var(--np-input-h) - 2px); padding-left: 12px; padding-right: 34px; color: var(--np-strong); }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--np-faint); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: calc(var(--np-input-h) - 2px); right: 8px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.select2-container--default .select2-selection--single .select2-selection__arrow { width: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F7376' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / 16px; }
.select2-container--open .select2-selection--single .select2-selection__arrow { transform: rotate(180deg); }
.select2-container--default:is(.select2-container--focus, .select2-container--open) :is(.select2-selection--single, .select2-selection--multiple) { border-color: var(--np-focus); box-shadow: 0 0 0 3px var(--np-focus-ring); }
.select2-container--default .select2-selection--multiple .select2-selection__rendered { padding: 2px 8px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--np-neutral-bg); border: 0; border-radius: 999px; color: var(--np-text); font-size: 12.5px; padding: 2px 10px; margin-top: 6px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--np-muted); margin-right: 4px; }
.select2-container--default.select2-container--disabled :is(.select2-selection--single, .select2-selection--multiple) { background: var(--np-surface-2); }
.select2-container--default.select2-container--disabled .select2-selection__rendered { color: var(--np-muted); }
.select2-container--default.select2-container--disabled .select2-selection { cursor: not-allowed; }
.select2-dropdown { border: 1px solid var(--np-border); border-radius: var(--np-radius); box-shadow: var(--np-shadow); overflow: hidden; font-family: var(--np-font); font-size: var(--np-font-size); background: var(--np-surface); }
.select2-container--default .select2-results__option { padding: 8px 12px; color: var(--np-text); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--np-surface-2); color: var(--np-strong); }
.select2-container--default .select2-results__option[aria-selected=true] { background: var(--np-info-bg); color: var(--np-info-fg); }
.select2-search--dropdown .select2-search__field { border: 1px solid var(--np-border); border-radius: var(--np-radius-sm); padding: 6px 10px; font-family: var(--np-font); font-size: var(--np-font-size); }
.select2-container--default .select2-search--dropdown .select2-search__field:focus { outline: none; border-color: var(--np-focus); }

:is(.datepicker.dropdown-menu, .daterangepicker, .bootstrap-timepicker-widget.dropdown-menu) { border: 1px solid var(--np-border); border-radius: var(--np-radius); box-shadow: var(--np-shadow); font-family: var(--np-font); font-size: var(--np-font-size-sm); padding: 8px; color: var(--np-text); background: var(--np-surface); }
.bootstrap-timepicker-widget.dropdown-menu { display: none; }
.bootstrap-timepicker-widget.dropdown-menu.open { display: inline-block; }
.datepicker table tr :is(td, th) { border-radius: var(--np-radius-sm); width: 32px; height: 30px; }
.datepicker table tr td:is(.active, .active:hover, .active.active, .selected), .daterangepicker td.active, .daterangepicker td.active:hover { background: var(--np-strong) !important; background-image: none !important; color: var(--np-on-dark) !important; text-shadow: none; }
.datepicker table tr td.today { background: var(--np-info-bg); background-image: none; color: var(--np-info-fg); }
.datepicker table tr td:is(.day:hover, .focused), .datepicker table tr td span:hover { background: var(--np-surface-3); }
.datepicker table tr td span.active { background: var(--np-strong) !important; background-image: none !important; color: var(--np-on-dark); }
.daterangepicker td.in-range { background: var(--np-info-bg); color: var(--np-info-fg); }
.daterangepicker .ranges li.active { background: var(--np-strong); color: var(--np-on-dark); }
.daterangepicker .drp-buttons .btn { font-size: var(--np-font-size-sm); }
.bootstrap-timepicker-widget table td input { border: 1px solid var(--np-border); border-radius: var(--np-radius-sm); font-family: var(--np-font); width: 36px; }
.bootstrap-timepicker-widget table td a { color: var(--np-text); border-radius: var(--np-radius-sm); }
.bootstrap-timepicker-widget table td a:hover { background: var(--np-surface-3); }
.bootstrap-timepicker-widget .glyphicon-chevron-up, .bootstrap-timepicker-widget .glyphicon-chevron-down { display: inline-block; width: 14px; height: 14px; background: currentColor; }
.bootstrap-timepicker-widget .glyphicon-chevron-up { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E") center / contain no-repeat; }
.bootstrap-timepicker-widget .glyphicon-chevron-down { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat; }

.fc { font-family: var(--np-font); font-size: var(--np-font-size-sm); }
.fc :is(th, td), .fc .fc-scrollgrid, .fc-unthemed :is(th, td, thead, tbody, .fc-divider, .fc-row, .fc-content, .fc-popover, .fc-list-view, .fc-list-heading td) { border-color: var(--np-border); }
/* Calendar event card (leave / WFH / holiday chips inside FullCalendar days) */
.fc-event:has(.np-cal-event) { margin-bottom: 4px; border: 0 !important; background: transparent !important; cursor: default; }
.np-cal-event { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid var(--np-border); border-radius: var(--np-radius-sm); background: var(--np-surface); font-size: var(--np-font-size-xs); line-height: 1.2; color: var(--np-text); white-space: normal; }
.np-cal-event--ok { background: var(--np-ok-bg); border-color: var(--np-ok-border); }
.np-cal-event--warn { background: var(--np-warn-bg); border-color: var(--np-warn-border); }
.np-cal-event--info { background: var(--np-info-bg); border-color: var(--np-info-border); }
.np-cal-event--holiday { background: var(--np-purple-bg); border-color: var(--np-purple-bg); }
.np-cal-event__icon { flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; }
.np-cal-event__icon img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.np-cal-event__icon .np-i { font-size: 15px; color: var(--np-muted); }
.np-cal-event__body { flex: 1; min-width: 0; }
.np-cal-event__name { font-weight: 600; color: var(--np-strong); overflow: hidden; text-overflow: ellipsis; }
.np-cal-event__meta { color: var(--np-muted); }
.fc :is(.fc-col-header-cell, .fc-day-header) { background: var(--np-surface-2); font-weight: 600; font-size: var(--np-font-size-xs); padding: 6px 0; }
.fc .fc-toolbar-title, .fc-toolbar h2 { font-family: var(--np-display); font-size: 18px; color: var(--np-strong); }
.fc :is(.fc-button, .fc-button-primary, .fc-state-default) { background: var(--np-surface); border: 1px solid var(--np-border); color: var(--np-text); border-radius: var(--np-radius-pill); box-shadow: none; text-transform: none; font-size: var(--np-font-size-sm); padding: 4px 12px; height: auto; text-shadow: none; background-image: none; }
.fc :is(.fc-button-active, .fc-state-active, .fc-button.active) { background: var(--np-strong); color: var(--np-on-dark); border-color: var(--np-strong); }
.fc :is(.fc-day-today, .fc-today) { background: var(--np-info-bg) !important; }
.fc-event { border-radius: 4px; font-size: 12px; }

.swal2-popup { width: 26em; border-radius: var(--np-modal-radius); font-family: var(--np-font); padding: 24px; color: var(--np-text); }
.swal2-popup .swal2-title { font-family: var(--np-display); font-size: 18px; font-weight: 700; color: var(--np-strong); margin: 0 0 6px; }
.swal2-popup :is(.swal2-html-container, .swal2-content) { font-size: var(--np-font-size); font-weight: 400; line-height: 1.5; color: var(--np-text); }
.swal2-popup .swal2-icon { font-size: 10px; margin: 4px auto 16px; }
.swal2-popup .swal2-icon.swal2-warning { border-color: var(--np-warn-border); color: var(--np-warn); }
.swal2-popup .swal2-icon.swal2-error { border-color: var(--np-danger-border); }
.swal2-popup .swal2-icon.swal2-error [class^=swal2-x-mark-line] { background-color: var(--np-danger); }
.swal2-popup .swal2-icon:is(.swal2-info, .swal2-question) { border-color: var(--np-info-border); color: var(--np-info); }
.swal2-popup .swal2-icon.swal2-success { border-color: var(--np-ok-border); }
.swal2-popup .swal2-icon.swal2-success [class^=swal2-success-line] { background-color: var(--np-ok); }
.swal2-popup .swal2-icon.swal2-success .swal2-success-ring { border-color: var(--np-ok-border); }
.swal2-popup .swal2-actions { margin-top: 20px; }
.swal2-actions { gap: 8px; }
.swal2-styled { border-radius: var(--np-radius-pill) !important; font-size: var(--np-font-size) !important; font-weight: 500; padding: 6px 18px !important; box-shadow: none !important; margin: 0 !important; }
.swal2-styled.swal2-confirm { background: var(--np-primary) !important; }
.swal2-styled.swal2-cancel { background: var(--np-surface) !important; color: var(--np-text) !important; border: 1px solid var(--np-border) !important; }
.swal2-styled.swal2-deny { background: var(--np-danger) !important; }

/* ---------- Row card (summary row that opens: KPI cycles / results / reviews) ---------- */
.np-rowcard { background: var(--np-surface); border: 1px solid var(--np-card-border); border-radius: var(--np-card-radius); overflow: hidden; margin-bottom: 10px; }
.np-rowcard__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; padding: 14px 18px; border-left: 5px solid var(--tone, var(--np-border)); cursor: pointer; }
.np-rowcard__row:hover { background: var(--np-surface-2); }
.np-rowcard__col { padding: 0 20px; min-width: 0; }
.np-rowcard__col:first-child { padding-left: 0; }
.np-rowcard__label { margin: 0 0 4px; font-size: var(--np-font-size-xs); font-weight: 600; color: var(--np-muted); }
.np-rowcard__value { margin: 0; font-size: 18px; font-weight: 700; color: var(--np-strong); font-variant-numeric: tabular-nums; }
.np-rowcard__value--big { font-size: 28px; line-height: 1; }
.np-rowcard__value small { font-size: var(--np-font-size); font-weight: 600; color: var(--np-muted); }
.np-rowcard__value--sub { font-size: 15px; font-weight: 600; color: var(--np-text); }
.np-rowcard__sep { width: 1px; align-self: stretch; margin: 4px 0; background: var(--np-border-soft); }
.np-rowcard__caret { margin-left: auto; padding-left: 12px; font-size: 18px; color: var(--np-muted); transition: transform .2s ease; }
.np-rowcard.is-open .np-rowcard__caret, .np-rowcard__row.is-open .np-rowcard__caret { transform: rotate(180deg); }
.np-rowcard__body { display: none; border-top: 1px solid var(--np-border-soft); }
.np-rowcard.is-open > .np-rowcard__body { display: block; }

/* ---------- Tone helper: any component that reads --tone (stat icon, stripe, progress, dot) ---------- */
.np-tone--ok { --tone: var(--np-ok); } .np-tone--warn { --tone: var(--np-warn); } .np-tone--danger { --tone: var(--np-danger); }
.np-tone--info { --tone: var(--np-info); } .np-tone--purple { --tone: var(--np-purple-fg); } .np-tone--neutral { --tone: var(--np-faint); }
/* Section-palette tones (charts, legends) */
.np-tone--dashboard { --tone: var(--dashboard); } .np-tone--invoicing { --tone: var(--invoicing); } .np-tone--hrm { --tone: var(--hrm); } .np-tone--crm { --tone: var(--crm); }
.np-tone--sales { --tone: var(--sales); } .np-tone--projects { --tone: var(--projects); } .np-tone--hours { --tone: var(--hours); } .np-tone--settings { --tone: var(--settings); }

/* ---------- Stat, soft variant (tinted box, coloured number) and stat grid ---------- */
.np-stat--soft { border-color: transparent; background: color-mix(in srgb, var(--tone, var(--np-faint)) 10%, var(--np-surface)); }
.np-stat--soft .np-stat__value { color: color-mix(in srgb, var(--tone, var(--np-strong)) 80%, var(--np-strong)); }
.np-stat--compact { padding: 10px 12px; }
.np-stat--compact .np-stat__value { font-size: 22px; }
.np-stat__label--caps { text-transform: uppercase; letter-spacing: .03em; font-size: var(--np-font-size-xs); }
.np-grid--5 { --cols: 5; }
@media (max-width: 1100px) { .np-grid--5 { --cols: 3; } }

/* ---------- Bars: vertical (trend) and horizontal (distribution) ---------- */
.np-bars { display: flex; align-items: flex-end; gap: 14px; height: 140px; padding-top: 10px; }
.np-bars__bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; text-align: center; }
.np-bars__fill { width: 38px; max-width: 100%; height: var(--value, 0%); min-height: 2px; border-radius: 6px 6px 0 0; background: var(--tone, var(--np-info)); }
.np-bars__val { margin-bottom: 4px; font-size: var(--np-font-size-xs); font-weight: 700; color: var(--np-strong); }
.np-bars__lab { margin-top: 6px; font-size: 11px; color: var(--np-muted); }
.np-hbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: var(--np-font-size-sm); }
.np-hbar__lab { width: 120px; flex-shrink: 0; color: var(--np-text); }
.np-hbar__track { flex: 1; height: 14px; border-radius: 6px; background: var(--np-surface-3); overflow: hidden; }
.np-hbar__fill { height: 100%; width: var(--value, 0%); border-radius: inherit; background: var(--tone, var(--np-ok)); }
.np-hbar__val { width: 36px; text-align: right; font-size: var(--np-font-size-xs); font-weight: 700; color: var(--np-strong); }

/* ---------- Ring (progress circle with the value in the middle) ---------- */
.np-ring { --size: 96px; position: relative; width: var(--size); height: var(--size); flex-shrink: 0; border-radius: 50%;
  background: conic-gradient(var(--tone, var(--np-ok)) calc(var(--value, 0) * 1%), var(--np-surface-3) 0); }
.np-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--np-surface); }
.np-ring__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.np-ring__c b { font-size: 18px; font-weight: 700; line-height: 1; color: var(--np-strong); }
.np-ring__c span { margin-top: 2px; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--np-muted); text-transform: uppercase; }

/* ---------- Time bar (a day split into worked segments) ---------- */
.np-timebar { position: relative; height: 10px; border-radius: 6px; overflow: hidden; background: var(--np-surface-3); }
.np-timebar > i { position: absolute; top: 0; bottom: 0; left: var(--start, 0%); width: var(--value, 0%); background: var(--tone, var(--np-ok)); }
.np-timebar-labels { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 10px; font-weight: 600; color: var(--np-faint); }

/* ---------- Person card (photo, name, role, status strip, tags) ---------- */
.np-person { background: var(--np-surface); border: 1px solid var(--np-card-border); border-radius: var(--np-card-radius); overflow: hidden; text-align: center; min-width: 0; }
.np-person__status { padding: 7px 6px; font-size: var(--np-font-size-sm); font-weight: 500; background: color-mix(in srgb, var(--tone, var(--np-faint)) 16%, var(--np-surface)); color: color-mix(in srgb, var(--tone, var(--np-muted)) 75%, var(--np-strong)); }
.np-person__body { padding: 18px 12px 20px; }
.np-person__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--np-surface-3); background: var(--np-surface-3); display: block; margin: 0 auto; }
.np-person__name { margin: 12px 0 2px; font-size: 15px; font-weight: 600; color: var(--np-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-person__meta { min-height: 20px; font-size: var(--np-font-size-sm); color: var(--np-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-person__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 22px; margin-top: 10px; }

/* ---------- Reminder (x-np.reminder: calm card in the corner, with a close button and a short list; components.js lifts it above a .np-save-bar) ---------- */
.np-reminder { position: fixed; right: 24px; bottom: 24px; z-index: 1040; width: 330px; max-width: calc(100vw - 24px); overflow: hidden;
  background: var(--np-surface); border: 1px solid var(--np-warn-border); border-radius: var(--np-radius-lg); box-shadow: var(--np-shadow); font-family: var(--np-font); }
.np-reminder--inline { position: static; z-index: auto; }
.np-reminder__head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 10px 12px 16px; background: var(--np-warn-bg); }
.np-reminder__icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--np-surface); color: var(--np-warn); font-size: 20px; }
.np-reminder__body { flex: 1; min-width: 0; }
.np-reminder__title { margin: 0; font-size: var(--np-font-size); font-weight: 600; color: var(--np-strong); }
.np-reminder__text { margin: 2px 0 0; font-size: var(--np-font-size-sm); color: var(--np-warn-fg); }
.np-reminder__close { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--np-radius-sm); background: transparent; color: var(--np-warn-fg); font-size: 18px; cursor: pointer; }
.np-reminder__close:hover { background: color-mix(in srgb, var(--np-warn) 12%, transparent); }
.np-reminder__close:focus-visible { outline: 2px solid var(--np-focus); outline-offset: 1px; }
.np-reminder__list { margin: 0; padding: 0; list-style: none; max-height: 220px; overflow-y: auto; }
.np-reminder__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 16px; border-top: 1px solid var(--np-border-soft); font-size: var(--np-font-size-sm); color: var(--np-text); }
@media (max-width: 900px) { .np-reminder { right: 12px; bottom: 12px; } }
@media (max-width: 575px) { .np-reminder { width: calc(100vw - 24px); } }

/* Action required — <x-np.action>: a must-do block at the top of a page (company documents to acknowledge).
   Tone from .np-tone--* (amber by default). Not dismissible — it goes away when the work is done. */
.np-action { --tone: var(--np-warn); margin-bottom: var(--np-gap); overflow: hidden; background: var(--np-surface); border: 1px solid var(--np-warn-border); border-left: 5px solid var(--tone); border-radius: var(--np-radius-lg); }
.np-action__head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: var(--np-warn-bg); }
.np-action__icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tone); color: var(--np-on-dark); font-size: 20px; }
.np-action__body { flex: 1; min-width: 0; }
.np-action__label { display: block; font-size: var(--np-font-size-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--np-warn-fg); }
.np-action__title { margin: 2px 0 0; font-size: calc(var(--np-font-size) + 2px); font-weight: 700; color: var(--np-strong); }
.np-action__text { margin: 2px 0 0; font-size: var(--np-font-size-sm); color: var(--np-warn-fg); }
.np-action__list { margin: 0; padding: 0; list-style: none; }
.np-action__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--np-border-soft); }
.np-action__item-body { min-width: 0; display: flex; flex-direction: column; }
.np-action__name { font-weight: 600; color: var(--np-strong); overflow-wrap: anywhere; }
.np-action__meta { font-size: var(--np-font-size-xs); color: var(--np-muted); }
.np-action .btn-tone { flex-shrink: 0; background: var(--tone); border-color: var(--tone); color: var(--np-on-dark); }
.np-action .btn-tone:is(:hover, :focus) { background: color-mix(in srgb, var(--tone) 80%, var(--np-strong)); border-color: color-mix(in srgb, var(--tone) 80%, var(--np-strong)); color: var(--np-on-dark); }
@media (max-width: 575px) { .np-action__item { flex-wrap: wrap; } .np-action__item .btn-tone { width: 100%; } }

/* Dashboard "Latest company documents" card (no-portal-ui/partials/dash-company-documents) */
.cd-dash__row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--np-border-soft); text-decoration: none; color: inherit; }
.cd-dash__row:first-of-type { border-top: 0; }
.cd-dash__title { font-weight: 600; }
.cd-dash__row:hover .cd-dash__title { text-decoration: underline; }
@media (max-width: 576px) { .cd-dash__row { flex-wrap: wrap; } }

/* ---------- Section heading with count (lists of things to do) ---------- */
.np-section-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.np-section-head h3, .np-section-head h4, .np-section-head h5 { margin: 0; font-size: 16px; font-weight: 700; }

/* ==========================================================================
   Dashboard widgets (nd-*): welcome line, quick actions, tiles, week, team, birthdays
   ========================================================================== */
.nd {
  padding: var(--np-page-pad-y) var(--np-page-pad-x) 40px;
  font-family: var(--np-font);
  font-size: var(--np-font-size); color: var(--np-text);
}
.nd *, .nd *::before, .nd *::after { box-sizing: border-box; }
.nd h2, .nd h3, .nd h4 { font-family: var(--np-display); color: var(--np-strong); margin: 0; letter-spacing: -.01em; }
.nd a { text-decoration: none; }

/* Greeting */
.nd-greeting { font-family: var(--np-display); font-size: 26px; font-weight: 700; color: var(--np-strong); margin: 0 0 4px; }
.nd-date { color: var(--np-muted); font-size: 13px; margin: 0 0 6px; }
.nd-status { font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.nd-status .bad { color: var(--np-danger); font-weight: 600; }
.nd-status .warn { color: var(--np-warn); font-weight: 600; }
.nd-status .ok { color: var(--np-ok); font-weight: 600; }

/* Alerts (announcements, celebrations) */

/* Section titles */
.nd-section { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 10px; }
.nd-section:first-child { margin-top: 0; }
.nd-section h3 { font-size: 15px; font-weight: 700; }
.nd-hint { color: var(--np-muted); font-size: var(--np-font-size-sm); }

/* Quick actions */
.nd-qa-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.nd-qa {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--np-surface); border: 1px solid var(--np-border); border-radius: 8px;
  color: var(--np-text) !important; cursor: pointer; position: relative; min-height: 64px;
}
.nd-qa:hover { border-color: var(--np-faint); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.nd-qa:focus-visible { outline: 2px solid var(--np-info); outline-offset: 2px; }
.nd-qa-ic { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background:color-mix(in srgb, var(--qa) 15%, var(--np-surface)); color: var(--qa); }
.nd-qa-ic .np-i { font-size: 18px; }
.nd-qa-t { flex: 1; min-width: 0; }
.nd-qa-t b { display: block; color: var(--np-strong); font-weight: 600; font-size: 13.5px; }
.nd-qa-t span { display: block; color: var(--np-muted); font-size: 12px; margin-top: 1px; }
.nd-qa .nd-count { position: absolute; top: 8px; right: 8px; }
.nd-qa:has(.nd-count) { padding-right: 40px; }
.nd-count { display: inline-block; font-size: 11px; line-height: 18px; min-width: 20px; padding: 0 6px; border-radius: 9px; background: var(--np-danger-bg); color: var(--np-danger); font-weight: 700; text-align: center; }
.nd-count--ok { background: var(--np-ok-bg); color: var(--np-ok); }

/* Stat tiles */
.nd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.nd-stat { background: var(--np-surface); border: 1px solid var(--np-border); border-radius: 8px; padding: 14px 16px; color: var(--np-text) !important; display: block; }
a.nd-stat:hover { border-color: var(--np-faint); }
.nd-stat-k { font-size: 12.5px; color: var(--np-muted); margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nd-stat-v { font-family: var(--np-display); font-size: 26px; font-weight: 700; color: var(--np-strong); line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.nd-stat-v small { font-size: 13px; font-weight: 500; color: var(--np-muted); font-family: var(--np-font); }
.nd-stat-m { font-size: 12.5px; color: var(--np-muted); margin-top: 8px; line-height: 1.4; }
.nd-stat.bad .nd-stat-v { color: var(--np-danger); }
.nd-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; margin-top: 12px; background: var(--np-surface-3); }
.nd-bar > i { display: block; width: var(--value, 0%); background: var(--tone, var(--np-faint)); }
.nd-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--np-muted); margin-top: 8px; }
.nd-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nd-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; background: var(--tone, var(--np-faint)); }

/* Pills */

/* Layout */
.nd-home { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
.nd-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nd-card { background: var(--np-surface); border: 1px solid var(--np-border); border-radius: 8px; min-width: 0; }
.nd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--np-border); }
.nd-card-head h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.nd-card-body { padding: 16px; }
.nd-link { color:var(--np-link) !important; font-size: 13px; font-weight: 500; }
.nd-link:hover { text-decoration: underline; }
.nd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--np-faint); }
.nd-dot.red { background: var(--np-danger); } .nd-dot.blue { background: var(--np-info); } .nd-dot.green { background: var(--np-ok); } .nd-dot.orange { background:var(--projects); }

/* Person rows */
.nd-list { list-style: none; margin: 0; padding: 0; }
.nd-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--np-border-soft); }
.nd-row:last-child { border-bottom: 0; }
.nd-row.stripe { box-shadow: inset 4px 0 0 var(--np-warn); }
.nd-who { flex: 1; min-width: 0; }
.nd-who b { display: block; color: var(--np-strong); font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-who span { display: block; color: var(--np-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-meta { text-align: right; font-size: 12.5px; color: var(--np-muted); white-space: nowrap; }
.nd-meta b { display: block; color: var(--np-strong); font-weight: 600; font-size: 13px; }
.nd-row.today { background: color-mix(in srgb, var(--np-warn-bg) 50%, var(--np-surface)); }
.nd-empty { padding: 26px 16px; text-align: center; color: var(--np-muted); font-size: 13.5px; }
.nd-loading { padding: 22px 16px; text-align: center; color: var(--np-faint); font-size: 13px; }

/* Widgets (bottom row) */
.nd-widgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.nd-widget .nd-card-head { flex-wrap: wrap; row-gap: 8px; }
.nd-widget .nd-card-head .form-select { flex: 0 0 auto; }
.nd-widgets.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nd-widget .nd-list { max-height: 330px; overflow-y: auto; }

/* Today in the office */
.nd-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nd-today div { border-radius: 8px; padding: 10px 12px; }
.nd-today b { display: block; font-family: var(--np-display); font-size: 22px; line-height: 1.2; }
.nd-today span { font-size: 12.5px; }
.nd-today .in { background: var(--np-ok-bg); color: var(--np-ok-fg); }
.nd-today .nin { background: var(--np-warn-bg); color: var(--np-warn-fg); }
.nd-today .lv { background: var(--np-danger-bg); color: var(--np-danger-fg); }
.nd-progress { height: 6px; border-radius: 3px; background: var(--np-surface-3); overflow: hidden; margin-top: 14px; }
.nd-progress > div { height: 100%; background: var(--np-ok); width: 0; transition: width .3s; }
.nd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--np-muted); }
.nd-foot__warn { color: var(--np-warn-fg); font-weight: 600; }
.nd-foot__ok { color: var(--np-ok); font-weight: 600; }

/* Profile + balances + requests (employee / manager) */
.nd-profile { display: flex; align-items: center; gap: 14px; padding: 16px; }
.nd-profile .np-avatar { --size: 64px; }
.nd-profile b { display: block; font-size: 16px; color: var(--np-strong); font-weight: 600; }
.nd-profile .min-w-0 > span { color: var(--np-muted); font-size: 13px; }
.nd-bal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nd-bal .nd-stat { padding: 12px 14px; }
.nd-req { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px dashed var(--np-border-soft); font-size: 13px; }
.nd-req:last-child { border-bottom: 0; }
.nd-req b { display: block; color: var(--np-strong); font-weight: 600; }
.nd-req span.d { color: var(--np-muted); font-size: 12.5px; }

/* Timesheet week */
.nd-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.nd-day { border-radius: 8px; padding: 9px 6px; text-align: center; font-size: 12px; }
.nd-day b { display: block; font-size: 17px; font-family: var(--np-display); }
.nd-day.ok { background: var(--np-ok-bg); color: var(--np-ok-fg); }
.nd-day.miss { background: var(--np-danger-bg); color: var(--np-danger-fg); }
.nd-day.leave { background: var(--np-purple-bg); color: var(--np-purple-fg); }
.nd-day.future { background: var(--np-surface-2); color: var(--np-muted); }
.nd-day.now { box-shadow: inset 0 0 0 2px var(--np-strong); }

/* Bars (team hours) */
.nd-hbar { margin-bottom: 10px; }
.nd-hbar-l { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 4px; }
.nd-hbar-l span:first-child { color: var(--np-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-hbar-l span:last-child { color: var(--np-strong); font-weight: 600; }
.nd-hbar-t { height: 6px; border-radius: 3px; background: var(--np-surface-3); overflow: hidden; }
.nd-hbar-t > div { width: var(--value, 0%); height: 100%; background: var(--tone, var(--hours)); border-radius: 3px; }

/* Table (manager pending leaves) */
.nd-table-wrap { overflow-x: auto; }
.nd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nd-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--np-text); background: color-mix(in srgb, var(--dashboard) 12%, var(--np-surface)); border-bottom: 1px solid color-mix(in srgb, var(--dashboard) 25%, var(--np-surface)); padding: 9px 14px; white-space: nowrap; }
.nd-table td { padding: 10px 14px; border-bottom: 1px solid var(--np-border-soft); white-space: nowrap; }
.nd-table tr:last-child td { border-bottom: 0; }
.nd-table tbody tr:hover td { background: var(--np-surface-2); }
.nd-btn-sm { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--np-border); border-radius: 999px; padding: 2px 12px; font-size: 12.5px; color: var(--np-strong) !important; background:var(--np-surface); }
.nd-btn-sm:hover { background: var(--np-surface-2); }

/* The classic live-attendance widget sits inside the new layout unchanged */

@media (max-width: 1200px) {
  .nd-qa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nd-widgets, .nd-widgets.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nd { padding: 18px 16px 30px; }
  .nd-qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nd-home { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nd-qa-grid,
  .nd-stats, .nd-widgets, .nd-widgets.three, .nd-bal { grid-template-columns: 1fr; }
  .nd-week { gap: 4px; }
}

/* ==========================================================================
   Design Kit + Menu Colours pages (npdk-*, npmc-*)
   ========================================================================== */
.npdk { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.npdk-nav { position: sticky; top: calc(var(--np-topbar-h) + 64px); display: flex; flex-direction: column; gap: 2px; font-size: var(--np-font-size-sm); }
.npdk-nav b { font-size: var(--np-font-size-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--np-muted); margin: 14px 0 4px; }
.npdk-nav b:first-child { margin-top: 0; }
.npdk-nav a { color: var(--np-text) !important; text-decoration: none !important; padding: 4px 10px; border-radius: var(--np-radius-sm); border-left: 2px solid transparent; }
.npdk-nav a:hover { background: var(--np-surface-3); color: var(--np-strong) !important; }
.npdk-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.npdk-anchor { scroll-margin-top: 130px; }
.npdk-h { margin: 12px 0 0; font-family: var(--np-display); font-size: 18px; font-weight: 700; color: var(--np-strong); scroll-margin-top: calc(var(--np-topbar-h) + 64px); }
.npdk-h small { display: block; font-family: var(--np-font); font-size: var(--np-font-size-sm); font-weight: 400; color: var(--np-muted); margin-top: 2px; }
.npdk-tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 20px; }
.npdk-token { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.npdk-token .np-label { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.npdk-token code { font-size: 11px; color: var(--np-muted); background: none; padding: 0; }
.npdk-token .np-pill { height: 18px; font-size: 10.5px; }
.npdk-token.is-changed .np-label { color: var(--np-strong); }
.npdk-palette { display: flex; gap: 6px; align-items: center; }
.npdk-palette span { width: 28px; height: 28px; border-radius: var(--np-radius-sm); border: 1px solid rgba(0,0,0,.08); }
.npdk-savebar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--np-surface); border: 1px solid var(--np-border); border-radius: var(--np-card-radius); box-shadow: var(--np-shadow); }
.npdk-ex { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.npdk-ex__demo { padding: 18px; border: 1px dashed var(--np-border); border-radius: var(--np-radius); background: var(--np-surface-2); }
.npdk-ex__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.npdk-ex__head code { font-size: 12px; color: var(--np-info-fg); background: var(--np-info-bg); padding: 1px 8px; border-radius: var(--np-radius-pill); }
.npdk-ex .np-code { max-height: 260px; }
.npdk-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.npdk-icons div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--np-border-soft); border-radius: var(--np-radius); font-size: 11.5px; color: var(--np-muted); }
.npdk-icons .np-i { font-size: 22px; color: var(--np-strong); }
.npdk-rules { margin: 0; padding-left: 18px; }
.npdk-rules li { margin-bottom: 6px; }

/* Menu Colours */
.npmc-row { display: grid; grid-template-columns: 240px 170px minmax(0, 1fr) 120px; gap: 16px; align-items: center; padding: 10px var(--np-card-pad); border-bottom: 1px solid var(--np-border-soft); }
.npmc-row:last-child { border-bottom: 0; }
.npmc-row--head { font-size: var(--np-font-size-xs); font-weight: 600; color: var(--np-muted); background: var(--np-surface-2); padding-top: 8px; padding-bottom: 8px; }
.npmc-menu { display: flex; align-items: center; height: 40px; background: var(--np-sidebar-bg); color: var(--np-sidebar-text); border-left: 4px solid var(--c); padding-left: 12px; font-size: var(--np-font-size-sm); border-radius: 0 var(--np-radius-sm) var(--np-radius-sm) 0; position: relative; overflow: hidden; isolation: isolate; padding-right: 40px; white-space: nowrap; text-overflow: ellipsis; }
.npmc-menu i { position: absolute; top: 8px; bottom: 8px; right: 8px; width: 24px; border-radius: 4px; background: var(--c); }
.npmc-top { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; background: var(--l); border-radius: var(--np-radius-sm);
  font-family: var(--np-display); font-weight: 600; color: var(--np-topbar-text); font-size: var(--np-font-size); }
.npmc-top small { font-variant-numeric: tabular-nums; font-weight: 400; font-size: 11px; color: var(--np-topbar-text); opacity: .7; }
@media (max-width: 1100px) { .npdk { grid-template-columns: minmax(0, 1fr); } .npdk-nav { display: none; } .npmc-row { grid-template-columns: 1fr 1fr; } .npmc-row--head { display: none; } }
@media (max-width: 640px) { .npmc-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
