/* =====================================================================================
   NDS — Nexgeontools Design System · Phase 1 compatibility layer
   -------------------------------------------------------------------------------------
   Loaded ONLY when the NDS shell is on (cookie ngo_ui=nds). Every rule is scoped to
   body.nds so nothing leaks into the legacy shell. The legacy stylesheets stay loaded;
   this file re-skins their classes through design tokens and styles the new shell.

   Never style bare elements (table, td, input) here: page-local widgets (fullcalendar,
   jsGrid, summernote) must keep their own layout. Target framework classes only.
   ===================================================================================== */

/* ---------- 1. Tokens ------------------------------------------------------------- */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --surface-3: #e3e6ec;
  --border: #e0e3e9;
  --border-strong: #c7cdd7;
  --fg: #141a24;
  --fg-2: #4b5565;
  --fg-3: #7a8494;
  --accent: #2a6fdb;
  --accent-hover: #2160c4;
  --accent-fg: #ffffff;
  --accent-soft: #e6eefc;
  --good: #0ca30c;  --good-text: #0b7a0b;  --good-soft: #e4f6e4;
  --warn: #fab219;  --warn-text: #8a5d00;  --warn-soft: #fff3d6;
  --serious: #ec835a; --serious-text: #a84b25; --serious-soft: #fde9e0;
  --crit: #d03b3b;  --crit-text: #b22f2f;  --crit-soft: #fbe5e5;
  --info-text: #2160c4;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "JetBrains Mono", monospace;
  --shadow-pop: 0 8px 24px rgba(20, 26, 36, .14), 0 1px 2px rgba(20, 26, 36, .08);
  --shadow-rail: 4px 0 24px rgba(20, 26, 36, .12);
  --r1: 6px; --r2: 10px; --r3: 14px;
  /* spacing scale: every padding/margin/gap in the shell and content uses one of these */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --nds-sidebar-w: 240px;
  --nds-rail-w: 60px;
  --nds-topbar-h: 48px;
  --nds-ease: cubic-bezier(.2, .7, .2, 1);
  --nds-t: 140ms;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1217; --surface: #171b22; --surface-2: #1f242d; --surface-3: #262c37;
    --border: #2a313c; --border-strong: #3a4350;
    --fg: #eef1f5; --fg-2: #aeb6c2; --fg-3: #7d8694;
    --accent: #4f8ff0; --accent-hover: #6aa1f4; --accent-fg: #0b1220; --accent-soft: #1b2a44;
    --good-text: #3fcf3f; --good-soft: #15301a;
    --warn-text: #f0b63a; --warn-soft: #3a2d0e;
    --serious-text: #f29a78; --serious-soft: #3d2217;
    --crit-text: #ef6b6b; --crit-soft: #3d1a1a;
    --info-text: #6aa1f4;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-rail: 4px 0 24px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1217; --surface: #171b22; --surface-2: #1f242d; --surface-3: #262c37;
  --border: #2a313c; --border-strong: #3a4350;
  --fg: #eef1f5; --fg-2: #aeb6c2; --fg-3: #7d8694;
  --accent: #4f8ff0; --accent-hover: #6aa1f4; --accent-fg: #0b1220; --accent-soft: #1b2a44;
  --good-text: #3fcf3f; --good-soft: #15301a;
  --warn-text: #f0b63a; --warn-soft: #3a2d0e;
  --serious-text: #f29a78; --serious-soft: #3d2217;
  --crit-text: #ef6b6b; --crit-soft: #3d1a1a;
  --info-text: #6aa1f4;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-rail: 4px 0 24px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- 2. Base ---------------------------------------------------------------- */
html.nds-html { background: var(--bg); }
body.nds {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.nds *:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nds a { color: var(--accent); }
.nds a:hover, .nds a:focus { color: var(--accent-hover); text-decoration: none; }
.nds ::selection { background: var(--accent-soft); color: var(--fg); }
.nds .container.nds-shell { width: 100%; max-width: none; padding: 0; margin: 0; }
.nds .main-container { display: block; padding-left: var(--nds-sidebar-w); transition: padding-left var(--nds-t) var(--nds-ease); }
html.nds-rail .nds .main-container { padding-left: var(--nds-rail-w); }
.nds .right_col.nds-main {
  margin: 0;
  padding: var(--sp-4) var(--sp-5) 40px;
  background: var(--bg);
  min-height: calc(100vh - var(--nds-topbar-h));
  min-width: 0;
}
.nds footer { display: none; }
.nds .hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .nds *, .nds *::before, .nds *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---------- 3. Sidebar ------------------------------------------------------------- */
.nds .nds-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1030;
  width: var(--nds-sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: width var(--nds-t) var(--nds-ease), box-shadow var(--nds-t) var(--nds-ease);
}
html.nds-rail .nds .nds-sidebar { width: var(--nds-rail-w); }
html.nds-rail .nds .nds-sidebar:hover, html.nds-rail .nds .nds-sidebar:focus-within { width: var(--nds-sidebar-w); box-shadow: var(--shadow-rail); }
.nds .nds-sidebar__brand { height: var(--nds-topbar-h); display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border); flex: none; }
.nds .nds-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 650; letter-spacing: -0.01em; }
.nds .nds-brand__mark { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 10px; border-radius: 7px; background: var(--accent); flex: none; overflow: hidden; }
.nds .nds-brand__mark img { height: 14px; width: auto; display: block; }
.nds .nds-brand__mono { display: none; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -0.02em; }
html.nds-rail .nds .nds-sidebar:not(:hover):not(:focus-within) .nds-brand__mark { width: 32px; padding: 0; }
html.nds-rail .nds .nds-sidebar:not(:hover):not(:focus-within) .nds-brand__mark img { display: none; }
html.nds-rail .nds .nds-sidebar:not(:hover):not(:focus-within) .nds-brand__mono { display: inline; }
.nds .nds-nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 8px 8px 16px; scrollbar-width: thin; }
.nds .nds-nav__list, .nds .nds-nav__children { list-style: none; margin: 0; padding: 0; }
.nds .nds-nav__item { position: relative; margin: 1px 0; }
.nds .nds-nav__link {
  display: flex; align-items: center; gap: 8px; width: 100%;
  min-height: 32px; padding: 5px 8px; border: 0; border-radius: 7px;
  background: transparent; color: var(--fg-2); font: inherit; font-size: 13px; font-weight: 500; text-align: left;
  cursor: pointer; text-decoration: none;
  transition: background var(--nds-t), color var(--nds-t);
}
.nds .nds-nav__link:hover, .nds .nds-nav__link:focus { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.nds .nds-nav__item.is-active > .nds-nav__link { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nds .nds-nav__item.is-open > .nds-nav__link { color: var(--fg); }
.nds .nds-nav__icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--fg-3); font-size: 14px; }
.nds .nds-nav__item.is-active > .nds-nav__link .nds-nav__icon { color: var(--accent); }
.nds .nds-nav__label { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nds .nds-nav__chevron { width: 14px; height: 14px; flex: none; position: relative; opacity: .7; transition: transform var(--nds-t) var(--nds-ease); }
.nds .nds-nav__chevron::before { content: ""; position: absolute; left: 4px; top: 3px; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.nds .nds-nav__item.is-open > .nds-nav__link > .nds-nav__chevron,
.nds .nds-nav__item.is-open > .nds-nav__toggle--side .nds-nav__chevron { transform: rotate(180deg); }
.nds .nds-nav__toggle--side { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border: 0; border-radius: 5px; background: transparent; color: var(--fg-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.nds .nds-nav__toggle--side:hover { background: var(--surface-3); color: var(--fg); }
.nds .nds-nav__item.has-children > a.nds-nav__link { padding-right: 30px; }
.nds .nds-nav__item--other > .nds-nav__link { color: var(--fg-3); font-style: normal; }
.nds .nds-nav__item--other > .nds-nav__link .nds-nav__label::after { content: ""; }
.nds .nds-nav__item--other > .nds-nav__children { border-left-style: dashed; }
.nds .nds-nav__children { display: none; margin: 2px 0 4px; padding-left: 14px; border-left: 1px solid var(--border); margin-left: 16px; }
.nds .nds-nav__item.is-open > .nds-nav__children { display: block; }
.nds .nds-nav__item[data-level="2"] > .nds-nav__link, .nds .nds-nav__item[data-level="3"] > .nds-nav__link, .nds .nds-nav__item[data-level="4"] > .nds-nav__link { min-height: 28px; padding: 4px 8px; font-size: 12.5px; font-weight: 450; }
html.nds-rail .nds .nds-sidebar:not(:hover):not(:focus-within) .nds-nav__label,
html.nds-rail .nds .nds-sidebar:not(:hover):not(:focus-within) .nds-nav__chevron,
html.nds-rail .nds .nds-sidebar:not(:hover):not(:focus-within) .nds-nav__toggle--side,
html.nds-rail .nds .nds-sidebar:not(:hover):not(:focus-within) .nds-nav__children,
html.nds-rail .nds .nds-sidebar:not(:hover):not(:focus-within) .nds-sidebar__user-text { display: none; }
html.nds-rail .nds .nds-sidebar:not(:hover):not(:focus-within) .nds-nav__link { justify-content: center; padding: 5px 0; }
.nds .nds-sidebar__footer { flex: none; border-top: 1px solid var(--border); padding: 10px 12px; }
.nds .nds-sidebar__user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nds .nds-sidebar__user-text { display: flex; flex-direction: column; min-width: 0; }
.nds .nds-sidebar__user-name { font-size: 12.5px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nds .nds-sidebar__user-role { font-size: 11px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.nds .nds-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; letter-spacing: .02em; }

/* ---------- 4. Top bar ------------------------------------------------------------- */
.nds .nds-topbar {
  position: sticky; top: 0; z-index: 1020;
  height: var(--nds-topbar-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 0 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, #fff 50%, transparent)) { .nds .nds-topbar { background: var(--surface); } }
.nds .nds-topbar__spacer { flex: 1 1 auto; }
.nds .nds-iconbtn { width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--nds-t), color var(--nds-t); }
.nds .nds-iconbtn:hover { background: var(--surface-2); color: var(--fg); }
.nds .nds-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--fg-3); white-space: nowrap; overflow: hidden; }
.nds .nds-crumbs a { color: var(--fg-3); }
.nds .nds-crumbs a:hover { color: var(--fg); }
.nds .nds-crumbs .nds-crumbs__sep { opacity: .5; }
.nds .nds-crumbs .nds-crumbs__current { color: var(--fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.nds .nds-search { height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--fg-3); font: inherit; font-size: 12.5px; cursor: pointer; min-width: 220px; transition: border-color var(--nds-t), color var(--nds-t); }
.nds .nds-search:hover { border-color: var(--border-strong); color: var(--fg-2); }
.nds .nds-search__text { flex: 1 1 auto; text-align: left; }
.nds .nds-kbd { font: 11px/1 var(--mono); color: var(--fg-3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 5px; background: var(--surface); }
.nds .nds-channels { display: flex; align-items: center; }
.nds .nds-channels__label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.nds .nds-channels__text { font-size: 12px; color: var(--fg-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nds .nds-channels .select2-container, .nds .nds-channels .select2-width-200 + .select2.select2-container { width: 300px !important; min-width: 0; margin: 0 !important; vertical-align: middle; }
.nds .nds-channels .select2-container--default .select2-selection--multiple { height: 32px; min-height: 32px; overflow: hidden; display: flex; align-items: center; }
.nds .nds-channels .select2-container--default .select2-selection--multiple .select2-selection__rendered { flex-wrap: nowrap; overflow: hidden; padding: 0 6px; margin: 0; width: 100%; }
.nds .nds-channels .select2-container--default .select2-selection--multiple .select2-selection__choice { margin: 0; flex: none; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 20px; }
.nds .nds-channels .select2-container--default .select2-search--inline { flex: 1 1 40px; min-width: 40px; }
.nds .nds-channels .select2-container--default .select2-search--inline .select2-search__field { margin: 0; height: 24px; width: 100% !important; }
.nds .nds-theme-icon { display: none; }
.nds .nds-iconbtn[data-theme-current="light"] .nds-theme-icon--light,
.nds .nds-iconbtn[data-theme-current="dark"] .nds-theme-icon--dark,
.nds .nds-iconbtn[data-theme-current="system"] .nds-theme-icon--system { display: block; }
.nds .nds-user { position: relative; }
.nds .nds-user__btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 4px; border-radius: 7px; color: var(--fg); font-weight: 500; }
.nds .nds-user__btn:hover, .nds .nds-user__btn:focus { background: var(--surface-2); color: var(--fg); }
.nds .nds-user__name { font-size: 13px; }
.nds .nds-user .dropdown-menu { margin-top: 6px; min-width: 200px; }
@media (max-width: 1100px) { .nds .nds-user__name, .nds .nds-search__text, .nds .nds-channels__text { display: none; } .nds .nds-search { min-width: 0; } }

/* ---------- 5. Command palette ----------------------------------------------------- */
.nds .nds-palette { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.nds .nds-palette[hidden] { display: none; }
.nds .nds-palette__backdrop { position: absolute; inset: 0; background: rgba(10, 14, 20, .45); }
.nds .nds-palette__panel { position: relative; width: min(640px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop); overflow: hidden; }
.nds .nds-palette__inputwrap { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); color: var(--fg-3); }
.nds .nds-palette__input { flex: 1; height: 48px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 15px; outline: none; }
.nds .nds-palette__list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.nds .nds-palette__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--fg); font-size: 13.5px; }
.nds .nds-palette__item .nds-palette__trail { color: var(--fg-3); font-size: 12px; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.nds .nds-palette__item.is-selected, .nds .nds-palette__item:hover { background: var(--accent-soft); color: var(--accent); }
.nds .nds-palette__item.is-selected .nds-palette__trail { color: var(--accent); opacity: .8; }
.nds .nds-palette__empty { padding: 18px 10px; color: var(--fg-3); text-align: center; }
.nds .nds-palette__hint { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-top: 1px solid var(--border); color: var(--fg-3); font-size: 11.5px; }

/* ---------- 7. Typography inside content ------------------------------------------ */
.nds .right_col h1, .nds .right_col h2, .nds .right_col h3, .nds .right_col h4, .nds .right_col h5, .nds .right_col h6 { color: var(--fg); font-family: var(--font); letter-spacing: -0.01em; }
.nds .right_col h1 { font-size: 24px; font-weight: 650; line-height: 1.25; margin: 4px 0 12px; }
.nds .right_col h2 { font-size: 18px; font-weight: 650; line-height: 1.3; }
.nds .right_col h3 { font-size: 16px; font-weight: 600; }
.nds .right_col h4 { font-size: 14px; font-weight: 600; }
.nds .right_col h5 { font-size: 13px; font-weight: 600; }
.nds .right_col h6 { font-size: 12px; font-weight: 600; color: var(--fg-2); }
.nds .text-muted { color: var(--fg-3) !important; }
.nds .text-primary { color: var(--accent) !important; }
.nds .text-success { color: var(--good-text) !important; }
.nds .text-danger { color: var(--crit-text) !important; }
.nds .text-warning { color: var(--warn-text) !important; }
.nds .text-info { color: var(--info-text) !important; }
.nds .text-success-bold { color: var(--good-text); font-weight: 650; }
.nds .text-danger-bold { color: var(--crit-text); font-weight: 650; }
.nds .k { color: var(--crit-text); }
.nds code, .nds pre { font-family: var(--mono); }
.nds code { background: var(--surface-2); color: var(--fg); border-radius: 4px; padding: 1px 5px; }
.nds pre { background: var(--surface-2); color: var(--fg); border: 1px solid var(--border); border-radius: var(--r1); }
.nds hr { border-top-color: var(--border); }

/* ---------- 8. Panels (Gentelella x_panel) ----------------------------------------- */
.nds .x_panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: none;
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  display: flow-root;
  width: 100%;
  color: var(--fg);
}
.nds .x_title { border-bottom: 1px solid var(--border); padding: 0 0 var(--sp-3); margin-bottom: var(--sp-3); display: flow-root; }
.nds .x_title h2, .nds .x_title h3, .nds .x_title h4 { font-size: 15px; font-weight: 650; color: var(--fg); margin: 0; line-height: 1.4; }
.nds .x_title h2 small, .nds .x_title h3 small { color: var(--fg-3); font-size: 12px; font-weight: 500; }
.nds .x_content { padding: 0; margin-top: 0; color: var(--fg); }
.nds .x_panel .x_panel { border: 0; background: transparent; padding: 0; margin-bottom: 0; }
.nds .x_panel .x_panel > .x_title { margin-top: var(--sp-3); }
.nds .right_col .row { margin-left: calc(-1 * var(--sp-2)); margin-right: calc(-1 * var(--sp-2)); }
.nds .right_col .row > [class*="col-"] { padding-left: var(--sp-2); padding-right: var(--sp-2); }
.nds .form-group { margin-bottom: var(--sp-3); }
.nds .panel, .nds .well { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); box-shadow: none; color: var(--fg); }
.nds .panel-heading { background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--fg); border-radius: var(--r2) var(--r2) 0 0; }
.nds .panel-default > .panel-heading { background: var(--surface-2); color: var(--fg); border-color: var(--border); }
.nds .collapse-link { color: var(--fg-3); }

/* ---------- 9. Breadcrumb (in-content) ---------------------------------------------- */
.nds .breadcrumb { background: transparent; padding: 0; margin: 0 0 var(--sp-3); font-size: 12px; color: var(--fg-3); border-radius: 0; }
.nds .breadcrumb > li + li::before, .nds .breadcrumb-item + .breadcrumb-item::before { color: var(--border-strong); content: "/"; padding: 0 6px; }
.nds .breadcrumb-item { display: inline; }
.nds .breadcrumb .active, .nds .breadcrumb-item.active { color: var(--fg); font-weight: 600; }

/* ---------- 10. Buttons ------------------------------------------------------------ */
.nds .btn {
  font-family: var(--font); font-size: 13px; font-weight: 500; line-height: 1.3;
  padding: 6px 12px; border-radius: 7px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--fg);
  box-shadow: none; text-shadow: none; transition: background var(--nds-t), border-color var(--nds-t), color var(--nds-t);
}
.nds .btn:hover, .nds .btn:focus { background: var(--surface-2); color: var(--fg); border-color: var(--border-strong); }
.nds .btn:active, .nds .btn.active { box-shadow: none; background: var(--surface-3); }
.nds .btn-xs { font-size: 11.5px; padding: 2px 7px; border-radius: 5px; }
.nds .btn-sm { font-size: 12px; padding: 4px 9px; border-radius: 6px; }
.nds .btn-lg { font-size: 14px; padding: 9px 16px; border-radius: 8px; }
.nds .btn-default, .nds .btn-secondary, .nds .btn-light { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.nds .btn-default:hover, .nds .btn-secondary:hover, .nds .btn-light:hover, .nds .btn-default:focus, .nds .btn-secondary:focus { background: var(--surface-2); color: var(--fg); border-color: var(--border-strong); }
.nds .btn-primary, .nds .btn-info { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.nds .btn-primary:hover, .nds .btn-primary:focus, .nds .btn-primary:active, .nds .btn-info:hover, .nds .btn-info:focus, .nds .btn-info:active { background: var(--accent-hover); color: var(--accent-fg); border-color: var(--accent-hover); }
.nds .btn-success { background: var(--good-soft); color: var(--good-text); border-color: transparent; }
.nds .btn-success:hover, .nds .btn-success:focus, .nds .btn-success:active { background: var(--good); color: #fff; border-color: var(--good); }
.nds .btn-warning { background: var(--warn-soft); color: var(--warn-text); border-color: transparent; }
.nds .btn-warning:hover, .nds .btn-warning:focus, .nds .btn-warning:active { background: var(--warn); color: #1a1200; border-color: var(--warn); }
.nds .btn-danger { background: var(--crit-soft); color: var(--crit-text); border-color: transparent; }
.nds .btn-danger:hover, .nds .btn-danger:focus, .nds .btn-danger:active { background: var(--crit); color: #fff; border-color: var(--crit); }
.nds .btn-link { color: var(--accent); border-color: transparent; background: transparent; }
.nds .btn-link:hover { background: var(--accent-soft); }
.nds .btn.disabled, .nds .btn[disabled] { opacity: .5; }
.nds .btn-group > .btn { border-radius: 0; }
.nds .btn-group > .btn:first-child { border-top-left-radius: 7px; border-bottom-left-radius: 7px; }
.nds .btn-group > .btn:last-child, .nds .btn-group > .dropdown-toggle:last-child { border-top-right-radius: 7px; border-bottom-right-radius: 7px; }
.nds .btn-group > .btn + .btn { margin-left: -1px; }
.nds .btn .caret { margin-left: 4px; }

/* ---------- 11. Forms --------------------------------------------------------------- */
.nds .form-control {
  height: 32px; padding: 5px 10px; font-family: var(--font); font-size: 13px; line-height: 1.4;
  color: var(--fg); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px; box-shadow: none;
  transition: border-color var(--nds-t), box-shadow var(--nds-t);
}
.nds textarea.form-control { height: auto; min-height: 80px; }
.nds .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.nds .form-control::placeholder { color: var(--fg-3); }
.nds .form-control[disabled], .nds .form-control[readonly] { background: var(--surface-2); color: var(--fg-2); }
.nds .input-sm, .nds .form-group-sm .form-control { height: 28px; font-size: 12px; border-radius: 6px; }
.nds .input-lg { height: 40px; font-size: 14px; }
.nds .input-group-addon { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--fg-2); border-radius: 7px; font-size: 12.5px; }
.nds .input-group .form-control:first-child, .nds .input-group-addon:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.nds .input-group .form-control:last-child, .nds .input-group-addon:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.nds .input-group-btn > .btn { height: 32px; }
.nds label, .nds .control-label { font-weight: 600; font-size: 12.5px; color: var(--fg-2); margin-bottom: 4px; }
.nds .help-block { color: var(--fg-3); font-size: 12px; }
.nds .has-error .form-control { border-color: var(--crit); box-shadow: none; }
.nds .has-error .control-label, .nds .has-error .help-block { color: var(--crit-text); }
.nds .has-success .form-control { border-color: var(--good); box-shadow: none; }
.nds .checkbox label, .nds .radio label { font-weight: 450; color: var(--fg); }
.nds input[type="checkbox"].form-check-input, .nds .checkbox input[type="checkbox"], .nds .radio input[type="radio"] { accent-color: var(--accent); }
.nds .form-horizontal .control-label { padding-top: 7px; }
.nds fieldset legend { font-size: 14px; font-weight: 650; color: var(--fg); border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 12px; }

/* ---------- 12. Tables & bootstrap-table ------------------------------------------- */
.nds .table { color: var(--fg); font-size: 13px; margin-bottom: 0; background: var(--surface); font-variant-numeric: tabular-nums; }
.nds .table > thead > tr > th, .nds .table-bordered > thead > tr > th {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3);
  background: var(--surface-2); border-bottom: 1px solid var(--border); border-top: 0; padding: 7px var(--sp-3); vertical-align: middle; white-space: nowrap;
}
.nds .table > tbody > tr > td, .nds .table-bordered > tbody > tr > td, .nds .table > tbody > tr > th { padding: 6px var(--sp-3); border-top: 1px solid var(--border); vertical-align: middle; line-height: 1.45; }
.nds .table-bordered, .nds .table-bordered > thead > tr > th, .nds .table-bordered > tbody > tr > td, .nds .table-bordered > tbody > tr > th, .nds .table-bordered > tfoot > tr > td { border-color: var(--border); }
.nds .table-bordered > thead > tr > th:not(:last-child), .nds .table-bordered > tbody > tr > td:not(:last-child) { border-right: 0; }
.nds .table-bordered > thead > tr > th:first-child, .nds .table-bordered > tbody > tr > td:first-child { border-left: 0; }
.nds .table-bordered > thead > tr > th:last-child, .nds .table-bordered > tbody > tr > td:last-child { border-right: 0; }
.nds .table-striped > tbody > tr:nth-of-type(odd), .nds .table-striped > tbody > tr:nth-of-type(odd) > td { background: transparent; }
.nds .table-hover > tbody > tr:hover, .nds .table-hover > tbody > tr:hover > td, .nds .table > tbody > tr:hover > td { background: var(--surface-2); }
.nds .table > tbody > tr.selected > td, .nds .table > tbody > tr.selected { background: var(--accent-soft); }
.nds .table > tfoot > tr > td, .nds .table > tfoot > tr > th { background: var(--surface-2); border-top: 1px solid var(--border); font-weight: 600; }
.nds .table a { font-weight: 500; }
.nds .bootstrap-table .fixed-table-container { border: 1px solid var(--border); border-radius: var(--r2); background: var(--surface); overflow: hidden; }
.nds .bootstrap-table .fixed-table-container .table { border: 0; }
.nds .bootstrap-table .fixed-table-container thead th .th-inner { padding: 7px var(--sp-3); }
.nds .bootstrap-table .fixed-table-container tbody td { padding: 6px var(--sp-3); }
.nds .bootstrap-table .fixed-table-container tbody td, .nds .bootstrap-table .fixed-table-container thead th { text-align: left; }
.nds .bootstrap-table .fixed-table-container tbody td.num, .nds .bootstrap-table .fixed-table-container tbody td[style*="text-align: right"] { text-align: right; }
.nds .bootstrap-table .fixed-table-container thead th .sortable { background-position: right 6px center; }
.nds .bootstrap-table .fixed-table-container thead th .both, .nds .bootstrap-table .fixed-table-container thead th .asc, .nds .bootstrap-table .fixed-table-container thead th .desc { background-image: none; padding-right: 10px; }
.nds .fixed-table-container thead th, .nds .fixed-table-container tbody td, .nds .fixed-table-container tfoot td { border-left: 0; border-right: 0; }
.nds .fixed-table-container thead th { background: var(--surface-2); }
.nds .bootstrap-table .fixed-table-container thead th .asc::after, .nds .bootstrap-table .fixed-table-container thead th .desc::after { content: "↑"; margin-left: 4px; color: var(--accent); font-weight: 700; }
.nds .bootstrap-table .fixed-table-container thead th .desc::after { content: "↓"; }
.nds .bootstrap-table .fixed-table-toolbar { padding: 0 0 var(--sp-3); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nds .bootstrap-table .fixed-table-toolbar .bs-bars, .nds .bootstrap-table .fixed-table-toolbar .search, .nds .bootstrap-table .fixed-table-toolbar .columns { margin: 0; }
.nds .bootstrap-table .fixed-table-toolbar .search .form-control, .nds .bootstrap-table .fixed-table-toolbar .search input { height: 32px; min-width: 220px; }
.nds .bootstrap-table .fixed-table-toolbar .columns .btn, .nds .bootstrap-table .fixed-table-toolbar .export .btn { height: 32px; }
.nds .bootstrap-table .fixed-table-toolbar .columns > .btn-group > .btn, .nds .bootstrap-table .fixed-table-toolbar .columns .btn { background: var(--surface); color: var(--fg-2); border-color: var(--border-strong); }
.nds .bootstrap-table .fixed-table-toolbar .columns .dropdown-menu { max-height: 320px; overflow-y: auto; }
.nds .bootstrap-table .fixed-table-toolbar .columns .dropdown-menu label { font-weight: 450; color: var(--fg); padding: 4px 12px; margin: 0; display: block; }
.nds .bootstrap-table .fixed-table-pagination { padding: var(--sp-3) 0 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--fg-3); font-size: 12.5px; }
.nds .bootstrap-table .fixed-table-pagination > .pagination-detail, .nds .bootstrap-table .fixed-table-pagination > .pagination { margin: 0; float: none; }
.nds .bootstrap-table .fixed-table-pagination .pagination-info { color: var(--fg-3); line-height: 32px; }
.nds .bootstrap-table .fixed-table-pagination .page-list .btn { height: 28px; padding: 3px 8px; font-size: 12px; }
.nds .bootstrap-table .fixed-table-pagination .page-jump-to input { height: 28px; font-size: 12px; width: 60px; }
.nds .fixed-table-loading { background: var(--surface); color: var(--fg-3); }
.nds .sticky-header-container { background: var(--surface-2); }
.nds .sticky-header-container th { background: var(--surface-2); }
.nds .detail-icon { color: var(--accent); }
.nds .fixed-table-footer { background: var(--surface-2); }
.nds .pagination { margin: 0; display: inline-flex; gap: 2px; }
.nds .pagination > li > a, .nds .pagination > li > span { color: var(--fg-2); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 5px 9px; font-size: 12.5px; margin: 0; min-width: 30px; text-align: center; line-height: 1.3; }
.nds .pagination > li > a:hover { background: var(--surface-2); color: var(--fg); border-color: transparent; }
.nds .pagination > li.active > a, .nds .pagination > li.active > a:hover, .nds .pagination > li.active > span { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.nds .pagination > li.disabled > a, .nds .pagination > li.disabled > span { color: var(--fg-3); opacity: .5; background: transparent; }
.nds .pagination > li:first-child > a, .nds .pagination > li:last-child > a { border-radius: 6px; }

/* ---------- 13. Labels, badges, alerts, progress ----------------------------------- */
.nds .label { font-weight: 600; font-size: 11px; padding: 3px 7px; border-radius: 999px; letter-spacing: .01em; }
.nds .label-default { background: var(--surface-3); color: var(--fg-2); }
.nds .label-primary, .nds .label-info { background: var(--accent-soft); color: var(--accent); }
.nds .label-success { background: var(--good-soft); color: var(--good-text); }
.nds .label-warning { background: var(--warn-soft); color: var(--warn-text); }
.nds .label-danger { background: var(--crit-soft); color: var(--crit-text); }
.nds .badge { background: var(--surface-3); color: var(--fg-2); font-weight: 600; font-size: 11px; border-radius: 999px; padding: 2px 7px; }
.nds .badge.bg-red { background: var(--crit-soft); color: var(--crit-text); }
.nds .badge.bg-green { background: var(--good-soft); color: var(--good-text); }
.nds .alert { border: 1px solid transparent; border-radius: var(--r2); padding: 10px 14px; font-size: 13px; }
.nds .alert-success { background: var(--good-soft); color: var(--good-text); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.nds .alert-info { background: var(--accent-soft); color: var(--info-text); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.nds .alert-warning { background: var(--warn-soft); color: var(--warn-text); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.nds .alert-danger { background: var(--crit-soft); color: var(--crit-text); border-color: color-mix(in srgb, var(--crit) 35%, transparent); }
.nds .alert .close { color: inherit; text-shadow: none; opacity: .6; }
.nds .progress { background: var(--surface-2); border-radius: 999px; box-shadow: none; height: 8px; }
.nds .progress-bar { background: var(--accent); box-shadow: none; }
.nds .progress-bar-success { background: var(--good); }
.nds .progress-bar-danger { background: var(--crit); }
.nds .progress-bar-warning { background: var(--warn); }

/* ---------- 14. Tabs, dropdowns, modals, tooltips ---------------------------------- */
.nds .nav-tabs { border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.nds .nav-tabs > li { margin-bottom: -1px; }
.nds .nav-tabs > li > a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--fg-2); font-weight: 500; padding: 8px 12px; margin-right: 4px; }
.nds .nav-tabs > li > a:hover { background: transparent; color: var(--fg); border-bottom-color: var(--border-strong); }
.nds .nav-tabs > li.active > a, .nds .nav-tabs > li.active > a:hover, .nds .nav-tabs > li.active > a:focus { color: var(--accent); background: transparent; border: 0; border-bottom: 2px solid var(--accent); font-weight: 600; }
.nds .nav-pills > li > a { border-radius: 7px; color: var(--fg-2); }
.nds .nav-pills > li.active > a, .nds .nav-pills > li.active > a:hover { background: var(--accent-soft); color: var(--accent); }
.nds .tab-content { color: var(--fg); }
.nds .dropdown-menu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); box-shadow: var(--shadow-pop); padding: 6px; font-size: 13px; min-width: 160px; }
.nds .dropdown-menu > li > a { color: var(--fg); padding: 6px 10px; border-radius: 6px; font-weight: 450; }
.nds .dropdown-menu > li > a:hover, .nds .dropdown-menu > li > a:focus { background: var(--surface-2); color: var(--fg); }
.nds .dropdown-menu > .active > a, .nds .dropdown-menu > .active > a:hover { background: var(--accent-soft); color: var(--accent); }
.nds .dropdown-menu .divider { background: var(--border); margin: 6px 0; }
.nds .dropdown-menu > li > a .fa.pull-right { margin-top: 2px; color: var(--fg-3); }
.nds .modal-content { background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: var(--r3); box-shadow: var(--shadow-pop); }
.nds .modal-header { border-bottom: 1px solid var(--border); padding: 14px 18px; }
.nds .modal-header .modal-title, .nds .modal-header h4, .nds .modal-header h5 { font-size: 15px; font-weight: 650; color: var(--fg); margin: 0; }
.nds .modal-header .close { color: var(--fg); text-shadow: none; opacity: .5; }
.nds .modal-body { padding: 16px 18px; }
.nds .modal-footer { border-top: 1px solid var(--border); padding: 12px 18px; }
.nds .modal-backdrop { background: #0a0e14; }
.nds .modal-backdrop.in { opacity: .32; }
.nds .tooltip-inner { background: var(--fg); color: var(--bg); border-radius: 6px; font-size: 12px; padding: 5px 8px; }
.nds .tooltip.top .tooltip-arrow { border-top-color: var(--fg); }
.nds .tooltip.bottom .tooltip-arrow { border-bottom-color: var(--fg); }
.nds .popover { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); box-shadow: var(--shadow-pop); color: var(--fg); }
.nds .popover-title { background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--fg); }
.nds .tooltip-kpi { background: var(--surface-3); color: var(--fg-2); }
.nds .tooltip-kpi:hover { background: var(--border-strong); }

/* ---------- 15. Select2 (4.1) --------------------------------------------------------- */
.nds .select2-container--default .select2-selection--single, .nds .select2-container--default .select2-selection--multiple {
  min-height: 32px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--fg);
}
.nds .select2-container--default .select2-selection--single { height: 32px; }
.nds .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 30px; color: var(--fg); padding-left: 10px; font-size: 13px; }
.nds .select2-container--default .select2-selection--single .select2-selection__arrow { height: 30px; }
.nds .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--fg-3) transparent transparent transparent; }
.nds .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent var(--fg-3) transparent; }
.nds .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--fg-3); }
.nds .select2-container--default .select2-selection--multiple .select2-selection__rendered { padding: 2px 6px; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.nds .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--accent-soft); color: var(--accent); border: 0; border-radius: 999px; padding: 1px 8px 1px 6px; font-size: 12px; font-weight: 500; margin: 2px 0 0; display: inline-flex; align-items: center; gap: 4px; }
.nds .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--accent); margin-right: 2px; font-weight: 700; }
.nds .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { color: var(--crit-text); }
.nds .select2-container--default .select2-selection--multiple .select2-selection__choice .text-info { color: inherit !important; opacity: .7; font-style: normal; }
.nds .select2-container--default .select2-search--inline .select2-search__field { color: var(--fg); font-family: var(--font); font-size: 13px; margin-top: 2px; }
.nds .select2-container--default.select2-container--focus .select2-selection--multiple, .nds .select2-container--default.select2-container--open .select2-selection--single, .nds .select2-container--default.select2-container--open .select2-selection--multiple { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nds .select2-container--default .select2-selection--multiple .select2-selection__clear { color: var(--fg-3); margin-right: 4px; }
.nds .select2-dropdown { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); box-shadow: var(--shadow-pop); color: var(--fg); overflow: hidden; margin-top: 4px; }
.nds .select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--fg); font-family: var(--font); font-size: 13px; padding: 5px 8px; }
.nds .select2-results__option { padding: 6px 10px; font-size: 13px; color: var(--fg); }
.nds .select2-container--default .select2-results__option--highlighted[aria-selected], .nds .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--accent-soft); color: var(--accent); }
.nds .select2-container--default .select2-results__option[aria-selected="true"], .nds .select2-container--default .select2-results__option--selected { background: var(--surface-2); color: var(--fg); }
.nds .select2-container--default .select2-results__group { color: var(--fg-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.nds .select2-container--default .select2-results > .select2-results__options { max-height: 300px; }
.nds .S2_custom { background: var(--accent-soft); color: var(--accent); border: 0; border-radius: 999px; }
.nds .S2_del { color: var(--accent); }

/* ---------- 16. Date range picker / datepicker / switches ------------------------------ */
.nds .daterangepicker { background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: var(--r2); box-shadow: var(--shadow-pop); font-family: var(--font); }
.nds .daterangepicker::before, .nds .daterangepicker::after { display: none; }
.nds .daterangepicker .calendar-table { background: var(--surface); border-color: var(--border); }
.nds .daterangepicker td, .nds .daterangepicker th { color: var(--fg); border-radius: 6px; }
.nds .daterangepicker td.off, .nds .daterangepicker td.off.in-range, .nds .daterangepicker td.off.start-date, .nds .daterangepicker td.off.end-date { background: transparent; color: var(--fg-3); }
.nds .daterangepicker td.available:hover, .nds .daterangepicker th.available:hover { background: var(--surface-2); color: var(--fg); }
.nds .daterangepicker td.in-range { background: var(--accent-soft); color: var(--accent); border-radius: 0; }
.nds .daterangepicker td.active, .nds .daterangepicker td.active:hover { background: var(--accent); color: var(--accent-fg); }
.nds .daterangepicker .ranges li { color: var(--fg-2); border-radius: 6px; }
.nds .daterangepicker .ranges li:hover { background: var(--surface-2); color: var(--fg); }
.nds .daterangepicker .ranges li.active { background: var(--accent); color: var(--accent-fg); }
.nds .daterangepicker .calendar-time select, .nds .daterangepicker select.hourselect, .nds .daterangepicker select.minuteselect, .nds .daterangepicker select.monthselect, .nds .daterangepicker select.yearselect { background: var(--surface); color: var(--fg); border: 1px solid var(--border-strong); border-radius: 5px; }
.nds .daterangepicker .drp-buttons { border-top: 1px solid var(--border); }
.nds .daterangepicker .drp-selected { color: var(--fg-2); }
.nds .datepicker { background: var(--surface); color: var(--fg); border: 1px solid var(--border); border-radius: var(--r2); box-shadow: var(--shadow-pop); }
.nds .datepicker table tr td, .nds .datepicker table tr th { color: var(--fg); }
.nds .datepicker table tr td.day:hover, .nds .datepicker table tr td.focused { background: var(--surface-2); }
.nds .datepicker table tr td.active, .nds .datepicker table tr td.active:hover, .nds .datepicker table tr td.active.active { background: var(--accent); color: var(--accent-fg); background-image: none; text-shadow: none; }
.nds .datepicker table tr td.old, .nds .datepicker table tr td.new { color: var(--fg-3); }
.nds .switchery { border-color: var(--border-strong) !important; box-shadow: inset 0 0 0 1px var(--border-strong) !important; }
.nds .icheckbox_flat-green, .nds .iradio_flat-green { filter: none; }

/* ---------- 17. Notifications, loaders ------------------------------------------------ */
.nds .ui-pnotify .ui-pnotify-container { background: var(--fg); color: var(--bg); border: 0; border-radius: 10px; box-shadow: var(--shadow-pop); font-family: var(--font); }
.nds .ui-pnotify .ui-pnotify-title { font-weight: 650; font-size: 13px; }
.nds .ui-pnotify .ui-pnotify-text { font-size: 12.5px; }
.nds .ui-pnotify .ui-pnotify-container.alert-success, .nds .ui-pnotify .ui-pnotify-container.brighttheme-success { background: var(--good-text); color: #fff; }
.nds .ui-pnotify .ui-pnotify-container.alert-danger, .nds .ui-pnotify .ui-pnotify-container.brighttheme-error { background: var(--crit); color: #fff; }
.nds .ui-pnotify .ui-pnotify-container.alert-warning, .nds .ui-pnotify .ui-pnotify-container.brighttheme-notice { background: var(--warn); color: #1a1200; }
.nds .ui-pnotify .ui-pnotify-container.alert-info, .nds .ui-pnotify .ui-pnotify-container.brighttheme-info { background: var(--accent); color: var(--accent-fg); }
.nds .loadingoverlay { background: color-mix(in srgb, var(--bg) 72%, transparent) !important; }
.nds .ngo--module-grid .atp-loading, .nds .atp-loading-indicator { color: var(--fg-3); }

/* ---------- 18. Misc Gentelella utilities -------------------------------------------- */
.nds .always-showable-content { position: static; }
.nds .page-title { border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.nds .page-title .title_left h3 { font-size: 20px; font-weight: 650; color: var(--fg); }
.nds .tile_count .tile_stats_count { border-color: var(--border); }
.nds .tile_count .tile_stats_count .count { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.nds .tile_count .tile_stats_count span { color: var(--fg-3); }
.nds .dashboard_graph { background: var(--surface); border-radius: var(--r2); }
.nds .ngo--color-picker { border-radius: 6px; }
.nds .jsgrid-grid-header, .nds .jsgrid-header-row > .jsgrid-header-cell { background: var(--surface-2); color: var(--fg-3); border-color: var(--border); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.nds .jsgrid-grid-body, .nds .jsgrid-row > .jsgrid-cell, .nds .jsgrid-alt-row > .jsgrid-cell { background: var(--surface); color: var(--fg); border-color: var(--border); }
.nds .jsgrid-selected-row > .jsgrid-cell { background: var(--accent-soft); }
.nds .jsgrid-pager-page a, .nds .jsgrid-pager-nav-button a { color: var(--accent); }
.nds .jsgrid-pager-current-page { background: var(--accent); color: var(--accent-fg); border-radius: 6px; }
.nds .note-editor.note-frame { border: 1px solid var(--border-strong); border-radius: 7px; }
.nds .note-editor .note-toolbar { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.nds .note-editor .note-editable { background: var(--surface); color: var(--fg); }
.nds .jstree-default .jstree-anchor { color: var(--fg); }
.nds .jstree-default .jstree-clicked { background: var(--accent-soft); box-shadow: none; }
.nds .jstree-default .jstree-hovered { background: var(--surface-2); box-shadow: none; }

/* =====================================================================================
   Phase 2 — ATP filter forms, grid details, density, login
   ===================================================================================== */

/* ---------- 19. ATP filter form (mainfilter) ---------------------------------------- */
.nds .mainfilter-form form { background: var(--surface-2) !important; border: 0; border-radius: var(--r2); padding: var(--sp-3) var(--sp-4) !important; margin-bottom: var(--sp-4); }
.nds .mainfilter-form .main-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: flex-end; margin: 0; }
.nds .mainfilter-form .main-filters + .main-filters { margin-top: var(--sp-2); }
.nds .mainfilter-form .main-filters > [class*="col-"] { float: none; padding: 0; width: auto; min-width: 160px; flex: 1 1 160px; max-width: 360px; }
.nds .mainfilter-form .main-filters > .col-md-1 { min-width: 0; flex: 0 0 auto; }
.nds .mainfilter-form label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 3px; display: block; }
.nds .mainfilter-form .filter-actions { display: flex; gap: var(--sp-2); align-items: center; justify-content: flex-end; flex-wrap: wrap; padding-top: var(--sp-3); margin-top: var(--sp-3); border-top: 1px solid var(--border); }
.nds .mainfilter-form .filter-actions .btn { height: 30px; padding: 4px 12px; font-size: 12.5px; }
.nds .mainfilter-form .filter-actions .btn { float: none !important; margin: 0 !important; }
.nds .mainfilter-form .filter-actions .font-size-11 { color: var(--fg-3); font-size: 11.5px; margin-right: auto; }
.nds .mainfilter-form .submit-button { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.nds .mainfilter-form .reset-button, .nds .mainfilter-form .hard-reset-button { background: var(--surface); color: var(--fg-2); border-color: var(--border-strong); }
.nds .mainfilter-form .reset-button:hover, .nds .mainfilter-form .hard-reset-button:hover { background: var(--surface-2); color: var(--fg); }
.nds .mainfilter-title { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); border-bottom: 0; padding-bottom: 4px; }
.nds .mainfilter-countries { border-bottom: 1px solid var(--border); margin-bottom: var(--sp-3); display: flex; flex-wrap: wrap; align-items: flex-end; }
.nds .mainfilter-countries > li > a { font-size: 11px; font-weight: 500; color: var(--fg-2); padding: 6px 10px 4px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin: 0; background: transparent; line-height: 1.3; }
.nds .mainfilter-countries > li > a:hover { color: var(--fg); background: transparent; border-bottom-color: var(--border-strong); }
.nds .mainfilter-countries > li.active a { background: transparent !important; color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--accent); }
.nds .mainfilter-countries > li > a .flag { height: 16px; width: 16px; margin-top: 2px; }
.nds .mainfilter-countries .navbar-right { margin-left: auto; margin-right: 0; }
.nds .mainfilter-countries .collapse-adv-filter { color: var(--accent); font-weight: 600; font-size: 11.5px; }
.nds .mainfilter-groups, .nds .mainfilter-groups-default { background: var(--surface-2) !important; border-radius: 7px; }
.nds .mainfilter-groups > li > a { color: var(--fg-2) !important; font-size: 12px !important; border-radius: 6px; }
.nds .mainfilter-groups > li.active > a, .nds .mainfilter-groups-default .navbar-nav > .active > a, .nds .mainfilter-groups-default .navbar-nav > .active > a:hover { color: var(--accent) !important; background: var(--accent-soft) !important; }
.nds .mainfilter-labeltitle { color: var(--fg-3); }
.nds .channel-adv-filter-list-container { margin-top: 6px; }
.nds .select2-select-all-bar { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.nds .select2-select-all-bar .select-all-count { color: var(--fg-3) !important; }

/* ---------- 20. Grid details ------------------------------------------------------- */
.nds .atp-loading-indicator { width: 32px !important; height: 32px !important; object-fit: cover; opacity: .55; margin: 24px auto; display: block; }
.nds #bottom-scroll { background: var(--surface) !important; border-top: 1px solid var(--border); }
.nds .sticky-header-container { left: calc(var(--nds-sidebar-w) + 24px) !important; }
html.nds-rail .nds .sticky-header-container { left: calc(var(--nds-rail-w) + 24px) !important; }
.nds .action-container { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nds .action-container .btn { margin: 0; }
.nds .table .btn-xs, .nds .fixed-table-container .btn-xs { font-size: 11.5px; padding: 2px 8px; }
.nds .table .label { font-size: 10.5px; }
.nds .fixed-table-container .table > tbody > tr > td img { border-radius: 4px; }
.nds .fixed-table-container .th-inner .fa-question, .nds .fixed-table-container .th-inner .tooltip-kpi { font-size: 10px; padding: 1px 4px; margin-left: 4px; }

/* ---------- 21. Density (html.nds-density-compact | -comfortable) ----------------------- */
html.nds-density-compact .nds .table > tbody > tr > td, html.nds-density-compact .nds .table-bordered > tbody > tr > td { padding: 4px 8px; font-size: 12.5px; }
html.nds-density-compact .nds .table > thead > tr > th { padding: 6px 8px; }
html.nds-density-compact .nds .bootstrap-table .fixed-table-container thead th .th-inner { padding: 6px 8px; }
html.nds-density-compact .nds .x_panel { padding: 10px 14px 12px; margin-bottom: 12px; }
html.nds-density-comfortable .nds .table > tbody > tr > td, html.nds-density-comfortable .nds .table-bordered > tbody > tr > td { padding: 11px 12px; font-size: 13.5px; }
html.nds-density-comfortable .nds .table > thead > tr > th { padding: 10px 12px; }
html.nds-density-comfortable .nds .bootstrap-table .fixed-table-container thead th .th-inner { padding: 10px 12px; }
.nds .nds-density-icon { display: none; }
.nds .nds-iconbtn[data-density="default"] .nds-density-icon--default,
.nds .nds-iconbtn[data-density="compact"] .nds-density-icon--compact,
.nds .nds-iconbtn[data-density="comfortable"] .nds-density-icon--comfortable { display: block; }

/* ---------- 22. Auth pages: login (split layout) + reset/confirm (card) --------------- */
body.nds .login_wrapper { margin: 8vh auto 0; max-width: 380px; }
.nds .login_content { color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r3); padding: 28px 28px 20px; text-align: center; }
.nds .login_content h1 { margin: 0 0 18px; }
.nds .login_content h1::before, .nds .login_content h1::after { display: none; }
.nds .login_content h1 img { max-height: 28px; width: auto; background: var(--accent); padding: 8px 14px; border-radius: 8px; }
.nds .login_content .form-control { margin: 8px 0; height: 38px; font-size: 14px; }
.nds .login_content .btn { width: 100%; height: 38px; font-size: 14px; margin: 6px 0 10px; }
.nds .login_content .checkbox { text-align: left; }
.nds .login_content a { color: var(--accent); }
.nds .login_content .separator { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 10px; font-size: 11.5px; color: var(--fg-3); }
.nds .login_content .alert { text-align: left; }
.nds .imprint_content { color: var(--fg); }

/* Timeline: every delay is relative to --t0 so the "instant" variant (after a failed attempt) skips the intro. */
.nds .nds-auth { --t0: 0s; --brand: #0b1220; position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: var(--bg); overflow: hidden; }
.nds .nds-auth--instant { --t0: -4s; }

/* Preloader */
.nds .nds-auth__preloader { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--brand); color: #e8eefb; pointer-events: none; animation: nds-pre-out .55s cubic-bezier(.4, 0, .2, 1) calc(var(--t0) + 1.05s) both; }
.nds .nds-auth--instant .nds-auth__preloader { display: none; }
.nds .nds-auth__pre { width: 96px; height: 96px; overflow: visible; }
.nds .nds-auth__pre-ring { fill: none; stroke: #4f8ff0; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform-box: fill-box; transform-origin: center; animation: nds-draw .9s cubic-bezier(.4, 0, .2, 1) calc(var(--t0) + .05s) both, nds-spin 1.6s linear calc(var(--t0) + 0s) infinite; }
.nds .nds-auth__pre-ring--2 { stroke: #8fc0ff; stroke-opacity: .6; stroke-width: 1.2; animation: nds-draw .9s cubic-bezier(.4, 0, .2, 1) calc(var(--t0) + .2s) both, nds-spin-rev 2.4s linear calc(var(--t0) + 0s) infinite; }
.nds .nds-auth__pre-mono { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: nds-draw .7s cubic-bezier(.4, 0, .2, 1) calc(var(--t0) + .3s) both; }
.nds .nds-auth__pre-word { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #aebfdb; animation: nds-rise .5s cubic-bezier(.2, .7, .2, 1) calc(var(--t0) + .5s) both; }
@keyframes nds-pre-out { 0% { opacity: 1; visibility: visible; transform: scale(1); } 100% { opacity: 0; visibility: hidden; transform: scale(1.04); } }
@keyframes nds-spin { to { transform: rotate(360deg); } }
@keyframes nds-spin-rev { to { transform: rotate(-360deg); } }

/* Brand side */
.nds .nds-auth__brand { --mx: 0; --my: 0; position: relative; overflow: hidden; background: var(--brand); background-image: linear-gradient(160deg, #0b1220 0%, #0d1830 55%, #0b1324 100%); color: #e8eefb; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 56px; }
.nds .nds-auth__art { position: absolute; inset: -4%; width: 108%; height: 108%; }
.nds .nds-auth__layer { transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.nds .nds-auth__layer--far  { transform: translate(calc(var(--mx) * -6px),  calc(var(--my) * -4px)); }
.nds .nds-auth__layer--mid  { transform: translate(calc(var(--mx) * -12px), calc(var(--my) * -8px)); }
.nds .nds-auth__layer--near { transform: translate(calc(var(--mx) * -20px), calc(var(--my) * -14px)); }
.nds .nds-auth__layer--ui   { transform: translate(calc(var(--mx) * -28px), calc(var(--my) * -20px)); }
.nds .nds-auth__dots { animation: nds-pan 40s linear infinite; }
.nds .nds-auth__blob { transform-box: fill-box; transform-origin: center; }
.nds .nds-auth__blob--a { animation: nds-blob-a 14s ease-in-out infinite alternate; }
.nds .nds-auth__blob--b { animation: nds-blob-b 18s ease-in-out infinite alternate; }
.nds .nds-auth__ring { transform-box: fill-box; transform-origin: center; opacity: 0; animation: nds-ring-in 1.2s ease-out calc(var(--t0) + 1.2s) both, nds-spin 60s linear infinite; }
.nds .nds-auth__ring--2 { animation-duration: 1.2s, 90s; animation-direction: normal, reverse; animation-delay: calc(var(--t0) + 1.35s), 0s; }
.nds .nds-auth__ring--3 { animation-duration: 1.2s, 140s; animation-delay: calc(var(--t0) + 1.5s), 0s; }
.nds .nds-auth__edges path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; animation: nds-draw 1.4s cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(var(--t0) + 1.1s + var(--d, 0s)); }
.nds .nds-auth__edges path:nth-child(1)  { --d: .00s } .nds .nds-auth__edges path:nth-child(2)  { --d: .22s } .nds .nds-auth__edges path:nth-child(3)  { --d: .44s } .nds .nds-auth__edges path:nth-child(4)  { --d: .36s } .nds .nds-auth__edges path:nth-child(5)  { --d: .60s }
.nds .nds-auth__edges path:nth-child(6)  { --d: .82s } .nds .nds-auth__edges path:nth-child(7)  { --d: .70s } .nds .nds-auth__edges path:nth-child(8)  { --d: .86s } .nds .nds-auth__edges path:nth-child(9)  { --d: 1.0s } .nds .nds-auth__edges path:nth-child(10) { --d: .52s }
.nds .nds-auth__edges path:nth-child(11) { --d: 1.1s } .nds .nds-auth__edges path:nth-child(12) { --d: 1.25s } .nds .nds-auth__edges path:nth-child(13) { --d: .74s } .nds .nds-auth__edges path:nth-child(14) { --d: .95s } .nds .nds-auth__edges path:nth-child(15) { --d: .62s }
.nds .nds-auth__edges path:nth-child(16) { --d: .40s } .nds .nds-auth__edges path:nth-child(17) { --d: 1.4s } .nds .nds-auth__edges path:nth-child(18) { --d: 1.3s } .nds .nds-auth__edges path:nth-child(19) { --d: 1.15s } .nds .nds-auth__edges path:nth-child(20) { --d: 1.2s }
.nds .nds-auth__pulses circle { opacity: 0; filter: drop-shadow(0 0 4px rgba(143, 192, 255, .9)); }
.nds .nds-auth__halos circle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: nds-halo 3.6s ease-out infinite; animation-delay: calc(var(--t0) + 2.6s + var(--d, 0s)); }
.nds .nds-auth__halos circle:nth-child(2) { --d: .9s } .nds .nds-auth__halos circle:nth-child(3) { --d: 1.8s } .nds .nds-auth__halos circle:nth-child(4) { --d: 2.7s }
.nds .nds-auth__nodes circle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: nds-node-in .6s cubic-bezier(.2, .7, .2, 1) both, nds-node 3.4s ease-in-out infinite; animation-delay: calc(var(--t0) + 1.0s + var(--d, 0s)), calc(var(--t0) + 1.6s + var(--d, 0s)); }
.nds .nds-auth__nodes circle:nth-child(odd) { animation-duration: .6s, 4.1s; }
.nds .nds-auth__nodes circle:nth-child(1)  { --d: .15s } .nds .nds-auth__nodes circle:nth-child(2)  { --d: .35s } .nds .nds-auth__nodes circle:nth-child(3)  { --d: .55s } .nds .nds-auth__nodes circle:nth-child(4)  { --d: .80s } .nds .nds-auth__nodes circle:nth-child(5)  { --d: .50s }
.nds .nds-auth__nodes circle:nth-child(6)  { --d: .95s } .nds .nds-auth__nodes circle:nth-child(7)  { --d: 1.1s } .nds .nds-auth__nodes circle:nth-child(8)  { --d: 1.25s } .nds .nds-auth__nodes circle:nth-child(9)  { --d: 1.45s } .nds .nds-auth__nodes circle:nth-child(10) { --d: .75s }
.nds .nds-auth__nodes circle:nth-child(11) { --d: .60s } .nds .nds-auth__nodes circle:nth-child(12) { --d: 1.55s } .nds .nds-auth__nodes circle:nth-child(13) { --d: 1.3s }
.nds .nds-auth__bars rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: nds-bar-in .8s cubic-bezier(.2, .7, .2, 1) both, nds-bar-breathe 5s ease-in-out infinite alternate; animation-delay: calc(var(--t0) + 1.7s + var(--d, 0s)), calc(var(--t0) + 2.6s + var(--d, 0s)); }
.nds .nds-auth__bars rect:nth-child(1) { --d: 0s } .nds .nds-auth__bars rect:nth-child(2) { --d: .08s } .nds .nds-auth__bars rect:nth-child(3) { --d: .16s } .nds .nds-auth__bars rect:nth-child(4) { --d: .24s } .nds .nds-auth__bars rect:nth-child(5) { --d: .32s } .nds .nds-auth__bars rect:nth-child(6) { --d: .40s } .nds .nds-auth__bars rect:nth-child(7) { --d: .48s }
.nds .nds-auth__baseline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nds-draw .8s ease-out calc(var(--t0) + 1.6s) both; }
.nds .nds-auth__spark { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nds-draw 1.6s cubic-bezier(.4, 0, .2, 1) calc(var(--t0) + 1.8s) both; }
.nds .nds-auth__spark-area { opacity: 0; animation: nds-fade-in 1s ease-out calc(var(--t0) + 2.9s) both; }
.nds .nds-auth__spark-dot { transform-box: fill-box; transform-origin: center; opacity: 0; animation: nds-node-in .5s ease-out calc(var(--t0) + 3.3s) both, nds-dot-pulse 2.2s ease-in-out calc(var(--t0) + 3.8s) infinite; }
@keyframes nds-draw { to { stroke-dashoffset: 0; } }
@keyframes nds-pan { from { transform: translate(0, 0); } to { transform: translate(-28px, -28px); } }
@keyframes nds-blob-a { from { transform: translate(-30px, 10px) scale(.92); opacity: .85; } to { transform: translate(40px, -30px) scale(1.12); opacity: 1; } }
@keyframes nds-blob-b { from { transform: translate(20px, 20px) scale(.9); opacity: .7; } to { transform: translate(-50px, -40px) scale(1.1); opacity: 1; } }
@keyframes nds-ring-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nds-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nds-node-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes nds-node { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes nds-halo { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes nds-bar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes nds-bar-breathe { from { transform: scaleY(1); } to { transform: scaleY(.84); } }
@keyframes nds-dot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }

/* Floating chips (desktop) */
.nds .nds-auth__chips { position: absolute; top: 44px; right: 48px; display: grid; gap: 10px; justify-items: end; }
.nds .nds-auth__chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #dbe8ff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(143, 192, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; animation: nds-chip-in .6s cubic-bezier(.2, .7, .2, 1) both, nds-float 6s ease-in-out infinite alternate; }
.nds .nds-auth__chip svg { width: 14px; height: 14px; color: #8fc0ff; }
.nds .nds-auth__chip--1 { animation-delay: calc(var(--t0) + 1.9s), calc(var(--t0) + 2.5s); }
.nds .nds-auth__chip--2 { animation-delay: calc(var(--t0) + 2.1s), calc(var(--t0) + 3.1s); margin-right: 22px; }
.nds .nds-auth__chip--3 { animation-delay: calc(var(--t0) + 2.3s), calc(var(--t0) + 2.0s); margin-right: 8px; }
@keyframes nds-chip-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes nds-float { from { translate: 0 0; } to { translate: 0 -7px; } }

.nds .nds-auth__brand-text { position: relative; max-width: 440px; animation: nds-rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--t0) + 1.25s); }
.nds .nds-auth__logo { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--accent); margin-bottom: 22px; box-shadow: 0 8px 24px rgba(79, 143, 240, .35); }
.nds .nds-auth__logo img { height: 18px; width: auto; display: block; }
.nds .nds-auth__brand-text h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 10px; color: #fff; }
.nds .nds-auth__brand-text p { font-size: 16px; line-height: 1.5; color: #aebfdb; margin: 0; max-width: 38ch; }
.nds .nds-auth__foot { position: relative; margin-top: 40px; font-size: 12px; color: #6f7f9c; animation: nds-fade-in .8s ease-out calc(var(--t0) + 1.8s) both; }

/* Form side: the panel slides in from the right, fields stagger in after it */
.nds .nds-auth__panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; animation: nds-slide-in .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--t0) + 1.15s); }
.nds .nds-auth__form { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px 36px 28px; display: grid; gap: 6px; box-shadow: 0 24px 60px -30px rgba(11, 18, 32, .35); }
.nds .nds-auth__form > * { animation: nds-rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--t0) + 1.45s + var(--d, 0s)); }
.nds .nds-auth__form > :nth-child(1) { --d: 0s } .nds .nds-auth__form > :nth-child(2) { --d: .05s } .nds .nds-auth__form > :nth-child(3) { --d: .10s } .nds .nds-auth__form > :nth-child(4) { --d: .14s } .nds .nds-auth__form > :nth-child(5) { --d: .18s } .nds .nds-auth__form > :nth-child(6) { --d: .22s }
.nds .nds-auth__form > :nth-child(7) { --d: .26s } .nds .nds-auth__form > :nth-child(8) { --d: .30s } .nds .nds-auth__form > :nth-child(9) { --d: .34s } .nds .nds-auth__form > :nth-child(10) { --d: .38s } .nds .nds-auth__form > :nth-child(11) { --d: .42s } .nds .nds-auth__form > :nth-child(12) { --d: .46s } .nds .nds-auth__form > :nth-child(13) { --d: .50s }
.nds .nds-auth__title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--fg); }
.nds .nds-auth__lead { color: var(--fg-3); font-size: 13.5px; margin: 0 0 14px; }
.nds .nds-auth__label { font-size: 12px; font-weight: 600; color: var(--fg-2); margin: 8px 0 0; letter-spacing: .02em; }
.nds .nds-auth__input.form-control { height: 42px; font-size: 14.5px; border-radius: 9px; margin: 0; transition: border-color .15s, box-shadow .15s; }
.nds .nds-auth__input.form-control:focus { box-shadow: 0 0 0 3px rgba(79, 143, 240, .22); }
.nds .nds-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0 6px; font-size: 13px; }
.nds .nds-auth__check { display: inline-flex; align-items: center; gap: 7px; font-weight: 450; color: var(--fg-2); margin: 0; cursor: pointer; }
.nds .nds-auth__check input { margin: 0; accent-color: var(--accent); width: 15px; height: 15px; }
.nds .nds-auth__link { font-weight: 500; }
.nds .btn.nds-auth__submit { height: 44px; font-size: 15px; font-weight: 600; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; width: 100%; transition: transform .15s, box-shadow .15s; }
.nds .btn.nds-auth__submit:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(79, 143, 240, .6); }
.nds .btn.nds-auth__submit:hover svg { transform: translateX(2px); }
.nds .btn.nds-auth__submit svg { transition: transform .15s; }
.nds .nds-auth__hint { font-size: 12px; color: var(--fg-3); text-align: center; margin: 10px 0 0; }
.nds .nds-auth__links { display: flex; gap: 10px; justify-content: center; font-size: 12px; color: var(--fg-3); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.nds .nds-auth__form .alert { margin: 4px 0 8px; font-size: 13px; }
@keyframes nds-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes nds-slide-in { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }

/* Mobile: brand becomes a compact animated hero on top, the form card slides in beneath it */
@media (max-width: 860px) {
    .nds .nds-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .nds .nds-auth__brand { min-height: 236px; padding: 24px 20px 22px; justify-content: flex-end; }
    .nds .nds-auth__art { inset: 0; width: 100%; height: 100%; }
    .nds .nds-auth__chips { display: none; }
    .nds .nds-auth__logo { height: 34px; padding: 0 13px; margin-bottom: 14px; }
    .nds .nds-auth__logo img { height: 15px; }
    .nds .nds-auth__brand-text h2 { font-size: 24px; margin-bottom: 6px; }
    .nds .nds-auth__brand-text p { font-size: 14px; max-width: none; }
    .nds .nds-auth__foot { display: none; }
    .nds .nds-auth__panel { padding: 20px 16px 36px; align-items: flex-start; }
    .nds .nds-auth__form { padding: 26px 20px 22px; border-radius: 14px; }
    .nds .nds-auth__title { font-size: 23px; }
    .nds .nds-auth__input.form-control { height: 46px; font-size: 16px; }
    .nds .btn.nds-auth__submit { height: 48px; font-size: 16px; }
    .nds .nds-auth__pre { width: 80px; height: 80px; }
    @keyframes nds-slide-in { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 860px) and (max-height: 700px) { .nds .nds-auth__brand { min-height: 190px; } .nds .nds-auth__brand-text p { display: none; } }
@media (hover: none), (pointer: coarse) { .nds .nds-auth__layer { transition: none; } }
@media (prefers-reduced-motion: reduce) {
    .nds .nds-auth__preloader { display: none; }
    .nds .nds-auth *, .nds .nds-auth *::before, .nds .nds-auth *::after { animation: none !important; transition: none !important; }
    .nds .nds-auth__edges path, .nds .nds-auth__spark, .nds .nds-auth__baseline { stroke-dashoffset: 0; }
    .nds .nds-auth__nodes circle, .nds .nds-auth__ring, .nds .nds-auth__chip, .nds .nds-auth__spark-area, .nds .nds-auth__spark-dot, .nds .nds-auth__panel, .nds .nds-auth__form > *, .nds .nds-auth__brand-text, .nds .nds-auth__foot { opacity: 1; transform: none; }
    .nds .nds-auth__bars rect { transform: none; }
    .nds .nds-auth__halos, .nds .nds-auth__pulses { display: none; }
}

/* ---------- 23. Loading: top progress bar, page transition, overlay, grid indicator ---- */
.nds .nds-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 3000; pointer-events: none; opacity: 0; transition: opacity .2s; }
.nds .nds-progress.is-active { opacity: 1; }
.nds .nds-progress::before { content: ""; position: absolute; inset: 0; background: var(--border); opacity: .6; }
.nds .nds-progress::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), var(--accent), transparent); animation: nds-progress 1.1s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes nds-progress { to { left: 110%; } }
/* Content loader (nds.js: NDS.loader) — ring with a real/estimated percentage, label, context line, laid over the
   block that is loading (position/size set inline by nds.js, follows scroll). Driven by the --p custom property
   (0..1) on .nds-loader; pathLength="1" on the arc makes dashoffset = 1 - p. */
.nds .nds-loader { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 2990; gap: 22px; border-radius: var(--r3); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1); opacity: 0; pointer-events: none; transition: opacity .26s var(--nds-ease); --p: 0; }
.nds .nds-loader.is-active { opacity: 1; pointer-events: auto; }
.nds .nds-loader.is-done .nds-loader__core { transform: scale(1.04); }
.nds .nds-loader__grid { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--border-strong) 1px, transparent 1.2px); background-size: 26px 26px; opacity: .45; -webkit-mask-image: radial-gradient(ellipse 48% 58% at 50% 50%, #000 0%, transparent 100%); mask-image: radial-gradient(ellipse 48% 58% at 50% 50%, #000 0%, transparent 100%); }
.nds .nds-loader__glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%); filter: blur(6px); animation: nds-loader-breathe 3.2s ease-in-out infinite; }
.nds .nds-loader__core { position: relative; width: 300px; height: 300px; display: grid; place-items: center; transition: transform .3s var(--nds-ease); animation: nds-rise .38s cubic-bezier(.2, .7, .2, 1) both; }
.nds .nds-loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nds .nds-loader__ring circle { fill: none; transform-origin: 60px 60px; }
.nds .nds-loader__ring .track { stroke: var(--border); stroke-width: 2; }
.nds .nds-loader__ring .arc { stroke: url(#nds-loader-grad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); transform: rotate(-90deg); transition: stroke-dashoffset .28s var(--nds-ease); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent)); }
.nds .nds-loader__ring .orbit { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 6; animation: nds-spin 14s linear infinite; }
.nds .nds-loader__ring .orbit--2 { stroke: color-mix(in srgb, var(--accent) 60%, var(--border-strong)); stroke-dasharray: 14 10; animation: nds-spin 7s linear infinite reverse; opacity: .8; }
.nds .nds-loader__ring .orbit--3 { stroke: var(--border); stroke-width: 1; stroke-dasharray: 1 4; animation: nds-spin 22s linear infinite; }
.nds .nds-loader__ring .sat { animation: nds-spin 2.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.nds .nds-loader__ring .sat circle { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.nds .nds-loader__ring .sat--2 { animation-duration: 4.1s; animation-direction: reverse; }
.nds .nds-loader__ring .sat--2 circle { fill: color-mix(in srgb, var(--accent) 55%, var(--fg-3)); }
.nds .nds-loader__ticks line { stroke: var(--border-strong); stroke-width: 1.5; stroke-linecap: round; transition: stroke .2s; }
.nds .nds-loader__ticks line.is-on { stroke: var(--accent); }
.nds .nds-loader__num { position: relative; display: inline-flex; align-items: baseline; gap: 2px; font-size: 68px; font-weight: 650; letter-spacing: -.03em; color: var(--fg); font-variant-numeric: tabular-nums; line-height: 1; }
.nds .nds-loader__pct { font-size: 22px; font-weight: 600; color: var(--fg-3); letter-spacing: 0; }
.nds .nds-loader__text { position: relative; text-align: center; animation: nds-rise .38s .06s cubic-bezier(.2, .7, .2, 1) both; }
.nds .nds-loader__title { font-size: 17px; font-weight: 600; color: var(--fg); letter-spacing: -.01em; }
.nds .nds-loader__sub { margin-top: 4px; font-size: 13px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; }
.nds .nds-loader__sub::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: nds-loader-blink 1.1s ease-in-out infinite; }
.nds .nds-loader__bar { position: relative; width: 340px; height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.nds .nds-loader__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #8bd3ff)); transition: width .28s var(--nds-ease); }
.nds .nds-loader__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: nds-loader-sheen 1.6s ease-in-out infinite; }
.nds .nds-loader__stats { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--fg-3); letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
/* the block under the loader keeps enough height for the ring; empty filter pills (not yet built by the ATP filter
   module) are skeletons instead of bordered circles */
.nds .nds-loading-target { min-height: 380px; transition: min-height .25s var(--nds-ease); }
.nds .right_col.nds-loading-target { min-height: calc(100vh - var(--nds-topbar-h)); }
.nds .container-box:not(:has(label, input, select)), .nds .container-box1:not(:has(label, input, select)) { width: 120px; border-color: transparent; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%) !important; background-size: 200% 100% !important; animation: nds-skeleton 1.2s linear infinite; }
@keyframes nds-skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* compact: small blocks (short tables, panels) */
.nds .nds-loader--compact { gap: 10px; }
.nds .nds-loader--compact .nds-loader__core { width: 150px; height: 150px; }
.nds .nds-loader--compact .nds-loader__num { font-size: 34px; }
.nds .nds-loader--compact .nds-loader__pct { font-size: 11px; }
.nds .nds-loader--compact .nds-loader__title { font-size: 13px; }
.nds .nds-loader--compact .nds-loader__sub { font-size: 11.5px; margin-top: 1px; }
.nds .nds-loader--compact .nds-loader__bar { width: 220px; }
.nds .nds-loader--compact .nds-loader__stats, .nds .nds-loader--compact .nds-loader__glow { display: none; }
.nds .nds-loader--tiny { flex-direction: row; gap: 12px; }
.nds .nds-loader--tiny .nds-loader__core { width: 56px; height: 56px; }
.nds .nds-loader--tiny .nds-loader__num { font-size: 14px; }
.nds .nds-loader--tiny .nds-loader__pct { display: none; }
.nds .nds-loader--tiny .nds-loader__text { text-align: left; }
.nds .nds-loader--tiny .nds-loader__bar, .nds .nds-loader--tiny .nds-loader__grid { display: none; }
@keyframes nds-loader-breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes nds-loader-blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes nds-loader-sheen { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.nds .nds-spinner { width: 22px; height: 22px; display: block; }
.nds .nds-spinner circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60 120; animation: nds-spin 1s linear infinite, nds-dash 1.4s ease-in-out infinite; transform-origin: center; }
.nds .nds-spinner .track { stroke: var(--border); stroke-dasharray: none; animation: none; }
@keyframes nds-spin { to { transform: rotate(360deg); } }
@keyframes nds-dash { 0% { stroke-dasharray: 10 120; } 50% { stroke-dasharray: 70 120; } 100% { stroke-dasharray: 10 120; } }
.nds .right_col.nds-main { animation: nds-page-in .28s cubic-bezier(.2, .7, .2, 1); } /* no fill-mode: a filled transform/opacity animation keeps a stacking context and traps Bootstrap modals under the body-level backdrop */
html.nds-leaving .nds .right_col.nds-main { opacity: .45; transition: opacity .25s; }
@keyframes nds-page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nds .atp-loading-indicator { content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' width='40' height='40'><circle cx='22' cy='22' r='17' fill='none' stroke='%23c7cdd7' stroke-width='3'/><circle cx='22' cy='22' r='17' fill='none' stroke='%232a6fdb' stroke-width='3' stroke-linecap='round' stroke-dasharray='40 120'><animateTransform attributeName='transform' type='rotate' from='0 22 22' to='360 22 22' dur='0.9s' repeatCount='indefinite'/></circle></svg>"); width: 40px !important; height: 40px !important; opacity: 1; margin: 28px auto; }
.nds .fixed-table-loading { background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--fg-3); font-size: 12.5px; }
.nds .fixed-table-loading .loading-wrap { display: inline-flex; align-items: center; gap: 10px; }
.nds .fixed-table-loading .loading-wrap::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--accent); animation: nds-spin .9s linear infinite; }
.nds .fixed-table-loading .animation-wrap, .nds .fixed-table-loading .animation-dot { display: none; }
.nds .loadingoverlay { background: color-mix(in srgb, var(--surface) 70%, transparent) !important; backdrop-filter: blur(2px); }
.nds .loadingoverlay .loadingoverlay_element { color: var(--accent) !important; }
@media (prefers-reduced-motion: reduce) { .nds .right_col.nds-main { animation: none; } .nds .nds-progress::after { animation-duration: 2.2s; } .nds .nds-loader__ring .orbit, .nds .nds-loader__ring .orbit--2, .nds .nds-loader__ring .orbit--3, .nds .nds-loader__ring .sat, .nds .nds-loader__glow, .nds .nds-loader__bar::after { animation: none; } .nds .nds-loader__core, .nds .nds-loader__text { animation: none; } }

/* table overlay (jQuery LoadingOverlay on tbody): ring + label, rounded, same look everywhere */
.nds .loadingoverlay { border-radius: var(--r1); }
.nds .loadingoverlay .loadingoverlay_text { font-family: var(--font) !important; font-size: 12.5px !important; font-weight: 500; color: var(--fg-2) !important; letter-spacing: .01em; }
.nds .loadingoverlay .loadingoverlay_element { filter: none; }
.nds .ngo--module-grid:empty, .nds .ngo--module-grid > .atp-loading { min-height: 120px; }
/* long text cells: clamped to 2 lines with a "Show more" toggle (nds.js) */
.nds td.nds-clamp .nds-clamp__body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.nds td.nds-clamp.is-open .nds-clamp__body { display: block; -webkit-line-clamp: unset; }
.nds .nds-clamp__more { display: inline-block; margin-top: 3px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.nds .nds-clamp__more:hover { text-decoration: underline; }
.nds td.nds-clamp pre, .nds td.nds-clamp code { white-space: pre-wrap; font-size: 11.5px; }

/* ---------- 24. Dashboard + page utilities ----------------------------------------------- */
.nds .nds-page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.nds .nds-page-title__sub { font-size: 14px; font-weight: 500; color: var(--fg-3); margin-left: 8px; }
.nds .x_panel.nds-panel-soft { background: var(--surface); }
.nds .nds-resp-row { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--border); }
.nds .nds-resp-row:last-child { border-bottom: 0; }
.nds .nds-resp-row h4 { font-size: 13.5px; font-weight: 650; margin: 2px 0; color: var(--fg); }
.nds .nds-resp-group { padding: 8px 0; margin: 0; border-bottom: 1px dashed var(--border); }
.nds .nds-resp-group:last-child { border-bottom: 0; }
.nds .nds-group-label { display: inline-block; font-size: 12px; font-weight: 650; color: var(--fg); padding: 2px 0; margin-bottom: 4px; }
.nds .nds-note { display: inline-block; font-size: 10.5px; font-weight: 600; color: var(--warn-text); background: var(--warn-soft); border-radius: 4px; padding: 1px 6px; margin-top: 4px; }
.nds .nds-chip { display: inline-block; white-space: nowrap; font-size: 11.5px; font-weight: 550; color: var(--fg); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; margin: 0 4px 4px 0; line-height: 1.4; }
.nds .nds-chip--block { vertical-align: top; }
.nds .nds-chip__sub { font-size: 10.5px; font-weight: 450; color: var(--fg-2); white-space: normal; max-width: 420px; margin-top: 2px; }
.nds .nds-chip__role { color: var(--accent); font-weight: 650; }
.nds .nds-chip__key { color: var(--fg); font-weight: 650; }
.nds .nds-w-100 { width: 100%; }
.nds .nds-w-240 { min-width: 240px; }
.nds .nds-w-40p { width: 40%; }
.nds .nds-pointer { cursor: pointer; }
.nds .nds-filter-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.nds .nds-filter-row .nds-filter-field { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.nds .nds-filter-row .nds-filter-field label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); margin: 0; }
.nds .nds-filter-row .nds-filter-field--actions { flex-direction: row; gap: 8px; }
.nds .nds-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 16px; }
.nds .nds-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); padding: 14px 16px; min-width: 0; }
.nds .nds-tile__label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.nds .nds-tile__value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px; color: var(--fg); }
.nds .nds-tile__value--text { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nds .nds-tile__meta { font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.nds .accordion-container .panel-heading { padding: 8px 12px !important; }
.nds .accordion-container .panel-heading:hover { background: var(--surface-3) !important; color: var(--fg); }
.nds .accordion-container .panel-title a { color: var(--fg); font-size: 13px; font-weight: 600; }
.nds .accordion-container .panel-body { padding: 12px; background: var(--surface); }
.nds .btn-dark { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nds .btn-dark span { color: inherit !important; }
.nds .collapse-link.btn { border: 0; background: transparent; color: var(--fg-3); }
.nds .nds-channels .select2-container--default .select2-selection--multiple { border-color: var(--border) !important; box-shadow: none; }
.nds .nds-channels .select2-container--default.select2-container--focus .select2-selection--multiple { border-color: var(--accent) !important; }

/* ---------- 25. Shop revenue dashboard (/statistic/shop-revenue): bridge its --sr-* tokens to NDS -------- */
.nds .sr { --sr-bg: var(--bg); --sr-surface: var(--surface); --sr-ink: var(--fg); --sr-muted: var(--fg-2); --sr-faint: var(--fg-3); --sr-line: var(--border); --sr-line-strong: var(--border-strong);
  --sr-accent: var(--accent); --sr-series-1: var(--s1); --sr-series-2: var(--s3); --sr-td: var(--s1); --sr-billiger: #6250d6; --sr-sales: var(--s3); --sr-cpc: var(--s4);
  --sr-good: var(--good-text); --sr-good-bg: var(--good-soft); --sr-warn: var(--warn-text); --sr-warn-bg: var(--warn-soft); --sr-bad: var(--crit-text); --sr-bad-bg: var(--crit-soft); --sr-info-bg: var(--accent-soft); }
.nds .sr-table tbody tr:hover td { background: var(--surface-2); }
.nds .sr-mix__track, .nds .sr-epc__track { background: var(--surface-3); }
.nds .sr-alert--info, .nds .sr-alert--rejected { background: var(--surface-2); }
.nds .sr-chip--td { background: var(--accent-soft); color: var(--accent); }
.nds .sr-chip--sales { background: var(--good-soft); color: var(--good-text); }
.nds .sr-chip--cpc { background: var(--warn-soft); color: var(--warn-text); }
.nds .sr-chip--billiger { background: color-mix(in srgb, #6250d6 16%, var(--surface)); color: #6250d6; }
:root[data-theme="dark"] .nds .sr-chip--billiger { color: #9085e9; }
.nds .sr-hero .sr-period input[type=text] { color: #fff; }
.nds .sr-btn { border-radius: 7px; font-weight: 500; }
.nds .sr-kpi, .nds .sr-card, .nds .sr-recs, .nds .sr-portal { border-radius: var(--r2); }

/* ---------- 26. Reports hub details ------------------------------------------------------ */
.nds .nds-kpi-detail { font-size: 12.5px; }
.nds .nds-kpi-detail--scroll { overflow-y: auto; max-height: 160px; }
.nds .nds-kpi-detail__total { font-weight: 650; margin-bottom: 4px; }
.nds .nds-kpi-detail__items { background: var(--surface-2); border-radius: 6px; padding: 6px 8px; display: grid; gap: 2px; }
.nds .x_title .panel_toolbox_col, .nds .x_title .nav.navbar-right { float: right; margin: 0; }
.nds .x_title .panel_toolbox_col > li > a, .nds .x_title .collapse-link { color: var(--fg-3); padding: 4px 6px; border-radius: 6px; display: inline-flex; }
.nds .x_title .panel_toolbox_col > li > a:hover, .nds .x_title .collapse-link:hover { background: var(--surface-2); color: var(--fg); }
.nds #ngo--main-filter-countries.mainfilter-countries { justify-content: center; }
.nds .margin-bottom-20 { margin-bottom: 16px; }
.nds .generateInvoiceBlock { margin: 0 0 12px; }
.nds .rework-comment { background: var(--warn-soft); color: var(--warn-text); border-radius: 8px; padding: 6px 10px; }
.nds .creative-grid-big-columns .btn { margin-bottom: 2px; }
.nds .copy-creatives .card { border: 1px solid var(--border); border-radius: var(--r1); background: var(--surface); }
.nds .copy-creatives .card-header { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.nds .copy-creatives .btn-header-link { color: var(--fg); }

/* ---------- 27. Creatives / Products listing: head row, source chips, content filter, grid cells ---------- */
.nds .nds-listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.nds .nds-listing-head .breadcrumb { margin: 0; }
.nds .nds-listing-head__tools { display: flex; align-items: center; gap: var(--sp-2); }
.nds .nds-listing-head__tools [data-atp-filter] { display: flex; align-items: center; gap: var(--sp-2); }
.nds .nds-listing-head__tools label { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.nds .nds-listing-head__tools .form-control { width: 210px; height: 30px; font-size: 12.5px; }
/* source row: eyebrow + country chips + "Filters" toggle */
.nds .nds-source { display: flex; align-items: flex-start; gap: var(--sp-3); padding-bottom: var(--sp-3); margin-bottom: var(--sp-3); border-bottom: 1px solid var(--border); }
.nds .nds-source__label { flex: none; height: 28px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; }
.nds .nds-source__label .fa { font-size: 11px; opacity: .8; }
.nds .nds-source .mainfilter-countries { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 3px; margin: 0; padding: 0; border: 0; justify-content: flex-start; }
.nds .nds-source .mainfilter-countries > li { margin: 0; float: none; flex: none; overflow: visible; }
.nds .nds-source .mainfilter-countries > li > a { display: inline-flex; align-items: center; gap: 6px; height: 28px; margin: 0; padding: 0 10px 0 7px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--fg-2); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; transition: background var(--nds-t), color var(--nds-t), border-color var(--nds-t); }
.nds .nds-source .mainfilter-countries > li > a:hover { background: var(--surface-2); color: var(--fg); border-color: transparent; }
.nds .nds-source .mainfilter-countries > li.active > a, .nds .nds-source .mainfilter-countries > li.active > a:hover, .nds .nds-source .mainfilter-countries > li.active > a:focus { background: var(--accent-soft) !important; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 600; }
.nds .nds-source .flag { width: 24px; height: 24px; flex: none; transform: scale(.66); margin: -4px -5px; border-radius: 3px; vertical-align: middle; }
.nds .nds-source__all { width: 14px; text-align: center; font-size: 12px; opacity: .85; }
.nds .nds-source__toggle { flex: none; position: static !important; margin: 0 !important; float: none !important; }
.nds .nds-source__toggle > li > a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.nds .nds-source__toggle > li > a:hover { background: var(--surface-2); color: var(--fg); }
.nds .nds-source__toggle .fa { font-size: 10px; opacity: .8; }
/* channel_adv_filter.css paints the content filter in black / grey bands: flatten it onto the NDS surface */
.nds .x_content form, .nds .mainfilter-form form { background: var(--surface-2) !important; padding: var(--sp-3) var(--sp-4) !important; }
.nds .mainfilter-form .main-filters { background: transparent !important; border: 0 !important; padding: 0 !important; }
.nds .mainfilter-form .main-filters + .main-filters { margin-top: var(--sp-3); padding-top: var(--sp-3) !important; border-top: 1px dashed var(--border-strong) !important; }
.nds .mainfilter-title-content { background: transparent; padding: 0; margin-bottom: var(--sp-2); }
.nds .mainfilter-form .filter-actions { background: transparent !important; overflow: visible; }
.nds .x_content .nav-tabs { margin-bottom: 0 !important; }
.nds .tab-content > .tab-pane > .row > .col-md-12 { padding: 0; }
.nds .mainfilter-form [data-atp-filter] > .form-control, .nds .mainfilter-form [data-atp-filter] > .select2-container { width: 100% !important; }
.nds .mainfilter-form .form-control, .nds .mainfilter-form .select2-container--default .select2-selection--single, .nds .mainfilter-form .select2-container--default .select2-selection--multiple { min-height: 30px; height: auto; font-size: 12.5px; background: var(--surface) !important; border-color: var(--border-strong); }
.nds .mainfilter-form .select2-container--default .select2-selection--single { height: 30px; }
.nds .mainfilter-form .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 28px; }
.nds .mainfilter-form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 28px; }
.nds .mainfilter-form input.form-control { height: 30px; }
/* checkbox filters: box first, text label after, no inline 20px boxes */
.nds .mainfilter-form .main-filters [data-atp--input-type="checkbox"] { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 7px; min-height: 30px; margin-top: 18px; }
.nds .mainfilter-form .main-filters [data-atp--input-type="checkbox"] label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.nds .mainfilter-form .main-filters [data-atp--input-type="checkbox"] input[type="checkbox"] { width: 15px !important; height: 15px !important; margin: 0 !important; accent-color: var(--accent); cursor: pointer; flex: none; }
.nds .mainfilter-form .main-filters > .col-md-1:has([data-atp--input-type="checkbox"]) { align-self: flex-end; }
/* range filter: slider + value */
.nds .mainfilter-form [data-atp--input-type="range"] br { display: none; }
.nds .mainfilter-form [data-atp--input-type="range"] input[type="range"] { width: 100px; margin: 0; vertical-align: middle; accent-color: var(--accent); cursor: pointer; height: 30px; }
.nds .mainfilter-form [data-atp--input-type="range"] output { font-size: 12.5px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; margin: 0 0 0 8px !important; vertical-align: middle !important; min-width: 24px; display: inline-block; }
/* ---- channel filter panel (channel_adv_filter.html.twig: group, channel type, channel list, campaign) ----
   One grid for every row: 118px label column + content. Checkbox pills (26px) show their state through :has(). */
.nds .mainfilter-form form { border: 1px solid var(--border); }
.nds .mainfilter-form .row { margin-left: 0; margin-right: 0; }
.nds .mainfilter-form .panel-footer.adv-filter, .nds .x_content .panel-footer.adv-filter { background: transparent !important; border: 0; border-top: 1px dashed var(--border-strong); padding: var(--sp-2) 0; margin: 0; }
.nds .mainfilter-form .multi-collapse { display: flex; align-items: flex-start; gap: var(--sp-4); padding: 0; float: none; width: 100%; }
.nds .mainfilter-form .multi-collapse.collapse:not(.in) { display: none !important; }
.nds .mainfilter-form .multi-collapse.collapsing { overflow: hidden; }
.nds .mainfilter-form .adv-filter:has(> .multi-collapse.collapse:not(.in)), .nds .mainfilter-form .mainfilter-groups-default:has(> .channel-group-container > .multi-collapse.collapse:not(.in)) { display: none; }
.nds .mainfilter-form .multi-collapse > .col-md-1 { flex: 0 0 118px; width: auto; padding: 0; float: none; }
.nds .mainfilter-form .multi-collapse > .col-md-11 { flex: 1 1 auto; min-width: 0; width: auto; padding: 0; float: none; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.nds .mainfilter-labeltitle { text-align: left; padding: 5px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); line-height: 16px; }
.nds .mainfilter-form .multi-collapse > .col-md-1 .padding-top-10 { float: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 6px; }
.nds .select-all-btn { float: none !important; background: var(--surface); color: var(--fg-2); border: 1px solid var(--border-strong); border-radius: 6px !important; font-size: 11px; font-weight: 600; height: 24px; line-height: 22px; padding: 0 8px; margin: 0; }
.nds .select-all-btn:hover { background: var(--surface-2); color: var(--fg); }
/* group: segmented control with a label column of its own */
.nds .mainfilter-form .mainfilter-groups-default { background: transparent !important; border: 0; min-height: 0; margin: 0 0 var(--sp-2); border-radius: 0; }
.nds .mainfilter-form .channel-group-container { display: flex; align-items: center; gap: var(--sp-4); padding: 0; }
.nds .mainfilter-form .channel-group-container::before { content: "Group"; flex: 0 0 118px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.nds .mainfilter-groups { display: inline-flex; flex: 0 0 auto; flex-wrap: nowrap; width: auto; gap: 2px; margin: 0; padding: 2px; background: var(--surface-3) !important; border-radius: 8px; float: none; }
.nds .mainfilter-groups > li { float: none; }
.nds .mainfilter-groups > li > a { display: inline-flex; align-items: center; height: 26px !important; padding: 0 12px !important; margin: 0 !important; border-radius: 6px; font-size: 12px !important; font-weight: 500; line-height: 1 !important; color: var(--fg-2) !important; background: transparent !important; cursor: pointer; }
.nds .mainfilter-groups > li > a:hover { color: var(--fg) !important; }
.nds .mainfilter-groups > li.active > a, .nds .mainfilter-groups-default .navbar-nav > .active > a, .nds .mainfilter-groups-default .navbar-nav > .active > a:hover { color: var(--fg) !important; background: var(--surface) !important; font-weight: 600; box-shadow: 0 1px 2px rgba(20, 26, 36, .12); }
/* checkbox pills (channel type + channel list) */
.nds .channel-adv-filter-list-container { margin: 0; }
.nds .container-box, .nds .container-box1 { display: inline-flex; align-items: center; height: 26px; margin: 0; padding: 0 10px 0 7px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface) !important; color: var(--fg-2); line-height: 1; cursor: pointer; text-align: left; transition: background var(--nds-t), color var(--nds-t), border-color var(--nds-t); }
.nds .container-box:hover, .nds .container-box1:hover { border-color: var(--fg-3); color: var(--fg); }
.nds .container-box:has(input:checked), .nds .container-box1:has(input:checked) { background: var(--accent-soft) !important; border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.nds .container-box [data-atp-filter], .nds .container-box1 [data-atp-filter] { display: flex; flex-direction: row-reverse; align-items: center; gap: 6px; }
.nds .container-box label, .nds .container-box1 label, .nds .adv-filter .container-box label[for*="atp-filter-select-"], .nds .adv-filter .container-box1 label[for*="atp-filter-select-"] { color: inherit; width: auto; text-align: left; font-size: 12px; font-weight: 500; margin: 0; padding: 0; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; }
.nds .container-box input[type="checkbox"], .nds .container-box1 input[type="checkbox"] { float: none; width: 13px; height: 13px; margin: 0 !important; accent-color: var(--accent); cursor: pointer; }
/* channel list: one block per group, label inline before its pills */
.nds .main-channel-splitter { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; background: transparent; margin: 0; padding: 4px 0; }
.nds .main-channel-splitter + .main-channel-splitter { border-top: 1px solid var(--border); padding-top: 8px; }
.nds .main-channel-splitter-label { flex: 0 0 auto; min-width: 100px; margin: 0 6px 0 0; padding: 0 !important; color: var(--fg-3) !important; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 26px; }
.nds .main-channel-splitter-label .fa { font-size: 10px; margin-right: 3px; opacity: .8; }
/* campaign row: label column + select on one line */
.nds .mainfilter-campaign .multi-collapse > [data-atp-filter] { flex: 1 1 auto; display: flex; align-items: center; gap: var(--sp-4); min-width: 0; }
.nds .mainfilter-campaign .multi-collapse > [data-atp-filter] > label[for*="atp-filter-select-"] { flex: 0 0 118px; width: auto; margin: 0; padding: 0; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.nds .mainfilter-campaign .multi-collapse > [data-atp-filter] > .form-control, .nds .mainfilter-campaign .multi-collapse > [data-atp-filter] > .select2-container { flex: 0 1 520px; width: auto !important; margin: 0; }
.nds .adv-filter select { width: auto; margin-left: 0; background: var(--surface) !important; }
.nds .adv-filter .select2-container--default .select2-selection--multiple { background: var(--surface) !important; border: 1px solid var(--border-strong); }
/* content filter: compact select2 and a divider title */
.nds .mainfilter-form .mainfilter-title-content { border-top: 1px solid var(--border); padding-top: var(--sp-3); margin-top: var(--sp-2); }
.nds .mainfilter-form .main-filters { align-items: flex-start; }
.nds .mainfilter-form .select2-container--default .select2-selection--multiple .select2-selection__rendered { padding: 1px 4px; min-height: 28px; }
.nds .mainfilter-form .select2-container--default .select2-selection--multiple .select2-search__field { margin: 2px 0; height: 22px; font-size: 12.5px; }
.nds .mainfilter-form .select2-container--default .select2-selection--multiple .select2-selection__choice { font-size: 11.5px; padding: 1px 6px; margin: 1px 0; }
/* grid cells (column classes set in CreativeBundle Collector) */
.nds td.creative-cell { vertical-align: top !important; text-align: left !important; padding: 8px 10px !important; font-size: 12.5px; line-height: 1.45; }
.nds td.creative-cell--info br, .nds td.creative-cell--actions br { display: none; }
.nds td.creative-cell--info { min-width: 170px; }
.nds td.creative-cell--info > span[title] { display: block; font-weight: 600; color: var(--fg); margin-bottom: 3px; }
.nds td.creative-cell--info > div { color: var(--fg-2); font-size: 12px; margin: 1px 0; }
.nds td.creative-cell--info > div b { color: var(--fg); font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.nds td.creative-cell--info .flag { width: 24px; height: 24px; transform: scale(.6); margin: -6px -6px -6px -7px; vertical-align: middle; border-radius: 3px; }
.nds td.creative-cell--info img { display: block; width: 100% !important; max-width: 150px; height: auto; margin: 8px 0 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.nds td.creative-cell--info h4 { font-size: 12.5px; margin: 0 0 4px; font-weight: 600; }
.nds td.creative-cell--info .btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; font-size: 11.5px; font-weight: 600; margin: 2px 4px 0 0; border-radius: 6px; box-shadow: none; }
.nds td.creative-cell--info .btn-primary { background: var(--surface); color: var(--fg-2); border: 1px solid var(--border-strong); }
.nds td.creative-cell--info .btn-primary:hover { background: var(--surface-2); color: var(--fg); }
.nds td.creative-cell--info .btn-info { background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; }
.nds td.creative-cell--links { min-width: 160px; max-width: 230px; }
.nds td.creative-cell--links .creative-link-content { display: block !important; max-width: 100%; }
.nds td.creative-cell--links .creative-link-content a { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--accent); line-height: 1.6; }
.nds td.creative-cell--links .creative-link-content a.text-success-bold { color: var(--good-text); font-weight: 500; }
.nds td.creative-cell--links .creative-link-content a.text-danger-bold { color: var(--crit-text); font-weight: 500; }
.nds td.creative-cell--desc { max-width: 220px; color: var(--fg-2); }
.nds td.creative-cell--user a { font-weight: 500; }
.nds td.creative-cell--date, .nds td.creative-cell--type { white-space: nowrap; color: var(--fg-2); }
.nds td.creative-cell--uniq, .nds td.creative-cell--state { text-align: center !important; }
.nds td.creative-cell--uniq { color: var(--fg-3); font-size: 12px; }
.nds td.creative-cell--uniq .btn { pointer-events: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; box-shadow: none; }
.nds td.creative-cell--uniq .btn-success { background: var(--good-soft); color: var(--good-text); }
.nds td.creative-cell--uniq .btn-danger { background: var(--crit-soft); color: var(--crit-text); }
.nds td.creative-cell--uniq .alert-info { display: inline-block; margin: 4px 0; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; }
.nds td.creative-cell--state img { width: 22px; height: 22px; border-radius: 6px; }
.nds td.creative-cell--history { min-width: 150px; }
.nds td.creative-cell--history .bootstrap-table .fixed-table-toolbar, .nds td.creative-cell--history .bootstrap-table .fixed-table-pagination { display: none; }
.nds td.creative-cell--history .bootstrap-table .fixed-table-container { border: 0; }
.nds td.creative-cell--history .table { margin: 0; font-size: 11.5px; background: transparent; }
.nds td.creative-cell--history .table thead th { background: transparent; border: 0; padding: 0 6px 3px; font-size: 10px; letter-spacing: .05em; color: var(--fg-3); }
.nds td.creative-cell--history .table thead th .th-inner { padding: 0; }
.nds td.creative-cell--history .table tbody td { padding: 3px 6px; border: 0; border-top: 1px solid var(--border); white-space: nowrap; }
.nds td.creative-cell--history .text-success { color: var(--good-text); } .nds td.creative-cell--history .text-danger { color: var(--crit-text); } .nds td.creative-cell--history .text-warning { color: var(--warn-text); } .nds td.creative-cell--history .text-primary { color: var(--accent); }
.nds td.creative-cell--actions { width: 124px; }
.nds td.creative-cell--actions .btn { display: flex; align-items: center; gap: 7px; width: 104px; height: 26px; padding: 0 9px; margin: 0 0 4px; border-radius: 6px; font-size: 12px; font-weight: 600; text-align: left; box-shadow: none; border: 1px solid transparent; }
.nds td.creative-cell--actions .btn .fa { width: 12px; text-align: center; font-size: 11px; opacity: .9; }
.nds td.creative-cell--actions .btn-success { background: var(--good-soft); color: var(--good-text); }
.nds td.creative-cell--actions .btn-danger { background: var(--crit-soft); color: var(--crit-text); }
.nds td.creative-cell--actions .btn-warning { background: var(--warn-soft); color: var(--warn-text); }
.nds td.creative-cell--actions .btn-primary { background: var(--accent-soft); color: var(--accent); }
.nds td.creative-cell--actions .btn-default { background: var(--surface); color: var(--fg-2); border-color: var(--border-strong); }
.nds td.creative-cell--actions .btn:hover:not(.disabled):not([disabled]) { filter: brightness(.96); border-color: color-mix(in srgb, currentColor 30%, transparent); }
.nds td.creative-cell--actions .btn.disabled, .nds td.creative-cell--actions .btn[disabled] { opacity: .4; }
.nds .creative-listing-grid .fixed-table-toolbar { margin-top: var(--sp-2); }

/* ---------- 28. Planner (channel_post_ad_listing) + FullCalendar v3 skin ----------------------------------
   Presentation only: fullcalendar.js / channel.js (drag & drop, drop, eventDrop, ajax) are untouched. No rule here
   changes geometry that the drag maths depends on (no transforms, no position changes on calendar ancestors). */
/* country tabs (ul.bar_tabs with flag sprites) → chips, "FILTERS" toggle pinned top-right of the panel */
.nds .x_panel > .row > [role="tabpanel"][data-example-id] { height: auto !important; padding: 0 110px 0 0; }
.nds ul.bar_tabs { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 var(--sp-3); padding: 0 0 var(--sp-3); background: transparent; border: 0; border-bottom: 1px solid var(--border); height: auto; overflow: visible; }
.nds ul.bar_tabs > li { float: none; margin: 0 !important; border: 0; background: transparent; }
.nds ul.bar_tabs > li > a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 7px; margin: 0; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--fg-2); font-size: 12px; font-weight: 500; line-height: 1; }
.nds ul.bar_tabs > li > a:hover { background: var(--surface-2); color: var(--fg); }
.nds ul.bar_tabs > li.active, .nds ul.bar_tabs > li.active > a, .nds ul.bar_tabs > li.active > a:hover, .nds ul.bar_tabs > li.active > a:focus { background: var(--accent-soft) !important; color: var(--accent) !important; border-color: color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 600; box-shadow: none; }
.nds ul.bar_tabs > li > a .flag { width: 24px; height: 24px; transform: scale(.66); margin: -4px -5px; border-radius: 3px; }
.nds .x_panel > .row > ul.nav.navbar-right { position: absolute; right: var(--sp-4); top: var(--sp-4); margin: 0; float: none; }
.nds .x_panel > .row > ul.nav.navbar-right > li > a.collapse-adv-filter { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-2); font-size: 12px; font-weight: 600; text-transform: none; }
.nds .x_panel > .row > ul.nav.navbar-right > li > a.collapse-adv-filter:hover { background: var(--surface-2); color: var(--fg); }
.nds .x_panel > .row > .mainfilter-form { width: 100%; padding: 0 var(--sp-2); }
/* left column: filters + draggable creatives */
.nds #filterSection { padding-right: var(--sp-3); scrollbar-width: thin; }
.nds #posts-planner-form .form-group { margin-bottom: var(--sp-2); }
.nds #posts-planner-form .types { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 0 var(--sp-2); }
.nds #posts-planner-form .types label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 500; color: var(--fg-2); }
.nds #posts-planner-form .form-group:not(#divfilter) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-left: 0; margin-right: 0; }
.nds #posts-planner-form .form-group > [class*="col-"] { float: none; padding: 0; width: auto; }
.nds #posts-planner-form .form-group > .col-md-9 { flex: 1 1 auto; min-width: 0; }
.nds #posts-planner-form .form-group > .col-md-12, .nds #posts-planner-form .form-group > [data-atp-filter] { flex: 1 1 100%; }
.nds #posts-planner-form label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); margin: 0; padding: 0; line-height: 1.3; }
.nds #posts-planner-form .control-label, .nds #posts-planner-form label[for] { flex: 0 0 104px; }
.nds #posts-planner-form .form-group > label.col-md-12, .nds #posts-planner-form .form-group > label.col-md-5 { flex: 1 1 100%; }
.nds #posts-planner-form select.form-group { width: 100%; height: 30px; margin: 0; padding: 4px 8px; font-size: 12.5px; color: var(--fg); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px; }
.nds #posts-planner-form .form-control { height: 30px; font-size: 12.5px; }
.nds #posts-planner-form [data-atp-filter] label { display: block; margin-bottom: 3px; }
.nds #posts-planner-form [data-atp--input-type="range"] input[type="range"] { width: 70%; accent-color: var(--accent); vertical-align: middle; }
.nds #posts-planner-form [data-atp--input-type="range"] output { font-weight: 600; font-variant-numeric: tabular-nums; }
.nds #posts-planner-form .filter-btn, .nds #posts-planner-form .reset-btn { height: 30px; padding: 4px 14px; font-size: 12.5px; margin: var(--sp-2) 0 0 var(--sp-2); }
.nds #posts-planner-form .reset-btn { background: var(--surface); color: var(--fg-2); border: 1px solid var(--border-strong); }
.nds #posts-planner-form .reset-btn:hover { background: var(--surface-2); color: var(--fg); }
.nds #channel_statistic, .nds #external_sale_statistic { height: 28px; padding: 3px 10px; font-size: 12px; background: var(--surface); color: var(--fg-2); border: 1px solid var(--border-strong); }
.nds #channel_statistic:hover, .nds #external_sale_statistic:hover { background: var(--surface-2); color: var(--fg); }
.nds #external-events { margin-top: var(--sp-3); }
.nds #external-events .bootstrap-table .fixed-table-container { border: 0; }
.nds #external-events .table > tbody > tr > td { padding: 0 !important; border: 0; background: transparent; }
.nds #external-events .table > tbody > tr:hover > td { background: transparent; }
.nds #external-events .fixed-table-pagination { font-size: 12px; }
.nds #external-events .fc-event { position: relative; display: block; margin: 0 0 6px; padding: 7px 8px 7px 10px; border: 1px solid var(--border) !important; border-left-width: 4px !important; border-radius: 8px; background: var(--surface) !important; color: var(--fg); font-size: 12px; font-weight: 500; cursor: grab; box-shadow: 0 1px 2px rgba(20, 26, 36, .05); transition: box-shadow var(--nds-t), border-color var(--nds-t); }
.nds #external-events .fc-event:hover { box-shadow: var(--shadow-pop); border-color: var(--border-strong) !important; }
.nds #external-events .fc-event.ui-draggable-dragging { cursor: grabbing; }
.nds #external-events .fc-event .row { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.nds #external-events .fc-event .row > [class*="col-"] { padding: 0; float: none; width: auto; }
.nds #external-events .fc-event .row > .col-md-3:first-child { flex: 0 0 56px; }
.nds #external-events .fc-event .row > .col-md-9 { flex: 1 1 auto; min-width: 0; color: var(--fg) !important; font-weight: 500 !important; }
.nds #external-events .fc-event .row > .col-md-9 > .row { display: flex; justify-content: space-between; gap: 6px; }
.nds #external-events .fc-event .row > .col-md-9 > .row > .col-md-12 { flex: 1 1 100%; color: var(--fg-3); font-size: 11.5px; font-weight: 450; margin-top: 2px; }
.nds #external-events .fc-event img[width="80px"] { width: 56px !important; height: 56px !important; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); }
.nds #external-events .fc-event .label { margin-right: 2px; vertical-align: 1px; }
.nds #external-events .fc-event .flag { width: 24px; height: 24px; transform: scale(.6); margin: -6px -6px; vertical-align: middle; }
/* post-type colours (post-ad-listing.css): same hue per type, published = strong, unpublished = soft */
.nds .outfit { background: color-mix(in srgb, #2a6fdb 16%, var(--surface)); border-color: #2a6fdb; }
.nds .outfit.published { background: color-mix(in srgb, #2a6fdb 48%, var(--surface)); border-color: #1d56b0; }
.nds .gadget { background: color-mix(in srgb, #f0ad4e 22%, var(--surface)); border-color: #e3952a; }
.nds .gadget.published { background: color-mix(in srgb, #e3952a 58%, var(--surface)); border-color: #c77c15; }
.nds .single { background: color-mix(in srgb, #2db52d 18%, var(--surface)); border-color: #2db52d; }
.nds .single.published { background: color-mix(in srgb, #2db52d 50%, var(--surface)); border-color: #1f8f1f; }
.nds .direct { background: color-mix(in srgb, #b370cf 20%, var(--surface)); border-color: #b370cf; }
.nds .direct.published { background: color-mix(in srgb, #b370cf 52%, var(--surface)); border-color: #9450b3; }
.nds #external-events .fc-event.outfit { border-left-color: #2a6fdb !important; } .nds #external-events .fc-event.gadget { border-left-color: #e3952a !important; } .nds #external-events .fc-event.single { border-left-color: #2db52d !important; } .nds #external-events .fc-event.direct { border-left-color: #b370cf !important; }
/* calendar column head: channel name + creative number search */
.nds #channelSection > .row > .form-group { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.nds #channelSection > .row > .form-group > [class*="col-"] { float: none; padding: 0; width: auto; }
.nds #channelSection > .row > .form-group > .col-md-9 { flex: 1 1 auto; min-width: 0; }
.nds #channelSection h3 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.nds #channelSection .creative-number-input { width: 180px; height: 30px; font-size: 12.5px; }
.nds #channelSection .creative-number-search-btn { height: 30px; padding: 4px 14px; font-size: 12.5px; }
/* FullCalendar v3 */
.nds .fc { font-family: var(--font); color: var(--fg); }
.nds .fc-toolbar { margin-bottom: var(--sp-3); }
.nds .fc-toolbar h2 { font-size: 16px; font-weight: 650; color: var(--fg); letter-spacing: -.01em; line-height: 30px; }
.nds .fc-toolbar .fc-left, .nds .fc-toolbar .fc-right { display: inline-flex; gap: 4px; }
.nds .fc button, .nds .fc-button { height: 30px; padding: 0 10px; margin: 0 !important; font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--fg-2); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px !important; box-shadow: none; text-shadow: none; line-height: 28px; }
.nds .fc-state-default { background-image: none; }
.nds .fc-state-hover, .nds .fc button:hover { background: var(--surface-2); color: var(--fg); }
.nds .fc-state-active, .nds .fc-state-active:hover { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: none; font-weight: 600; }
.nds .fc-state-disabled { opacity: .45; }
.nds .fc-button-group { display: inline-flex; gap: 4px; }
.nds .fc-button .fc-icon { top: 0; }
.nds .fc-unthemed th, .nds .fc-unthemed td, .nds .fc-unthemed thead, .nds .fc-unthemed tbody, .nds .fc-unthemed .fc-divider, .nds .fc-unthemed .fc-row, .nds .fc-unthemed .fc-content, .nds .fc-unthemed .fc-popover, .nds .fc-unthemed .fc-list-view, .nds .fc-unthemed .fc-list-heading td { border-color: var(--border); }
.nds .fc-unthemed .fc-divider, .nds .fc-unthemed .fc-popover .fc-header, .nds .fc-unthemed .fc-list-heading td, .nds .fc-widget-header { background: var(--surface-2); }
.nds .fc-view-container { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; }
.nds .fc-view > table { margin: 0; }
.nds .fc th.fc-day-header { padding: 7px 4px; font-size: 12px; font-weight: 600; color: var(--fg-2); background: var(--surface-2); }
.nds .fc th.fc-day-header.fc-today { color: var(--accent); }
.nds .fc-axis { font-size: 11px; color: var(--fg-3); }
.nds .fc-unthemed .fc-today { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.nds .fc-time-grid .fc-slats .fc-minor td { border-top-style: dashed; }
.nds .fc-unthemed .fc-bg .fc-day { background: var(--surface); }
.nds .fc-unthemed .fc-bg .fc-day.fc-today { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.nds .fc-now-indicator { border-color: var(--crit); }
.nds .fc-event, .nds .fc-event-dot { border-radius: 5px; color: var(--fg); font-size: 11.5px; line-height: 1.3; }
.nds .fc-event .fc-content { padding: 2px 4px; }
.nds .fc-time-grid-event .fc-time { font-size: 10.5px; font-weight: 600; opacity: .85; }
.nds .fc-time-grid-event .fc-title { font-weight: 500; }
.nds .fc-time-grid-event.fc-short .fc-content { padding: 0 4px; }
.nds .fc-event .label { font-size: 10px; padding: 1px 5px; }
.nds .fc-unthemed .fc-popover { border-radius: var(--r2); box-shadow: var(--shadow-pop); background: var(--surface); color: var(--fg); }
.nds .fc-unthemed .fc-popover .fc-header .fc-title { color: var(--fg); }
.nds .fc-unthemed .fc-popover .fc-header .fc-close { color: var(--fg-3); }
.nds .fc-helper, .nds .fc-event.fc-helper { box-shadow: var(--shadow-pop); opacity: .9; }
.nds .fc-highlight { background: var(--accent-soft); opacity: .7; }
.nds .fc-bgevent { background: var(--surface-2); }
.nds .fc-unthemed .fc-disabled-day { background: var(--surface-2); opacity: .6; }
.nds .fc-day-grid-event .fc-content { white-space: normal; }
.nds .fc-day-number { font-size: 12px; color: var(--fg-2); padding: 4px 6px; }
.nds .fc-unthemed .fc-list-item:hover td { background: var(--surface-2); }

